 /* ============================================
   KOMPOZ - FULL FIX
   ============================================ */
            @import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap'); @import url('https://kompoz.ru/wp-content/fonts/fontawesome/css/all.min.css'); @import url('https://kompoz.ru/wp-content/fonts/fontawesome/css/v4-shims.min.css'); * {
                box-sizing: border-box;
            }

            body {
                margin: 0;
                padding: 0;
                background-color: #f0f6f8;
                font-family: 'Google Sans', sans-serif;
                font-size: clamp(14px, 1.2vw, 18px);
                line-height: 1.6;
                color: #000;
                overflow-x: hidden;
                /* letter-spacing: -6%; */
            }

            #wpadminbar {
                display: none !important;
            }
            
            html {
                margin: 0 !important;
                padding: 0 !important;  
            }

            /* ============================================
   HEADER
   ============================================ */
           .kompoz-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1000;
    background: #f0f6f8c2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: clamp(60px, 15vh, 150px);
    display: flex;
    align-items: center;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

            .header-container {
                width: 100%;
                /* padding: 0 clamp(20px, 3vw, 60px); */
                display: flex;
                justify-content: space-between;
                align-items: center;
                height: 100%;
            }

            .header-logo img {
                height: clamp(35px, 4.3vh, 70px);
                width: auto;
            }

            .header-buttons {
                display: flex;
                gap: clamp(8px, 1vw, 15px);
                align-items: center;
            }

            .header-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border: 0;
                background: #D9E0E3;
                color: #000;
                text-decoration: none;
                font-size: clamp(12px, 1.4vw, 16px);
                font-weight: 500;
                cursor: pointer;
                transition: all 0.3s ease;
                font-family: 'Google Sans', sans-serif;
                height: clamp(35px, 6vh, 60px);
                text-transform: uppercase;
                border-radius: 30px;
            }

            .icon-btn {
                width: clamp(35px, 6vh, 60px);
                height: clamp(35px, 6vh, 60px);
                border-radius: 50%;
                font-size: clamp(14px, 3vw, 22px);
            }

            .icon-btn:hover {
                background: #000;
                color: #fff;
                transform: scale(1.1);
            }

            .text-btn {
                padding: clamp(8px, 2vh, 24px) clamp(16px, 4vw, 52px);
                border-radius: 30px;
            }

            .text-btn:hover {
                background: #000;
                color: #fff;
                transform: scale(1.05);
            }

            .header-spacer {
                height: clamp(60px, 8vh, 100px);
                display: none;
            }
            
            .wp-site-blocks {
                padding-top: 0 !important;
            }
            
            /* Кнопка с текстом и иконкой в кружочке */
.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 clamp(16px, 2vw, 24px) 0 clamp(20px, 3vw, 32px);
}

.text-btn-icon {
    /* width: clamp(35px, 6vh, 50px); */
    height: clamp(35px, 6vh, 50px);
    /* background: #ffffff29; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 2vw, 20px);
    transition: all 0.3s ease;
    /* margin-right: -2vh; */
}

.text-btn-icon i {
    color: #fff;
}

.text-btn:hover .text-btn-icon {
    /* background: #333; */
    /* transform: rotate(-15deg); */
}

            /* ============================================
   FILTERS
   ============================================ */
            .kompoz-filters {
                display: flex;
                flex-wrap: wrap;
                gap: clamp(8px, 1.8vw, 18px);
                margin: clamp(40px, 6vh, 80px) auto clamp(30px, 4vh, 60px) auto;
                justify-content: flex-start;
                padding: 0;
                max-width: 100vw;
                margin-top: clamp(10px, 1vh, 20px);
                padding-top: clamp(30px, 4vh, 60px);
            }

            .filter-btn {
                padding: clamp(8px, 1vh, 24px) clamp(16px, 3vw, 42px);
                border: 0;
                background: #D9E0E3;
                color: #000;
                font-size: clamp(12px, 1.8vw, 18px);
                font-weight: 500;
                cursor: pointer;
                transition: all 0.3s ease;
                font-family: 'Google Sans', sans-serif;
                border-radius: 30px;
                height: clamp(35px, 6vh, 60px);
            }

            .filter-btn:hover, .filter-btn.is-active {
                background: #000;
                color: #fff;
                transform: scale(1.05);
            }

            /* ============================================
   GRID - ЖЁСТКИЙ FIX
   ============================================ */
           /* ============================================
GRID - через WordPress Query Loop
============================================ */

/* Сбрасываем стили WordPress для контейнера */
.kompoz-grid {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    height: auto !important;
}

/* Управляем колонками через ul внутри */
.kompoz-grid .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: clamp(16px, 2vw, 30px) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Карточки */
.kompoz-grid .wp-block-post {
    display: block !important;
    float: none !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border-radius: clamp(12px, 1.5vw, 24px);
    transition: opacity 0.4s ease;
}

.kompoz-grid .wp-block-post.hidden {
    display: none !important;
}


            .kompoz-grid .wp-block-post-featured-image {
                width: 100% !important;
                height: 100% !important;
                margin: 0 !important;
                border-radius: clamp(12px, 1.5vw, 24px);
            }

            .kompoz-grid .wp-block-post-featured-image img {
                width: 100% !important;
                height: 100% !important;
                object-fit: cover;
                transition: transform 0.4s ease, filter 0.4s ease;
                border-radius: clamp(12px, 1.5vw, 24px);
            }

            /* Оверлей */
            .kompoz-grid .wp-block-post::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.6);
                backdrop-filter: blur(6px);
                -webkit-backdrop-filter: blur(6px);
                opacity: 0;
                transition: opacity 0.4s ease;
                z-index: 1;
                border-radius: clamp(12px, 1.5vw, 24px);
                pointer-events: none;
            }

            /* Заголовок */
            .kompoz-grid .wp-block-post-title {
                position: absolute;
                bottom: clamp(20px, 3vh, 40px);
                left: clamp(20px, 3vw, 40px);
                right: clamp(20px, 3vw, 40px);
                z-index: 2;
                color: #fff;
                opacity: 0;
                transform: translateY(20px);
                transition: all 0.4s ease;
                margin: 0;
                font-size: clamp(18px, 2vw, 28px);
                font-weight: 700;
                font-family: 'Google Sans', sans-serif;
            }

            .kompoz-grid .wp-block-post-title a {
                color: #fff;
                text-decoration: none;
            }

            /* Hover */
            .kompoz-grid .wp-block-post:hover::before {
                opacity: 1;
            }

            .kompoz-grid .wp-block-post:hover .wp-block-post-featured-image img {
                transform: scale(1.05);
                filter: blur(4px);
            }

            .kompoz-grid .wp-block-post:hover .wp-block-post-title {
                opacity: 1;
                transform: translateY(0);
            }

           /* Адаптив */
@media (max-width: 1024px) {
    .kompoz-grid .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .text-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .kompoz-grid .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}
            
            /* ============================================
PROJECT CARD HOVER CONTENT
============================================ */

.kompoz-grid .wp-block-post .card-hover-content {
    position: absolute;
    bottom: clamp(20px, 3vh, 50px);
    left: clamp(20px, 3vw, 50px);
    right: clamp(20px, 3vw, 50px);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.kompoz-grid .wp-block-post:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Левая часть — категории + название */
.card-content-left {
    flex: 1;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Категории */
.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.card-category {
    display: inline-block;
    padding: 10px 16px;
    background: rgb(0 0 0 / 36%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    /* text-transform: uppercase; */
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Название проекта */
.card-content-left .wp-block-post-title {
    position: static;
    transform: none;
    opacity: 1;
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.card-content-left .wp-block-post-title a {
    color: #fff;
    text-decoration: none;
}

/* Правая часть — стрелка */
.card-content-right {
    flex: 1;
    max-width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.card-arrow {
    /* width: 50px; */
    /* height: 50px; */
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.card-arrow i {
    font-size: 30px;
    color: #ffffff;
    transform: translateX(0);
    transition: transform 0.4s ease;
    font-weight: 300 !important;
}

.kompoz-grid .wp-block-post:hover .card-arrow {
    /* background: #fff; */
    /* transform: scale(1.1); */
}

.kompoz-grid .wp-block-post:hover .card-arrow i {
    transform: translateX(4px);
}

/* Скрываем оригинальную группу с заголовком */
.kompoz-grid .wp-block-post > .wp-block-group {
    display: none !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .card-content-left {
        /* max-width: 60%; */
    }
    
    .card-content-right {
        /* max-width: 40%; */
    }
    
    .card-arrow {
        /* width: 40px; */
        /* height: 40px; */
    }
    
    .card-arrow i {
        /* font-size: 16px; */
    }
    
    .card-category {
        font-size: 12px;
        padding: 7px 15px;
    }
    .card-content-left .wp-block-post-title {
        
    }
}

            /* ============================================
   HIDE DEFAULT WP ELEMENTS
   ============================================ */
           .site-header {
               display: none !important;
           }
           header.wp-block-group.entry-header.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
               display: none !important;  
           }

            .entry-content {
                padding-top: 0 !important;
                margin-top: 0 !important;
            }

            /* ============================================
   MODAL
   ============================================ */
            .kompoz-modal-overlay {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0, 0, 0, 0.4);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                z-index: 9999;
                display: flex;
                align-items: flex-end;
                justify-content: center;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.4s ease, visibility 0.4s ease;
            }

            .kompoz-modal-overlay.active {
                opacity: 1;
                visibility: visible;
            }

            /* Внешний контейнер — всегда 100%, прижат к низу */
            .kompoz-modal {
                background: #d9e0e3;
                border-radius: clamp(20px, 4vw, 60px) clamp(20px, 4vw, 60px) 0 0;
                width: 100%;
                padding: 0;
                position: relative;
                transform: translateY(100%);
                transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
                height: 90vh;
                overflow-y: auto;
                box-sizing: border-box;
                margin: auto;
                margin-bottom: 0;
                display: flex;
                text-align: center;
            }

            .kompoz-modal-overlay.active .kompoz-modal {
                transform: translateY(0);
            }

            /* Внутренний контейнер — 30vw на десктопе */
            .kompoz-modal-inner {
                padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px) clamp(32px, 4vh, 48px);
                width: 100%;
                box-sizing: border-box;
                margin: auto;
            }
            
             .kompoz-modal-form {
        width: 60vw;
        min-width: 400px;
        max-width: 800px;
        margin: auto;
        margin-top: 5vw;
    }

            @media (min-width: 1024px) {
                .kompoz-modal-overlay {
                    align-items: center;
                }

                .kompoz-modal {
                    /* border-radius: clamp(20px, 2vw, 28px); */
                    /* max-height: 90vh; */
                    transform: translateY(-100%) scale(1);
                }

                .kompoz-modal-overlay.active .kompoz-modal {
                    transform: translateY(0) scale(1);
                }

                .kompoz-modal-inner {
                    width: 90vw;
                    /* min-width: 400px; */
                    /* max-width: 560px; */
                    margin: auto;
                }
            }

            /* Кнопка закрытия */
            .kompoz-modal-close {
                position: absolute;
                top: 30px;
                right: 30px;
                /* width: 40px; */
                /* height: 40px; */
                border: 0;
                border-radius: 50%;
                background: transparent;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 36px;
                transition: all 0.3s ease;
                z-index: 10;
                color: #0000006e;
            }

            .kompoz-modal-close:hover {
                /* background: #000; */
                color: #000000;
                transform: scale(1.1);
            }

            .kompoz-modal-title {
                font-size: clamp(14px, 2.5vw, 25px);
                font-weight: 500;
                margin: 0 0 8px 0;
                letter-spacing: -6%;
                color: #a5abad;
            }

            .kompoz-modal-subtitle {
                font-size: clamp(24px, 3.5vw, 42px);
                color: #000000;
                margin: clamp(24px, 3vh, 54px) 0;
                font-weight: 600;
                letter-spacing: -6%;
                line-height: 1;
            }

            /* ============================================
   FORM - Copy from reference
   ============================================ */
            .kompoz-form {
                display: flex;
                flex-direction: column;
                gap: clamp(12px, 1.5vh, 16px);
            }

            /* Сброс CF7 обёрток */
            .kompoz-form p {
                margin: 0 !important;
                padding: 0 !important;
            }

            .kompoz-form br {
                display: none !important;
            }

            .wpcf7-form-control-wrap {
                display: block;
                margin: 0 !important;
                padding: 0 !important;
            }

            /* Строка для email + phone */
            .kompoz-field-row {
                display: flex;
                gap: clamp(12px, 1.5vw, 16px);
            }

            .kompoz-field {
                position: relative;
                flex: 1;
            }

            .kompoz-field-half {
                flex: 1;
                min-width: 0;
            }

            .kompoz-field-full {
                width: 100%;
            }

            .kompoz-field-textarea {
                min-height: 160px;
            }

            /* Поля ввода */
            .kompoz-input {
                display: block;
                width: 100%;
                padding: clamp(20px, 3.2vh, 35px) clamp(16px, 1.9vw, 26px) clamp(10px, 1.2vh, 20px);
                border: none;
                border-radius: clamp(14px, 1.5vw, 20px);
                font-size: clamp(16px, 2vw, 20px);
                font-family: 'Google Sans', sans-serif;
                background: #c8cfd1;
                transition: background 0.3s ease;
                box-sizing: border-box;
                color: #000;
                font-weight: 500;
                line-height: 1.4;
                margin: 0 !important;
                min-height: 64px;
                letter-spacing: -6%;
            }

            .kompoz-input:focus {
                outline: none;
                background: #c8cfd1;
            }

            /* === ЖЁСТКОЕ ПЕРЕОПРЕДЕЛЕНИЕ АВТОФИЛА CHROME === */
            .kompoz-input:-webkit-autofill, .kompoz-input:-webkit-autofill:hover, .kompoz-input:-webkit-autofill:focus, .kompoz-input:-webkit-autofill:active {
                -webkit-text-fill-color: #000 !important;
                -webkit-box-shadow: 0 0 0px 1000px #c8cfd1 inset !important;
                box-shadow: 0 0 0px 1000px #c8cfd1 inset !important;
                transition: background-color 5000s ease-in-out 0s !important;
                caret-color: #000 !important;
                font-weight: 500 !important;
            }

            /* Для textarea */
            textarea.kompoz-input:-webkit-autofill, textarea.kompoz-input:-webkit-autofill:hover, textarea.kompoz-input:-webkit-autofill:focus {
                -webkit-text-fill-color: #000 !important;
                -webkit-box-shadow: 0 0 0px 1000px #c8cfd1 inset !important;
                box-shadow: 0 0 0px 1000px #c8cfd1 inset !important;
                transition: background-color 5000s ease-in-out 0s !important;
            }

            /* Лейбл floating */
            .kompoz-label {
                position: absolute;
                left: clamp(16px, 2vw, 24px);
                top: 20px;
                font-size: clamp(15px, 2vw, 18px);
                color: #000000;
                font-weight: 500;
                pointer-events: none;
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                background: transparent;
                padding: 0;
                z-index: 1;
                letter-spacing: -0.01em;
            }

            .kompoz-field-textarea .kompoz-label {
                top: 20px;
            }

            /* Когда поле в фокусе ИЛИ заполнено — лейбл уходит вверх */
            .kompoz-field.focused .kompoz-label, .kompoz-field.has-value .kompoz-label {
                top: 11px;
                font-size: clamp(14px, 1vw, 16px);
                color: #0000004a;
                font-weight: 700;
                letter-spacing: 0;
            }

            .kompoz-field-textarea.focused .kompoz-label, .kompoz-field-textarea.has-value .kompoz-label {
                top: 10px;
            }

            /* Текст введённого значения */
            .kompoz-input {
                color: #000;
                font-weight: 500;
            }

            /* Кнопка */
            .kompoz-submit-wrap {
                margin-top: clamp(16px, 2vh, 24px);
            }

            .kompoz-submit {
                width: 100%;
                padding: clamp(16px, 2vh, 20px) 24px;
                background: #000;
                color: #fff;
                border: none;
                border-radius: 30px;
                font-size: clamp(13px, 1vw, 15px);
                font-weight: 700;
                font-family: 'Google Sans', sans-serif;
                cursor: pointer;
                transition: all 0.3s ease;
                text-transform: uppercase;
                letter-spacing: 0.08em;
                margin: 0 !important;
            }

            .kompoz-submit:hover {
                background: #222;
                transform: scale(1.02);
            }

            /* Сообщения CF7 */
            .wpcf7-response-output {
                margin: 16px 0 0 0 !important;
                padding: 12px 16px !important;
                border-radius: 12px !important;
                font-size: 13px !important;
                border: none !important;
            }

            .wpcf7-mail-sent-ok {
                color: #059669 !important;
                background: #ecfdf5 !important;
            }

            .wpcf7-validation-errors {
                color: #dc2626 !important;
                background: #fef2f2 !important;
            }

            .wpcf7-not-valid-tip {
                display: none !important;
            }

            /* ============================================
   DESKTOP - 30vw модалка
   ============================================ */
            @media (min-width: 1024px) {
                .kompoz-modal-overlay {
                    align-items: center;
                }

                .kompoz-modal {
                    /* width: 30vw; */
                    /* min-width: 420px; */
                    /* max-width: 560px; */
                    /* border-radius: clamp(20px, 2vw, 28px); */
                    /* margin-bottom: 20px; */
                }

                .kompoz-modal-overlay.active .kompoz-modal {
                    transform: translateY(0) scale(1);
                }

                .kompoz-modal {
                    transform: translateY(100%) scale(1);
                }
            }

           /* ============================================
MOBILE - полная ширина
============================================ */
@media (max-width: 1023px) {
    
     .kompoz-modal-form {
        
    }
    /* HEADER - мобильная адаптация */
    .kompoz-header {
        height: clamp(50px, 10vh, 100px);
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    /* Логотип на мобильном */
    .header-logo img {
        height: clamp(30px, 8vh, 50px);
        /* max-width: 150px; */
    }
    
    /* Кнопки в хедере на мобильном */
    .header-buttons {
        gap: 8px;
    }
    
    .header-btn {
        height: clamp(35px, 7vh, 45px);
        font-size: clamp(11px, 3vw, 14px);
        padding: 8px 12px;
    }
    
    .icon-btn {
        width: clamp(35px, 7vh, 45px);
        height: clamp(35px, 7vh, 45px);
        font-size: clamp(14px, 4vw, 18px);
    }
    
    .text-btn {
        padding: 8px 16px;
        display: none; /* Скрываем текстовую кнопку на мобильном */
    }
    
    /* Кнопки фильтров на мобильном */
    .kompoz-filters {
        gap: 12px;
        margin: clamp(20px, 5vh, 40px) auto clamp(20px, 3vh, 30px) auto;
    }
    
    .filter-btn {
        height: clamp(35px, 7vh, 45px);
        padding: 8px 16px;
        font-size: clamp(11px, 3vw, 14px);
    }
    
    /* Сетка проектов на мобильном */
    .kompoz-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Модалка */
    .kompoz-field-row {
        flex-direction: column;
    }
    
    .kompoz-modal {
        transform: translateY(100%);
        /* text-align: left; */
    }
    
    .kompoz-modal-overlay.active .kompoz-modal {
        transform: translateY(0);
    }
    
    .kompoz-modal-inner {
        padding: clamp(20px, 5vw, 32px) clamp(15px, 4vw, 24px) clamp(24px, 6vh, 40px);
    }
}

/* ============================================
VERY SMALL MOBILE (до 480px)
============================================ */
@media (max-width: 480px) {
    .kompoz-header {
        height: 90px;
    }
    .kompoz-modal-form {
        
    }
    .header-logo img {
        height: 20px !important;
        /* max-width: 120px; */
    }
    
    .header-btn {
        height: 35px;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .icon-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .filter-btn {
        height: 40px;
        padding: 7px 22px;
        font-size: 14px;
    }
    
    .kompoz-modal-title {
        font-size: 19px;
    }
    
    .kompoz-modal-subtitle {
        font-size: 28px;
        margin: 16px 0 36px 0;
    }
}


/* ============================================
HEADER BUTTONS - INVERTED COLORS
============================================ */

.header-btn {
    background: #000;
    color: #fff;
}

.header-btn:hover {
    /* background: #333; */
    color: #fff;
}

.icon-btn:hover {
    background: #d9e0e3;
    color: #000;
}

.text-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.text-btn i {
    font-size: 19px;
    transition: transform 0.3s ease;
}

.text-btn:hover i {
    transform: translateX(4px);
}

/* ============================================
MOBILE MENU BUTTON
============================================ */

.mobile-menu-btn {
    display: none;
    background: #000;
    color: #fff;
    height: clamp(45px, 7vh, 60px);
    padding: 0 clamp(20px, 3vw, 32px) 0 clamp(16px, 2vw, 24px);
    border-radius: 30px;
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 500;
    letter-spacing: 0.05em;
    align-items: center;
    gap: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #222;
    /* transform: scale(1.05); */
}

.mobile-menu-icon {
    width: clamp(35px, 6vh, 50px);
    height: clamp(35px, 6vh, 50px);
    /* background: #ffffff29; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 2.5vw, 24px);
}

.mobile-menu-icon i {
    color: #fff;
}

/* ============================================
MOBILE MENU OVERLAY
============================================ */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.5); */
    /* backdrop-filter: blur(8px); */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    top: clamp(70px, 10vh, 90px);
    right: clamp(15px, 3vw, 30px);
    background: #d9e0e3;
    border-radius: clamp(16px, 2vw, 24px);
    padding: clamp(12px, 1.5vh, 16px);
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-50px) translateX(320px) rotate(-45deg);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateY(0) rotate(0deg);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: clamp(14px, 2vh, 18px) clamp(16px, 2vw, 20px);
    border-radius: 12px;
    text-decoration: none;
    color: #000;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    font-family: 'Google Sans', sans-serif;
    font-size: 7.2vw;
}

.mobile-menu-item:hover {
    background: #f0f6f8;
}

.mobile-menu-item i {
    /* width: 40px; */
    /* height: 40px; */
    /* background: #000; */
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6vw;
}

.mobile-menu-item:hover i {
    background: #333;
}



/* ============================================
MOBILE ADAPTIVE
============================================ */

@media (max-width: 1023px) {
    
    .kompoz-modal-close {
        
    }
    .kompoz-modal {
        
    }
    .kompoz-modal-title {
        font-size: clamp(14px, 3.5vw, 25px);
    }
    .kompoz-modal-subtitle {
        font-size: clamp(24px, 5vw, 52px);
    }
    .desktop-buttons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: inline-flex;
        height: clamp(35px, 7vh, 45px);
        padding: 8px 20px;
        font-size: clamp(11px, 3vw, 14px);
        padding-right: 0;
    }
    
    .header-container {
        padding: 0;
    }
    
    .header-logo img {
        height: clamp(10px, 5vh, 25px);
        /* max-width: 140px; */
    }
    .entry-content {
        padding-left: 15px;
        padding-right: 15px;
}
}

@media (max-width: 480px) {
    
    .kompoz-modal-close {
        top: 13px;
        right: 10px;
        font-size: 32px;
    }
    .kompoz-modal {
        text-align: left;
    }
    .mobile-menu-btn {
        height: 38px;
        padding: 0 5px 0 22px;
        font-size: 12px;
    }
    
    .mobile-menu-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .mobile-menu {
        left: 15px;
        right: 15px;
    }
    .entry-content {
    padding-left: 15px;
    padding-right: 15px;
}
}



/* ============================================
HERO BLOCK
============================================ */

.kompoz-hero {
    width: 100%;
    padding: clamp(60px, 10vh, 120px) clamp(20px, 5vw, 80px) clamp(40px, 6vh, 80px);
    box-sizing: border-box;
    max-width: none;
    padding: 0;
    height: 62vh;
    display: flex;
}

.kompoz-hero-inner {
    max-width: none;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
}

/* Надзаголовок */
.kompoz-hero-eyebrow {
    display: block;
    /* font-size: clamp(14px, 1.2vw, 18px); */
    font-weight: 500;
    color: #6b7280;
    /* text-transform: uppercase; */
    letter-spacing: 0.08em;
    margin-bottom: clamp(16px, 2vh, 24px);
    padding-bottom: 30px;
    font-size: clamp(14px, 2.5vw, 25px);
    font-weight: 500;
    margin: 0 0 8px 0;
    letter-spacing: -6%;
    color: #a5abad;
    width: 100%;
}

/* Главный заголовок */
.kompoz-hero-title {
    font-size: clamp(36px, 6.5vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -6%;
    color: #000;
    margin: 0;
    text-transform: none;
    width: 100%;
}

/* ============================================
HERO - TABLET (до 1023px)
============================================ */

@media (max-width: 1023px) {
    .kompoz-hero {
        /* padding: clamp(40px, 8vh, 80px) clamp(20px, 4vw, 40px) clamp(30px, 4vh, 50px); */
    }
    
    .kompoz-hero-title {
        font-size: clamp(32px, 6vw, 64px);
        line-height: 1;
    }
}

/* ============================================
HERO - MOBILE (до 767px)
============================================ */

@media (max-width: 767px) {
    .kompoz-hero {
        /* padding: clamp(30px, 6vh, 60px) clamp(15px, 4vw, 24px) clamp(24px, 4vh, 40px); */
    }
    
    .kompoz-hero-eyebrow {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .kompoz-hero-title {
        font-size: clamp(28px, 8vw, 48px);
        line-height: 1.15;
    }
}

/* ============================================
HERO - SMALL MOBILE (до 480px)
============================================ */

@media (max-width: 480px) {
    .kompoz-hero-title {
        font-size: 40px;
        line-height: 1;
    }
    
    .kompoz-hero-title br {
        display: block;
    }
}


/* ============================================
PAGE LOAD ANIMATIONS
============================================ */

/* Header - slide down */
.kompoz-header {
    animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(-100%);
}

@keyframes headerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Site blocks - slide up */
.wp-site-blocks {
    animation: siteBlocksSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes siteBlocksSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero block - fade in */
.kompoz-hero {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filters - fade in */
.kompoz-filters {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Grid - fade in */
.kompoz-grid {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
SCROLL REVEAL ANIMATION
============================================ */

/* Начальное состояние — скрыто и смещено вниз */
.kompoz-grid .wp-block-post {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Активное состояние — видимо */
.kompoz-grid .wp-block-post.revealed {
    opacity: 1;
    transform: translateY(0);
}
 
/* Скрытые карточки (фильтрация) — без анимации */
.kompoz-grid .wp-block-post.hidden {
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none !important;
}


footer.site-footer.wp-block-template-part {
    display: none;
}


/* ============================================
STICKY FILTERS (ДУБЛИКАТ)
============================================ */
.sticky-filters {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(240, 246, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* БЕЗ transition и анимации — мгновенное появление */
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
}

.sticky-filters.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Сбрасываем отступы у внутренней копии, чтобы она красиво лежала в fixed */
.sticky-filters .kompoz-filters {
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start;
    padding-top: clamp(30px, 4vh, 60px) !important;
    padding-bottom: clamp(20px, 3vh, 40px) !important;
}

/* ============================================
ДРУГИЕ ПРОЕКТЫ БРЕНДА
============================================ */
.kompoz-other-projects {
    margin-top: clamp(60px, 8vh, 100px);
    padding: clamp(40px, 6vh, 80px) 0;
}

.kompoz-other-projects-title {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 700;
    margin: 0 0 clamp(30px, 4vh, 50px) 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.kompoz-other-projects-title span {
}

.kompoz-other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 30px);
}
/* Карточка другого проекта — как на главной */
.kompoz-other-project-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: clamp(12px, 1.5vw, 24px);
    aspect-ratio: 4/3;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease;
}

.kompoz-other-project-card .wp-block-post-featured-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: clamp(12px, 1.5vw, 24px);
    overflow: hidden;
}

.kompoz-other-project-card .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: clamp(12px, 1.5vw, 24px);
}

/* Оверлей и блюр */
.kompoz-other-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: clamp(12px, 1.5vw, 24px);
    pointer-events: none;
}

/* Hover-эффекты */
.kompoz-other-project-card:hover::before {
    opacity: 1;
}

.kompoz-other-project-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
    filter: blur(4px);
}

/* Hover-контент (категории + название + стрелка) */
.kompoz-other-project-card .card-hover-content {
    position: absolute;
    bottom: clamp(20px, 3vh, 50px);
    left: clamp(20px, 3vw, 50px);
    right: clamp(20px, 3vw, 50px);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.kompoz-other-project-card:hover .card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Скрываем старый заголовок */
.kompoz-other-project-title {
    display: none;
}

/* Адаптив */
@media (max-width: 1024px) {
    .kompoz-other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kompoz-other-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .kompoz-other-projects {
        margin-top: 40px;
        padding: 40px 0;
    }
}
/* ============================================
СТРАНИЦА ПРОЕКТА (SINGLE PROJECT)
============================================ */

/* Кнопка "На главную" */
.project-back-to-home {
    margin:0;
    max-width: none;
    margin-bottom: clamp(30px, 4vh, 50px);
}

.project-back-to-home-bottom {
    margin-top: clamp(60px, 8vh, 100px);
    margin-bottom: 0;
}

.back-to-home-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #000;
    text-decoration: none;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 0;
    text-transform: uppercase;
}

.back-to-home-link i {
    font-size: clamp(16px, 2vw, 22px);
    transition: transform 0.3s ease;
}

.back-to-home-link:hover {
    transform: translateX(-5px);
}

.back-to-home-link:hover i {
    transform: translateX(-4px);
}

/* Бренд проекта */
.project-brand-header {
    margin:0;
    max-width: none;
    margin-bottom: clamp(40px, 6vh, 70px);
}

.project-brand-label {
    display: inline-block;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 500;
    color: #a5abad;
    padding-bottom: 8px;
}

/* Содержимое проекта */
.project-content {
    margin:0;
    max-width: none;
    margin-bottom: clamp(40px, 6vh, 70px);
}

.project-content h1 {
       font-size: clamp(36px, 6.5vw, 96px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -6%;
    color: #000;
    margin: 0;
    text-transform: none;
    width: 100%;
}
}

.project-content img {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
     margin: 0;
}
.wp-block-image img {
   width: 100%;  
}
/* Другие проекты бренда */
.kompoz-other-projects {
    margin:0;
    max-width: none;
    margin-top: clamp(60px, 8vh, 100px);
    padding: clamp(40px, 6vh, 80px) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.kompoz-other-projects-title {
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 700;
    margin: 0 0 clamp(30px, 4vh, 50px) 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.kompoz-other-projects-title span {
}

.kompoz-other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 30px);
}

.kompoz-other-project-card {
    display: block;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease;
}

.kompoz-other-project-card:hover {
    transform: translateY(-5px);
}

.kompoz-other-project-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: clamp(12px, 1.5vw, 24px);
    overflow: hidden;
    margin-bottom: clamp(12px, 1.5vh, 20px);
}

.kompoz-other-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0;
}

.kompoz-other-project-card:hover .kompoz-other-project-image img {
    transform: scale(1.05);
}

.kompoz-other-project-title {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Адаптив */
@media (max-width: 1024px) {
    .kompoz-other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kompoz-other-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-home-link {
        font-size: 14px;
    }
    
    .back-to-home-link i {
        font-size: 18px;
    }
}
