/* ==========================================================
   GLOBAL VARIABLES & BASE
   ========================================================== */
:root {
    --primary-yellow: #fcd34d;
    --primary-hover: #e3bd3f;
    --whatsapp-green: #4caf50;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --font-main: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font-family: var(--font-main);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.highlight {
    color: #d97706;
    font-weight: bold;
}

/* ==========================================================
   HEADER (GLASS & TRANSPARENT)
   ========================================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 100;
    padding-bottom: 0;
}

.top-bar {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.address-block {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-wa {
    background: var(--whatsapp-green);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-call {
    background: var(--primary-yellow);
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-wa:hover, .btn-call:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.phone-block {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.phone-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.work-hours {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* NAV MENU */
.nav-wrapper {
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 0;
    border: 1px solid rgba(255,255,255, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-list {
    display: flex;
    justify-content: space-evenly;
    font-weight: 600;
    font-size: 15px;
}

.nav-list li a:hover {
    color: #d97706;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
    position: relative;
    padding: 220px 0 100px 0;
    background: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.clouds-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #fff 20%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.location-tag {
    color: #d97706;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.8);
    width: fit-content;
    padding: 5px 10px;
    border-radius: 8px;
}

#heroH1 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 30px;
}

.features-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.check-icon {
    min-width: 24px;
    height: 24px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.feature-text h4 {
    margin: 0 0 5px 0;
    font-weight: 700;
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
}

.cta-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-btn {
    background: var(--primary-yellow);
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(252, 211, 77, 0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-dark);
}

.main-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.ya-rating {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
}

.ya-score {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    font-weight: 800;
}

.ya-icon {
    background: #fc3f1d;
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: sans-serif;
}

.stars {
    color: #fcc526;
    font-size: 14px;
    margin: 2px 0;
}

.ya-sub {
    color: #aaa;
    font-weight: 400;
}

/* ==========================================================
   BENEFITS SECTION
   ========================================================== */
.benefits-section {
    margin: 100px 0;
    position: relative;
    z-index: 10;
}

.benefits-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    justify-content: space-between;
}

.b-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 22%;
    min-width: 200px;
}

.b-icon img {
    height: 150px;
    margin-bottom: 20px;
}

.b-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.b-text p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================
   ABOUT SECTION
   ========================================================== */
.about-section {
    margin-bottom: 100px;
}

.about-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.caption {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

.about-intro {
    color: #d97706;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.about-list i {
    color: var(--primary-yellow);
    font-size: 20px;
    margin-top: 3px;
}

.btn-consult {
    margin-top: 30px;
}

/* ==========================================================
   QUIZ SECTION
   ========================================================== */
.quiz-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-top: -30px;
    margin-bottom: 40px;
}

.quiz-wrapper-white {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    min-height: 400px;
}

/* ==========================================================
   🔥 NEW GALLERY SECTION (MODERN DYNAMIC)
   ========================================================== */
.gallery-section {
    margin-bottom: 100px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
}

/* СЕТКА ГАЛЕРЕИ (АДАПТИВНАЯ) */
.gallery-grid {
    display: grid;
    /* Колонки мин. 320px, если не влезают - перенос */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px;
    padding: 10px 0;
}

/* КАРТОЧКА РАБОТЫ */
.pf-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    text-align: left; /* Возвращаем выравнивание текста влево внутри карточек */
}

/* Эффект наведения */
.pf-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Блок картинки */
.pf-image-box {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f4f4f4;
}

.pf-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pf-card:hover .pf-image-box img {
    transform: scale(1.05);
}

/* Цена на картинке */
.pf-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Контент карточки */
.pf-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pf-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.pf-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Бейдж экономии */
.pf-economy {
    background: #ecfdf5;
    color: #059669;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid #a7f3d0;
    align-self: flex-start; /* Прижать влево */
}

/* Кнопка в карточке */
.pf-btn {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pf-btn:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
    color: #fff;
}

.loader-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #94a3b8;
    font-size: 18px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: #f9fafb;
    padding-top: 60px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-info {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    color: var(--text-gray);
}

.footer-legal {
    margin-top: 15px;
    font-size: 12px;
    color: #aaa;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-gray);
}

.footer-list i {
    color: var(--primary-yellow);
    font-size: 12px;
    border: 1px solid var(--primary-yellow);
    border-radius: 50%;
    padding: 3px;
}

.contacts-col {
    text-align: right;
}

.footer-phone {
    font-size: 24px;
    color: var(--text-dark);
}

.footer-email {
    display: block;
    margin: 10px 0 20px;
    color: #d97706;
    font-weight: 600;
}

.footer-btn {
    display: inline-block;
}

.footer-bottom {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #aaa;
    font-size: 12px;
}

/* ==========================================================
   MODAL WINDOW
   ========================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: #fff;
    width: 400px;
    max-width: 90%;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.modal-overlay.open .modal-window {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.close-modal:hover {
    color: #000;
}

.modal-window h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.modal-window p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.modal-form {
    text-align: left;
}

.modal-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.modal-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.full-width {
    width: 100%;
}

.policy-text {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

.policy-text a {
    text-decoration: underline;
}

/* ==========================================================
   RESPONSIVE (MOBILE)
   ========================================================== */
@media (max-width: 900px) {
    .hero-bg {
        width: 100%;
        opacity: 0.2;
        mask-image: none;
        background-position: center bottom;
    }
    
    .site-header {
        position: relative;
        background: #fff;
        padding-bottom: 20px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .location-tag {
        justify-content: center;
        margin: 0 auto 20px;
    }

    .feature-item {
        justify-content: center;
        text-align: left;
    }

    .cta-block {
        flex-direction: column;
    }

    .logo-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .nav-list {
        display: none;
    }

    .top-bar {
        flex-direction: column;
        gap: 20px;
    }

    .contact-area {
        flex-direction: column;
        width: 100%;
    }

    /* Адаптив Квиза */
    .quiz-section {
        padding: 50px 0;
    }
    .quiz-wrapper-white {
        padding: 10px;
        box-shadow: none;
        background: transparent;
    }
    .quiz-subtitle {
        font-size: 14px;
    }
    
    /* Адаптив Галереи (сетка сама подстроится, но уменьшим отступы) */
    .section-title {
        font-size: 26px;
    }
}

/* --- MODERN VOLUMETRIC DESIGN SYSTEM (2026 Vibe) --- */

:root {
    /* БЫЛО: Кислотный оранжевый */
    /* --primary-gradient: linear-gradient(135deg, #ff5722, #ff8a50); */
    
    /* СТАЛО: Спокойный Янтарный (Золотой) */
    /* Плавный переход от насыщенного желтого к теплому оранжевому */
    --primary-gradient: linear-gradient(135deg, #FFB300 0%, #F57C00 100%); 
    
    /* Фон сайта оставим светлым и чистым */
    --surface-color: #ffffff;
    --bg-gradient: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    
    /* Тени */
    --modern-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0,0,0,0.02);
    --modern-shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.03);
    --modern-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.20);
    
    /* Свечение теперь тоже золотистое, а не красное */
    --primary-glow: 0 10px 25px -5px rgba(255, 160, 0, 0.5);
    
    --border-radius-xl: 24px;
    --border-radius-lg: 16px;
    
    /* Акцентный цвет для мелких деталей (например, активная точка слайдера) */
    --primary-color: #F57C00; 
}

body {
    background: var(--bg-gradient);
    font-family: 'Montserrat', sans-serif; /* Убеждаемся в шрифте */
}

/* Объемные заголовки */
h1, h2, h3, .section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Современные кнопки */
.main-btn, .btn-call, .footer-btn {
    border: none !important;
    background: var(--primary-gradient) !important;
    box-shadow: var(--primary-glow);
    border-radius: var(--border-radius-lg) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Эффект пружины */
    position: relative;
    overflow: hidden;
}

.main-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.3), rgba(255,255,255,0));
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.main-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px -15px rgba(255, 87, 34, 0.7);
}

.main-btn:hover::after {
    opacity: 1;
    left: 0; top: 0;
}

/* Объемные карточки преимуществ */
.benefits-card, .about-text, .quiz-section {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--modern-shadow-md);
    border: 1px solid rgba(255,255,255,0.5); /* Стеклянная граница */
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefits-card:hover {
    box-shadow: var(--modern-shadow-lg);
    transform: translateY(-5px);
}

/* --- ГАЛЕРЕЯ НОВОГО ПОКОЛЕНИЯ (SWIPER) --- */

/* Контейнер слайдера */
.swiper-container-portfolio {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 70px;
    overflow: hidden; /* Важно для 3D эффектов */
}

/* Карточка слайда */
.swiper-slide.portfolio-slide {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--modern-shadow-md);
    overflow: hidden;
    /* Размеры слайда */
    width: 350px; 
    height: 480px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    /* Важная обводка */
    border: 2px solid rgba(44, 62, 80, 0.05);
    position: relative;
}

/* Активный слайд по центру (для эффекта Coverflow) */
.swiper-slide-active.portfolio-slide {
    box-shadow: var(--modern-shadow-lg), 0 0 0 3px var(--primary-color); /* Акцентная обводка */
}

/* Контейнер картинки в слайде */
.portfolio-image-wrap {
    height: 65%;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.portfolio-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Эффект наведения на слайд */
.portfolio-slide:hover .portfolio-image-wrap img {
    transform: scale(1.1) rotate(1deg);
}

/* Иконка увеличения при наведении */
.portfolio-zoom-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 40px;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.portfolio-image-wrap:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.3); /* Затемнение */
    transition: 0.3s;
}

.portfolio-image-wrap:hover .portfolio-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Информация под фото */
.portfolio-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, #fff, #fafafa);
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #2c3e50;
}

.portfolio-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Ограничиваем описание 3 строками в превью */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Пагинация (точки внизу) */
.swiper-pagination-bullet {
    width: 12px; height: 12px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s;
}
.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 6px;
    background: var(--primary-color);
    opacity: 1;
}

/* Стилизация Fancybox (Лайтбокса) */
.fancybox__caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.fancybox__caption h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}