/* ============================================
   ROOT COLORS
============================================ */
:root {
    --blue-primary: #1481BA;
    --blue-secondary: #33A7DD;
    --blue-light: #dbe9f0;
    --blue-bg: #d2e0e7;
    --blue-gradient: linear-gradient(135deg, #1481BA, #33A7DD);
    --blue-dark: #0D5F8A;
    --text-dark: #1A2332;
    --text-gray: #64748B;
    --white: #FFFFFF;
    --shadow: rgba(20, 129, 186, 0.15);
}

/* ============================================
   RESET & BASE
============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(133, 199, 95, 0.01);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top, 0px);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(133, 199, 95, 0.01); }
::-webkit-scrollbar-thumb { background: var(--blue-primary); border-radius: 15px; }

/* ============================================
   TYPOGRAPHY
============================================ */
.blue-primary { color: var(--blue-primary); }
.blue-secondary { color: var(--blue-secondary); }

.blue-gradient-text {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.serif { font-family: 'Playfair Display', serif; }

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.section-title .blue-primary { font-weight: 600; }

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

.ornament {
    text-align: center;
    font-size: 0.5rem;
    color: var(--blue-primary);
    letter-spacing: 8px;
    margin-bottom: 12px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
}

/* ============================================
   ИНЛАЙН-ИКОНКИ
============================================ */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}
.icon-bars { display: inline-block; transition: 0.3s; }
.icon-times { display: none; transition: 0.3s; }
.mobile-menu-btn.active .icon-bars { display: none; }
.mobile-menu-btn.active .icon-times { display: inline-block; }

/* ============================================
   CANVAS ДЛЯ ПУЗЫРЬКОВ ПО КЛИКУ
============================================ */
#clickBubblesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 16px 44px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 4px;
    text-align: center;
}

.btn-primary {
    background: var(--blue-gradient);
    color: var(--white);
    box-shadow: 0 4px 30px rgba(20, 129, 186, 0.25);
    border: 2px solid transparent;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 50px rgba(20, 129, 186, 0.35);
    border-color: var(--blue-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    border-color: var(--white);
}

.btn-service {
    background: transparent;
    color: var(--blue-primary);
    border: 1px solid rgba(20, 129, 186, 0.15);
    padding: 12px 32px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-top: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.btn-service:hover {
    background: rgba(20, 129, 186, 0.04);
    border-color: var(--blue-primary);
    border-width: 2px;
}

@media (max-width: 768px) {
    .btn { padding: 14px 32px; font-size: 0.75rem; letter-spacing: 2px; }
    .btn-service { padding: 10px 24px; font-size: 0.65rem; }
}
@media (max-width: 480px) {
    .btn { padding: 12px 24px; font-size: 0.7rem; letter-spacing: 1.5px; }
}


/* ============================================
   CONTACTS SECTION (отдельная секция с волной сверху)
============================================ */
.contacts-section {
    padding: 80px 0 100px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contacts-section .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .contacts-section { padding: 60px 0 80px; }
}
@media (max-width: 480px) {
    .contacts-section { padding: 48px 0 64px; }
}

/* ===== CONTACTS BLOCK ===== */
.contacts-block {
    margin-top: 0;
    padding: 44px 32px 52px;
    text-align: center;
    background: linear-gradient(180deg, #f0f8fd 0%, #dfeef7 100%);
    border: 1px solid rgba(20, 129, 186, 0.10);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(20, 129, 186, 0.10);
    position: relative;
    overflow: hidden;
}

/* мягкая декоративная «волна» на фоне блока */
.contacts-block::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 60px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,55 L1440,80 L0,80 Z' fill='%230a84ff' opacity='0.08'/></svg>") no-repeat bottom / 100% 100%;
    pointer-events: none;
}

.contacts-block-title {
    margin: 0 0 28px;
    font-size: 1.7rem;
    font-weight: 600;
    color: #1a1a2e;
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.contacts-block-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* ===== КНОПКИ (телефон + email) ===== */
.contacts-block-inner .phone-link,
.contacts-block-inner .email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-primary, #1481BA) 0%, #4da3ff 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    position: relative;
    overflow: hidden;
}

/* «мокрый» блик при наведении */
.contacts-block-inner .phone-link::after,
.contacts-block-inner .email-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    pointer-events: none;
}

.contacts-block-inner .phone-link:hover,
.contacts-block-inner .email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 132, 255, 0.38);
    filter: brightness(1.05);
}
.contacts-block-inner .phone-link:hover::after,
.contacts-block-inner .email-link:hover::after {
    transform: translateX(120%);
}

/* телефон — крупнее и жирнее */
.contacts-block-inner .phone-link {
    font-size: 1.15rem;
    font-weight: 700;
}

/* email — «вторичная» кнопка (обводка) */
.contacts-block-inner .email-link {
    background: #fff;
    color: var(--blue-primary, #1481BA);
    border: 2px solid var(--blue-primary, #1481BA);
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.12);
}
.contacts-block-inner .email-link:hover {
    background: var(--blue-primary, #1481BA);
    color: #fff;
    box-shadow: 0 12px 28px rgba(10, 132, 255, 0.3);
}

/* ===== Соцкнопки-кружки ===== */
.contacts-block-inner .social-icons {
    display: inline-flex;
    gap: 12px;
}

.contacts-block-inner .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid rgba(10, 132, 255, 0.25);
    box-shadow: 0 4px 14px rgba(10, 132, 255, 0.1);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.contacts-block-inner .social-icons img {
    width: 22px;
    height: 22px;
    display: block;
}

.contacts-block-inner .social-icons a:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--blue-primary, #1481BA);
    background: linear-gradient(135deg, var(--blue-primary, #1481BA) 0%, #4da3ff 100%);
    box-shadow: 0 10px 24px rgba(10, 132, 255, 0.32);
}
.contacts-block-inner .social-icons a:hover img {
    filter: none;
}

/* ===== ДЕТАЛИ: компания + адрес ===== */
.contacts-block-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px dashed rgba(20, 129, 186, 0.25);
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.contacts-block-detail {
    padding: 0;
}

.contacts-block-detail-label {
    font-size: 10px;
    color: var(--blue-primary, #1481BA);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contacts-block-detail-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 12px;
    background: linear-gradient(180deg, #1481BA, #33A7DD);
    border-radius: 2px;
}

.contacts-block-detail-value {
    font-size: 14px;
    color: var(--text-dark, #1A2332);
    line-height: 1.55;
    font-weight: 500;
}

/* ===== Мобилка ===== */
@media (max-width: 768px) {
    .contacts-block {
        padding: 36px 22px 44px;
        border-radius: 20px;
    }
    .contacts-block-title { font-size: 1.45rem; margin-bottom: 24px; }
    .contacts-block-details {
        margin-top: 24px;
        padding-top: 24px;
        gap: 18px;
        text-align: center;
    }
    .contacts-block-detail-label {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .contacts-block {
        padding: 32px 18px 40px;
    }
    .contacts-block-title { font-size: 1.3rem; }
    .contacts-block-inner { flex-direction: column; gap: 12px; }
    .contacts-block-inner .phone-link,
    .contacts-block-inner .email-link {
        width: 100%;
        justify-content: center;
        padding: 14px 22px;
    }
    .contacts-block-inner .phone-link { font-size: 1.05rem; }
    .contacts-block-details {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 22px;
        padding-top: 22px;
    }
    .contacts-block-detail-value { font-size: 13px; }
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.4s ease;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(20, 129, 186, 0.04);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header .logo-img { filter: brightness(0) invert(1); transition: 0.4s; }
.header.scrolled .logo-img { filter: none; }

.header .logo-text { color: rgba(255, 255, 255, 0.8); transition: 0.4s; }
.header.scrolled .logo-text { color: var(--text-gray); }

.header .nav a { color: rgba(255, 255, 255, 0.7); transition: 0.4s; }
.header.scrolled .nav a { color: var(--text-gray); }
.header .nav a:hover { color: var(--white); }
.header.scrolled .nav a:hover { color: var(--blue-primary); }

.header .phone-link { color: rgba(255, 255, 255, 0.9); transition: 0.4s; }
.header.scrolled .phone-link { color: var(--blue-primary); }
.header .phone-link:hover { color: var(--white); }
.header.scrolled .phone-link:hover { color: var(--blue-secondary); }

.header .social-icons a { opacity: 0.5; }
.header .social-icons a:hover { opacity: 0.8; }
.header .social-icons img { transition: 0.4s; }
.header.scrolled .social-icons img { filter: none; }

.header .mobile-menu-btn { color: var(--white); }
.header.scrolled .mobile-menu-btn { color: var(--text-dark); }
.header .mobile-menu-btn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.1); }
.header.scrolled .mobile-menu-btn:hover { color: var(--blue-primary); border-color: rgba(20, 129, 186, 0.1); }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-img { height: 38px; }
.logo-text {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 1px;
    max-width: 200px;
    line-height: 1.3;
}

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
    position: relative;
    padding: 4px 0;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-gradient);
    transition: 0.3s;
}
.nav a:hover::after { width: 100%; }

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.phone-link {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: 0.3s;
}

.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icons a {
    transition: 0.3s;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 4px;
}
.social-icons a:hover { border-color: rgba(255, 255, 255, 0.1); }
.header.scrolled .social-icons a:hover { border-color: rgba(20, 129, 186, 0.1); }
.social-icons img { height: 18px; width: 18px; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid transparent;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 10px;
    transition: 0.3s;
    z-index: 1001;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .header { padding: 16px 0; }
    .header.scrolled { padding: 12px 0; }
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
}
@media (max-width: 768px) {
    .header-contacts { display: none; }
}
@media (max-width: 480px) {
    .logo-text { display: none; }
}

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    max-width: 85%;
    height: 100%;
    background: var(--white);
    z-index: 999;
    padding: 60px 24px 30px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.04);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 3px solid var(--blue-primary);
}
.mobile-menu-panel.active { right: 0; }

.mobile-menu-panel .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: 2px solid transparent;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px 8px;
    transition: 0.3s;
    border-radius: 8px;
}
.mobile-menu-panel .close-btn:hover {
    color: var(--blue-primary);
    transform: rotate(90deg);
    border-color: rgba(20, 129, 186, 0.1);
}

.mobile-menu-panel .mobile-logo {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(20, 129, 186, 0.04);
}
.mobile-menu-panel .mobile-logo img { height: 28px; }
.mobile-menu-panel .mobile-logo .logo-text {
    font-size: 0.6rem;
    color: var(--text-gray);
    margin-top: 3px;
    line-height: 1.3;
}

.mobile-menu-panel .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.mobile-menu-panel .mobile-nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.mobile-menu-panel .mobile-nav a:hover,
.mobile-menu-panel .mobile-nav a.active {
    background: var(--blue-bg);
    border-color: var(--blue-primary);
    color: var(--blue-primary);
    font-weight: 600;
}

.mobile-menu-panel .mobile-contacts {
    padding-top: 14px;
    border-top: 1px solid rgba(20, 129, 186, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-menu-panel .mobile-contacts .phone-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-primary);
    padding: 4px 0;
    display: inline-block;
}
.mobile-menu-panel .mobile-contacts .phone-link:hover { color: var(--blue-secondary); }
.mobile-menu-panel .mobile-contacts .social-icons { gap: 10px; }
.mobile-menu-panel .mobile-contacts .social-icons a {
    opacity: 0.3;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 4px;
    transition: 0.3s;
}
.mobile-menu-panel .mobile-contacts .social-icons a:hover {
    opacity: 0.8;
    border-color: rgba(20, 129, 186, 0.1);
}
.mobile-menu-panel .mobile-contacts .social-icons img { height: 18px; width: 18px; }

@media (max-width: 480px) {
    .mobile-menu-panel {
        padding: 56px 18px 24px;
        width: 300px;
    }
    .mobile-menu-panel .mobile-logo img { height: 24px; }
    .mobile-menu-panel .mobile-logo .logo-text { font-size: 0.55rem; }
    .mobile-menu-panel .mobile-nav a {
        font-size: 0.75rem;
        padding: 9px 12px;
        letter-spacing: 0.8px;
    }
    .mobile-menu-panel .mobile-contacts .phone-link { font-size: 0.85rem; }
    .mobile-menu-panel .mobile-contacts .social-icons img { height: 16px; width: 16px; }
}

/* ============================================
   HERO
============================================ */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(15, 23, 42, 0.73), rgba(15, 23, 42, 0.73)), var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

#bubbles-canvas,
#sparkles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content { max-width: 800px; margin: 0 auto; }

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.2rem;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: #ffffff;
}
.hero-content h1 .blue-gradient-text { font-weight: 600; }

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
    pointer-events: none;
}
.hero-wave-bottom svg { width: 100%; height: 100%; display: block; }
.hero-wave-bottom .wave-fill { fill: var(--white); }

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.2rem; }
    .hero-wave-bottom { height: 60px; }
}
@media (max-width: 768px) {
    .hero { padding: 140px 0 60px; min-height: auto; }
    .hero-content h1 { font-size: 2.6rem; }
    .hero-content p { font-size: 0.95rem; }
    .hero-wave-bottom { height: 50px; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .hero-wave-bottom { height: 40px; }
}

/* ============================================
   ПОПАП УСПЕШНОЙ ОТПРАВКИ (form-popup)
============================================ */
.form-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.form-popup-overlay.show { opacity: 1; visibility: visible; }

.form-popup {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(20, 129, 186, 0.20);
    border: 1px solid rgba(20, 129, 186, 0.08);
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
}
.form-popup-overlay.show .form-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.form-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(20, 129, 186, 0.06);
    border: none;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.form-popup-close:hover {
    background: rgba(20, 129, 186, 0.14);
    color: #1481BA;
    transform: rotate(90deg);
}

.form-popup-icon {
    margin: 0 auto 18px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupIconIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.form-popup-icon svg { display: block; }
.form-popup-icon svg path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: popupCheck 0.55s ease-out 0.45s forwards;
}

@keyframes popupIconIn {
    0%   { transform: scale(0);   opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
@keyframes popupCheck {
    0%   { stroke-dashoffset: 40; }
    100% { stroke-dashoffset: 0;  }
}

.form-popup-title {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-weight: 600;
    color: #1A2332;
    margin-bottom: 8px;
    letter-spacing: -0.4px;
}
.form-popup-text {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}
.form-popup-btn {
    display: inline-block;
    padding: 14px 44px;
    background: linear-gradient(135deg, #1481BA, #33A7DD);
    color: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(20, 129, 186, 0.25);
    transition: all 0.3s ease;
}
.form-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(20, 129, 186, 0.35);
    border-color: #33A7DD;
}

@media (max-width: 480px) {
    .form-popup { padding: 32px 24px 24px; border-radius: 16px; }
    .form-popup-icon { width: 64px; height: 64px; }
    .form-popup-title { font-size: 24px; }
    .form-popup-text { font-size: 14px; }
    .form-popup-btn { width: 100%; padding: 14px 20px; }
}

/* ============================================
   SERVICES
============================================ */
.services {
    padding: 80px 0 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    clip-path: polygon(0% 80px, 100% 80px, 100% 100%, 0% 100%);
}

.services-bg,
.callback-section-bg,
.contacts-section-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: var(--bg-fiber, url('/assets/images/bg_fiber.png'));
    background-size: 600px auto;      /* ← фиксированная ширина, высота пропорциональна */
    background-position: center top;
    background-repeat: repeat;         /* ← повтор по X и Y — текстура везде одинаковая */
    background-attachment: fixed;      /* ← ключевой момент: прибит к вьюпорту */
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.services .container { position: relative; z-index: 1; padding-top: 20px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}
.service-card {
    background: var(--white);
    padding: 40px 32px 36px;
    border: 1px solid rgba(20, 129, 186, 0.2);
    transition: all 0.5s ease;
    text-align: center;
    position: relative;
    border-radius: 8px;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue-gradient);
    opacity: 0;
    transition: 0.5s;
}
.service-card:hover::before { opacity: 0.5; }
.service-card:hover {
    border-color: var(--blue-primary);
    border-width: 2px;
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(20,129,186,0.03);
}
.service-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 20px;
    background: #e8edf2;
    border-radius: 4px;
}
.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-gray);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WAVE BETWEEN SERVICES И ADVANTAGES
============================================ */
.wave-between {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: var(--white);
}
.wave-between svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 80px;
}
.wave-between .wave-fill { fill: var(--blue-bg); }

@media (max-width: 992px) {
    .wave-between { height: 60px; }
    .wave-between svg { height: 60px; }
    .services-bg,
    .callback-section-bg,
    .contacts-section-bg {
        background-attachment: scroll;
        background-size: 400px auto;
    }
}
@media (max-width: 768px) {
    .wave-between { height: 50px; }
    .wave-between svg { height: 50px; }
}
@media (max-width: 480px) {
    .wave-between { height: 40px; }
    .wave-between svg { height: 40px; }
}

/* ============================================
   ADVANTAGES
============================================ */
.advantages {
    padding: 80px 0 0;
    background: var(--blue-bg);
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    clip-path: polygon(0% 80px, 100% 80px, 100% 100%, 0% 100%);
}
.advantages .container { position: relative; z-index: 1; padding: 40px 24px 80px; }

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 16px;
    padding: 20px 0;
}
.advantage-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(20,129,186,0.1);
    transition: 0.4s;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.advantage-card:hover {
    border-color: var(--blue-primary);
    box-shadow: 0 8px 40px rgba(20,129,186,0.12);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-4px);
}
.advantage-card img {
    height: 48px;
    width: 48px;
    margin: 0 auto 16px;
    opacity: 0.6;
}
.advantage-card h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.advantage-card p {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
}
.advantages-cta {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: 1.6rem;
    text-align: center;
    color: var(--text-dark);
    margin-top: 20px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 24px 40px;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
    border: 2px solid rgba(20,129,186,0.08);
}
.advantages-cta .blue-primary { font-weight: 600; }

@media (max-width: 992px) {
    .advantages-grid { grid-template-columns: 1fr 1fr; }
    .advantages-cta { padding: 16px 24px; }
    .advantages .container { padding: 40px 24px 80px; }
}
@media (max-width: 768px) {
    .advantages-grid { grid-template-columns: 1fr; }
    .advantages-cta { font-size: 1.2rem; padding: 14px 20px; }
    .advantages .container { padding: 30px 20px 60px; }
}
@media (max-width: 480px) {
    .advantages-cta { padding: 12px 16px; font-size: 1rem; }
    .advantages .container { padding: 20px 16px 40px; }
}

/* ============================================
   WAVE AFTER ADVANTAGES
============================================ */
.wave-after-advantages {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: var(--blue-bg);
    margin-top: -80px;
}
.wave-after-advantages svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 80px;
}
.wave-after-advantages .wave-fill { fill: var(--white); }

@media (max-width: 992px) {
    .wave-after-advantages { height: 60px; }
    .wave-after-advantages svg { height: 60px; }
}
@media (max-width: 768px) {
    .wave-after-advantages { height: 50px; }
    .wave-after-advantages svg { height: 50px; }
}
@media (max-width: 480px) {
    .wave-after-advantages { height: 40px; }
    .wave-after-advantages svg { height: 40px; }
}

/* ============================================
   CALLBACK (стиралка + форма)
============================================ */
.callback-section {
    padding: 80px 0 60px;
    background: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    clip-path: polygon(0% 80px, 100% 80px, 100% 100%, 0% 100%);
}
.callback-section .container { position: relative; z-index: 1; padding-top: 20px; }

.callback-section .form-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 40px;
}
.callback-section .form-inner .washer-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.callback-section .form-inner .washer-container .washing-machine-container {
    width: 320px;
    transform: scale(0.85);
}

.callback-section .form-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 40px 48px;
    background: rgba(236, 244, 247, 0.92);
    backdrop-filter: blur(8px);
    border: 2px solid var(--blue-primary);
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(20,129,186,0.06);
    position: relative;
    transition: all 0.3s ease;
}
.callback-section .form-wrapper:hover {
    box-shadow: 0 12px 60px rgba(20,129,186,0.12);
    border-color: var(--blue-secondary);
}
.callback-section .form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--blue-gradient);
    border-radius: 0 0 4px 4px;
}
.callback-section .form-wrapper .form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(20,129,186,0.08);
}
.callback-section .form-wrapper .form-header .form-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: 0.3s;
}
.callback-section .form-wrapper:hover .form-icon { border-color: var(--white); }
.callback-section .form-wrapper .form-header .form-title-group h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.2;
}
.callback-section .form-wrapper .form-header .form-title-group h2 .blue-primary { font-weight: 600; }
.callback-section .form-wrapper .form-header .form-title-group p {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 2px;
}
.callback-section .form-wrapper .form-body { display: flex; flex-direction: column; gap: 16px; }
.callback-section .form-wrapper .form-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.callback-section .form-wrapper .form-body input,
.callback-section .form-wrapper .form-body textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid rgba(20,129,186,0.06);
    padding: 16px 20px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
    font-weight: 300;
    border-radius: 4px;
}
.callback-section .form-wrapper .form-body input:focus,
.callback-section .form-wrapper .form-body textarea:focus {
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(20,129,186,0.08);
}
.callback-section .form-wrapper .form-body input::placeholder,
.callback-section .form-wrapper .form-body textarea::placeholder { color: #94a3b8; }
.callback-section .form-wrapper .form-body textarea { resize: vertical; min-height: 100px; }
.callback-section .form-wrapper .form-body .btn { width: 100%; text-align: center; padding: 16px; }

.form-body input.is-invalid,
.form-body textarea.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

@media (max-width: 992px) {
    .callback-section .form-inner { grid-template-columns: 1fr; gap: 32px; }
    .callback-section .form-inner .washer-container .washing-machine-container {
        transform: scale(1);
        max-width: 280px;
    }
    .callback-section .form-wrapper { padding: 32px 28px; }
    .callback-section .form-wrapper .form-header { flex-direction: column; text-align: center; }
    .callback-section .form-wrapper .form-body .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .callback-section .form-wrapper { padding: 24px 20px; }
    .callback-section .form-inner .washer-container .washing-machine-container { max-width: 240px; }
    .callback-section .form-wrapper .form-header .form-title-group h2 { font-size: 1.4rem; }
    .callback-section .form-wrapper .form-body textarea { min-height: 72px; max-height: 140px; }
}
@media (max-width: 480px) {
    .callback-section .form-wrapper { padding: 20px 16px; }
    .callback-section .form-inner .washer-container .washing-machine-container { max-width: 200px; }
    .callback-section .form-wrapper .form-body textarea { min-height: 64px; max-height: 120px; }
}

/* ============================================
   СПИННЕР В КНОПКЕ
============================================ */
#callbackSubmitBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#callbackSubmitBtn .btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #ffffff;
}

#callbackSubmitBtn.is-loading .btn-spinner {
    display: inline-flex;
}

#callbackSubmitBtn.is-loading .btn-label {
    opacity: 0.75;
}

#callbackSubmitBtn .btn-spinner svg {
    display: block;
    width: 14px;
    height: 14px;
    overflow: visible;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6));
}

#callbackSubmitBtn:disabled,
#callbackSubmitBtn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

@keyframes spinArc {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

#callbackSubmitBtn .spin-arc {
    transform-origin: 12px 12px;
    animation: spinArc 1.1s linear infinite;
}

@keyframes waterWave {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-0.8px); }
}

#callbackSubmitBtn .spin-water {
    transform-origin: center;
    animation: waterWave 1.4s ease-in-out infinite;
}

@keyframes bubbleUp {
    0%   { transform: translateY(0);    opacity: 0.2; }
    50%  { transform: translateY(-2px); opacity: 0.9; }
    100% { transform: translateY(-4px); opacity: 0;   }
}

#callbackSubmitBtn .bubble {
    animation: bubbleUp 1.6s ease-in infinite;
    transform-origin: center;
}
#callbackSubmitBtn .b1 { animation-delay: 0s; }
#callbackSubmitBtn .b2 { animation-delay: 0.5s; }
#callbackSubmitBtn .b3 { animation-delay: 1s; }

@media (max-width: 480px) {
    #callbackSubmitBtn { min-width: 180px; }
}

/* ============================================
   CALLBACK POPUP (успешно отправлено)
============================================ */
.callback-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}
.callback-popup-overlay.active { opacity: 1; visibility: visible; }

.callback-popup {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(20, 129, 186, 0.25);
    border: 1px solid rgba(20, 129, 186, 0.08);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}
.callback-popup-overlay.active .callback-popup {
    transform: translateY(0) scale(1);
}

.callback-popup-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1481BA, #33A7DD);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(20, 129, 186, 0.35);
}
.callback-popup-icon svg { width: 34px; height: 34px; }

.callback-popup h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.callback-popup p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 24px;
}
.callback-popup .popup-close {
    background: var(--blue-gradient);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}
.callback-popup .popup-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 129, 186, 0.35);
}

@media (max-width: 480px) {
    .callback-popup { padding: 32px 24px 24px; }
    .callback-popup h3 { font-size: 20px; }
}

/* ============================================
   WAVE BETWEEN CALLBACK И GALLERY
============================================ */
.wave-between-form-gallery {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: var(--white);
}
.wave-between-form-gallery svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 80px;
}
.wave-between-form-gallery .wave-fill { fill: var(--blue-bg); }

@media (max-width: 992px) {
    .wave-between-form-gallery { height: 60px; }
    .wave-between-form-gallery svg { height: 60px; }
}
@media (max-width: 768px) {
    .wave-between-form-gallery { height: 50px; }
    .wave-between-form-gallery svg { height: 50px; }
}
@media (max-width: 480px) {
    .wave-between-form-gallery { height: 40px; }
    .wave-between-form-gallery svg { height: 40px; }
}

/* ============================================
   GALLERY
============================================ */
.gallery {
    padding: 80px 0 0;
    background: var(--blue-bg);
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    clip-path: polygon(0% 79px, 100% 79px, 100% 100%, 0% 100%);
}
.gallery .container { position: relative; z-index: 1; padding-top: 20px; }

.gallery-slider {
    position: relative;
    margin-bottom: 20px;
    padding: 0 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 8px 0;
    align-content: start;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(20, 129, 186, 0.02);
    transition: transform 0.35s ease, border-color 0.35s ease;
    display: block;
    background: #e8edf2;
    border-radius: 10px;
    cursor: zoom-in;
    text-decoration: none;
    animation: galleryFadeIn 0.4s ease;
}
.gallery-item:hover {
    border-color: var(--blue-primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(20, 129, 186, 0.15);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e8edf2;
    display: block;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

/* Стрелки пагинации (по бокам на ПК/планшете) */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--blue-primary);
    color: var(--blue-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(20, 129, 186, 0.18);
    padding: 0;
    line-height: 1;
}
.gallery-nav:hover {
    background: var(--blue-primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
}
.gallery-nav:active {
    transform: translateY(-50%) scale(0.96);
}
.gallery-nav.hidden { display: none; }
.gallery-nav-prev { left: 0; }
.gallery-nav-next { right: 0; }

/* Точки + контейнер контролсов */
.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    padding-bottom: 40px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(20, 129, 186, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}
.gallery-dot.active {
    background: var(--blue-primary);
    width: 28px;
    border-radius: 5px;
}

/* Адаптив — планшет */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .gallery-nav { width: 36px; height: 36px; }
    .gallery-slider { padding: 0 28px; }
}

/* Адаптив — мобилка (2 в ряд) */
@media (max-width: 768px) {
    .gallery {
        padding: 60px 0 0;
        margin-top: -60px;
        clip-path: polygon(0% 60px, 100% 60px, 100% 100%, 0% 100%);
    }
    .gallery-slider { padding: 0; margin-bottom: 8px; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
    }
    .gallery-item {
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(20, 129, 186, 0.08);
    }
    .gallery-item:hover {
        transform: none;
        border-color: rgba(20, 129, 186, 0.02);
        box-shadow: 0 2px 8px rgba(20, 129, 186, 0.08);
    }

    /* Стрелки переезжают под сетку */
    .gallery-nav {
        position: static;
        transform: none;
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    .gallery-nav-prev { order: 1; }
    .gallery-nav-next { order: 3; }
    .gallery-nav:hover { transform: scale(1.06); }
    .gallery-nav:active { transform: scale(0.94); }

    .gallery-controls {
        gap: 12px;
        margin-top: 12px;
        padding-bottom: 30px;
        flex-wrap: nowrap;
    }
    .gallery-dots { order: 2; }
}

/* Адаптив — маленький телефон (2 в ряд, компактнее) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .gallery-item {
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }
    .gallery-nav { width: 34px; height: 34px; }
    .gallery-controls { gap: 10px; margin-top: 10px; padding-bottom: 24px; }
    .gallery-dot { width: 8px; height: 8px; }
    .gallery-dot.active { width: 22px; }
}

/* Адаптив — очень узкий экран (1 в ряд) */
@media (max-width: 360px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-item {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }
}

/* ============================================
   WAVE AFTER GALLERY
============================================ */
.wave-after-gallery {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    background: var(--blue-bg);
    margin-top: -80px;
}
.wave-after-gallery svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 80px;
}
.wave-after-gallery .wave-fill { fill: var(--white); }

@media (max-width: 992px) {
    .wave-after-gallery { height: 60px; margin-top: -60px; }
    .wave-after-gallery svg { height: 60px; }
}
@media (max-width: 768px) {
    .wave-after-gallery { height: 50px; margin-top: -50px; }
    .wave-after-gallery svg { height: 50px; }
}
@media (max-width: 480px) {
    .wave-after-gallery { height: 40px; margin-top: -40px; }
    .wave-after-gallery svg { height: 40px; }
}

/* ============================================
   LIGHTBOX
============================================ */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 15, 25, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 60px 80px 100px;
    touch-action: pan-y;
}
.gallery-lightbox.active { opacity: 1; visibility: visible; }

.glb-stage {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}
.glb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.25s ease;
}
.glb-img.loading { opacity: 0.3; }

.glb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
    padding: 0;
    line-height: 1;
}
.glb-close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

.glb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
    padding: 0;
    line-height: 1;
}
.glb-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.glb-prev { left: 20px; }
.glb-next { right: 20px; }
.glb-arrow.hidden { display: none; }

.glb-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.glb-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: calc(100% - 40px);
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
    z-index: 2;
}
.glb-thumbs::-webkit-scrollbar { display: none; }

.glb-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: 0.25s;
    background: #1a2332;
}
.glb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glb-thumb:hover { opacity: 0.8; }
.glb-thumb.active {
    opacity: 1;
    border-color: var(--blue-secondary);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-lightbox { padding: 50px 0 110px; }
    .glb-arrow { display: none; }
    .glb-close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .glb-counter { top: 14px; font-size: 13px; padding: 5px 14px; }
    .glb-thumbs { bottom: 12px; gap: 6px; }
    .glb-thumb { width: 48px; height: 48px; }
    .glb-img { border-radius: 4px; }
}
@media (max-width: 480px) {
    .glb-thumb { width: 42px; height: 42px; }
}

/* ============================================
   СТИРАЛЬНАЯ МАШИНА
============================================ */
.washing-machine-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    margin: 0 auto;
}
.washing-machine-body {
    background: linear-gradient(170deg, #eef2f6 25%, #eef2f6 60%, #dce3ec 100%);
    border-radius: 30px 30px 18px 18px;
    padding: 28px 24px 30px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.08),
        inset 0 -8px 0 rgba(0,0,0,0.04),
        inset 0 8px 20px rgba(255,255,255,0.6);
    border-bottom: 6px solid #c8d0da;
    position: relative;
    width: 100%;
}
.washer-logo-top {
    position: absolute;
    top: 12px; left: 0; right: 0;
    z-index: 5;
    text-align: center;
    pointer-events: none;
}
.washer-logo-top .brand-top {
    font-family: 'Playfair Display', serif;
    font-size: clamp(10px, 1.2vw, 13px);
    font-weight: 700;
    color: rgba(13, 95, 138, 0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.washer-logo-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -180%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}
.washer-logo-center .brand-center {
    font-family: 'Playfair Display', serif;
    font-size: clamp(13px, 3vw, 25px);
    font-weight: 400;
    color: rgba(13, 95, 138, 0.2);
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(255,255,255,0.1);
    line-height: 1;
}
.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
    margin-top: 10px;
}
.control-knob {
    width: clamp(20px, 2.5vw, 28px);
    height: clamp(20px, 2.5vw, 28px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f8fafc, #d0d8e0);
    border: 2px solid #b0bcc9;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.08), inset 2px 2px 4px white;
    cursor: pointer;
    transition: 0.15s;
    flex-shrink: 0;
}
.control-knob:active { transform: scale(0.9); }
.control-display {
    background: #1a2634;
    color: #7ef0ba;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: clamp(11px, 1.2vw, 13px);
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
}
.control-display .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    animation: blinkDot 1.2s infinite;
}
.control-display .status-dot.running { background: #7ef0ba; }
@keyframes blinkDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

.time-display {
    font-family: 'Courier New', monospace;
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 700;
    color: #7ef0ba;
    letter-spacing: 2px;
    min-width: 50px;
    display: inline-block;
    text-align: center;
}

.door-wrapper {
    position: relative;
    width: 100%;
    max-width: 230px;
    aspect-ratio: 1/1;
    margin: 0 auto 14px;
    pointer-events: none;
}
.door-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8edf4, #c8d2de);
    padding: clamp(10px, 1.5vw, 16px);
    box-shadow: inset 0 -6px 0 #b0bcc9, 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #dce3ec;
}
.door-glass {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #d0dce8, #b0c0d0);
    box-shadow: inset 0 8px 25px rgba(0,0,0,0.15), 0 0 0 4px rgba(200,215,230,0.3);
    position: relative;
    overflow: hidden;
}

.drum-water {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 78%; height: 78%;
    z-index: 2;
    pointer-events: none;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.2s ease;
    background: radial-gradient(ellipse at 50% 80%, rgba(60, 153, 196, 0.4), rgba(20, 129, 186, 0.1));
}
.drum-water.active { opacity: 1; }
.drum-water .water-surface {
    position: absolute;
    bottom: 0; left: -20%;
    width: 140%; height: 60%;
    background: rgba(60, 153, 196, 0.25);
    border-radius: 40% 40% 0 0 / 60% 60% 0 0;
    animation: waterSlosh 2.5s ease-in-out infinite alternate;
    transform-origin: bottom center;
}
.drum-water .water-surface::before {
    content: '';
    position: absolute;
    top: -10px; left: -10%;
    width: 120%; height: 30px;
    background: rgba(131, 202, 226, 0.3);
    border-radius: 50%;
    animation: waterRipple 3s ease-in-out infinite alternate;
}
.drum-water .water-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: bubbleRise 2s ease-in-out infinite;
}
.drum-water .water-bubble:nth-child(2) { width: 8px; height: 8px; bottom: 20%; left: 25%; animation-delay: 0.3s; }
.drum-water .water-bubble:nth-child(3) { width: 12px; height: 12px; bottom: 30%; left: 55%; animation-delay: 0.8s; }
.drum-water .water-bubble:nth-child(4) { width: 6px; height: 6px; bottom: 15%; left: 75%; animation-delay: 0.5s; }
.drum-water .water-bubble:nth-child(5) { width: 10px; height: 10px; bottom: 40%; left: 40%; animation-delay: 1.1s; }
.drum-water .water-bubble:nth-child(6) { width: 7px; height: 7px; bottom: 25%; left: 10%; animation-delay: 0.7s; }
.drum-water .water-bubble:nth-child(7) { width: 14px; height: 14px; bottom: 10%; left: 60%; animation-delay: 1.4s; }

@keyframes waterSlosh {
    0% { transform: translateX(-8%) scaleY(1); }
    50% { transform: translateX(8%) scaleY(1.1); }
    100% { transform: translateX(-5%) scaleY(0.95); }
}
@keyframes waterRipple {
    0% { transform: translateX(-15%) scaleX(1); opacity: 0.6; }
    100% { transform: translateX(15%) scaleX(1.3); opacity: 0.2; }
}
@keyframes bubbleRise {
    0% { transform: translateY(0) scale(0.5); opacity: 0.1; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-60px) scale(1.2); opacity: 0; }
}

.drum-empty {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 78%; height: 78%;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #d8e4f0, #b8c8d8);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.1);
    border: 2px solid #c0d0de;
    opacity: 1;
    transition: opacity 1s ease;
}
.drum-empty.hidden { opacity: 0; }

.door-glass::after {
    content: '';
    position: absolute;
    top: 10%; left: 16%;
    width: 32%; height: 22%;
    background: radial-gradient(circle, rgba(255,255,255,0.4), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
}

.load-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    font-size: clamp(10px, 1vw, 12px);
    color: #6b7a8a;
    transition: all 0.5s ease;
    overflow: hidden;
    max-height: 30px;
    opacity: 1;
}
.load-indicator.done {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}
.load-indicator .bar {
    flex: 1;
    max-width: 180px;
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.load-indicator .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1481BA, #33A7DD);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}
.load-indicator .load-percent {
    font-weight: 700;
    color: #1481BA;
    min-width: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .washing-machine-container { max-width: 260px; }
    .door-wrapper { max-width: 150px; }
    .washer-logo-center .brand-center { font-size: 20px; letter-spacing: 3px; }
    .washer-logo-top .brand-top { font-size: 11px; }
}
@media (max-width: 480px) {
    .washing-machine-container { max-width: 220px; }
    .door-wrapper { max-width: 120px; }
    .washer-logo-center .brand-center { font-size: 16px; letter-spacing: 2px; }
    .washer-logo-top .brand-top { font-size: 9px; letter-spacing: 2px; }
    .control-display { min-width: 70px; font-size: 10px; padding: 4px 10px; }
    .control-knob { width: 18px; height: 18px; }
    .time-display { font-size: 10px; min-width: 40px; }
}

/* ============================================
   FOOTER
============================================ */
.footer {
    padding: 60px 0 40px;
    background: #0f172a;
    border-top: 1px solid rgba(20,129,186,0.02);
    position: relative;
}
.footer .logo-text { color: #94a3b8; }
.footer .logo-img { filter: brightness(0) invert(1); }

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo .logo-text { max-width: 280px; font-size: 0.75rem; color: #94a3b8; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748b;
    transition: 0.3s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.footer-nav a:hover { color: var(--blue-secondary); border-bottom-color: var(--blue-secondary); }

.footer-contacts { text-align: right; }
.footer-contacts .phone-link {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
    color: var(--blue-secondary);
    text-decoration: none;
    transition: 0.3s;
}
.footer-contacts .phone-link:hover { color: var(--blue-primary); }
.footer-contacts .email-link {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 14px;
    transition: 0.3s;
}
.footer-contacts .email-link:hover {
    color: var(--blue-secondary);
    text-decoration: underline;
}
.footer-contacts .social-icons { justify-content: flex-end; }
.footer-contacts .social-icons img { opacity: 0.6; }
.footer-contacts .social-icons a {
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 4px;
    transition: 0.3s;
}
.footer-contacts .social-icons a:hover img { opacity: 0.8; }
.footer-contacts .social-icons a:hover { border-color: rgba(255,255,255,0.05); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    padding-top: 24px;
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.5px;
}
.footer-bottom a { color: #94a3b8; transition: 0.3s; border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: var(--blue-secondary); border-bottom-color: var(--blue-secondary); }

@media (max-width: 992px) {
    .footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .footer-contacts { text-align: center; }
    .footer-contacts .social-icons { justify-content: center; }
    .footer-nav { justify-content: center; }
    .footer-brand .logo { justify-content: center; }
}
@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--blue-primary);
    color: var(--blue-primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
    background: var(--blue-primary);
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(20,129,186,0.25);
    border-color: var(--blue-secondary);
}

/* ============================================
   ТЕКСТ ПОД КНОПКОЙ
============================================ */
.form-body .form-note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #8a8a8a;
    text-align: center;
}

/* ============================================
   ВОДЯНАЯ ЛИНИЯ ПОД ШАПКОЙ
============================================ */
.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease;
    overflow: visible;
}
.header.scrolled .header-wave { opacity: 1; }

.header-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.header-wave .wave-fill   { fill: rgba(51, 167, 221, 0.28); }
.header-wave .wave-fill-2 { fill: rgba(20, 129, 186, 0.20); }
.header-wave .wave-fill-3 { fill: rgba(20, 129, 186, 0.10); }

.header-wave svg path:nth-child(1) {
    animation: headerWaveBreath 6s ease-in-out infinite;
    transform-origin: center;
}
.header-wave svg path:nth-child(2) {
    animation: headerWaveBreath 7.5s ease-in-out infinite reverse;
    animation-delay: 0.5s;
}
.header-wave svg path:nth-child(3) {
    animation: headerWaveBreath 9s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes headerWaveBreath {
    0%   { transform: translateX(0)    scaleY(1); }
    50%  { transform: translateX(-6px) scaleY(1.25); }
    100% { transform: translateX(0)    scaleY(1); }
}

.header-wave::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(51, 167, 221, 0.25) 25%,
        rgba(51, 167, 221, 0.65) 50%,
        rgba(51, 167, 221, 0.25) 75%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: headerLineFlow 6s linear infinite;
    pointer-events: none;
}

@keyframes headerLineFlow {
    0%   { background-position:   0% 50%; }
    100% { background-position: 220% 50%; }
}

.header-wave::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 6px;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(51, 167, 221, 0.18) 0%,
        rgba(51, 167, 221, 0.06) 45%,
        transparent 80%
    );
    pointer-events: none;
    animation: headerWaveGlow 5s ease-in-out infinite alternate;
}

@keyframes headerWaveGlow {
    0%   { opacity: 0.5; }
    100% { opacity: 0.9; }
}

/* ============================================
   COOKIE BANNER
============================================ */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    padding: 18px 24px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cookie-banner.show { transform: translateY(0); }

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}
.cookie-banner-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}
.cookie-btn-primary {
    background: linear-gradient(135deg, #1481BA, #33A7DD);
    color: #fff;
    box-shadow: 0 4px 20px rgba(20, 129, 186, 0.35);
}
.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(20, 129, 186, 0.5);
    border-color: #33A7DD;
}
.cookie-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
}
.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .cookie-banner { padding: 16px 18px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
    .cookie-banner-text { font-size: 12px; }
    .cookie-banner-actions { flex-direction: column; }
    .cookie-banner-actions .cookie-btn { width: 100%; text-align: center; }
}

/* ============================================
   COOKIE SETTINGS MODAL
============================================ */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cookie-modal-overlay.show { opacity: 1; visibility: visible; }

.cookie-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 44px 32px;
    box-shadow: 0 30px 80px rgba(20, 129, 186, 0.20);
    border: 1px solid rgba(20, 129, 186, 0.08);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease;
}
.cookie-modal-overlay.show .cookie-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cookie-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(20, 129, 186, 0.06);
    border: none;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.cookie-modal-close:hover {
    background: rgba(20, 129, 186, 0.14);
    color: #1481BA;
    transform: rotate(90deg);
}

.cookie-modal-title {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 600;
    color: #1A2332;
    margin-bottom: 20px;
    letter-spacing: -0.4px;
}
.cookie-modal-subtitle {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    font-weight: 600;
    color: #1A2332;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-modal-desc {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 24px;
}
.cookie-modal-desc a {
    color: #1481BA;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.25s;
}
.cookie-modal-desc a:hover { border-bottom-color: #1481BA; }

.cookie-category {
    border: 1px solid #e2ebf0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}
.cookie-category:hover { border-color: rgba(20, 129, 186, 0.3); }

.cookie-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    background: #fbfdfe;
    transition: background 0.25s;
}
.cookie-category-head:hover { background: #f3f8fb; }

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #1A2332;
    flex: 1;
}
.cookie-category-title i {
    color: #1481BA;
    font-size: 12px;
    width: 14px;
    transition: transform 0.25s ease;
}
.cookie-category.open .cookie-category-title i { transform: rotate(180deg); }

.cookie-category-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.10);
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cookie-switch-slider {
    position: absolute;
    inset: 0;
    background: #d4dce6;
    border-radius: 24px;
    transition: background 0.3s ease;
}
.cookie-switch-slider::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.cookie-switch input:checked + .cookie-switch-slider {
    background: linear-gradient(135deg, #1481BA, #33A7DD);
}
.cookie-switch input:checked + .cookie-switch-slider::before {
    transform: translateX(20px);
}

.cookie-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 13px;
    line-height: 1.7;
    color: #64748B;
    padding: 0 20px;
}
.cookie-category.open .cookie-category-body {
    max-height: 300px;
    padding: 14px 20px 18px;
}

.cookie-modal-note {
    font-size: 13px;
    color: #64748B;
    line-height: 1.7;
    margin: 20px 0;
    padding: 16px 20px;
    background: #f3f8fb;
    border-left: 4px solid #1481BA;
    border-radius: 8px;
}
.cookie-modal-note strong { color: #1A2332; }

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
    flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn {
    padding: 13px 28px;
    font-size: 14px;
    border-radius: 10px;
}
.cookie-modal-actions .cookie-btn-primary {
    background: linear-gradient(135deg, #1481BA, #33A7DD);
    color: #fff;
    border: 2px solid transparent;
}
.cookie-modal-actions .cookie-btn-primary:hover { border-color: #33A7DD; }
.cookie-modal-actions .cookie-btn-outline {
    background: transparent;
    color: #1481BA;
    border-color: rgba(20, 129, 186, 0.25);
}
.cookie-modal-actions .cookie-btn-outline:hover {
    background: rgba(20, 129, 186, 0.06);
    border-color: #1481BA;
}

@media (max-width: 640px) {
    .cookie-modal { padding: 28px 20px 22px; border-radius: 16px; }
    .cookie-modal-title { font-size: 22px; }
    .cookie-modal-subtitle { font-size: 15px; }
    .cookie-category-head { padding: 14px 14px; }
    .cookie-category-title { font-size: 13px; gap: 8px; }
    .cookie-category-title span { line-height: 1.4; }
    .cookie-modal-actions { flex-direction: column; }
    .cookie-modal-actions .cookie-btn { width: 100%; }
}

/* ============================================
   LANDSCAPE — телефоны горизонтально
============================================ */
@media (max-width: 900px) and (orientation: landscape) {

    /* --- Шапка --- */
    .header {
        height: 20vh;
        min-height: 56px;
        max-height: 96px;
        padding: 0;
        display: flex;
        align-items: center;
    }
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 16px;
        width: 100%;
        height: 100%;
        padding-right: 16px;
    }
    .header .logo { grid-column: 1; gap: 8px; max-height: 100%; }
    .header .logo-img { height: clamp(22px, 6vh, 32px); }
    .header .logo-text {
        font-size: clamp(0.55rem, 1.6vh, 0.7rem);
        line-height: 1.15;
        max-width: 160px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .header-contacts {
        grid-column: 2;
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        height: 100%;
        padding: 4px 0;
        margin-right: 8px;
    }
    .header-contacts .phone-link { font-size: clamp(0.65rem, 1.8vh, 0.8rem); }
    .header-contacts .social-icons img { height: clamp(12px, 2.6vh, 16px); width: clamp(12px, 2.6vh, 16px); }
    .mobile-menu-btn { grid-column: 3; display: block; justify-self: end; font-size: 1.1rem; padding: 2px 6px; }
    .nav { display: none !important; }

    /* --- Меню --- */
    .mobile-menu-panel {
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100%;
        padding: 16px 20px;
        border-left: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "logo     close"
            "menu     menu"
            "contacts contacts";
        gap: 12px 24px;
        overflow-y: auto;
    }
    .mobile-menu-panel.active { right: 0; }
    .mobile-menu-panel .mobile-logo { grid-area: logo; margin: 0; padding: 0 0 8px; display: flex; align-items: center; gap: 10px; }
    .mobile-menu-panel .mobile-logo img { height: 28px; }
    .mobile-menu-panel .close-btn { grid-area: close; position: static; justify-self: end; align-self: start; }
    .mobile-menu-panel .mobile-nav {
        grid-area: menu;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 16px;
        padding: 8px 0;
    }
    .mobile-menu-panel .mobile-contacts {
        grid-area: contacts;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
    }
    .mobile-menu-panel .mobile-contacts .phone-link { grid-column: 1; justify-self: start; }
    .mobile-menu-panel .mobile-contacts .social-icons { grid-column: 2; justify-content: center; gap: 14px; }

    /* --- Hero --- */
    .hero { padding: 12vh 0 6vh; min-height: auto; }
    .hero-content h1 { font-size: clamp(1.6rem, 5vh, 2.2rem); line-height: 1.1; margin-bottom: 12px; }
    .hero-content p { font-size: clamp(0.8rem, 2vh, 0.95rem); margin-bottom: 20px; }
    .hero-buttons .btn { padding: 10px 24px; font-size: 0.7rem; letter-spacing: 2px; }
    .hero-wave-bottom { height: 40px; }

    /* --- Заголовки --- */
    .section-title { font-size: clamp(1.4rem, 4vh, 1.9rem); letter-spacing: 1px; margin-bottom: 8px; }
    .section-subtitle { font-size: clamp(0.75rem, 1.8vh, 0.9rem); margin-bottom: 20px; }

    /* --- Services --- */
    .services { padding: 50px 0 0; margin-top: -50px; clip-path: polygon(0% 50px, 100% 50px, 100% 100%, 0% 100%); }
    .services .container { padding-top: 10px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 30px; }
    .service-card { padding: 16px 14px 18px; border-radius: 6px; }
    .service-card img { aspect-ratio: 16/9; margin-bottom: 10px; }
    .service-card h3 { font-size: 0.9rem; margin-bottom: 6px; }
    .service-card p { font-size: 0.75rem; line-height: 1.45; }

    /* --- Advantages --- */
    .advantages { padding: 50px 0 0; margin-top: -50px; clip-path: polygon(0% 50px, 100% 50px, 100% 100%, 0% 100%); }
    .advantages .container { padding: 20px 20px 40px; }
    .advantages-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; padding: 10px 0; }
    .advantage-card { padding: 18px 14px; border-radius: 6px; }
    .advantage-card img { height: 32px; width: 32px; margin: 0 auto 8px; }
    .advantage-card h4 { font-size: 0.85rem; }
    .advantage-card p { font-size: 0.72rem; }
    .advantages-cta { font-size: 1rem; padding: 12px 18px; margin-top: 12px; }

    /* --- Callback --- */
    .callback-section { padding: 50px 0 30px; margin-top: -50px; clip-path: polygon(0% 50px, 100% 50px, 100% 100%, 0% 100%); }
    .callback-section .container { padding-top: 10px; }
    .callback-section .form-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 20px; }
    .callback-section .form-inner .washer-container .washing-machine-container { max-width: 200px; transform: scale(0.85); }
    .callback-section .form-wrapper { padding: 18px 20px; border-radius: 10px; }
    .callback-section .form-wrapper .form-header { gap: 10px; margin-bottom: 12px; padding-bottom: 12px; }
    .callback-section .form-wrapper .form-header .form-icon { width: 36px; height: 36px; }
    .callback-section .form-wrapper .form-header .form-title-group h2 { font-size: 1.1rem; }
    .callback-section .form-wrapper .form-header .form-title-group p { font-size: 0.78rem; }
    .callback-section .form-wrapper .form-body { gap: 10px; }
    .callback-section .form-wrapper .form-body input,
    .callback-section .form-wrapper .form-body textarea { padding: 10px 12px; font-size: 0.85rem; }
    .callback-section .form-wrapper .form-body textarea { min-height: 60px; max-height: 90px; }
    .callback-section .form-wrapper .form-body .btn { padding: 12px; font-size: 0.75rem; }

    /* --- Gallery (ВАЖНО: 2 колонки, не 4) --- */
    .gallery { padding: 50px 0 0; margin-top: -50px; clip-path: polygon(0% 50px, 100% 50px, 100% 100%, 0% 100%); }
    .gallery .container { padding-top: 10px; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-item { aspect-ratio: 1 / 1; border-radius: 10px; }

    /* --- Волны --- */
    .wave-between,
    .wave-between-form-gallery,
    .wave-after-advantages,
    .wave-after-gallery { height: 50px; }
    .wave-between svg,
    .wave-between-form-gallery svg,
    .wave-after-advantages svg,
    .wave-after-gallery svg { height: 50px; }

    /* --- Стиралка --- */
    .washing-machine-container { max-width: 220px; }
    .door-wrapper { max-width: 140px; }
    .washer-logo-center .brand-center { font-size: 16px; letter-spacing: 2px; }
    .washer-logo-top .brand-top { font-size: 9px; letter-spacing: 2px; }
    .control-display { min-width: 70px; font-size: 10px; padding: 4px 10px; }
    .control-knob { width: 18px; height: 18px; }
    .time-display { font-size: 10px; min-width: 40px; }

    /* --- Footer --- */
    .footer { padding: 30px 0 20px; }
    .footer-inner { gap: 20px; padding-bottom: 16px; }
    .footer-nav { gap: 16px; }
    .footer-nav a { font-size: 0.65rem; letter-spacing: 1px; }
    .footer-contacts .phone-link { font-size: 0.95rem; margin-bottom: 6px; }
    .footer-bottom { padding-top: 14px; font-size: 0.65rem; gap: 8px 20px; }

    /* --- Cookie --- */
    .cookie-banner { padding: 10px 16px; }
    .cookie-banner-inner { gap: 12px; }
    .cookie-banner-text { font-size: 11px; line-height: 1.4; }
    .cookie-banner-text strong { font-size: 13px; margin-bottom: 2px; }
    .cookie-btn { padding: 8px 16px; font-size: 12px; }
}