/* =======================
   ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ
   ======================== */
:root {
    --bg-dark: #07090b;
    --bg-light-dark: #0f1316;
    --text-light: #f5f7f8;
    --text-mid: #98a2aa;
    --accent-beige: #d4b88a; /* Новый бежевый оттенок */
    --accent-blue: #2c6b8f;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.02);
    
    --font-heading: 'Bahnschrift', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Bahnschrift', 'Segoe UI', Arial, sans-serif;
    
    --header-height: 80px;
}

@font-face {
    font-family: 'Bahnschrift';
    src: local('Bahnschrift'),
         local('Bahnschrift Regular'),
         url('fonts/bahnschrift.woff2') format('woff2'),
         url('fonts/bahnschrift.woff') format('woff'),
         url('fonts/bahnschrift.ttf') format('truetype');
    font-weight: 300 700;
    font-stretch: condensed;
    font-style: normal;
    font-display: swap;
}

/* Альтернативный вариант с CDN если локальные файлы недоступны */
@import url('https://fonts.cdnfonts.com/css/bahnschrift');

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,500;1,600;1,700&family=Philosopher:ital,wght@0,400;0,700;1,400&family=Prata&display=swap');
/* Импорт красивого шрифта для цитаты */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* Базовые настройки шрифта */
* {
    font-family: 'Bahnschrift Light Condensed', 'Bahnschrift', 'Segoe UI', Arial, sans-serif;
}

/* Улучшение читаемости для нового шрифта */
body {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.3px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(1200px 600px at 10% 10%, rgba(44,107,143,0.06), transparent), var(--bg-dark);
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    color: var(--accent-beige);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--bg-light-dark);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: 700;
}

h1 {
    font-size: 5rem; /* Увеличен для большего эффекта */
    line-height: 1;
    margin-bottom: 0.2em;
}

h2 {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 1em;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-beige);
}

h3 {
    font-size: 1.75rem; /* 28px */
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1.5em;
    max-width: 65ch;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 700px;
    margin: -1.5em auto 2.5em;
}

.cursive-text {
    font-family: var(--font-heading); /* Использование Playfair Display для курсива */
    font-style: italic;
    font-weight: 400; /* Более легкий вес для курсива */
    font-size: 1.5rem;
    color: var(--accent-beige);
    display: block;
    margin-top: 15px;
}

/* =======================
   АНИМАЦИИ
   ======================== */

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    animation: heroFadeIn 0.7s cubic-bezier(.2,.9,.3,1) forwards;
    opacity: 0;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.2s; }
[data-delay="2"] { transition-delay: 0.4s; }
[data-delay="3"] { transition-delay: 0.6s; }
[data-delay="4"] { transition-delay: 0.8s; }


/* =======================
   КНОПКИ (BTN)
   ======================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-beige);
    color: var(--bg-dark);
    border-color: var(--accent-beige);
    padding: 14px 30px; 
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-beige);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-beige);
    border-color: var(--accent-beige);
}

.btn-secondary:hover {
    background-color: var(--accent-beige);
    color: var(--bg-dark);
}

/* Стили для кнопки в шапке (Header) */
.btn-header {
    background-color: transparent;
    border: none;
    color: var(--accent-beige);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    padding: 8px 15px;
    font-size: 0.95rem;
    margin-right: 20px;
}

.btn-header:hover {
    color: var(--text-light);
}

/* =======================
   ШАПКА (HEADER) - LIQUID GLASS & LAYOUT
   ======================== */
.header {
    position: fixed;
    inset: 12px 18px auto 18px; 
    z-index: 1000;
    padding: 14px 18px;
    border-radius: 0px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-phone {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.header-social {
    color: var(--text-light);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.header-social:hover {
    color: var(--accent-beige);
}

/* Общий стиль для шапки */
.header.header-scrolled {
    background-color: transparent;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    padding: 14px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-initials {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    /* Убран градиент, чтобы лучше соответствовать скриншоту */
    background: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--bg-dark); /* Темный текст на бежевом фоне */
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-text {
    display: none; /* Скрыто, чтобы соответствовать минималистичному лого на скриншоте */
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 15px;
}

.main-nav a {
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 12px;
    position: relative;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--accent-beige);
    background-color: transparent;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
    margin-left: 20px;
}

body.light-theme .mobile-menu-toggle {
    color: #f5f7f8;
}


/* =======================
   ОБ АДВОКАТЕ (ABOUT)
   ======================== */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-content {
    flex: 1.5;
}

.about-content h2 {
    text-align: left;
}

.about-content h2::after {
    left: 0;
    transform: translateX(0);
}

.experience-badge {
    display: inline-block;
    background-color: var(--accent-beige);
    color: var(--bg-dark);
    padding: 5px 15px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1.5em;
    font-size: 0.9rem;
}

/* =======================
   УСЛУГИ (SERVICES)
   ======================== */
.services-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.services-image {
    flex: 1;
    min-width: 300px;
    order: 2;
}

.services-image img {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-content {
    flex: 1.5;
    order: 1;
}

.services-content h2 {
    text-align: left;
}

.services-content h2::after {
    left: 0;
    transform: translateX(0);
}

.services-list {
    list-style: none;
    margin-top: 30px;
}

.services-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.services-list i {
    font-size: 1.5rem;
    color: var(--accent-beige);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.services-list h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.services-list p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* =======================
   ПРЕИМУЩЕСТВА (ADVANTAGES)
   ======================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background-color: var(--bg-light-dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--accent-beige);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.4rem;
    color: var(--text-light);
}

.advantage-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =======================
   ГАЛЕРЕЯ
   ======================== */
.gallery {
    background-color: var(--bg-dark);
}

.gallery-container {
    position: relative;
}

.gallery-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px; /* одинаковые аккуратные отступы */
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    width: 100%;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light-dark);
    border: 1px solid var(--glass);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(0deg, rgba(7, 9, 11, 0.8), transparent);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

body.light-theme .gallery-caption {
    /* Черный/темный фон (используем явный черный градиент) */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent) !important;
    /* Белый цвет текста */
    color: #ffffff !important; 
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-light-dark);
    border: 1px solid var(--text-mid);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: var(--text-mid);
}

.dot.active {
    background: var(--accent-beige);
    border-color: var(--accent-beige);
    transform: scale(1.2);
}

/* =======================
   КОНТАКТЫ (CONTACT)
   ======================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
    background: var(--bg-light-dark);
    padding: 40px;
    border-radius: 14px;
    border: 1px solid var(--glass);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.5);
}

.contact-info h3 {
    color: var(--text-light);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: var(--accent-beige);
    font-size: 1.2rem;
    width: 30px;
    margin-right: 15px;
}

.contact-socials {
    margin-top: 30px;
}

.contact-socials a {
    color: var(--text-mid);
    font-size: 1.8rem;
    margin-right: 20px;
}

.contact-socials a:hover {
    color: var(--accent-beige);
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-mid);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--glass-2);
    border: 1px solid var(--glass);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-beige);
    box-shadow: 0 0 0 3px rgba(212, 184, 138, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group-consent {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 10px;
}

.form-group-consent input {
    width: auto;
    margin-right: 10px;
    accent-color: var(--accent-beige);
}

.form-group-consent a {
    text-decoration: underline;
}

/* Кнопка формы с возвращенным стилем */
.contact-form button {
    margin-top: 10px;
}

#form-status {
    margin-top: 15px;
    font-weight: 700;
}

/* =======================
   ПОДВАЛ (FOOTER)
   ======================== */
.footer {
    background-color: var(--bg-light-dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass);
    margin-top: 60px;
}

.footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

/* =======================
   АДАПТИВНОСТЬ
   ======================== */
@media (max-width: 1200px) {
    .header-contact {
        display: none; /* Скрываем телефон и соцсети для экономии места на меньших экранах */
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    section { padding: 80px 0; }
    
    /* Адаптация хедера: убираем "стекло" и делаем его стандартным */
    .header {
        inset: 0;
        border-radius: 0;
        background: var(--bg-light-dark);
        padding: 15px 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: space-between;
    }
    .header.header-scrolled {
        padding: 15px 20px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    .main-nav {
        display: none; /* Скрываем навигацию */
    }
    
    .btn-header {
        display: none; /* Скрываем кнопку в шапке */
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 0;
    }

    .about-container, .services-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .services-image { order: 1; }
    .services-content { order: 2; }

    .about-content h2, .services-content h2 {
        text-align: center;
    }
    .about-content h2::after, .services-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    /* Hero секция для планшетов */
    .hero {
        align-items: flex-end;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        min-height: 50vh;
        padding-bottom: 50px;
    }
    
    .hero-left, .hero-right {
        max-width: 100%;
        padding-bottom: 0;
    }
    
    .hero-right {
        text-align: left;
        margin-top: 30px;
    }
    
    .hero-right .btn-primary {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }

    /* Мобильное меню */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1050;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav.active {
        display: flex;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 20px 0;
    }

    .main-nav a {
        font-size: 1.5rem;
        color: var(--text-light);
        padding: 10px;
    }
    
    .mobile-menu-toggle.active {
        position: fixed;
        right: 20px;
        top: 15px;
        z-index: 1101;
    }
    .mobile-menu-toggle.active .fa-bars {
        display: none;
    }
    .mobile-menu-toggle .fa-times {
        display: none;
    }
    .mobile-menu-toggle.active .fa-times {
        display: block;
    }

    .hero {
        min-height: 450px;
    }
    
    .hero-content {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .gallery-item {
        flex-basis: 300px;
    }
    .gallery-item img {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex-basis: 260px;
    }
    .gallery-item img {
        height: 350px;
    }
    .brand-text .name {
        font-size: 0.9rem;
    }
    .logo-initials {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cursive-text {
        font-size: 1.2rem;
    }
}

/* =======================
   LIQUID GLASS УЛУЧШЕНИЯ (Apple-style)
   ======================= */

/* --- HEADER: улучшенный стеклянный эффект --- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    padding: 18px 32px;
    border-radius: 0; /* Острые углы */
    background: rgba(255, 255, 255, 0); /* Прозрачный в начале */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.5s ease;
}

/* Когда пользователь прокручивает страницу вниз */
.header.scrolled {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Hover — чуть усиленный световой эффект */
.header.scrolled:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Убираем hover эффекты для не-scrolled состояния */
.header:not(.scrolled):hover {
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

/* --- Кнопка в стиле liquid glass --- */
.btn-liquid {
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4),
                0 8px 20px rgba(0,0,0,0.4);
}

.btn-liquid:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    transform: translateY(-2px);
    box-shadow: inset 0 2px 3px rgba(255,255,255,0.6),
                0 12px 30px rgba(0,0,0,0.5);
}

/* --- Liquid glass декоративные элементы --- */
.liquid-glass-blob {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    border-radius: 50%;
    animation: blobMove 15s ease-in-out infinite alternate;
    opacity: 0.3;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.2); }
}

/* =======================
   КНОПКИ — LIQUID GLASS 2.0 (острые и прозрачные)
   ======================= */
.btn-liquid {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0; /* Острые углы */
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 rgba(255,255,255,0),
                0 6px 18px rgba(0, 0, 0, 0.3);
}

.btn-liquid:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* =======================
   КАРТОЧКИ (Мои принципы работы) — LIQUID GLASS
   ======================= */
.advantage-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 35px 30px;
    transition: all 0.4s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

/* =======================
   ФОРМА ЗАПИСИ НА КОНСУЛЬТАЦИЮ — LIQUID GLASS
   ======================= */
.contact-container {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.contact-container:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}
/* ======================= */
/* ГРАДИЕНТНЫЕ ПЕРЕХОДЫ МЕЖДУ СЕКЦИЯМИ */
/* ======================= */

/* Герой -> Об адвокате */
.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-light-dark) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Об адвокате -> Преимущества (пропускаем Услуги) */
.about {
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Преимущества -> Контакты (пропускаем Галерею) */
.advantages {
    position: relative;
    background-image: url('img/advantages-bg.jpg'); /* Замените на ваше фото */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс эффект */
    background-repeat: no-repeat;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 11, 0.85); /* Темный оверлей для читаемости */
    z-index: 1;
}

.advantages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-light-dark) 100%);
    pointer-events: none;
    z-index: 2;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

/* Для светлой темы */
body.light-theme .advantages::before {
    background: rgba(255, 255, 255, 0.219); /* Светлый оверлей для светлой темы */
}

/* Адаптивность для градиентных переходов */
@media (max-width: 768px) {
    .hero::after,
    .about::after,
    .advantages::after {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero::after,
    .about::after,
    .advantages::after {
        height: 40px;
    }
}

/* ======================= */
/* КНОПКИ В ХЕДЕРЕ БЕЗ ФОНА ПРИ НАВЕДЕНИИ */
/* ======================= */

/* Основные ссылки навигации */
.main-nav a {
    background: transparent !important;
    transition: color 0.3s ease !important;
}

.main-nav a:hover,
.main-nav a:focus {
    background: transparent !important;
    color: var(--accent-beige) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Кнопка "Консультация" в хедере */
.header-right .btn-liquid {
    background: rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease !important;
}

.header-right .btn-liquid:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: var(--text-light) !important;
}

/* Социальные иконки в хедере */
.header-social {
    background: transparent !important;
    transition: color 0.3s ease !important;
}

.header-social:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    color: var(--accent-beige) !important;
}

/* Убираем любые эффекты фона при наведении на элементы хедера */
.header *:hover {
    background: transparent !important;
}

/* Конкретно для навигации - убираем подчеркивания и другие эффекты */
.main-nav a::before,
.main-nav a::after {
    display: none !important;
}

/* Убираем изменение прозрачности хедера при наведении */
.header:hover {
    background: rgba(255, 255, 255, 0) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
}

/* Для scrolled состояния тоже убираем изменение при наведении */
.header.scrolled:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
}

/* ======================= */
/* КНОПКИ В СТИЛЕ APPLE LIQUID GLASS С ОСТРЫМИ УГЛАМИ */
/* ======================= */

/* Базовый стиль для всех кнопок */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0; /* Острые углы */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Основная кнопка */
.btn-primary {
    background: rgba(212, 184, 138, 0.15);
    border: 2px solid rgba(212, 184, 138, 0.3);
    color: var(--accent-beige);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.1),
        0 8px 32px rgba(212, 184, 138, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: rgba(212, 184, 138, 0.25);
    border-color: rgba(212, 184, 138, 0.5);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.2),
        0 12px 40px rgba(212, 184, 138, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-light);
}

/* Вторичная кнопка */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Кнопка в хедере */
.btn-liquid {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    padding: 10px 24px;
    font-size: 0.9rem;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.btn-liquid:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 6px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    color: var(--text-light);
}

/* Точки галереи остаются круглыми */
.dot {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 50%; /* Точки остаются круглыми */
}

.dot.active {
    background: rgba(212, 184, 138, 0.4);
    border-color: rgba(212, 184, 138, 0.6);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.2),
        0 2px 8px rgba(212, 184, 138, 0.2);
}

.contact {
    position: relative;
    background-image: url('img/contact-bg.jpg'); /* Замените на ваше фото */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Параллакс эффект */
    background-repeat: no-repeat;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 11, 0.78); /* Темный оверлей */
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

/* Для светлой темы */
body.light-theme .contact::before {
    background: rgba(255, 255, 255, 0.50); /* Светлый оверлей */
}

/* Кнопка отправки формы */
.contact-form button[type="submit"] {
    width: 100%;
    background: rgba(212, 184, 138, 0.15);
    border: 2px solid rgba(212, 184, 138, 0.3);
    color: var(--accent-beige);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.1),
        0 8px 32px rgba(212, 184, 138, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 0; /* Острые углы */
}

.contact-form button[type="submit"]:hover {
    background: rgba(212, 184, 138, 0.25);
    border-color: rgba(212, 184, 138, 0.5);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.2),
        0 12px 40px rgba(212, 184, 138, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--text-light);
}

/* Анимация нажатия */
.btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* Состояние disabled */
.btn:disabled {
    opacity: 0.5;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-liquid {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* ======================= */
/* ОБНОВЛЕННЫЕ КНОПКИ БЕЗ СВЕЧЕНИЯ */
/* ======================= */

/* Убираем анимацию свечения с кнопок */
.btn-primary {
    animation: none;
}

/* Основная кнопка без свечения */
.btn-primary {
    background: rgba(212, 184, 138, 0.15);
    border: 2px solid rgba(212, 184, 138, 0.3);
    color: var(--accent-beige);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.05),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    background: rgba(212, 184, 138, 0.25);
    border-color: rgba(212, 184, 138, 0.5);
    box-shadow: 
        0 0 0 1px rgba(212, 184, 138, 0.1),
        0 6px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--text-light);
}

/* ======================= */
/* ОБНОВЛЕННЫЙ ФУТЕР */
/* ======================= */

.footer {
    background: linear-gradient(180deg, var(--bg-light-dark) 0%, var(--bg-dark) 100%);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-beige) 50%, 
        transparent 100%);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 184, 138, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 107, 143, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo-initials {
    width: 50px;
    height: 50px;
    background: var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--bg-dark);
    font-size: 1.3rem;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 700;
}

.footer-logo-role {
    font-size: 0.9rem;
    color: var(--accent-beige);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-mid);
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social:hover {
    background: rgba(212, 184, 138, 0.2);
    border-color: var(--accent-beige);
    color: var(--accent-beige);
    transform: translateY(-2px);
}

.footer-links h3,
.footer-contact h3,
.footer-hours h3 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after,
.footer-hours h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-beige);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-mid);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--accent-beige);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-mid);
}

.footer-contact i {
    color: var(--accent-beige);
    width: 20px;
    font-size: 1rem;
}

.footer-hours p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-mid);
}

.footer-hours .day {
    color: var(--text-light);
    font-weight: 600;
    display: inline-block;
    width: 80px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-legal {
    display: flex;
    gap: 30px;
    font-size: 0.85rem;
    color: var(--text-mid);
}

.footer-legal a {
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-beige);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-mid);
}

/* Анимация появления футера */
.footer {
    opacity: 0;
    transform: translateY(50px);
    animation: footerReveal 1s ease forwards 0.5s;
}

@keyframes footerReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность футера */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-logo-text {
        align-items: center;
    }
}

/* АГРЕССИВНОЕ ИСПРАВЛЕНИЕ КНОПКИ HERO */
.hero .btn.btn-primary {
    background: #d4b88a !important;
    border-color: #d4b88a !important;
    color: #07090b !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 100 !important;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(212, 184, 138, 0.4) !important;
}

.hero .btn.btn-primary:hover {
    background: #e5c9a125 !important;
    border-color: #e5c9a127 !important;
    color: #ffffff !important;
}

/* ======================= */
/* ИСПРАВЛЕНИЕ КАПСА В ТЕКСТЕ */
/* ======================= */

/* Убираем text-transform: uppercase у основных элементов */
.main-nav a,
.btn,
.hero-role,
.footer-logo-role {
    text-transform: none !important;
}

/* Оставляем капс только для основной надписи в hero */
.hero-role {
    text-transform: uppercase !important;
    letter-spacing: 2px;
}

/* Для кнопок оставляем нормальный регистр */
.btn {
    text-transform: none;
    font-weight: 600;
}

/* Для роли в футере */
.footer-logo-role {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Для навигации в футере */
.footer-links a {
    text-transform: none;
}

/* Для контактной информации */
.contact-info p,
.footer-contact p {
    text-transform: none;
}

/* Для часов работы */
.footer-hours p {
    text-transform: none;
}

/* Для юридических ссылок */
.footer-legal a {
    text-transform: none;
}

/* Улучшаем читаемость обычного текста */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* Для параграфов */
p {
    font-weight: 400;
    line-height: 1.6;
}

/* Для кнопок */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Для навигации */
.main-nav a {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ======================= */
/* ИСПРАВЛЕНИЕ ЦВЕТА ТЕКСТА В ХЕДЕРЕ */
/* ======================= */

/* Основные ссылки навигации - белый цвет */
.main-nav a {
    color: var(--text-light) !important;
    background: transparent !important;
    transition: color 0.3s ease !important;
}

.main-nav a:hover,
.main-nav a:focus {
    background: transparent !important;
    color: var(--accent-beige) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Кнопка "Консультация" в хедере - белый текст */
.header-right .btn-liquid {
    color: var(--text-light) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease !important;
}

.header-right .btn-liquid:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: var(--accent-beige) !important; /* Изменено на бежевый при наведении */
}

/* Телефон в хедере - убеждаемся что белый */
.header-phone {
    color: var(--text-light) !important;
}

/* Социальные иконки в хедере - белый цвет */
.header-social {
    color: var(--text-light) !important;
    background: transparent !important;
    transition: color 0.3s ease !important;
}

.header-social:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    color: var(--accent-beige) !important;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА */
/* ======================= */

body.light-theme {
    --bg-dark: #ffffff;
    --bg-light-dark: #f8fafc;
    --text-light: #1e293b;
    --text-mid: #475569;
    --accent-beige:#00a8ff;
    --accent-blue: #0384ca;
    --glass: rgba(37, 99, 235, 0.05);
    --glass-2: rgba(37, 99, 235, 0.03);
}

body.light-theme {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(0, 168, 255, 0.06), transparent), var(--bg-dark);
    color: var(--text-mid);
}

/* Специфичные стили для светлой темы */
body.light-theme .header {
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
}

body.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

body.light-theme .header.scrolled:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}

body.light-theme .gallery {
    background-color: var(--bg-dark);
}

body.light-theme .advantage-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(0, 168, 255, 0.2);
    color: var(--text-light);
}

body.light-theme .advantage-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 168, 255, 0.4);
}

/* Светлая тема для контактной формы */
body.light-theme .contact-container {
    background: rgba(255, 255, 255, 0.651);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 168, 255, 0.25);
}

body.light-theme .contact-container:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 168, 255, 0.4);
}

body.light-theme .gallery-item {
    background: var(--bg-light-dark);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

body.light-theme .gallery-caption {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9), transparent);
    color: var(--text-light);
}

body.light-theme .footer {
    background: linear-gradient(180deg, var(--bg-light-dark) 0%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

body.light-theme .footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-beige) 50%, 
        transparent 100%);
}

body.light-theme .footer::after {
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.03) 0%, transparent 50%);
}

body.light-theme .footer-social {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    color: var(--text-light);
}

body.light-theme .footer-social:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--accent-beige);
    color: var(--accent-beige);
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

/* Градиентные переходы для светлой темы */
body.light-theme .hero::after {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-light-dark) 100%);
}

body.light-theme .about::after {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-dark) 100%);
}

body.light-theme .advantages::after {
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-light-dark) 100%);
}

/* Кнопка переключения темы */
.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    width: 44px;
    height: 44px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

body.light-theme .theme-toggle {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--accent-beige);
}

body.light-theme .theme-toggle:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

/* Адаптивность для темы */
@media (max-width: 992px) {
    body.light-theme .header {
        background: var(--bg-light-dark);
    }
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА - ИСПРАВЛЕНИЯ */
/* ======================= */

/* Хедер - всегда прозрачный в светлой теме */
body.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08) !important;
}

body.light-theme .header.scrolled:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12) !important;
}

/* Кнопка в герое - синяя с эффектом Liquid Glass */
body.light-theme .hero .btn.btn-primary {
    background: rgba(0, 168, 255, 0.15) !important;
    border: 2px solid rgba(0, 168, 255, 0.3) !important;
    color: #00a8ff !important;
    box-shadow: 
        0 0 0 1px rgba(0, 168, 255, 0.1),
        0 4px 16px rgba(0, 168, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

/* Кнопка отправки формы - голубая */
body.light-theme .contact-form button[type="submit"] {
    background: rgba(0, 168, 255, 0.15) !important;
    border: 2px solid rgba(0, 168, 255, 0.3) !important;
    color: #00a8ff !important;
    box-shadow: 
        0 0 0 1px rgba(0, 168, 255, 0.1),
        0 8px 32px rgba(0, 168, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

body.light-theme .contact-form button[type="submit"]:hover {
    background: rgba(0, 168, 255, 0.25) !important;
    border-color: rgba(0, 168, 255, 0.5) !important;
    box-shadow: 
        0 0 0 1px rgba(0, 168, 255, 0.2),
        0 12px 40px rgba(0, 168, 255, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    color: #0097e6 !important;
}

/* Убираем свечение ВО ВСЕХ ТЕМАХ */
.btn-primary {
    animation: none !important;
}

/* Убираем свечение у всех кнопок с эффектом Liquid Glass */
.btn-liquid,
.advantage-card,
.contact-container {
    animation: none !important;
}

/* Дополнительные исправления для светлой темы */
body.light-theme .cursive-text {
    color: var(--accent-beige) !important;
}

body.light-theme .experience-badge {
    background-color: var(--accent-beige) !important;
    color: white !important;
}

body.light-theme .services-list i,
body.light-theme .advantage-card i,
body.light-theme .contact-info i {
    color: var(--accent-beige) !important;
}

body.light-theme h2::after {
    background-color: var(--accent-beige) !important;
}

/* Убираем любые остаточные свечения */
.btn-primary,
.btn-secondary,
.btn-liquid {
    animation: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА - ИСПРАВЛЕНИЯ ХЕДЕРА */
/* ======================= */

/* Хедер - такой же прозрачный как в темной теме */
body.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
}

body.light-theme .header.scrolled:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15) !important;
}

/* Текст в хедере - синий при наведении */
body.light-theme .main-nav a:hover,
body.light-theme .main-nav a:focus {
    color: var(--accent-beige) !important;
}

body.light-theme .header-right .btn-liquid:hover {
    color: var(--accent-beige) !important;
}

body.light-theme .header-social:hover {
    color: var(--accent-beige) !important;
}

/* Убедимся что обычный текст в хедере хорошо читается */
body.light-theme .main-nav a {
    color: var(--text-light) !important;
}

body.light-theme .header-right .btn-liquid {
    color: var(--text-light) !important;
}

body.light-theme .header-phone {
    color: var(--text-light) !important;
}

body.light-theme .header-social {
    color: var(--text-light) !important;
}

/* Кнопка в герое - синяя с эффектом Liquid Glass */
body.light-theme .hero .btn.btn-primary {
    background: #006eff !important;
    border: 2px solid #006eff !important;
    color: white !important;
    box-shadow: 
        0 0 0 1px rgba(37, 100, 235, 0.438),
        0 4px 16px rgba(37, 100, 235, 0.651),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

/* Кнопка отправки формы - синяя */
body.light-theme .contact-form button[type="submit"] {
    background: rgba(37, 99, 235, 0.15) !important;
    border: 2px solid rgba(37, 99, 235, 0.3) !important;
    color: #2563eb !important;
    box-shadow: 
        0 0 0 1px rgba(37, 99, 235, 0.1),
        0 8px 32px rgba(37, 99, 235, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

body.light-theme .contact-form button[type="submit"]:hover {
    background: rgba(37, 99, 235, 0.25) !important;
    border-color: rgba(37, 99, 235, 0.5) !important;
    box-shadow: 
        0 0 0 1px rgba(37, 99, 235, 0.2),
        0 12px 40px rgba(37, 99, 235, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    color: #1d4ed8 !important;
}

/* Убираем свечение ВО ВСЕХ ТЕМАХ */
.btn-primary {
    animation: none !important;
}

/* Убираем свечение у всех кнопок с эффектом Liquid Glass */
.btn-liquid,
.advantage-card,
.contact-container {
    animation: none !important;
}

/* Дополнительные исправления для светлой темы */
body.light-theme .cursive-text {
    color: var(--accent-beige) !important;
}

body.light-theme .experience-badge {
    background-color: var(--accent-beige) !important;
    color: white !important;
}

body.light-theme .services-list i,
body.light-theme .advantage-card i,
body.light-theme .contact-info i {
    color: var(--accent-beige) !important;
}

body.light-theme h2::after {
    background-color: var(--accent-beige) !important;
}

/* Убираем любые остаточные свечения */
.btn-primary,
.btn-secondary,
.btn-liquid {
    animation: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА - ЦВЕТ ТЕКСТА ДО/ПОСЛЕ СКРОЛЛА */
/* ======================= */

/* До скролла - белый текст в хедере */
body.light-theme .header:not(.scrolled) .main-nav a {
    color: white !important;
}

body.light-theme .header:not(.scrolled) .header-right .btn-liquid {
    color: white !important;
}

body.light-theme .header:not(.scrolled) .header-phone {
    color: white !important;
}

body.light-theme .header:not(.scrolled) .header-social {
    color: white !important;
}

/* Синий цвет при наведении до скролла */
body.light-theme .header:not(.scrolled) .main-nav a:hover,
body.light-theme .header:not(.scrolled) .main-nav a:focus {
    color: var(--accent-beige) !important;
}

body.light-theme .header:not(.scrolled) .header-right .btn-liquid:hover {
    color: var(--accent-beige) !important;
}

body.light-theme .header:not(.scrolled) .header-social:hover {
    color: var(--accent-beige) !important;
}

/* После скролла - темный текст (оставляем как было) */
body.light-theme .header.scrolled .main-nav a {
    color: var(--text-light) !important;
}

body.light-theme .header.scrolled .header-right .btn-liquid {
    color: var(--text-light);
}

body.light-theme .header.scrolled .header-phone {
    color: var(--text-light) !important;
}

body.light-theme .header.scrolled .header-social {
    color: var(--text-light) !important;
}

/* Синий цвет при наведении после скролла */
body.light-theme .header.scrolled .main-nav a:hover,
body.light-theme .header.scrolled .main-nav a:focus {
    color: var(--accent-beige) !important;
}

body.light-theme .header.scrolled .header-right .btn-liquid:hover {
    color: var(--accent-beige);
}

body.light-theme .header.scrolled .header-social:hover {
    color: var(--accent-beige) !important;
}

/* ======================= */
/* ИСПРАВЛЕНИЯ ЦВЕТОВ КНОПОК И ТОЧЕК */
/* ======================= */

body.light-theme .btn-secondary:hover {
    color: var(--text-light) !important; /* Темный вместо белого */
}

body.light-theme .contact-form button[type="submit"]:hover {
    color: #1d4ed8 !important; /* Темно-синий вместо белого */
}

/* Точки галереи в светлой теме */
body.light-theme .dot {
    background: rgba(0, 168, 255, 0.2) !important;
    border: 2px solid rgba(0, 168, 255, 0.3) !important;
}

body.light-theme .dot:hover {
    background: rgba(0, 168, 255, 0.4) !important;
}

body.light-theme .dot.active {
    background: rgba(0, 168, 255, 0.6) !important;
    border-color: rgba(0, 168, 255, 0.8) !important;
}

/* ======================= */
/* ЦЕНТРИРОВАННЫЙ ЛОГОТИП В ХЕДЕРЕ */
/* ======================= */

/* Обновляем структуру хедера */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Стили для логотипа в центре */
.header-center .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-svg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Показываем соответствующий логотип в зависимости от темы */
body.light-theme .light-logo,
body:not(.light-theme) .dark-logo {
    display: block;
}

body.light-theme .dark-logo,
body:not(.light-theme) .light-logo {
    display: none;
}

/* Текст бренда (опционально) */
.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
}

.brand-text .role {
    font-size: 0.8rem;
    color: var(--accent-beige);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Навигация справа */
.right-nav {
    display: flex;
}

.right-nav ul {
    display: flex;
    list-style: none;
}

.right-nav li {
    margin-right: 15px;
    margin-left: 0;
}

/* Адаптивность для центрированного логотипа */
@media (max-width: 1200px) {
    .header {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }
    
    .header-contact {
        display: none;
    }
}

@media (max-width: 992px) {
    .header {
        grid-template-columns: 1fr auto 1fr;
        padding: 15px 20px;
    }
    
    .header-left .main-nav,
    .header-right .right-nav {
        display: none;
    }
    
    .header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .brand-text {
        display: none; /* Скрываем текст на мобильных */
    }
}

@media (max-width: 768px) {
    .logo-svg {
        width: 40px;
        height: 40px;
    }
    
    .header-center .brand {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        width: 36px;
        height: 36px;
    }
    
    .header {
        padding: 12px 15px;
    }
}

/* ======================= */
/* ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ ХЕДЕРА */
/* ======================= */

@media (max-width: 992px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    /* Левая часть - кнопка темы и консультации */
    .header-left {
        display: flex;
        align-items: center;
        gap: 15px;
        order: 1;
    }
    
    /* Скрываем навигацию в левой части на мобильных */
    .header-left .main-nav {
        display: none;
    }
    
    /* Центр - логотип (абсолютное позиционирование по центру) */
    .header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2;
    }
    
    /* Правая часть - только кнопка меню */
    .header-right {
        display: flex;
        align-items: center;
        order: 3;
        margin-left: auto;
    }
    
    /* Скрываем контакты и кнопку консультации в правой части на мобильных */
    .header-right .btn-liquid,
    .header-contact {
        display: none;
    }
    
    /* Показываем кнопку консультации в левой части на мобильных */
    .header-left .mobile-consultation {
        display: inline-block !important;
    }
    
    /* Перемещаем кнопку темы в левую часть на мобильных */
    .header-right .theme-toggle {
        display: none;
    }
    .header-left .theme-toggle {
        display: flex !important;
    }
    
    /* Убираем отступы у кнопки меню */
    .mobile-menu-toggle {
        margin-left: 0;
    }
    
    /* Убедимся, что логотип не перекрывается */
    .header-center .brand {
        z-index: 1;
        position: relative;
    }
}

/* Скрываем кнопку консультации в левой части на десктопе */
.header-left .mobile-consultation,
.header-left .theme-toggle {
    display: none;
}

/* Показываем кнопку темы в правой части на десктопе */
.header-right .theme-toggle {
    display: flex;
}

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }
    
    .header-left {
        gap: 12px;
    }
    
    /* Делаем кнопку консультации компактнее */
    .btn-liquid {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Уменьшаем кнопки */
    .theme-toggle,
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
    
    .header-left {
        gap: 10px;
    }
    
    /* Еще более компактная кнопка консультации на очень маленьких экранах */
    .btn-liquid {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    /* Уменьшаем логотип для очень маленьких экранов */
    .logo-svg {
        width: 32px;
        height: 32px;
    }
}

/* Дополнительное исправление для предотвращения наложения */
@media (max-width: 992px) {
    .header-center {
        pointer-events: none;
    }
    
    .header-center .brand {
        pointer-events: auto;
    }
    
    /* Обеспечиваем достаточно места для кликабельных элементов */
    .header-left,
    .header-right {
        min-width: 100px;
        z-index: 2;
    }
}

/* ======================= */
/* УЛУЧШЕННОЕ МОБИЛЬНОЕ МЕНЮ С LIQUID GLASS */
/* ======================= */

/* Основные стили мобильного меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
}

/* Фон с эффектом жидкого стекла */
.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 11, 0.5);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* Контент меню */
.mobile-menu-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 100px 30px 50px;
    overflow-y: auto;
}

/* Навигация */
.mobile-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    width: 100%;
}

.mobile-nav li {
    margin: 8px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-nav li {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для анимации пунктов меню */
.mobile-menu.active .mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav a {
    display: block;
    padding: 18px 25px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 5px 0;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--accent-beige);
}

/* Контактная информация в меню */
.mobile-menu-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-menu-contact .phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    display: block;
}

.mobile-menu-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-menu-social {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-menu-social:hover {
    background: rgba(212, 184, 138, 0.2);
    border-color: var(--accent-beige);
    color: var(--accent-beige);
    transform: translateY(-2px);
}

/* Кнопка закрытия */
.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1060;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    color: var(--accent-beige);
}

/* Кнопка консультации в меню */
.mobile-consultation-btn {
    background: rgba(212, 184, 138, 0.15) !important;
    border: 2px solid rgba(212, 184, 138, 0.3) !important;
    color: var(--accent-beige) !important;
    font-size: 1.2rem !important;
    padding: 20px 30px !important;
    margin-top: 20px !important;
}

.mobile-consultation-btn:hover {
    background: rgba(212, 184, 138, 0.25) !important;
    border-color: rgba(212, 184, 138, 0.5) !important;
    color: var(--text-light) !important;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА ДЛЯ МОБИЛЬНОГО МЕНЮ */
/* ======================= */

body.light-theme .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

body.light-theme .mobile-nav a {
    color: var(--text-light);
    background: rgba(37, 99, 235, 0.03);
    border: 1px solid rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(5px); /* Уменьшенный блюр */
    -webkit-backdrop-filter: blur(5px); /* Уменьшенный блюр */
}

body.light-theme .mobile-nav a:hover,
body.light-theme .mobile-nav a:focus {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--accent-beige);
}

body.light-theme .mobile-menu-contact {
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

body.light-theme .mobile-menu-contact .phone {
    color: var(--text-light);
}

body.light-theme .mobile-menu-social {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    color: var(--text-light);
    backdrop-filter: blur(5px); /* Уменьшенный блюр */
    -webkit-backdrop-filter: blur(5px); /* Уменьшенный блюр */
}

body.light-theme .mobile-menu-social:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--accent-beige);
    color: var(--accent-beige);
}

body.light-theme .mobile-menu-close {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--text-light);
    backdrop-filter: blur(5px); /* Уменьшенный блюр */
    -webkit-backdrop-filter: blur(5px); /* Уменьшенный блюр */
}

body.light-theme .mobile-menu-close:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-beige);
}

body.light-theme .mobile-consultation-btn {
    background: rgba(37, 99, 235, 0.15) !important;
    border: 2px solid rgba(37, 99, 235, 0.3) !important;
    color: var(--accent-beige) !important;
}

body.light-theme .mobile-consultation-btn:hover {
    background: rgba(37, 99, 235, 0.25) !important;
    border-color: rgba(37, 99, 235, 0.5) !important;
    color: #1d4ed8 !important;
}

/* ======================= */
/* АДАПТИВНОСТЬ МОБИЛЬНОГО МЕНЮ */
/* ======================= */

@media (max-width: 768px) {
    .mobile-menu-content {
        padding: 90px 25px 40px;
    }
    
    .mobile-nav a {
        font-size: 1.3rem;
        padding: 16px 22px;
    }
    
    .mobile-menu-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-contact .phone {
        font-size: 1.2rem;
    }
    
    .mobile-menu-social {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .advantages,
    .contact {
        background-attachment: scroll; /* Отключаем фиксированный фон на мобильных */
    }
    
    .advantage-card {
        padding: 25px 20px;
    }
    
    .contact-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .mobile-menu-content {
        padding: 80px 20px 30px;
    }
    
    .mobile-nav a {
        font-size: 1.2rem;
        padding: 14px 20px;
    }
    
    .mobile-nav li {
        margin: 6px 0;
    }
    
    .mobile-menu-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .mobile-menu-contact .phone {
        font-size: 1.1rem;
    }
    
    .mobile-menu-social {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .mobile-consultation-btn {
        font-size: 1.1rem !important;
        padding: 16px 25px !important;
    }
}

/* Плавная анимация появления */
@keyframes mobileMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu.active .mobile-menu-content {
    animation: mobileMenuFadeIn 0.4s ease-out;
}

/* Предотвращение скролла body при открытом меню */
body.menu-open {
    overflow: hidden;
}

/* ======================= */
/* МОДАЛЬНОЕ ОКНО ФОРМЫ */
/* ======================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 11, 0.8);
    backdrop-filter: blur(5px) saturate(160%);
    -webkit-backdrop-filter: blur(5px) saturate(160%);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    color: var(--accent-beige);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.modal-content h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
    color: var(--text-mid);
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .modal-content {
        padding: 30px 25px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА ДЛЯ МОДАЛЬНОГО ОКНА */
/* ======================= */

body.light-theme .modal-overlay {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px) saturate(160%);
    -webkit-backdrop-filter: blur(5px) saturate(160%);
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

body.light-theme .modal-close {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--text-light);
}

body.light-theme .modal-close:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--accent-beige);
}

body.light-theme .modal-subtitle {
    color: var(--text-mid);
}

/* ======================= */
/* КОНТАКТНЫЕ КНОПКИ МОДАЛЬНОГО ОКНА */
/* ======================= */

.modal-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.modal-contact-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.modal-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

.modal-contact-btn:hover::before {
    background: rgba(255, 255, 255, 0.15);
}

.modal-contact-btn i {
    font-size: 1.4rem;
    margin-right: 15px;
    position: relative;
    z-index: 2;
    width: 24px;
    text-align: center;
}

.modal-contact-btn span {
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Специфичные стили для каждой кнопки */
.modal-telegram {
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.3);
    color: #0088cc;
}

.modal-telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
}

.modal-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.modal-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.modal-phone {
    background: rgba(212, 184, 138, 0.1);
    border-color: rgba(212, 184, 138, 0.3);
    color: var(--accent-beige);
}

.modal-phone:hover {
    background: rgba(212, 184, 138, 0.2);
    border-color: rgba(212, 184, 138, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 184, 138, 0.3);
}

/* Разделитель */
.modal-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
    color: var(--text-mid);
    font-size: 0.9rem;
}

.modal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.modal-divider span {
    background: var(--bg-dark);
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА ДЛЯ КОНТАКТНЫХ КНОПОК */
/* ======================= */

body.light-theme .modal-contact-btn {
    border: 1px solid rgba(37, 99, 235, 0.15);
}

body.light-theme .modal-contact-btn::before {
    background: rgba(37, 99, 235, 0.03);
}

body.light-theme .modal-contact-btn:hover::before {
    background: rgba(37, 99, 235, 0.08);
}

body.light-theme .modal-telegram {
    background: rgba(0, 136, 204, 0.08);
    border-color: rgba(0, 136, 204, 0.2);
    color: #0088cc;
}

body.light-theme .modal-telegram:hover {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.4);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.15);
}

body.light-theme .modal-whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.2);
    color: #25d366;
}

body.light-theme .modal-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
}

body.light-theme .modal-phone {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--accent-beige);
}

body.light-theme .modal-phone:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

body.light-theme .modal-divider::before {
    background: rgba(37, 99, 235, 0.1);
}

body.light-theme .modal-divider span {
    background: var(--bg-dark);
}

/* Адаптивность для контактных кнопок */
@media (max-width: 768px) {
    .modal-contact-buttons {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .modal-contact-btn {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .modal-contact-btn i {
        font-size: 1.3rem;
        margin-right: 12px;
    }
    
    .modal-divider {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .modal-contact-buttons {
        gap: 8px;
    }
    
    .modal-contact-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .modal-contact-btn i {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .modal-divider {
        font-size: 0.85rem;
        margin: 15px 0;
    }
    
    .modal-divider span {
        padding: 0 12px;
    }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.dot.active {
    background: var(--accent-beige);
    border-color: var(--accent-beige);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(212, 184, 138, 0.3);
}

/* Для светлой темы */
body.light-theme .dot {
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid rgba(37, 99, 235, 0.3);
}

body.light-theme .dot:hover {
    background: rgba(37, 99, 235, 0.4);
}

body.light-theme .dot.active {
    background: var(--accent-beige);
    border-color: var(--accent-beige);
}

/* ======================= */
/* УЛУЧШЕННАЯ СЕКЦИЯ "ПРАВО И ПОРЯДОК ПОМОЖЕТ ВАМ" */
/* ======================= */
.help-section {
  background: var(--bg-light-dark);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.help-section h2 {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 60px;
  font-size: 2.3rem;
}

.help-section .highlight {
  color: var(--text-light);
}

.help-section .blue-text {
  color: var(--accent-blue);
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1200px;
}

.help-card {
  cursor: pointer;
  height: 320px;
  min-height: 320px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform: rotateY(0deg);
}

.help-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--text-light);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  overflow: hidden;
  box-sizing: border-box;
}

body.light-theme .card-face {
  background: rgba(255, 255, 255, 0.788);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.card-face::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-face:hover::before {
  opacity: 1;
}

.card-front h3 {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--text-light);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.card-front p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Светлый голубой с прозрачностью для обратной стороны */
.card-back {
  background: linear-gradient(135deg, rgba(44, 107, 143, 0.9) 0%, rgba(26, 90, 138, 0.85) 100%);
  color: #fff;
  transform: rotateY(180deg);
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 30px 25px;
  position: relative;
  overflow: hidden;
}

.card-back::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.3;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-back h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: #fff;
}

.btn-back {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 28px;
  text-transform: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
}

/* Анимация появления */
.help-card.scroll-animate {
  opacity: 0;
  transform: translateY(30px) rotateX(10deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.help-card.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

/* ======================= */
/* ТЕМНАЯ ТЕМА - БЕЖЕВЫЕ ОТТЕНКИ */
/* ======================= */
body:not(.light-theme) .help-section .blue-text {
  color: var(--accent-beige);
}

body:not(.light-theme) .card-back {
  background: linear-gradient(135deg, rgba(212, 184, 138, 0.9) 0%, rgba(193, 157, 96, 0.85) 100%);
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА - СИНИЕ ОТТЕНКИ */
/* ======================= */
body.light-theme .help-section .blue-text {
  color: var(--accent-blue);
}

body.light-theme .card-back {
  background: linear-gradient(135deg, rgba(45, 169, 241, 0.9) 0%, rgba(32, 143, 228, 0.85) 100%);
  color: #fff;
}

body.light-theme .card-back h3 {
  color: #fff;
}

body.light-theme .btn-back {
  color: #fff;
}

body.light-theme .btn-back:hover {
  color: #fff;
}

/* ======================= */
/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */
/* ======================= */
@media (max-width: 1200px) {
  .help-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .help-section {
    padding: 80px 0;
  }
  
  .help-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .help-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .help-card {
    height: 280px;
    min-height: 280px;
  }
  
  .card-face {
    padding: 25px 20px;
  }
  
  .card-front h3 {
    font-size: 1.2rem;
  }
  
  .card-back h3 {
    font-size: 1.3rem;
  }
  
  /* Улучшенная поддержка касаний на мобильных */
  .help-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media (max-width: 768px) {
  .help-card {
    height: 260px;
    min-height: 260px;
  }
}

@media (max-width: 480px) {
  .help-section {
    padding: 60px 0;
  }
  
  .help-section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  
  .help-card {
    height: 240px;
    min-height: 240px;
  }
  
  .card-face {
    padding: 20px 15px;
  }
  
  .card-front h3 {
    font-size: 1.1rem;
  }
  
  .card-back h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .btn-back {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Улучшение производительности анимации */
.help-card {
  transform: translateZ(0);
  will-change: transform;
}

.card-inner {
  will-change: transform;
}

/* Гарантия одинаковой высоты всех карточек */
.help-cards {
  align-items: stretch;
}

.help-card {
  display: flex;
  flex-direction: column;
}

/* =======================
   ГЛАВНЫЙ ЭКРАН (HERO) - НОВЫЙ ДИЗАЙН (2 КОЛОНКИ)
   ======================== */

.hero {
    padding: 180px 0 100px 0; /* Возвращаем нормальные отступы */
    position: relative;
    background-color: var(--bg-dark);
    overflow: hidden; /* Оставляем hidden */
}

/* Удаляем видео и оверлей */
#hero-video,
.hero-overlay {
    display: none !important;
}

/* Новый контейнер для 2-колоночного макета */
.hero-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    color: var(--text-light); /* Цвет текста будет меняться с темой */
}

.hero-text-content {
    max-width: 600px;
}

.hero-text-content .hero-role {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-mid); /* Цвет будет меняться с темой */
    margin-bottom: 10px;
}

.hero-text-content .hero-tagline {
    margin-bottom: 0;
}

.hero-text-content .cursive-text {
    margin-top: 15px;
    margin-bottom: 25px; /* Добавлен нижний отступ */
    color: var(--accent-beige); /* Цвет будет меняться с темой */
}

/* Стили для новой цитаты */
.hero-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
    color: var(--accent-beige); /* Цвет будет меняться с темой */
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent-beige); /* Цвет будет меняться с темой */
    max-width: 500px;
}

.hero-text-content .hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-mid); /* Цвет будет меняться с темой */
    margin-bottom: 40px;
    max-width: none;
}

/* Правая колонка с изображением */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.hero-image-wrapper img {
    width: 100%;
    min-width: 920px; /* Увеличиваем максимальную ширину */
    height: 650px; /* Увеличиваем высоту */
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* Убираем все margin которые мешали */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-light-dark) 100%);
    pointer-events: none;
    z-index: 3;
    display: block; /* Возвращаем отображение */
}

/* Добавляем градиентный переход к следующей секции (about) */
.about {
    position: relative;
    padding-top: 100px; /* Увеличиваем верхний отступ чтобы компенсировать выходящее фото */
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-light-dark) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Адаптивность для hero */
@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px 0;
        overflow: hidden;
    }

    .hero-content-new {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-text-content h1 {
        font-size: 3.5rem;
    }

    .hero-image-wrapper {
        margin-top: 30px;
        order: -1; /* Ставим картинку сверху на мобильных */
    }
    
    .hero-image-wrapper img {
        max-width: 450px;
        height: 550px;
        margin-bottom: -60px; /* Меньший отрицательный margin на мобильных */
        max-width: 100%; /* На мобильных ограничиваем ширину */
    }

    .about {
        padding-top: 80px;
    }

    .hero::after {
        height: 60px;
    }
    
    .about::before {
        height: 60px;
    }
    
    .hero-quote {
        margin: 25px auto;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--accent-beige);
        padding-top: 15px;
        max-width: 450px;
    }
    
    .hero-text-content .btn-primary {
        margin: 0 auto; /* Центрируем кнопку */
    }
}

@media (max-width: 768px) {
     .hero {
        padding: 120px 0 60px 0;
    }

    .hero-text-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-quote {
        font-size: 1.1rem;
    }
    
    .hero-text-content .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-image-wrapper img {
        max-width: 380px;
        height: 480px;
        margin-bottom: -40px;
    }

    .hero::after {
        height: 40px;
    }

    .about {
        padding-top: 60px;
    }
    
    .about::before {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper img {
        height: 400px;
        max-width: 320px;
    }
}

/* ======================= */
/* СМЕЩЕНИЕ ФОТОГРАФИИ В HERO СЕКЦИИ ВПРАВО */
/* ======================= */

.hero-image-wrapper {
    position: relative;
    left: 200px; /* Смещение вправо */
}

/* Адаптивность для смещенной фотографии */
@media (max-width: 992px) {
    .hero-image-wrapper {
        left: 0; /* Убираем смещение на планшетах */
    }
}

/* ======================= */
/* УДАЛЕНИЕ ТЕНИ И ГРАНИЦ ФОТОГРАФИИ В HERO */
/* ======================= */

.hero-image-wrapper img {
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* Дополнительно убираем любые возможные эффекты */
.hero-image-wrapper {
    box-shadow: none !important;
}

/* Убираем скругления углов если есть */
.hero-image-wrapper img {
    border-radius: 0 !important;
}

/* Убираем фильтры если есть */
.hero-image-wrapper img {
    filter: none !important;
}

/* Убираем любые трансформации которые могут создавать тень */
.hero-image-wrapper:hover img {
    transform: none !important;
    box-shadow: none !important;
}

/* ======================= */
/* ПРОСТОЙ ВАРИАНТ - ЛИНИЯ ПО НИЗУ ФОТОГРАФИИ */
/* ======================= */

.hero-image-wrapper {
    position: relative;
    transform: translateX(50px); /* Смещение вправо */
}

/* Линия под фотографией */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Немного ниже фотографии */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw; /* На всю ширину экрана */
    height: 3px;
    background-color: var(--accent-beige);
    z-index: 10;
    pointer-events: none;
}

/* Светлая тема */
body.light-theme .hero-image-wrapper::after {
    background-color: var(--accent-blue);
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-image-wrapper {
        transform: none;
    }
    
    .hero-image-wrapper::after {
        width: 100%; /* Уже на мобильных */
    }
}

/* Убираем тень у фотографии */
.hero-image-wrapper img {
    box-shadow: none !important;
    border: none !important;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА - СИНИЙ ТЕКСТ В ХЕДЕРЕ ДО ПРОКРУТКИ */
/* ======================= */

/* До скролла - светло-синий текст в хедере */
body.light-theme .header:not(.scrolled) .main-nav a {
    color: var(--accent-blue) !important;
}

body.light-theme .header:not(.scrolled) .header-right .btn-liquid {
    color: var(--accent-blue) !important;
}

body.light-theme .header:not(.scrolled) .header-phone {
    color: var(--accent-blue) !important;
}

body.light-theme .header:not(.scrolled) .header-social {
    color: var(--accent-blue) !important;
}

/* Синий цвет при наведении до скролла (немного темнее) */
body.light-theme .header:not(.scrolled) .main-nav a:hover,
body.light-theme .header:not(.scrolled) .main-nav a:focus {
    color: #1d4ed8 !important; /* Темнее синий при наведении */
}

body.light-theme .header:not(.scrolled) .header-right .btn-liquid:hover {
    color: #1d4ed8 !important;
}

body.light-theme .header:not(.scrolled) .header-social:hover {
    color: #1d4ed8 !important;
}

/* Кнопка темы тоже светло-синяя до скролла */
body.light-theme .header:not(.scrolled) .theme-toggle {
    color: var(--accent-blue) !important;
}

body.light-theme .header:not(.scrolled) .theme-toggle:hover {
    color: #1d4ed8 !important;
}

/* ======================= */
/* ОБНОВЛЕННАЯ ЦИТАТА В HERO - БЕЗ ТЕНИ И С КРАСИВЫМ ШРИФТОМ */
/* ======================= */

.hero-quote {
    font-family: 'Playfair Display', 'Georgia', serif; /* Красивый шрифт для цитаты */
    font-style: italic;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--accent-beige);
    margin: 30px 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent-beige);
    max-width: 500px;
    text-shadow: none; /* Полностью убираем тень */
}

/* Для светлой темы */
body.light-theme .hero-quote {
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

/* Адаптивность для цитаты */
@media (max-width: 992px) {
    .hero-quote {
        font-size: 1.3rem;
        margin: 25px auto;
        padding-left: 0;
        border-left: none;
        border-top: 2px solid var(--accent-beige);
        padding-top: 15px;
        max-width: 450px;
    }
    
    body.light-theme .hero-quote {
        border-top-color: var(--accent-blue);
    }
}

@media (max-width: 768px) {
    .hero-quote {
        font-size: 1.2rem;
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    .hero-quote {
        font-size: 1.1rem;
        margin: 20px auto;
        padding-top: 12px;
    }
}

/* ======================= */
/* ГЕРОЙ - ФИГУРНЫЙ ФОН (Запрос пользователя) */
/* ======================= */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* * Эта переменная автоматически переключает цвет:
     * - Светлая тема: var(--accent-beige) -> #00a8ff (Синий)
     * - Темная тема:  var(--accent-beige) -> #d4b88a (Бежевый)
     */
    background-color: var(--accent-beige);

    /* Создаем треугольник по координатам со скриншота */
    clip-path: polygon(0% 0%, 80% 0%, 0% 59%);

    /* * Слой 1: Фигура
     * (Слой 2: Текст .hero-content-new)
     * (Слой 1000: Хедер .header)
     */
    z-index: 1;
}

.hero::before {
    display: none !important;
    content: none !important;
}

.hero-copy::before {
    display: none !important;
    content: none !important;
}

.h1-overlap {
    display: none !important;
}

.h1-base {
    opacity: 1 !important;
    color: var(--text-light) !important; 
}


/* ======================= */
/* H1 - ЭФФЕКТ НАЛОЖЕНИЯ (Запрос пользователя) */
/* ======================= */

/* 1. Контейнер, который теперь несет стили старого H1 */
.h1-container {
    position: relative;
    font-size: 5rem;
    line-height: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1; /* Создаем новый контекст наложения */
}

/* 2. Общие стили для ОБЕИХ версий h1 */
.h1-container h1 {
    margin: 0;
    padding: 0;
    line-height: 1; /* Наследуем, но явно */
}

/* 3. Базовый h1 (основной цвет) */
.h1-container .h1-base {
    /* * Светлая тема: var(--text-light) -> #1e293b (Черный)
     * Темная тема:  var(--text-light) -> #f5f7f8 (Белый)
     */
    color: var(--text-light); 
    position: relative;
    z-index: 1;
}

/* 4. h1 для наложения (инвертированный цвет и обрезка) */
.h1-container .h1-overlap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* * Инвертированный цвет:
     * Светлая тема: var(--bg-dark) -> #ffffff (Белый)
     * Темная тема:  var(--bg-dark) -> #07090b (Черный)
     */
    color: var(--bg-dark); 
    
    /* Обрезаем по той же фигуре, что и фон */
    clip-path: polygon(100% 100%, 109% 100%, 0% 110%);
    
    /* Слой поверх базового h1 */
    z-index: 2; 

    /* Убираем "двоение" текста */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Адаптивность для нового H1 */
@media (max-width: 992px) {
    .h1-container {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .h1-container {
        font-size: 2.5rem;
    }
}

/* ======================= */
/* ЦВЕТ ЛЕВЫХ КНОПОК ХЕДЕРА ДО ПРОКРУТКИ */
/* ======================= */

/* Светлая тема - белые кнопки до прокрутки */
body.light-theme .header:not(.scrolled) .header-left .main-nav a {
    color: white !important;
}

body.light-theme .header:not(.scrolled) .header-left .main-nav a:hover,
body.light-theme .header:not(.scrolled) .header-left .main-nav a:focus {
    color: var(--accent-blue) !important;
}

/* Темная тема - черные кнопки до прокрутки */
body:not(.light-theme) .header:not(.scrolled) .header-left .main-nav a {
    color: black !important;
}

body:not(.light-theme) .header:not(.scrolled) .header-left .main-nav a:hover,
body:not(.light-theme) .header:not(.scrolled) .header-left .main-nav a:focus {
    color: var(--accent-beige) !important;
}

/* Кнопка консультации в левой части (мобильные) */
body.light-theme .header:not(.scrolled) .header-left .btn-liquid {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .header:not(.scrolled) .header-left .btn-liquid:hover {
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

body:not(.light-theme) .header:not(.scrolled) .header-left .btn-liquid {
    color: black !important;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

body:not(.light-theme) .header:not(.scrolled) .header-left .btn-liquid:hover {
    color: var(--accent-beige) !important;
    border-color: var(--accent-beige) !important;
}

/* Кнопка темы в левой части (мобильные) */
body.light-theme .header:not(.scrolled) .header-left .theme-toggle {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .header:not(.scrolled) .header-left .theme-toggle:hover {
    color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

body:not(.light-theme) .header:not(.scrolled) .header-left .theme-toggle {
    color: black !important;
    border-color: rgba(0, 0, 0, 0.5) !important;
}

body:not(.light-theme) .header:not(.scrolled) .header-left .theme-toggle:hover {
    color: var(--accent-beige) !important;
    border-color: var(--accent-beige) !important;
}

/* ======================= */
/* СТИЛИ ДЛЯ КОПИИ HERO СЕКЦИИ */
/* ======================= */

.hero-copy {
    background-color: var(--bg-light-dark);
    position: relative;
    overflow: hidden;
}

.hero-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-beige);
    clip-path: polygon(0% 0%, 50% 0%, 0% 70%);
    z-index: 1;
}

.hero-copy::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Адаптивность для копии hero */
@media (max-width: 992px) {
    .hero-copy {
        padding: 140px 0 80px 0;
    }
    
    .hero-copy::after {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .hero-copy {
        padding: 120px 0 60px 0;
    }
    
    .hero-copy::after {
        height: 40px;
    }
}

/* ======================= */
/* УЛУЧШЕННАЯ ГРАНИЦА ХЕДЕРА С "ПОЛУОСТРОВОМ" */
/* ======================= */

/* 1. Убираем старую границу, которая появляется при прокрутке.
      Она нам больше не нужна, мы создадим свою. */
.header.scrolled {
    border-bottom: 1px solid transparent !important;
}

body.light-theme .header.scrolled {
    border-bottom: 1px solid transparent !important;
}

/* 2. Создаем "полуостров" под логотипом.
      Мы цепляемся к .header-center, чтобы он всегда был по центру. */
.header-center {
    position: relative;
}

/* 2. Создаем "полуостров" под логотипом */
.header-center::after {
    content: '';
    position: absolute;
    
    z-index: 5;
    
    width: 120px;
    height: 40px;
    
    left: 50%;
    transform: translateX(-50%);
    bottom: -58px;

    border-radius: 0 0 60px 60px;

    /* ИСПРАВЛЕНИЕ: Увеличиваем непрозрачность фона */
    background: rgba(255, 255, 255, 0.15); /* Было 0.06 - слишком прозрачно */
    backdrop-filter: blur(15px) saturate(180%); /* Увеличиваем блюр */
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    border: 2px solid var(--accent-beige);
    border-top: none;
    
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ИСПРАВЛЕНИЕ для светлой темы - делаем фон более заметным */
body.light-theme .header-center::after {
    background: rgba(255, 255, 255, 0.85) !important; /* Белый непрозрачный фон */
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border-color: #00a8ff;
}

/* АГРЕССИВНОЕ ИСПРАВЛЕНИЕ ДЛЯ ПОЛУОСТРОВА */
.header.scrolled .header-center::after {
    opacity: 1;
    background: rgba(255, 255, 255, 0.068) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .header.scrolled .header-center::after {
    background: rgba(255, 255, 255, 0.062) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border-color: #00a8ff;
}

/* Стили для "полуострова" в светлой теме */
body.light-theme .header-center::after {
    /* Меняем фон на тот, что используется в светлой теме */
    background: rgba(255, 255, 255, 0.103) !important;
    backdrop-filter: blur(70px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(70px) saturate(180%) !important;
    border-color: #00a8ff;
}

/* 3. Показываем "полуостров" ТОЛЬКО когда хедер прокручен (активен) */
.header.scrolled .header-center::after {
    opacity: 1;
}

/* 4. Создаем ДВЕ ПРЯМЫЕ ЛИНИИ по бокам от "полуострова" */
.header::before,
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    background: var(--accent-beige);
    
    /* Прячем до прокрутки */
    opacity: 0;
    transition: opacity 0.5s ease;
    
    /* z-index: 6 - чуть выше, чем полуостров, для идеальной стыковки */
    z-index: 6;
}

/* Для светлой темы - голубые линии */
body.light-theme .header::before,
body.light-theme .header::after {
    background: #00a8ff; /* Голубой для светлой темы */
}

/* Левая линия */
.header::before {
    left: 0;
    /* Ширина: 50% экрана МИНУС половина ширины полуострова (60px) */
    width: calc(50% - 70px); 
}

/* Правая линия */
.header::after {
    right: 0;
    /* Ширина: 50% экрана МИНУС половина ширины полуострова (60px) */
    width: calc(50% - 70px);
}

/* 5. Показываем прямые линии при прокрутке */
.header.scrolled::before,
.header.scrolled::after {
    opacity: 1;
}

/* 6. Поднимаем логотип, чтобы он был НАД полуостровом */
.header-center .brand {
    position: relative;
    z-index: 10;
}

/* ======================= */
/* УВЕЛИЧЕНИЕ ЛОГОТИПА БЕЗ ИЗМЕНЕНИЯ ХЕДЕРА */
/* ======================= */

/* 1. Задаем .brand (контейнеру логотипа <a>) 
      плавный переход для 'transform' */
.header-center .brand {
    display: flex; /* Это уже должно там быть */
    z-index: 10;   /* Это тоже */

    /* * Вот и все. Логотип теперь всегда на 15% больше.
     * Можешь поменять 1.15 на 1.1 (10%) или 1.2 (20%).
    */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.85) translateY(15px);

    /* * (Я убрал 'transition', так как он больше не нужен, 
     * если нет эффекта при наведении) 
    */
}

/* 2. При наведении на .brand, мы его увеличиваем */
.header-center .brand:hover {
    /* * Увеличиваем на 15% (1.15). 
     * Можешь поставить любое значение (1.1, 1.2, 1.3)
    */
    transform: scale(1.95) translateY(15px);
}

/* Добавьте эти стили в конец файла style.css */

/* ======================= */
/* ОБНОВЛЕННЫЙ HERO - БЕЗ ФОТОГРАФИИ */
/* ======================= */

.hero {
    padding: 180px 0 100px 0;
    position: relative;
    background-color: var(--bg-dark);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Убираем изображение из сетки */
.hero-content-new {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-content {
    max-width: 100%;
    position: relative;
}

/* Увеличиваем и улучшаем заголовок */
.h1-container {
    position: relative;
    font-size: 8rem; /* Увеличили размер */
    line-height: 1;
    font-family: var(--font-heading);
    font-weight: 3500; /* Более жирный шрифт */
    z-index: 1;
    text-transform: uppercase;
}

.h1-container h1 {
    font-size: 14rem;
    word-spacing: 55px;
    padding: 0;
    line-height: 1;
    white-space: nowrap; /* Все слова в одной строке */
    margin-left: -370px;
}

/* Базовый h1 (основной цвет) */
.h1-container .h1-base {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.h1-container .h1-base {
    color: var(--accent-beige);
}

/* h1 для наложения (инвертированный цвет и обрезка) */
.h1-container .h1-overlap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--bg-dark);
    
    /* Обрезаем по фигуре - только "ПРАВО И" остается внутри треугольника */
    clip-path: polygon(0% 0%, 75% 0%, 0% 173%);
    
    z-index: 2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Улучшенная цитата */
.hero-quote-wrapper {
    margin: 50px 0 40px 0;
    text-align: justify;
    max-width: 600px;
    margin-left: auto;
}

.hero-quote {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 2.5rem; /* Увеличили размер цитаты */
    line-height: 1.4;
    color: var(--accent-beige);
    margin: 0;
    padding: 0;
    text-shadow: none;
    border: none;
    position: relative;
}

/* Подзаголовок */
.hero-text-content .hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-mid);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    text-align: right;
}

/* Кнопка */
.hero-text-content .btn-primary {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

/* ======================= */
/* СВЕТЛАЯ ТЕМА ДЛЯ ОБНОВЛЕННОГО HERO */
/* ======================= */

body.light-theme .hero-quote {
    color: var(--accent-blue);
}

/* ======================= */
/* АДАПТИВНОСТЬ ДЛЯ ОБНОВЛЕННОГО HERO */
/* ======================= */

@media (max-width: 1200px) {
    .h1-container {
        font-size: 6rem;
    }
    
    .hero-quote {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 140px 0 80px 0;
        min-height: 70vh;
    }
    
    .h1-container {
        font-size: 4.5rem;
        text-align: center;
    }
    
    .hero-quote-wrapper {
        text-align: center;
        margin: 40px auto 30px auto;
    }
    
    .hero-quote {
        font-size: 1.8rem;
    }
    
    .hero-text-content .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }
    
    .hero-text-content .btn-primary {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-quote::before {
        left: -20px;
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px 0;
        min-height: 60vh;
    }
    
    .h1-container {
        font-size: 3.5rem;
        letter-spacing: 1px;
    }
    
    .hero-quote {
        font-size: 1.5rem;
    }
    
    .hero-text-content .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .hero-quote::before {
        left: -15px;
        top: -5px;
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .h1-container {
        font-size: 2.8rem;
    }
    
    .hero-quote {
        font-size: 1.3rem;
    }
    
    .hero-quote::before {
        left: -10px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .h1-container {
        font-size: 2.2rem;
    }
    
    .hero-quote {
        font-size: 1.1rem;
    }
    
    .hero-text-content .hero-subtitle {
        font-size: 0.95rem;
    }
}

/* Улучшение для очень маленьких экранов */
@media (max-width: 380px) {
    .h1-container {
        font-size: 1.8rem;
    }
    
    .hero-quote {
        font-size: 1rem;
    }
    
    .hero-quote::before {
        display: none; /* Скрываем кавычки на очень маленьких экранах */
    }
}

/* ======================= */
/* ОБНОВЛЕННЫЙ ХЕДЕР ПОСЛЕ ПРОКРУТКИ */
/* ======================= */

/* ТЕМНАЯ ТЕМА - БЕЖЕВЫЙ ФОН после прокрутки */
body:not(.light-theme) .header.scrolled {
    background: rgba(212, 184, 138, 0.767) !important; /* Бежевый фон */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 20px rgba(44, 107, 143, 0.3) !important;
}

/* СВЕТЛАЯ ТЕМА - ГОЛУБОЙ ФОН после прокрутки */
body.light-theme .header.scrolled {
    background: #00aaffa9 !important; /* Голубой фон */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: blur(10px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(140%) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 20px rgba(44, 107, 143, 0.3) !important;
}

/* БЕЛЫЙ ТЕКСТ В ХЕДЕРЕ ПОСЛЕ ПРОКРУТКИ (для обеих тем) */

/* Навигация - белый текст */
.header.scrolled .main-nav a {
    color: white !important;
}

.header.scrolled .main-nav a:hover,
.header.scrolled .main-nav a:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Кнопка консультации - белый текст */
.header.scrolled .btn-liquid {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.header.scrolled .btn-liquid:hover {
    color: white !important;
    border-color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Телефон - белый текст */
.header.scrolled .header-phone {
    color: white !important;
}

/* Социальные иконки - белый цвет */
.header.scrolled .header-social {
    color: white !important;
}

.header.scrolled .header-social:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Кнопка темы - белый цвет */
.header.scrolled .theme-toggle {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.header.scrolled .theme-toggle:hover {
    color: white !important;
    border-color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Навигация - белый текст */
body.light-theme .header.scrolled .main-nav a {
    color: white !important;
}

body.light-theme .header.scrolled .main-nav a:hover,
.header.scrolled .main-nav a:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Кнопка консультации - белый текст */
body.light-theme .header.scrolled .btn-liquid {
    color: white !important;
    border-color: rgb(255, 255, 255) !important;
}

body.light-theme .header.scrolled .btn-liquid:hover {
    color: white !important;
    border-color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Телефон - белый текст */
body.light-theme .header.scrolled .header-phone {
    color: white !important;
}

/* Социальные иконки - белый цвет */
body.light-theme .header.scrolled .header-social {
    color: white !important;
}

body.light-theme .header.scrolled .header-social:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Кнопка темы - белый цвет */
body.light-theme .header.scrolled .theme-toggle {
    color: white !important;
    border-color: rgb(255, 255, 255) !important;
}

body.light-theme .header.scrolled .theme-toggle:hover {
    color: white !important;
    border-color: white !important;
    background: rgb(255, 255, 255) !important;
}

/* ======================= */
/* ОБНОВЛЕННЫЙ "ПОЛУОСТРОВ" ДЛЯ НОВЫХ ЦВЕТОВ ХЕДЕРА */
/* ======================= */

/* Темная тема - полуостров с белой рамкой (для бежевого фона) */
body:not(.light-theme) .header.scrolled .header-center::after {
    background: rgba(212, 184, 138, 0.767) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-color: white !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Светлая тема - полуостров с белой рамкой (для голубого фона) */
body.light-theme .header.scrolled .header-center::after {
    background-color: #00aaffa9 !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border-color: white !important;
}

/* Прямые линии по бокам - белый цвет */
.header.scrolled::before,
.header.scrolled::after {
    background: white !important;
}

/* ======================= */
/* УБИРАЕМ ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ДЛЯ НОВЫХ ХЕДЕРОВ */
/* ======================= */

/* Темная тема - убираем изменение фона при наведении */
body:not(.light-theme) .header.scrolled:hover {
    background: rgba(212, 184, 138, 0.95) !important;
    box-shadow: 0 8px 20px rgba(212, 184, 138, 0.3) !important;
}

/* Светлая тема - убираем изменение фона при наведении */
body.light-theme .header.scrolled:hover {
    background-color: #00aaffee !important;
    box-shadow: 0 8px 20px rgba(44, 107, 143, 0.3) !important;
}

/* ======================= */
/* СМЕЩЕНИЕ ЗАГОЛОВКА В HERO СЕКЦИИ */
/* ======================= */

.hero-text-content .h1-container {
    margin-left: 200px;
}

/* Адаптивность для смещенного заголовка */
@media (max-width: 992px) {
    .hero-text-content .h1-container {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-text-content .h1-container {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text-content .h1-container {
        margin-top: 15px;
    }
}

/* =======================
   ОБНОВЛЕНИЕ HERO (ВЫРАВНИВАНИЕ СПРАВА)
   ======================= */

/* 1. Контейнер цитаты */
.hero-quote-wrapper {        /* Выравнивание текста внутри */
    max-width: 250px;          /* Даем больше места в ширину */
    margin-left: 1000px;         /* Толкаем блок вправо */
    margin-right: 0;           /* Прижимаем к правому краю */
    padding-right: 15px;       /* Небольшой отступ от края экрана */
    margin-top: 40px;          /* Отступ от заголовка ПРАВО И ПОРЯДОК */
}

/* 2. Сама цитата (Увеличение и шрифт) */
.hero-quote {
    /* --- ВЫБЕРИ ОДИН ИЗ ШРИФТОВ НИЖЕ --- */
    /*font-family: 'Cormorant Garamond', serif; /* Вариант 1: Элегантный */
    /*font-family: 'Prata', serif;        /* Вариант 2: Строгий */
    /*font-family: 'Philosopher', sans-serif;*/ /* Вариант 3: Плавный */
    
    font-style: italic;
    font-weight: 550;
    font-size: 3.5rem;         /* Значительно увеличили размер (было 2.5rem) */
    line-height: 1.1;          /* Плотный межстрочный интервал для крупного текста */
    color: var(--accent-beige);
    
    position: relative;
    display: inline-block;     /* Чтобы кавычка позиционировалась относительно текста */
}

/* 3. Подзаголовок (Текст под цитатой) */
.hero-text-content .hero-subtitle {
    text-align: right;         /* Текст по правому краю */
    font-size: 1.4rem;         /* Чуть крупнее для читаемости */
    font-weight: 300;
    color: var(--text-mid);
    
    max-width: 650px;          /* Ограничиваем ширину, чтобы текст не расплывался */
    margin-left: auto;         /* Толкаем вправо */
    margin-right: -300px;           /* Прижимаем к правому краю */
    padding-right: 15px;       /* Согласуем отступ с цитатой */
    margin-top: 30px;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* 4. Кнопка (Справа под текстом) */
.hero-text-content .btn-primary {
    display: table;            /* Хак для shrink-to-fit */
    margin-left: 1040px;         /* Толкаем вправо */
    margin-right: -350px;        /* Согласуем отступ с текстом */
    
    /* Делаем кнопку чуть заметнее */
    padding: 18px 45px;
    font-size: 1.9rem;
}

/* =======================
   АДАПТИВНОСТЬ (ПЛАНШЕТЫ И МОБИЛЬНЫЕ)
   ======================= */

@media (max-width: 1200px) {
    .hero-quote {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    /* На планшетах и мобильных возвращаем центрирование, 
       иначе выглядит криво на маленьких экранах */
    .hero-quote-wrapper,
    .hero-text-content .hero-subtitle {
        text-align: center;
        margin-right: auto; /* Центрируем блок */
        padding-right: 0;
    }
    
    .hero-text-content .btn-primary {
        margin-right: auto; /* Центрируем кнопку */
    }
    
    .hero-quote {
        font-size: 2.2rem;
    }
    
    .hero-quote::before {
        left: -15px;
    }
}

/* =======================
   ЭФФЕКТ ПРИ НАВЕДЕНИИ НА КНОПКУ (ПРОЗРАЧНОСТЬ)
   Добавьте в самый конец style.css
   ======================= */

/* 1. ТЕМНАЯ ТЕМА: При наведении становится бежевой контурной */
body:not(.light-theme) .hero .btn-primary:hover,
body:not(.light-theme) .contact-form button[type="submit"]:hover,
body:not(.light-theme) .btn-primary:hover {
    background: transparent !important;       /* Прозрачный фон */
    border: 2px solid var(--accent-beige) !important; /* Бежевая рамка */
    color: var(--accent-beige) !important;    /* Бежевый текст */
    
    /* Опционально: легкое свечение рамки для красоты */
    box-shadow: 0 0 20px rgba(212, 184, 138, 0.1) !important;
    transform: translateY(-3px); /* Небольшой подъем */
}

/* 2. СВЕТЛАЯ ТЕМА: При наведении становится синей контурной */
body.light-theme .hero .btn-primary:hover,
body.light-theme .contact-form button[type="submit"]:hover,
body.light-theme .btn-primary:hover {
    background: transparent !important;       /* Прозрачный фон */
    
    /* Тот самый синий цвет (rgb(37, 100, 235)), который используется в теме */
    border-color: #006eff !important; 
    color: #006eff !important;      /* Синий текст */
    
    box-shadow: 0 0 20px rgba(37, 100, 235, 0.15) !important;
    transform: translateY(-3px);
}

/* ======================= */
/* ФОТОГРАФИЯ В HERO С АБСОЛЮТНЫМ ПОЗИЦИОНИРОВАНИЕМ */
/* ======================= */

.hero-image-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5; /* Выше чем фон, но ниже чем текст */
    width: 1150px;
    height: 800px;
    pointer-events: none; /* Чтобы не мешала кликам по другим элементам */
    margin-left: -150px;
    margin-top: 130px;
}

.hero-image-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    border: none;
    filter: grayscale(20%) contrast(110%);
    opacity: 1;
}

/* Адаптивность для фотографии */
@media (max-width: 1200px) {
    .hero-image-center {
        width: 400px;
        height: 500px;
    }
}

@media (max-width: 992px) {
    .hero-image-center {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-image-center {
        width: 300px;
        height: 400px;
        opacity: 0.8;
    }
}

@media (max-width: 576px) {
    .hero-image-center {
        width: 250px;
        height: 350px;
        opacity: 0.7;
    }
}

/* ======================= */
/* УВЕЛИЧЕННЫЙ ХЕДЕР И ЭЛЕМЕНТЫ */
/* ======================= */

/* Увеличиваем общую высоту хедера */
.header {
    padding: 25px 40px !important; /* Увеличили вертикальные и горизонтальные отступы */
    min-height: 90px; /* Минимальная высота хедера */
}

/* Увеличиваем логотип */
.logo-svg {
    width: 65px !important; /* Было 48px */
    height: 65px !important; /* Было 48px */
}

/* Увеличиваем навигацию */
.main-nav a {
    font-size: 1.3rem !important; /* Было 0.95rem */
    padding: 12px 18px !important; /* Было 8px 12px */
    margin-left: 20px !important; /* Было 15px */
}

/* Увеличиваем кнопки в хедере */
.btn-liquid {
    padding: 14px 30px !important; /* Было 10px 24px */
    font-size: 1.2rem !important; /* Было 0.9rem */
    border-width: 2px !important;
}

/* Увеличиваем контактную информацию */
.header-phone {
    font-size: 1.3rem !important; /* Было 0.95rem */
    margin-left: 20px !important; /* Было 20px */
}

.header-contact {
    gap: 15px !important; /* Было 15px */
}

/* Увеличиваем иконки социальных сетей */
.header-social {
    font-size: 1.7rem !important; /* Было 1.1rem */
}

/* Увеличиваем кнопку переключения темы */
.theme-toggle {
    width: 50px !important; /* Было 44px */
    height: 50px !important; /* Было 44px */
    font-size: 1.3rem !important;
    margin-right: 20px !important; /* Было 15px */
}

/* Увеличиваем кнопку мобильного меню */
.mobile-menu-toggle {
    font-size: 1.8rem !important; /* Было 1.5rem */
    margin-left: 25px !important; /* Было 20px */
}

/* Увеличиваем бренд текст если он используется */
.brand-text .name {
    font-size: 1.3rem !important; /* Было 1.1rem */
}

.brand-text .role {
    font-size: 0.9rem !important; /* Было 0.8rem */
}

/* Увеличиваем отступы между основными секциями хедера */
.header-left {
    gap: 25px !important; /* Было 20px */
}

/* Адаптивность для увеличенного хедера */
@media (max-width: 1200px) {
    .header-contact {
        display: flex !important; /* Показываем контакты на больших экранах */
    }
}

@media (max-width: 992px) {
    .header {
        padding: 20px 25px !important;
        min-height: 80px;
    }
    
    .logo-svg {
        width: 55px !important;
        height: 55px !important;
    }
    
    .mobile-menu-toggle {
        font-size: 1.6rem !important;
        margin-left: 20px !important;
    }
    
    .theme-toggle {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 18px 20px !important;
        min-height: 75px;
    }
    
    .logo-svg {
        width: 50px !important;
        height: 50px !important;
    }
    
    .btn-liquid {
        padding: 12px 25px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 18px !important;
        min-height: 70px;
    }
    
    .logo-svg {
        width: 45px !important;
        height: 45px !important;
    }
    
    .mobile-menu-toggle {
        font-size: 1.4rem !important;
        margin-left: 15px !important;
    }
    
    .theme-toggle {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
}

/* Увеличиваем "полуостров" под логотипом чтобы соответствовать новому размеру */
.header-center::after {
    width: 140px !important; /* Было 120px */
    height: 45px !important; /* Было 40px */
    bottom: -69px !important; /* Было -58px */
}

/* Увеличиваем прямые линии по бокам */
.header::before,
.header::after {
    height: 3px !important; /* Было 2px */
}

/* ======================= */
/* СЕКЦИЯ "О КОМПАНИИ" */
/* ======================= */

.about-company {
    background: linear-gradient(135deg, var(--accent-beige) 0%, #178bff 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

body:not(.light-theme) .about-company {
    background: linear-gradient(135deg, var(--accent-beige) 0%, #7e6844 100%);
}

.about-company::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-company-container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.about-company-content {
    flex: 1.5;
}

.about-company-image {
    flex: 1;
    min-width: 100px;
}

.about-company-image img {
    width: 140%; /* Увеличиваем ширину */
    max-width: none; /* Убираем ограничение по ширине */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1.1); /* Дополнительное увеличение */
    margin-left: 50px; /* Сдвиг вправо */
}

.about-company h2 {
    color: white;
    text-align: left;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.about-company h2::after {
    left: 0;
    transform: translateX(0);
    background-color: white;
}

.firm-name {
    font-weight: 700;
    display: block;
    font-size: 3.2rem;
    margin-top: 5px;
}

.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 30px;
    font-style: italic;
    opacity: 0.9;
}

.about-company p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.company-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    min-width: 60px;
}

.stat-plus, .stat-percent {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-company .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    margin-top: 10px;
}

.about-company .btn-secondary:hover {
    background: white;
    color: var(--accent-blue);
}

/* Адаптивность для секции "О компании" */
@media (max-width: 992px) {
    .about-company-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-company h2 {
        text-align: center;
        font-size: 2.3rem;
    }
    
    .about-company h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .firm-name {
        font-size: 2.5rem;
    }
    
    .company-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-company h2 {
        font-size: 2rem;
    }
    
    .firm-name {
        font-size: 2.2rem;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .stat {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Анимация для счетчиков */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animated {
    animation: countUp 0.8s ease-out forwards;
}

/* ============================================== */
/* === МОБИЛЬНАЯ АДАПТАЦИЯ (HEADER + HERO) === */
/* ============================================== */

@media (max-width: 992px) {
    /* --- 1. ИСПРАВЛЕНИЕ ХЕДЕРА И ОСТРОВКА --- */
    
    .header {
        /* Уменьшаем отступы по краям для экономии места */
        padding: 15px 15px !important;
        justify-content: space-between;
    }

    /* Сбрасываем все margin у центрального блока, чтобы он встал ровно по центру */
    .header-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0 !important; 
        padding: 0;
        width: auto;
        z-index: 10;
        pointer-events: none; /* Пропускаем клики сквозь контейнер, чтобы работали кнопки по бокам */
    }

    /* Возвращаем кликабельность самому логотипу */
    .header-center .brand {
        pointer-events: auto;
        margin: 0 !important;
    }

    /* Настройка "Островка" (Полуострова) */
    .header-center::after {
        content: '';
        /* Размеры островка для мобильных */
        width: 100px !important; 
        height: 35px !important;
        bottom: -50px !important; /* Позиция снизу */
        
        /* Центрирование островка относительно контейнера */
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        
        /* Визуальные стили */
        border-radius: 0 0 40px 40px;
        z-index: -1;
    }

    /* Линии слева и справа от островка */
    /* Вычисляем ширину: 50% экрана минус половина ширины островка (50px) */
    .header.scrolled::before,
    .header.scrolled::after {
        width: calc(50% - 50px) !important;
        bottom: 0 !important;
    }

    /* Левая часть шапки (Кнопка консультации + тема) */
    .header-left {
        z-index: 20; /* Поверх логотипа если экран очень узкий */
        max-width: 100%; /* Ограничиваем ширину, чтобы не налезть на лого */
    }

    /* Правая часть шапки (Гамбургер) */
    .header-right {
        margin-left: auto;
        z-index: 20;
    }

    /* Адаптация кнопок, чтобы не накладывались */
    .btn-liquid {
        margin-left: -10px;
        padding: 3px 12px !important;
        font-size: 0.90rem !important; /* Уменьшаем шрифт */
    }

    .header-contact {
        /* Переопределяем 'display: none' из @media (max-width: 1200px) */
        display: flex !important; 
        /* Используем отрицательный margin-right для сдвига блока влево.
           Значение -25px сдвинет блок влево на 25 пикселей. */
        margin-right: 13px; 
        /* Если нужно уменьшить пространство между иконками и кнопкой темы */
        margin-left: 9px;
    }

    /* Уменьшаем кнопку переключения темы */
    .theme-toggle {
        width: 33px !important;
        height: 33px !important;
        font-size: 1rem !important;
        margin-right: 120px !important;
        flex-shrink: 0;
    }

    /* Кнопка меню (гамбургер) */
    .mobile-menu-toggle {
        font-size: 1.5rem !important;
        margin-left: 0 !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

/* Дополнительная подстройка для очень узких экранов */
@media (max-width: 380px) {
    /* Скрываем текст "Консультация", оставляем иконку или делаем кнопку меньше */
    .mobile-consultation.btn-liquid {
        font-size: 0 !important; /* Скрываем текст */
        padding: 10px !important;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Добавляем иконку через CSS, если текст скрыт */
    .mobile-consultation.btn-liquid::after {
        content: '\f0e0'; /* FontAwesome код конверта */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1rem;
        color: inherit;
    }
}

/* --- 2. АДАПТАЦИЯ HERO СЕКЦИИ --- */

@media (max-width: 992px) {
    .hero {
        padding-top: 150px;
        min-height: auto;
        display: block; /* Убираем flex/grid центрирование, используем поток */
    }

    .hero-content-new {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }

    .header-phone {
        display: none !important;
    }

    .hero-image-center {
        display: none !important;
    }

    /* Контейнер заголовка */
    .h1-container {
        font-size: 13vw; /* Размер зависит от ширины экрана */
        text-align: center;
        margin: 0 !important; /* Сбрасываем десктопные смещения */
        padding: 0;
        width: 100%;
        line-height: 1.1;
    }

    /* Сам текст заголовка */
    .h1-container h1 {
        font-size: inherit;
        margin: 0 !important;
        padding: 0;
        white-space: normal; /* Разрешаем перенос слов */
        word-spacing: normal;
        margin-left: 0 !important; /* Убираем сдвиг влево */
    }

    /* Цитата */
    .hero-quote-wrapper {
        margin: 30px auto;
        text-align: center;
        max-width: 100%;
        padding: 0;
    }

    .hero-quote {
        font-size: 1.5rem;
        text-align: center;
        display: block;
    }

    /* Подзаголовок */
    .hero-text-content .hero-subtitle {
        text-align: center;
        margin: 20px auto 40px auto;
        font-size: 1rem;
        max-width: 100%;
        padding: 0 10px;
    }

    /* Кнопка в Hero */
    .hero-text-content .btn-primary {
        margin: 0 auto;
        display: inline-block;
        font-size: 1rem;
        padding: 14px 30px;
    }
}

.liquid-glass-blob {
    pointer-events: none;
}

/* =======================
   НОВАЯ СЕКЦИЯ УСЛУГ (SERVICES MODERN)
   ======================== */

.services-modern {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-dark); /* Фон секции */
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки */
    gap: 30px;
    margin-top: 50px;
}

/* Карточка услуги */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    /* Стиль Liquid Glass */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0; /* Острые углы как вы просили */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

/* Эффект при наведении на карточку */
.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-beige);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Блок с изображением */
.service-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Зум картинки при наведении */
.service-card:hover .service-img img {
    transform: scale(1.1);
}

/* Затемнение картинки */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(7, 9, 11, 0.8) 100%);
    z-index: 1;
}

/* Тело карточки (текст) */
.service-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    margin-top: -40px; /* Наезд текста на картинку */
}

/* Иконка */
.service-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 1px solid var(--accent-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-beige);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-beige);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(212, 184, 138, 0.4);
}

/* Заголовок услуги */
.service-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.3;
}

/* Описание */
.service-body p {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 25px;
    flex-grow: 1; /* Прижимает кнопку к низу */
}

/* Ссылка (кнопка) */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-beige);
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--text-light);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Широкая карточка для 7-й услуги (чтобы сетка была красивой) */
.service-card-wide {
    grid-column: span 3; /* Занимает всю ширину */
    flex-direction: row; /* Горизонтальное расположение */
}

.service-card-wide .service-img {
    height: auto;
    width: 50%;
}

.service-card-wide .service-body {
    width: 50%;
    margin-top: 0;
    justify-content: center;
}

.service-card-wide .service-overlay {
    background: linear-gradient(to right, transparent 0%, rgba(7, 9, 11, 0.9) 100%);
}

/* =======================
   АДАПТИВНОСТЬ НОВОЙ СЕКЦИИ
   ======================== */

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }

    .service-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка */
    }

    .service-card-wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .service-card-wide .service-img,
    .service-card-wide .service-body {
        width: 100%;
    }
    
    .service-card-wide .service-img {
        height: 220px;
    }

    .service-body {
        margin-top: -30px;
    }
    
    .service-card-wide .service-overlay {
        background: linear-gradient(to bottom, transparent 0%, rgba(7, 9, 11, 0.8) 100%);
    }
}

/* =======================
   СВЕТЛАЯ ТЕМА (LIGHT THEME) ДЛЯ УСЛУГ
   ======================== */

body.light-theme .services-modern {
    background-color: var(--bg-light-dark);
}

body.light-theme .service-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(37, 99, 235, 0.15);
}

body.light-theme .service-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

body.light-theme .service-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
}

body.light-theme .service-icon {
    background: #fff;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

body.light-theme .service-card:hover .service-icon {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

body.light-theme .service-link {
    color: var(--accent-blue);
}

body.light-theme .service-link:hover {
    color: var(--text-mid);
}

/* Для широкой карточки в светлой теме */
body.light-theme .service-card-wide .service-overlay {
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.95) 100%);
}

@media (max-width: 768px) {
    body.light-theme .service-card-wide .service-overlay {
        background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
    }
}

/* =======================
   ОБНОВЛЕНИЕ СЕКЦИИ "О НАС" (ФОТО СПРАВА)
   ======================== */

.about-company {
    position: relative; /* Чтобы позиционировать фото относительно секции */
    display: flex;
    align-items: center;
    overflow: hidden; /* Обрезаем все, что вылезает */
    padding: 100px 0; /* Вертикальные отступы */
}

/* Контейнер для текста */
.about-company-container {
    position: relative;
    z-index: 2; /* Текст поверх всего */
    width: 100%;
    display: flex;
}

/* Ограничиваем ширину текста, чтобы он не заезжал на фото */
.about-company-content {
    width: 55%; /* Текст занимает 55% ширины экрана слева */
    padding-right: 40px;
    flex: none; /* Отключаем растягивание */
}

/* Блок с изображением */
.about-company-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%; /* Фото занимает 40% ширины экрана справа */
    height: 100%; /* На всю высоту секции */
    margin: 0;
    z-index: 1;
    
    /* ЛИНИЯ-ГРАНИЦА */
    border-left: 2px solid #000000; /* Белая линия по умолчанию (темная тема) */
}

/* Стили самого изображения */
.about-company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполняет блок, не искажаясь, обрезая лишнее */
    object-position: top center; /* Фокус на верхней части фото */
    border-radius: 0; /* Убираем скругления */
    box-shadow: none; /* Убираем тень */
    transform: none !important; /* Сбрасываем старые анимации увеличения */
    margin: 0;
}

/* --- НАСТРОЙКИ ДЛЯ СВЕТЛОЙ ТЕМЫ --- */
body.light-theme .about-company-image {
    border-left-color: #ffffff; /* Черная линия в светлой теме */
}

/* --- АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) --- */
@media (max-width: 992px) {
    .about-company {
        flex-direction: column;
        padding-bottom: 0; /* Фото будет внизу */
    }

    .about-company-content {
        width: 100%; /* Текст на всю ширину */
        padding-right: 0;
        margin-bottom: 40px;
    }

    /* Возвращаем фото в поток документа на мобильных */
    .about-company-image {
        position: relative;
        width: 100%;
        height: 400px; /* Фиксированная высота для мобильных */
        right: auto;
        top: auto;
        border-left: none; /* Убираем линию сбоку */
        border-top: 2px solid #000000; /* Переносим линию наверх */
    }
    
    body.light-theme .about-company-image {
        border-top-color: #ffffff;
    }
}

/* =======================
   ОБНОВЛЕНИЕ СЕКЦИИ "ПОМОЩЬ" (ФОНОВОЕ ИЗОБРАЖЕНИЕ)
   ======================== */

.help-section {
    position: relative;
    /* Укажите здесь путь к вашей картинке */
    background-image: url('img/help-bg.jpg'); 
    background-size: cover;      /* Растягивает фото на всю ширину */
    background-position: center; /* Центрирует фото */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Эффект параллакса (фото стоит на месте при прокрутке) */
    padding: 100px 0;
    overflow: hidden;
}

/* Затемняющий слой (Оверлей), чтобы текст легко читался */
.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Темный полупрозрачный фон для темной темы */
    background: rgba(7, 9, 11, 0.85); 
    z-index: 1;
}

/* Поднимаем контент над затемнением */
.help-section .container {
    position: relative;
    z-index: 2;
}

/* --- НАСТРОЙКИ ДЛЯ СВЕТЛОЙ ТЕМЫ --- */
body.light-theme .help-section::before {
    /* Светлый полупрозрачный фон для светлой темы */
    background: rgba(255, 255, 255, 0.637); 
}

/* Отключаем параллакс на мобильных для производительности */
@media (max-width: 992px) {
    .help-section {
        background-attachment: scroll;
    }
}

/* ============================================== */
/* === ИЗМЕНЕНИЯ: ФОН ПРЕИМУЩЕСТВ И ФУТЕР === */
/* ============================================== */

/* 1. ОСВЕТЛЕНИЕ ФОНА СЕКЦИИ "НАШИ ПРИНЦИПЫ" (Только светлая тема) */
body.light-theme .advantages::before {
    /* Делаем белый оверлей почти непрозрачным (90%), 
       чтобы картинка была едва видна, а текст читался идеально */
    background: rgba(255, 255, 255, 0.507) !important;
}

/* 2. НОВЫЙ ДИЗАЙН ФУТЕРА (Под цвет хедера) */

/* --- Общие сбросы для старого декора --- */

/* --- ВАРИАНТ ДЛЯ СВЕТЛОЙ ТЕМЫ (Синий фон, белый текст) --- */
body.light-theme .footer {
    border-top: none !important;
}

/* Красим ВЕСЬ текст и заголовки в белый */
body.light-theme .footer h3,
body.light-theme .footer p,
body.light-theme .footer-links a,
body.light-theme .footer-contact p,
body.light-theme .footer-contact i, /* Иконки */
body.light-theme .footer-hours p,
body.light-theme .footer-hours .day,
body.light-theme .footer-legal a,
body.light-theme .footer-copyright,
body.light-theme .footer-logo-name,
body.light-theme .footer-logo-role,
body.light-theme .footer-description {
    color: #ffffff !important;
}

/* Подчеркивания заголовков делаем белыми */
body.light-theme .footer h3::after {
    background: #ffffff !important;
}

/* Социальные иконки в футере (белые рамки) */
body.light-theme .footer-social {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

body.light-theme .footer-social:hover {
    background: #ffffff !important;
    color: #00a8ff !important; /* При наведении иконка синяя */
}

/* Ссылки при наведении */
body.light-theme .footer-links a:hover,
body.light-theme .footer-legal a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    transform: translateX(5px);
}

/* Линии разделители внутри футера */
body.light-theme .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* --- ВАРИАНТ ДЛЯ ТЕМНОЙ ТЕМЫ (Бежевый фон, темный текст) --- */
body:not(.light-theme) .footer {
    border-top: none !important;
}

/* Красим ВЕСЬ текст в темный (для контраста с бежевым) */
body:not(.light-theme) .footer h3,
body:not(.light-theme) .footer p,
body:not(.light-theme) .footer-links a,
body:not(.light-theme) .footer-contact p,
body:not(.light-theme) .footer-contact i,
body:not(.light-theme) .footer-hours p,
body:not(.light-theme) .footer-hours .day,
body:not(.light-theme) .footer-legal a,
body:not(.light-theme) .footer-copyright,
body:not(.light-theme) .footer-logo-name,
body:not(.light-theme) .footer-logo-role,
body:not(.light-theme) .footer-description {
    color: #07090b !important; /* Темно-серый/черный */
}

/* Подчеркивания заголовков темные */
body:not(.light-theme) .footer h3::after {
    background: #07090b !important;
}

/* Социальные иконки (темные рамки) */
body:not(.light-theme) .footer-social {
    border-color: rgba(7, 9, 11, 0.2) !important;
    background: rgba(7, 9, 11, 0.05) !important;
    color: #07090b !important;
}

body:not(.light-theme) .footer-social:hover {
    background: #07090b !important;
    color: #d4b88a !important; /* При наведении иконка бежевая */
}

/* Ссылки при наведении */
body:not(.light-theme) .footer-links a:hover,
body:not(.light-theme) .footer-legal a:hover {
    color: rgba(7, 9, 11, 0.7) !important;
}

/* Линии разделители */
body:not(.light-theme) .footer-bottom {
    border-top: 1px solid rgba(7, 9, 11, 0.15) !important;
}

.footer {
    /* Удаляем верхний внешний отступ */
    margin-top: 0 !important; 
}

/* ============================================== */
/* === МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ (LIGHTBOX) === */
/* ============================================== */

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000; /* Самый высокий слой */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px;
}

/* Состояние "Открыто" */
.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Затемнение фона */
.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Сильное затемнение */
    backdrop-filter: blur(6px); /* Размытие заднего плана */
    -webkit-backdrop-filter: blur(6px);
}

/* Контейнер контента (Жидкое стекло) */
.gallery-modal-content {
    position: relative;
    z-index: 3001;
    max-width: 90vw;
    width: auto;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Стили стекла для ТЕМНОЙ темы */
    background: rgba(20, 20, 20, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-radius: 0; /* Острые углы под стиль сайта */
    padding: 10px;
    
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-modal.active .gallery-modal-content {
    transform: scale(1);
}

/* Изображение */
.gallery-modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-body img {
    max-width: 100%;
    max-height: 80vh; /* Чтобы фото не уходило за экран */
    object-fit: contain;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Подпись к фото */
.gallery-modal-caption {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Кнопка закрытия */
.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 5px;
}

.gallery-modal-close:hover {
    color: var(--accent-beige);
    transform: rotate(90deg);
}

/* --- АДАПТАЦИЯ ПОД СВЕТЛУЮ ТЕМУ --- */

body.light-theme .gallery-modal-overlay {
    background: rgba(255, 255, 255, 0.2); /* Светлое затемнение */
}

body.light-theme .gallery-modal-content {
    /* Стили стекла для СВЕТЛОЙ темы */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 168, 255, 0.3); /* Голубая рамка */
    box-shadow: 0 25px 50px rgba(0, 168, 255, 0.15);
}

body.light-theme .gallery-modal-caption {
    color: #1e293b; /* Темный текст */
    font-weight: 500;
}

body.light-theme .gallery-modal-close {
    color: #1e293b; 
}

body.light-theme .gallery-modal-close:hover {
    color: #00a8ff; /* Голубой при наведении */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        padding: 5px;
    }
    
    .gallery-modal-close {
        top: -45px;
        right: 5px;
        font-size: 1.8rem;
    }
    
    .gallery-modal-caption {
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* =============================== */
/* UNIVERSAL FOOTER LIQUID GLASS ✅ */
/* =============================== */

footer,
.footer,
.site-footer,
.footer-area {
    position: relative !important;
    overflow: hidden !important;

    /* Фото под стеклом (локальное, 100% загрузится) */
    background-image: url("img/contact-bg.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    background-color: transparent !important;
    border-top: 1px solid rgba(255,255,255,0.18) !important;
}

/* СТЕКЛО */
footer::after,
.footer::after,
.site-footer::after,
.footer-area::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;

    background: linear-gradient(
        135deg, rgba(212, 184, 138, 0.90), rgba(212, 184, 138, 0.70)
    ) !important;

    backdrop-filter: blur(16px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(170%) !important;

    z-index: 1 !important;
    animation: footerGlassFlow 16s ease-in-out infinite alternate;
}

body.light-theme .site-footer::after {
    background: linear-gradient(
        135deg, rgba(51, 190, 255, 0.90), rgba(51, 190, 255, 0.70)
    ) !important;
}

body.light-theme .footer-area::after {
    background: linear-gradient(
        135deg, rgba(51, 190, 255, 0.90), rgba(51, 190, 255, 0.70)
    ) !important;
}

body.light-theme .footer::after {
    background: linear-gradient(
        135deg, rgba(51, 190, 255, 0.90), rgba(51, 190, 255, 0.70)
    ) !important;
}

/* СВЕТОВЫЕ БЛИКИ */
footer::before,
.footer::before,
.site-footer::before,
.footer-area::before {
    content: "" !important;
    position: absolute !important;
    inset: -30% !important;

    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.25), transparent 45%);

    filter: blur(70px) !important;
    opacity: 0.45 !important;
    z-index: 0 !important;

    animation: footerLightMove 22s linear infinite alternate;
}

/* ВСЕ ЭЛЕМЕНТЫ — ПОВЕРХ СТЕКЛА */
footer *,
.footer *,
.site-footer *,
.footer-area * {
    position: relative !important;
    z-index: 2 !important;
}

/* АНИМАЦИИ */
@keyframes footerGlassFlow {
    0% {
        backdrop-filter: blur(12px) saturate(140%);
    }
    100% {
        backdrop-filter: blur(20px) saturate(190%);
    }
}

@keyframes footerLightMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(140px, -100px);
    }
}

/* ======================= */
/* ЦВЕТА ЗАГОЛОВКА (ПРАВО - ТЕМНО-СИНИЙ, ПОРЯДОК - СВЕТЛО-СИНИЙ) */
/* ======================= */

:root {
    /* --- ТЕМНАЯ ТЕМА (По умолчанию) --- */
    /* Для темного фона "темно-синий" должен быть светлее, чтобы читаться, 
       поэтому используем насыщенный стальной/голубой */
    --h1-color-pravo: var(--accent-beige);    /* Спокойный синий (читается на черном) */
    --h1-color-poryadok: var(--accent-beige); /* Яркий неон-голубой */
    --h1-color-separator: var(--text-light);
}

body.light-theme {
    /* --- СВЕТЛАЯ ТЕМА --- */
    /* На белом фоне используем настоящий темно-синий и классический голубой */
    --h1-color-pravo: #034769;    /* Глубокий темно-синий */
    --h1-color-poryadok: #034769; /* Яркий голубой */
    --h1-color-separator: #0088cc; /* Темно-серый/почти черный */
}

.h1-container .h1-base .word-separator {
    color: var(--h1-color-separator);
    transition: color 0.3s ease;
}

/* Применяем цвета к базовому слою */
.h1-container .h1-base .word-dark-blue {
    color: var(--h1-color-pravo);
    transition: color 0.3s ease;
}

.h1-container .h1-base .word-light-blue {
    color: var(--h1-color-poryadok);
    transition: color 0.3s ease;
}

/* ВАЖНО: Слой наложения (.h1-overlap) создает эффект "выреза".
   Обычно он должен быть цвета фона или инвертированным.
   
   ВАРИАНТ 1 (Рекомендуемый): Оставить слой наложения однотонным (цвета фона),
   чтобы сохранить эффект "разреза".
*/
.h1-container .h1-overlap span {
    color: inherit !important; /* Наследует цвет var(--bg-dark) из основных стилей */
}

/* Адаптация для мобильных (чтобы слова не разрывались некрасиво) 
   Добавляем неразрывный пробел между словами, если нужно, или просто стили
*/
@media (max-width: 992px) {
    .h1-container h1 {
        /* Убедимся, что на мобильных цвета тоже применяются корректно */
        opacity: 1;
    }
}

/* =========================
   ФИНАЛЬНАЯ МОЗАИЧНАЯ ГАЛЕРЕЯ
   ========================= */

.gallery {
    padding: 0;
    background: var(--bg-dark);
}

.gallery .container {
    max-width: 100%;
    padding: 0;
}

/* ✅ Основная сетка */
.gallery-slider {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 14vw;
    grid-auto-flow: dense; /* ✅ Полное уплотнение без дыр */
    gap: 6px; /* ✅ Толщина цветных полос */
    padding: 6px;
    background: var(--accent-beige); /* тёмная тема */
    overflow: hidden;
}

/* ✅ Цвет полос для светлой темы */
body.light-theme .gallery-slider {
    background: var(--accent-blue);
}

/* ✅ Базовая карточка */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: none;
    box-shadow: none;
}

/* ✅ Изображения: ЧБ → цвет */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: grayscale(100%);
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* =========================
   УМНЫЙ ПАТТЕРН БЕЗ ПОВТОРОВ
   ========================= */

.gallery-item:nth-child(1)  { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2)  { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(3)  { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(4)  { grid-column: span 6; grid-row: span 1; }
.gallery-item:nth-child(5)  { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(6)  { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(7)  { grid-column: span 4; grid-row: span 1; }
.gallery-item:nth-child(8)  { grid-column: span 6; grid-row: span 3; }
.gallery-item:nth-child(9)  { grid-column: span 6; grid-row: span 2; }

/* ✅ Повтор паттерна без визуальных дублей */
.gallery-item:nth-child(10n + 1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(10n + 2) { grid-column: span 3; grid-row: span 1; }
.gallery-item:nth-child(10n + 3) { grid-column: span 5; grid-row: span 1; }
.gallery-item:nth-child(10n + 4) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(10n + 5) { grid-column: span 6; grid-row: span 1; }

/* =========================
   ВОЗВРАЩАЕМ ПЛАВНОЕ ПОЯВЛЕНИЕ ПОДПИСИ
   ========================= */

.gallery-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 18px;
    text-align: center;

    background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
    color: #fff;

    font-weight: 600;
    font-size: 0.95rem;

    opacity: 0;                   /* ✅ СКРЫТА */
    transform: translateY(12px);  /* ✅ СЪЕЗД ВНИЗ */
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

/* ✅ Появляется ТОЛЬКО при наведении */
.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   АДАПТИВ БЕЗ РАЗВАЛА
   ========================= */

@media (max-width: 992px) {
    .gallery-slider {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 20vw;
    }
}

@media (max-width: 600px) {
    .gallery-slider {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 42vw;
    }

    .gallery-item {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }
}

.gallery-container.fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ============================================== */
/* === КОМПАКТНЫЙ ФУТЕР ДЛЯ ДЕСКТОПА === */
/* ============================================== */

@media (min-width: 993px) {
    /* 1. Уменьшаем общие отступы футера сверху и снизу */
    .footer {
        padding-top: 40px !important;    /* Было 80px */
        padding-bottom: 20px !important; /* Было 40px */
    }

    /* 2. Уменьшаем расстояние между логотипом и соц. иконками */
    .footer-brand {
        gap: 10px !important; /* Уменьшаем расстояние между элементами внутри бренда */
    }

    .footer-logo {
        margin-bottom: 0 !important; /* Убираем отступ под логотипом */
    }

    .footer-socials {
        margin-top: 10px !important; /* Было 20px - подтягиваем иконки ближе к лого */
    }

    /* 3. Уменьшаем отступ между колонками меню и нижней линией (Legal/Copy) */
    .footer-content {
        margin-bottom: 30px !important; /* Было 60px - сильно подтягиваем низ */
    }

    /* 4. Уменьшаем отступ самой нижней линии от разделительной черты */
    .footer-bottom {
        padding-top: 15px !important; /* Было 30px */
    }
    
    /* Опционально: немного уменьшим отступы у заголовков колонок, чтобы сэкономить высоту */
    .footer-links h3,
    .footer-contact h3,
    .footer-hours h3 {
        margin-bottom: 15px !important; /* Было 25px */
    }

    /* 1. Уменьшаем общие отступы секции сверху и снизу */
    .about-company {
        padding: 60px 0 !important; /* Было 100px */
    }

    /* 2. Подтягиваем подзаголовок (слоган) к заголовку */
    .tagline {
        margin-bottom: 20px !important; /* Было 30px */
    }

    /* 3. Уменьшаем отступы после каждого абзаца текста */
    .about-company p {
        margin-bottom: 15px !important; /* Было 25px */
        line-height: 1.6 !important;    /* Чуть уменьшаем межстрочный интервал (было 1.7) */
    }

    /* 4. Сильно сжимаем блок со статистикой (цифрами) */
    .company-stats {
        margin: 25px 0 !important;   /* Было 40px - внешний отступ */
        padding: 20px 0 !important;  /* Было 30px - внутренний отступ */
    }
    
    /* 5. Убираем лишний отступ перед кнопкой */
    .about-company .btn-secondary {
        margin-top: 5px !important;  /* Было 10px + отступ параграфа */
    }

    html {
        /* Использование rem, зависящих от ширины экрана */
        font-size: clamp(14px, 0.9vw, 16px);
    }

    .btn-secondary, .hero-btn {
        /* Кнопка становится ниже, но сохраняет кликабельность */
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }

    /* Уменьшаем межстрочный интервал, чтобы текст занимал меньше места */
    p {
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
}



/* Специальная правка под монитор клиента (~1520x905) */
@media screen and (max-width: 1600px) and (min-width: 1200px) {
    
    /* 1. Уменьшаем отступы в секции, чтобы поднять контент выше */
    .hero {
        padding-top: 40px !important;
        padding-bottom: 20px !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: hidden;
    }

    /* 2. Делаем заголовок чуть компактнее, чтобы он не занимал много строк */
    .hero-content h1 {
        font-size: 3.2rem !important; /* Было крупнее */
        line-height: 1.1 !important;
        margin-bottom: 15px !important;
        margin-right: 2000px;
    }

    .hero-content p {
        font-size: 1.1rem !important;
        max-width: 500px !important; /* Ограничиваем ширину текста, чтобы он не лез на фото */
    }

    /* 3. КОРРЕКЦИЯ ФОТО (Самое важное) */
    /* Убираем жесткие отступы, которые на фото клиента выталкивают текст */
    .hero-image-center {
        margin-top: 130px !important; /* Уменьшили с 130px */
        margin-left: -60px !important; /* Уменьшили смещение влево */
        max-width: 110% !important; /* Чуть уменьшаем масштаб самой картинки */
        width: 1150px !important;
        height: 800px !important;
        margin-left: -200px !important;
    }

    /* 4. Кнопка и контейнер */
    .hero-content {
        gap: 20px !important;
    }

    .hero-text-content .hero-subtitle {
        margin-right: -170px;
    }

    .hero .btn.btn-primary {
        margin-left: 950px;
    }

    .hero-quote-wrapper {
        margin-left: 930px;
    }
    
    .hero-quote {
        /* --- ВЫБЕРИ ОДИН ИЗ ШРИФТОВ НИЖЕ --- */
        /*font-family: 'Cormorant Garamond', serif; /* Вариант 1: Элегантный */
        /*font-family: 'Prata', serif;        /* Вариант 2: Строгий */
        /*font-family: 'Philosopher', sans-serif;*/ /* Вариант 3: Плавный */
        
        font-style: italic;
        font-weight: 550;
        font-size: 2.9rem;         /* Значительно увеличили размер (было 2.5rem) */
        line-height: 1.1;          /* Плотный межстрочный интервал для крупного текста */
        color: var(--accent-beige);
        
        position: relative;
        display: inline-block;     /* Чтобы кавычка позиционировалась относительно текста */
    }

    /* Если блобы (световые пятна) мешают обзору, приглушаем их */
    .liquid-glass-blob {
        opacity: 0.4;
        transform: scale(0.8);
    }
}