:root {
    --primary: #c48434;
    --primary-light: #f0d5b5;
    --secondary: #9ee4ec;
    --dark: #703f13;
    --accent: #5ca786;
    --light-accent: #a0cdbc;
    --neutral: #4e452a;
    --bg-dark: #0f0f15;
    --bg-light: #1a1a24;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, rgba(196, 132, 52, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(158, 228, 236, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

/* Геометрические фоновые элементы */
.geometry-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.03;
    animation: floatGeo 25s infinite linear;
}

.geo-shape.triangle {
    width: 100px;
    height: 100px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.geo-shape.circle {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    border-radius: 50%;
}

.geo-shape.square {
    width: 120px;
    height: 120px;
    background: var(--accent);
    transform: rotate(45deg);
}

@keyframes floatGeo {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }

    50% {
        transform: translate(0, 100px) rotate(180deg);
    }

    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Стеклянное фиксированное меню */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 21, 0.85);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.glass-nav.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(196, 132, 52, 0.2);
}

.logo-glass {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-icon-glass {
    font-size: 2.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(196, 132, 52, 0.4));
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(196, 132, 52, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(196, 132, 52, 0.6));
    }
}

.logo-text-glass {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.nav-item-glass {
    position: relative;
    margin: 0 0.5rem;
}

.nav-link-glass {
    color: rgba(240, 240, 240, 0.8);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.nav-link-glass::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link-glass:hover {
    color: var(--primary);
    background: rgba(196, 132, 52, 0.1);
}

.nav-link-glass:hover::before {
    transform: scaleX(1);
}

.btn-glass {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 20px rgba(196, 132, 52, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-glass:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 30px rgba(196, 132, 52, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-glass:hover::before {
    left: 100%;
}

.btn-glass-secondary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--light-accent) 100%);
    box-shadow:
        0 10px 20px rgba(92, 167, 134, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Объемный герой-раздел с геометрией */
.hero-geometric {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero-geometric::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(196, 132, 52, 0.1) 0%, transparent 50%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.hero-content-glass {
    position: relative;
    z-index: 2;
}

.hero-title-glass {
    font-family: 'Poppins', sans-serif;
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: slideUpFade 1s ease-out 0.3s forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle-glass {
    font-size: 1.3rem;
    color: var(--light-accent);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0;
    animation: slideUpFade 1s ease-out 0.6s forwards;
}

.hero-image-geometric {
    position: relative;
    perspective: 1000px;
}

.hero-image-geometric img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    transform-style: preserve-3d;
    animation: floatRotate 8s ease-in-out infinite;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(196, 132, 52, 0.2);
    border: 2px solid rgba(196, 132, 52, 0.2);
}

@keyframes floatRotate {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    25% {
        transform: translateY(-15px) rotateY(5deg);
    }

    75% {
        transform: translateY(-15px) rotateY(-5deg);
    }
}

/* Секции с геометрическим фоном */
.section-glass {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.section-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-title-glass {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title-glass.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Объемные стеклянные карточки */
.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.card-glass.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(196, 132, 52, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.card-glass:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 15px 30px rgba(196, 132, 52, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(196, 132, 52, 0.3);
}

.card-glass:hover::before {
    left: 100%;
}

.card-icon-glass {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(196, 132, 52, 0.3);
    position: relative;
    z-index: 1;
}

.card-icon-glass.secondary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--light-accent) 100%);
}

/* Геометрические переключатели цен */
.price-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.price-option {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.price-option.active {
    background: rgba(196, 132, 52, 0.2);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(196, 132, 52, 0.2);
}

/* Анимированные статистики */
.stats-geometric {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.stat-geometric {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-geometric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(196, 132, 52, 0.3);
    border-radius: 20px;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.stat-geometric:hover::before {
    transform: rotate(135deg);
    border-color: var(--accent);
}

.stat-number-geometric {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* Геометрическая форма */
.contact-form-geometric {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-geometric::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(158, 228, 236, 0.1) 0%, transparent 70%);
}

.form-input-glass {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input-glass:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 132, 52, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Геометрический футер */
.footer-geometric {
    background: linear-gradient(135deg, var(--neutral) 0%, var(--dark) 100%);
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer-geometric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
}

.footer-content-geometric {
    position: relative;
    z-index: 2;
}

/* Анимация появления элементов */
.appear-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.appear-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title-glass {
        font-size: 2.5rem;
    }

    .section-glass {
        padding: 4rem 1rem;
    }

    .section-title-glass {
        font-size: 2rem;
    }

    .card-glass {
        padding: 2rem;
    }

    .nav-links-glass {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 21, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .nav-links-glass.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link-glass {
        display: block;
        text-align: center;
        padding: 1rem;
    }
}

/* Особые эффекты для важных элементов */
.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.3;
    z-index: -1;
    transform: skew(-15deg);
}

/* Эффект печатающего текста */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary)
    }
}

/* Волновой разделитель */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
    transform: rotateY(180deg);
}

.wave-divider .shape-fill {
    fill: var(--bg-dark);
}

/* Градиентный заголовок 1.5rem */
.hero-title-white {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.3px !important;
    position: relative;
    z-index: 10;

    /* Градиент для текста */
    background: linear-gradient(90deg, #ffffff, #c48434, #9ee4ec, #ffffff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-size: 200% auto !important;

    /* Тени для лучшей читаемости */
    text-shadow:
        0 1px 5px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(0, 0, 0, 0.3) !important;

    /* Анимация градиента */
    animation: gradient-shift 4s ease-in-out infinite alternate;
}

/* Анимация движения градиента */
@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

/* Акцентные слова в заголовке с другим градиентом */
.hero-title-white .highlight {
    background: linear-gradient(90deg, #c48434, #9ee4ec) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    position: relative;
    font-weight: 900;
}

/* Подчеркивание для акцентных слов */
.hero-title-white .highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c48434, #9ee4ec);
    border-radius: 1px;
    opacity: 0.8;
    animation: underline-pulse 2s ease-in-out infinite;
}

@keyframes underline-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleX(1.1);
    }
}

/* Анимация typewriter для градиентного текста */
.hero-title-white.typewriter {
    overflow: hidden;
    border-right: 2px solid #c48434;
    white-space: nowrap;
    animation:
        typing 3s steps(30, end),
        blink-caret 0.75s step-end infinite,
        gradient-shift 4s ease-in-out infinite alternate;
    animation-fill-mode: forwards;
}

/* Градиентная тень для глубины */
.hero-title-white::before {
    content: attr(data-text);
    position: absolute;
    top: 1px;
    left: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    z-index: -1;
    filter: blur(1px);
}

/* Фоновое свечение */
.hero-title-white::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: radial-gradient(circle at center,
            rgba(196, 132, 52, 0.15) 0%,
            rgba(158, 228, 236, 0.1) 30%,
            transparent 70%);
    z-index: -2;
    opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title-white {
        font-size: 1.3rem !important;
        line-height: 1.4 !important;
        animation:
            typing 2.5s steps(30, end),
            blink-caret 0.75s step-end infinite;
    }
}

@media (max-width: 480px) {
    .hero-title-white {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
        white-space: normal;
        animation: none;
    }

    .hero-title-white.typewriter {
        white-space: normal;
        animation: gradient-shift 4s ease-in-out infinite alternate;
        border-right: none;
    }
}

/* Запасной вариант если градиент не работает в браузере */
.no-gradient .hero-title-white {
    color: #c48434 !important;
    background: none !important;
    -webkit-text-fill-color: #c48434 !important;
    text-shadow:
        0 0 15px rgba(196, 132, 52, 0.4),
        0 1px 5px rgba(0, 0, 0, 0.4) !important;
}

.no-gradient .hero-title-white .highlight {
    color: #9ee4ec !important;
    background: none !important;
    -webkit-text-fill-color: #9ee4ec !important;
}

/* Для эффекта свечения */
.hero-title-white.glow {
    animation:
        gradient-shift 4s ease-in-out infinite alternate,
        text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.2);
    }
}

/* Адаптивность верхнего меню */
@media (max-width: 1200px) {
    .btn-glass.call-btn {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }
}

/* Мобильное меню - исправляем существующий код */
@media (max-width: 768px) {
    .nav-links-glass {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 21, 0.98);
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border-bottom: 1px solid rgba(196, 132, 52, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links-glass.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item-glass {
        width: 100%;
        margin: 0;
    }

    .nav-link-glass {
        display: block;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.2rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-link-glass:hover {
        background: rgba(196, 132, 52, 0.15);
        border-color: rgba(196, 132, 52, 0.3);
        transform: translateY(-2px);
    }

    .nav-link-glass::before {
        display: none;
    }

    #mobileMenuBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: rgba(196, 132, 52, 0.1);
        border-radius: 12px;
        border: 1px solid rgba(196, 132, 52, 0.2);
        transition: all 0.3s ease;
        z-index: 1000;
        position: relative;
    }

    #mobileMenuBtn:hover {
        background: rgba(196, 132, 52, 0.2);
        transform: scale(1.05);
    }

    #mobileMenuBtn.active {
        background: rgba(196, 132, 52, 0.25);
    }

    #mobileMenuBtn i {
        transition: transform 0.3s ease;
    }

    #mobileMenuBtn.active i {
        transform: rotate(90deg);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .nav-links-glass {
        padding: 1.5rem 1rem;
        top: 70px;
    }

    .glass-nav {
        padding: 0.8rem 0;
    }

    .glass-nav.scrolled {
        padding: 0.5rem 0;
    }

    .logo-text-glass {
        font-size: 1.3rem;
    }

    .nav-link-glass {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Планшетный режим между 769px и 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links-glass {
        gap: 0.3rem;
    }

    .nav-link-glass {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .logo-text-glass {
        font-size: 1.4rem;
    }

    .btn-glass {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Эффект закрытия при клике вне меню */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
}

@media (max-width: 768px) {
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Плавная анимация появления пунктов меню */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links-glass.active .nav-item-glass {
    animation: slideDown 0.3s ease forwards;
}

.nav-links-glass.active .nav-item-glass:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-links-glass.active .nav-item-glass:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-links-glass.active .nav-item-glass:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-links-glass.active .nav-item-glass:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-links-glass.active .nav-item-glass:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-links-glass.active .nav-item-glass:nth-child(6) {
    animation-delay: 0.6s;
}

/* Прокрутка в мобильном меню */
.nav-links-glass::-webkit-scrollbar {
    width: 6px;
}

.nav-links-glass::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.nav-links-glass::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

@media (max-width: 1540px) {
    .btn-glass.call-btn {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }
}

/* Адаптивное уменьшение логотипа */
@media (max-width: 1540px) {
    .logo-text-glass {
        font-size: 1.6rem;
    }
}

@media (max-width: 1400px) {
    .logo-text-glass {
        font-size: 1.4rem;
    }
}

@media (max-width: 1282px) {
    .logo-text-glass {
        font-size: 1.3rem;
        letter-spacing: 0.8px;
    }

    .logo-icon-glass {
        font-size: 1.9rem;
    }
}

@media (max-width: 1200px) {
    .logo-text-glass {
        font-size: 1.2rem;
    }
}

@media (max-width: 1540px) {
    .btn-glass.call-btn {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    .nav-link-glass {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}

/* Активация мобильного меню при разрешении менее 1024px */
@media (max-width: 1024px) {

    /* Скрываем обычное меню */
    .nav-links-glass {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 21, 0.98);
        backdrop-filter: blur(25px) saturate(200%);
        -webkit-backdrop-filter: blur(25px) saturate(200%);
        border-bottom: 1px solid rgba(196, 132, 52, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Показываем кнопку бургер-меню */
    #mobileMenuBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background: rgba(196, 132, 52, 0.1);
        border-radius: 12px;
        border: 1px solid rgba(196, 132, 52, 0.2);
        transition: all 0.3s ease;
        z-index: 1000;
        position: relative;
    }

    /* Скрываем кнопку "Заказать звонок" */
    .btn-glass.call-btn {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    /* Уменьшаем логотип для экономии места */
    .logo-text-glass {
        font-size: 1.3rem;
    }

    .logo-icon-glass {
        font-size: 1.8rem;
    }

    .logo-glass {
        gap: 0.7rem;
    }

    /* Стили для активного мобильного меню */
    .nav-links-glass.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-item-glass {
        width: 100%;
        margin: 0;
    }

    .nav-link-glass {
        display: block;
        text-align: center;
        padding: 1.2rem;
        font-size: 1.1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-link-glass:hover {
        background: rgba(196, 132, 52, 0.15);
        border-color: rgba(196, 132, 52, 0.3);
        transform: translateY(-2px);
    }

    .nav-link-glass::before {
        display: none;
    }

    /* Анимация кнопки бургера */
    #mobileMenuBtn i {
        transition: transform 0.3s ease;
    }

    #mobileMenuBtn.active i {
        transform: rotate(90deg);
    }

    /* Создаем оверлей для меню */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    /* Анимация пунктов меню */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links-glass.active .nav-item-glass {
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links-glass.active .nav-item-glass:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links-glass.active .nav-item-glass:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links-glass.active .nav-item-glass:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links-glass.active .nav-item-glass:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links-glass.active .nav-item-glass:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links-glass.active .nav-item-glass:nth-child(6) {
        animation-delay: 0.6s;
    }

    /* Прокрутка в меню */
    .nav-links-glass::-webkit-scrollbar {
        width: 6px;
    }

    .nav-links-glass::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .nav-links-glass::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }
}

/* Для планшетов 769px-1024px - улучшаем отображение */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links-glass {
        padding: 1.5rem;
    }

    .nav-link-glass {
        padding: 1rem;
        font-size: 1rem;
    }

    .logo-text-glass {
        font-size: 1.4rem;
    }
}

/* Для очень узких экранов менее 768px */
@media (max-width: 768px) {
    .nav-links-glass {
        top: 70px;
        padding: 1.5rem 1rem;
    }

    .glass-nav {
        padding: 0.8rem 0;
    }

    .glass-nav.scrolled {
        padding: 0.5rem 0;
    }

    .logo-text-glass {
        font-size: 1.2rem;
    }

    .nav-link-glass {
        padding: 1rem;
        font-size: 1.1rem;
    }

    .mobile-menu-overlay {
        top: 70px;
    }
}

/* Обновление существующего медиа-запроса для 768px */
@media (max-width: 768px) {

    /* Убедимся, что он не конфликтует с новым */
    .nav-links-glass {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 21, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
    }

    .nav-links-glass.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link-glass {
        display: block;
        text-align: center;
        padding: 1rem;
    }
}

/* Стили для блока security  */
/* Анимации для плавного появления */
.appear-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.appear-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект параллакса для карточек */
.card-glass {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.card-glass:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Анимация для иконок */
.card-icon-glass {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-glass:hover .card-icon-glass {
    transform: scale(1.2) rotate(5deg);
}

@media (min-width: 1400px) and (max-width: 1550px) {
    .hero-title-white {
        font-size: 1.3rem !important;
    }
}

@media (min-width: 1280px) and (max-width: 1400px) {
    .hero-title-white {
        font-size: 1.22rem !important;
    }
}

@media (max-width: 1280px) {
    h1.hero-title-white.typewriter {
        font-size: 1.3rem !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .typewriter {
        animation: none !important;
        border-right: none !important;
    }
}