/* ============================================
   REMONT LANDING - UNIFIED STYLES
   Theme: Dark Gold & Premium
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Base */
    --bg-main: #0E1117;
    --bg-card: #13171F;
    --text-main: #F0EEE5;
    --text-main-rgb: 240, 238, 229;
    --text-muted: rgba(240, 238, 229, 0.6);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 24px;
    --glass-saturate: 180%;

    /* Gold accent */
    --accent-gold: #C8A96E;
    --accent-light: #D4B87A;
    --accent-dark: #B3924A;
    --accent-gold-rgb: 200, 169, 110;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --border-glass: rgba(255, 255, 255, 0.06);

    /* Borders */
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 28px;

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif; /* для редких акцентов */

    /* Transitions */
    --transition-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition-duration: 0.3s;
}

/* ===== GLASS PANEL ===== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}
.glass-panel:hover {
    border-color: rgba(var(--accent-gold-rgb), 0.3);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-main);
    overflow-x: hidden;
}

/* ===== CROSS-BROWSER BASE ===== */
input, select, textarea, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal overflow on all viewports */
html, body {
    overflow-x: clip;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: color 0.2s ease;
    touch-action: manipulation;
}

a:hover {
    color: var(--text-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, .h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text-main);
}
h2, .h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text-main);
}
h3, .h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-main);
}
p, .body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(240, 238, 229, 0.7);
}
.accent-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(var(--accent-gold-rgb), 0.2);
}

/* ===== ACCESSIBILITY: FOCUS VISIBLE ===== */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.3);
}

.social-icon:focus-visible,
.logo:focus-visible,
.mega-close:focus-visible,
.mobile-menu-close:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

.filter-tag:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ===== FORM VALIDATION STYLES ===== */
.form__error {
    color: #e74c3c;
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
    min-height: 1.2em;
}

.form__success {
    color: #22c55e;
    font-size: 1em;
    text-align: center;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #22c55e;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.08);
}

input.input-error,
select.input-error,
textarea.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 1200px;
}

.text-center {
    text-align: center;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: transform, opacity;
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: transform, opacity;
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: transform, opacity;
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
    will-change: transform, opacity;
}

.scroll-reveal.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed,
.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.delay-0 { transition-delay: 0s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Mobile: disable all animations & hover effects */
@media (max-width: 1024px) {
    .glass-panel:hover {
        border-color: var(--glass-border);
    }
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    .scroll-reveal.revealed,
    .scroll-reveal-left.revealed,
    .scroll-reveal-right.revealed,
    .scroll-reveal-scale.revealed {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* Accessibility: disable motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    .scroll-reveal.revealed,
    .scroll-reveal-left.revealed,
    .scroll-reveal-right.revealed,
    .scroll-reveal-scale.revealed {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
    .hero-title,
    .hero-subtitle,
    .hero-actions {
        opacity: 1;
        animation: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== BUTTONS ===== */
/* ===== BUTTONS (Glass Premium Unified) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: var(--font-body);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-main);
    box-shadow: var(--glass-shadow);
}


.btn svg {
    vertical-align: middle;
}

/* Premium CTA - dark subtle with gold reveal */
.btn--premium {
    --btn-transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(14, 10, 8, 0.95);
    background-clip: padding-box;
    border: 2px solid rgba(200, 169, 110, 0.25);
    border-radius: 12px;
    color: #F0EEE5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 4px 20px rgba(0, 0, 0, 0.4);
    transition:
        transform var(--btn-transition),
        border-color var(--btn-transition),
        box-shadow var(--btn-transition),
        background var(--btn-transition);
    -webkit-font-smoothing: antialiased;
    backdrop-filter: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.btn--premium svg:last-child {
    transition: transform var(--btn-transition);
    will-change: transform;
}

.btn--premium:hover svg:last-child {
    transform: translateX(10px);
}

.btn--premium:hover {
    background: rgba(30, 14, 9, 0.93);
    transform: translateY(-5px);
    border-color: rgba(var(--accent-gold-rgb), 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 20px 30px rgba(212, 168, 67, 0.32),
        0 20px 80px rgba(212, 168, 67, 0.1),
        0 0 0 1px rgba(200, 169, 110, 0.15);
}

/* Secondary CTA - glass with gold border */
.btn--secondary,
.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    color: var(--accent-gold);
    border: 1px solid rgba(200, 169, 110, 0.4);
}

.btn--secondary:hover,
.btn-secondary:hover {
    background: rgba(200, 169, 110, 0.1);
    border-color: var(--accent-gold);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Outline CTA - subtle glass */
.btn--outline,
.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #F0EEE5;
    background: rgba(14, 17, 23, 0.95);
    border: 1px solid rgba(200, 169, 110, 0.4);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.btn--outline:hover,
.btn-outline:hover {
    background: rgba(200, 169, 110, 0.12);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn--full,
.btn-full {
    width: 100%;
}

.btn-calendar {
    gap: 16px;
}

/* Glass button - compact */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--accent-gold);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
}
.btn-glass:hover {
    background: rgba(200, 169, 110, 0.15);
    border-color: var(--accent-gold);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Engineering/Portfolio outline button */
.engineering-teaser .btn-outline {
    padding: 14px 32px;
    font-size: 15px;
    background: rgba(200, 169, 110, 0.05);
    border: 1px solid rgba(200, 169, 110, 0.3);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
}

.card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card__body {
    padding: 24px;
}

.card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card__text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Card variants */
.card--featured {
    border-color: rgba(212, 168, 67, 0.3);
}

.card--outline {
    background: transparent;
    border: 1px solid var(--border-glass);
}

.card--glass {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ===== HEADER (Glass Premium) ===== */
.header {
    position: fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    background: rgba(14, 17, 23, 0.7);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom:1px solid rgba(200, 169, 110, 0.15);
    transform: translateY(0);
    transition: transform 0.6s var(--transition-smooth), background 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth);
    will-change: transform;
}

.header-top {
    position: relative;
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background: rgba(14, 17, 23, 0.85);
    backdrop-filter: blur(40px) saturate(200%);
    border-bottom-color: rgba(200,169,110,0.25);
}

.header.mega-open {
    background: rgba(14, 17, 23, 0.88);
}

.header.scrolled .logo-img {
    filter: brightness(1.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 40px;
}



.header-mobile-top {
    display: contents;
}

.header-mobile-socials {
    display: none;
}

.hm-top-row {
    display: contents;
}

.hm-subtitle {
    display: none;
}

.header-subnav {
    padding: 6px 0;
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.header-subnav .container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.subnav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(var(--text-main-rgb), 0.7);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.subnav-item:hover {
    background: rgba(212, 168, 67, 0.1);
    color: var(--text-main);
}

.subnav-item svg {
    color: var(--accent-gold);
    flex-shrink: 0;
}

/* ===== LOGO (Premium Light) ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink:0;
}

.logo-img {
    height: 48px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.logo-line1 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-line1 .accent {
    color: var(--accent-gold);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
}

.logo-line2 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: none;
    line-height: 1;
    margin-top: 0;
}

/* ===== NAVIGATION (Premium) ===== */
.nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav a,
.nav > .nav-item-dropdown {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    transition: all var(--transition-duration) var(--transition-smooth);
    position: relative;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
}

.nav > a,
.nav > .nav-item-dropdown {
    display: flex;
    align-items: center;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold));
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

.nav a:hover {
    color: var(--accent-gold);
    background: rgba(212, 168, 67, 0.05);
}

.nav a:hover::before {
    width: calc(100% - 28px);
}

.nav a.active {
    color: var(--accent-gold);
    background: rgba(212, 168, 67, 0.15);
    font-weight: 700;
}

.nav a.active::before {
    width: calc(100% - 28px);
}

/* ===== MEGA MENU ===== */
/* Moved to components/mega-menu.css */

/* ===== DROPDOWN MENU ===== */
.nav-item-dropdown {
    position: relative;
    z-index:1001;
    display: inline-flex;
    align-items: center;
    flex-shrink:0;
}

.nav-dropdown-trigger {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
}

.nav-dropdown-trigger::before {
    display: none;
}

.nav-dropdown-trigger:hover {
    color: var(--accent-gold);
    background: rgba(212, 168, 67, 0.05);
}

.nav-dropdown-trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    min-width: 320px;
    width: max-content;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 67, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.active .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header {
    font-size: 11px;
    font-weight: 700;
    color: rgba(var(--text-main-rgb), 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.nav-dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(var(--text-main-rgb), 0.85);
    background: transparent;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: normal;
    text-decoration: none;
}

.nav-dropdown a:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.2);
    color: var(--text-main);
}

.nav-dropdown a:active {
    transform: scale(0.99);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(212, 168, 67, 0.15);
    color: var(--accent-gold);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown a:hover .dropdown-icon {
    background: var(--accent-gold);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.dropdown-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-desc {
    font-size: 12px;
    color: rgba(var(--text-main-rgb), 0.5);
    line-height: 1.5;
}

.dropdown-title .badge {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(212, 168, 67, 0.2);
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.dropdown-title .badge.new {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* ===== HEADER PHONE & ACTIONS ===== */
.header-phone-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink:0;
}

.header-phone-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone-block .phone-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.phone-number-link {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    line-height: 1.2;
}

.phone-number-link:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.4);
}

.phone-time {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(212, 168, 67, 0.2);
    border-color: rgba(212, 168, 67, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.2);
}

.header-actions-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-top: 6px;
}

.header-call-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 11px;
    color: rgba(var(--text-main-rgb), 0.7);
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-call-btn:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.4);
    color: var(--accent-gold);
}

.header-call-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.header-extra-link {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    padding-bottom: 10px;
    position: relative;
}

.header-extra-link::after {
    content: '· · · · · · ·';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 5px;
    color: rgba(212, 168, 67, 0.35);
    transition: color 0.3s ease;
}

.header-extra-link:hover {
    color: var(--accent-gold);
}

.header-extra-link:hover::after {
    color: rgba(212, 168, 67, 0.55);
}

.header-question-text {
    font-size: 11px;
    color: rgba(var(--text-main-rgb), 0.65);
    line-height: 1.4;
    font-weight: 500;
}

.header-question-text a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.header-question-text a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
}

.nav .reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    background: #025740;
    padding: 1px 5px;
    border-radius: 6px;
    margin-left: 6px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    letter-spacing: 0.3px;
}

/* ===== BURGER MENU ===== */

/* ===== HERO (Glass Premium) ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg-main);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.hero-poster {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        /* матовое стекло поверх видео */
        linear-gradient(
            180deg,
            rgba(14, 17, 23, 0.7) 0%,
            rgba(14, 17, 23, 0.5) 50%,
            rgba(14, 17, 23, 0.85) 100%
        );
    backdrop-filter: blur(4px) saturate(150%);
    -webkit-backdrop-filter: blur(4px) saturate(150%);
}

/* контент поверх оверлея */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: var(--text-main);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.2s forwards;
}

.hero-title .accent-text {
    display: inline;
    color: var(--accent-gold);
    font-weight: 700;
}

@keyframes goldShimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.7;
    color: rgba(240, 238, 229, 0.75);
    margin: 0 0 40px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.4s forwards;
    max-width: 600px;
}

.subtitle-main {
    font-size: 1.05em;
    color: rgba(240, 238, 229, 0.85);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.subtitle-detail {
    font-size: 0.95em;
    color: rgba(240, 238, 229, 0.6);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--transition-smooth) 0.6s forwards;
}

/* стрелка вниз */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

/* анимации появления (переиспользуем из фундамента) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* адаптив для мобильных */
@media (max-width: 768px) {
    .hero {
        min-height: 100dvh;
        padding: 90px 0 80px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}

/* ===== CALCULATOR ===== */
.calculator {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.calculator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 168, 67, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.calculator-info {
    color: var(--text-main);
}

.calculator-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.calculator-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.calculator-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calculator-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.calculator-benefits li svg {
    flex-shrink: 0;
    color: var(--accent-gold);
}

.calculator-form {
    background: var(--bg-main);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background: var(--bg-main);
    color: var(--text-main);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 100%, rgba(212, 168, 67, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 120px 0;
    background: var(--bg-main);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 64px;
}

.contacts-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 36px;
    color: var(--text-main);
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-main);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    color: var(--accent-gold);
}

.contact-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
    font-size: 15px;
    line-height: 1.6;
}
.contact-item p {
    color: var(--text-muted);
}
.contact-item a {
    color: var(--accent-gold);
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contacts-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    box-shadow: var(--shadow-lg);
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent-gold);
    color: var(--bg-main);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    color: var(--text-main);
    padding: 60px 0 0;
    overflow: hidden;
    background-color: var(--bg-main);
    box-shadow: inset 0 60px 50px -40px rgba(14,17,23,0.95);
    background-image:
        linear-gradient(to right, #0E1117 0%, transparent 15%, transparent 85%, #0E1117 100%),
        linear-gradient(rgba(14,17,23,0.8), rgba(14,17,23,0.8)),
        url('../images/glavnaya_stranisa/bez_otdelki.png.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.02) 30px, rgba(200, 169, 110, 0.02) 31px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.02) 30px, rgba(200, 169, 110, 0.02) 31px);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 24px 0;
    position: relative;
    z-index: 1;
    align-items: start;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    align-self: flex-start;
    border: 1px solid rgba(212, 168, 67, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    filter: brightness(1.1);
}

.footer-logo-text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
    align-items: flex-start;
    padding: 22px 24px;
}

.footer-logo-text::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 34px;
    border-right: 3px solid rgba(200, 169, 110, 0.45);
    border-bottom: 3px solid rgba(200, 169, 110, 0.45);
    border-bottom-right-radius: 4px;
}

.footer-logo-text::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 34px;
    border-left: 3px solid rgba(200, 169, 110, 0.45);
    border-top: 3px solid rgba(200, 169, 110, 0.45);
    border-top-left-radius: 4px;
}

.footer-logo-text .step {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.footer-logo-text .step:nth-child(2) {
    margin-left: 1em;
}

.footer-logo-text .step:nth-child(2) .accent {
    color: var(--accent-gold);
}

.footer-logo-text .step--light {
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.55);
    letter-spacing: 2px;
    margin-left: 3.1em;
}

.footer-brand .brand-phone {
    font-size: 26px;
    font-weight: 300;
    color: var(--accent-gold);
    letter-spacing: 2.5px;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-align: center;
    display: block;
    margin-bottom: 4px;
    margin-top: 10px;
}

.footer-brand .brand-phone:hover {
    color: var(--accent-gold);
}

.footer-brand .brand-worktime {
    font-size: 15px;
    color: rgba(240, 238, 229, 0.5);
    position: relative;
    padding-bottom: 8px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.footer-brand .brand-worktime::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.08) 80%, transparent 100%);
}

.brand-cta-wrap {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 24px 0 20px;
    white-space: nowrap;
}

.brand-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.7);
    background: transparent;
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.brand-cta-btn:hover {
    color: rgba(var(--text-main-rgb), 0.75);
    background: rgba(212, 168, 67, 0.04);
    border-color: rgba(212, 168, 67, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 67, 0.08);
}

.brand-cta-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-gold);
    opacity: 0.6;
    transition: all 0.25s ease;
}

.brand-cta-btn:hover svg {
    opacity: 0.9;
}

.brand-cta-telegram img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.brand-cta-btn:hover .brand-cta-telegram img {
    opacity: 0.9;
}

.brand-callback-link {
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-heading);
    color: rgba(var(--text-main-rgb), 0.75);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    margin-bottom: 14px;
    padding-bottom: 6px;
    letter-spacing: 1.5px;
    text-align: center;
}

.brand-callback-link:hover {
    color: var(--accent-gold);
}

.brand-callback-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.5), transparent);
    transition: all 0.25s ease;
}

.brand-callback-link:hover::after {
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.8), transparent);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.footer-social a img {
    display: block;
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(1);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
}

.footer-social a:hover img {
    opacity: 0.8;
}

.footer-links {
    min-width: 0;
    text-align: left;
}

.footer-links h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 40px;
    color: rgba(var(--text-main-rgb), 0.95);
    position: relative;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: none;
}

.footer-links h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
}

.footer-links a {
    color: rgba(var(--text-main-rgb), 0.65);
    transition: color 0.3s ease;
    font-size: 14px;
    display: block;
    margin-bottom: 28px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.footer-phone:hover {
    background: rgba(212, 168, 67, 0.1);
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-2px);
}

.footer-phone-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #e5c97d 0%, #b8922e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2a2215;
    animation: footerPulse 1.5s ease-in-out infinite;
    position: relative;
}

@keyframes footerPulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 193, 88, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 0 8px rgba(229, 193, 88, 0); transform: scale(1.03); }
    100% { box-shadow: 0 0 0 0 rgba(229, 193, 88, 0.5); transform: scale(1); }
}

.footer-phone:hover .footer-phone-icon {
    animation: none;
    transform: scale(1.1);
    background: linear-gradient(135deg, #f0cf68 0%, #e5c97d 100%);
}

.footer-phone-text {
    display: flex;
    flex-direction: column;
}

.footer-phone-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-phone-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-radius: 20px;
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.footer-call-btn:hover {
    background: rgba(212, 168, 67, 0.25);
    border-color: rgba(212, 168, 67, 0.6);
    transform: translateY(-1px);
}

.footer-worktime {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(240, 238, 229, 0.4);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 8px;
}

.footer-email:hover {
    color: var(--accent-gold);
}

.footer-email svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(var(--text-main-rgb), 0.35);
    text-align: left;
    line-height: 1.8;
}

.footer-copyright span {
    color: rgba(var(--text-main-rgb), 0.25);
}

.footer-divider {
    opacity: 0.4;
    margin: 0 4px;
}

.footer-legal {
    font-size: 11px;
    margin-left: auto;
}

.footer-legal a + a {
    margin-left: 16px;
}

.footer-legal a {
    color: rgba(var(--text-main-rgb), 0.25);
    transition: color 0.3s ease;
    font-size: 11px;
    letter-spacing: 0.3px;
    display: inline;
    padding: 0;
    min-height: auto;
    line-height: 1.8;
    text-decoration: none;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--accent-gold);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* Center modal content properly */
.modal.active > *:not(.modal-overlay) {
    max-width: 480px;
    width: 90%;
    margin: auto;
}

.privacy-link {
    color: var(--accent-gold);
    text-decoration: underline;
    cursor: pointer;
}

.privacy-link:hover {
    color: #e6c56b;
}



.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 18, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Glass panel modal content */
.modal .glass-panel {
    position: relative;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    z-index: 1;
    background: var(--glass-bg, rgba(30, 36, 51, 0.85));
    backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.5));
    -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(var(--glass-saturate, 1.5));
    border: 1px solid var(--glass-border, rgba(200, 169, 110, 0.2));
    border-radius: 20px;
}

/* Prevent content overflow inside modal */
.modal .modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(var(--text-main-rgb), 0.4);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(212, 168, 67, 0.2);
    color: var(--accent-gold);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    color: rgba(var(--text-main-rgb), 0.6);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-glass);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-main);
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--bg-main);
    box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.1);
}

.form-group input::placeholder {
    color: rgba(var(--text-main-rgb), 0.4);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

.form-note {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* ===== CONTACT METHODS ===== */
.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.contact-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: rgba(212, 168, 67, 0.5);
    background: rgba(212, 168, 67, 0.05);
}

.contact-method input {
    display: none;
}

.contact-method:has(input:checked) {
    border-color: var(--accent-gold);
    background: rgba(212, 168, 67, 0.1);
}

.method-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.contact-method:has(input:checked) .method-icon {
    transform: scale(1.05);
}

.contact-method:has(input:checked) .method-icon svg {
    color: var(--accent-gold);
}

.method-text {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.7);
    transition: all 0.2s ease;
}

.contact-method:has(input:checked) .method-text {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== CHECKBOX ===== */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--accent-gold);
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--bg-main);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    gap: 10px;
}

.checkbox-text {
    line-height: 1.45;
    font-size: 12px;
    color: var(--text-muted);
}

.checkbox-text a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(212, 168, 67, 0.4);
}

.checkbox-text a:hover {
    border-bottom-color: var(--accent-gold);
}

.required-mark {
    color: #ef4444;
    font-weight: 600;
}

/* ===== CALLBACK MODAL ===== */
.callback-modal {
    max-width: 380px;
    padding: 24px;
    border-radius: 16px;
    font-family: 'Manrope', sans-serif;
}

.callback-header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.4s ease;
}

.callback-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.callback-header p {
    font-family: 'Manrope', sans-serif;
    color: rgba(var(--text-main-rgb), 0.5);
    font-size: 14px;
    margin: 0;
}

#callbackForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.callback-modal .form-group {
    width: 100%;
    margin-bottom: 0;
}

.callback-modal .form-group input {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.callback-modal .form-group input:focus {
    border-color: rgba(212, 168, 67, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
    outline: none;
}

.callback-modal .checkbox-wrapper {
    justify-content: center;
}

.callback-modal .checkbox-label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.callback-modal .checkbox-text {
    line-height: 1.4;
}

.callback-modal .consent-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: rgba(var(--text-main-rgb), 0.5);
    line-height: 1.5;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .callback-modal {
        padding: 20px;
        border-radius: 14px;
    }

    .callback-modal .form-group input {
        padding: 12px 14px;
    }

    .callback-header h3 {
        font-size: 20px;
    }

    .callback-header p {
        font-size: 13px;
    }
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
    max-width: 360px;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    font-family: 'Manrope', sans-serif;
}

.success-modal__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.success-modal__icon svg {
    width: 56px;
    height: 56px;
    color: #10b981;
    animation: successScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.success-modal p {
    font-size: 14px;
    color: rgba(var(--text-main-rgb), 0.5);
    margin-bottom: 0;
    line-height: 1.5;
}

@keyframes successScale {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: 28px 20px;
        max-width: 320px;
    }

    .success-modal h3 {
        font-size: 18px;
    }

    .success-modal p {
        font-size: 13px;
    }
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: scale(0);
    animation: floatBtnIn 0.4s ease forwards;
}

.floating-btn:nth-child(1) { animation-delay: 0.1s; }
.floating-btn:nth-child(2) { animation-delay: 0.2s; }
.floating-btn:nth-child(3) { animation-delay: 0.3s; }

@keyframes floatBtnIn {
    to { transform: scale(1); }
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.whatsapp:hover {
    background: #20BD5A;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.floating-btn.telegram {
    background: #0088cc;
}

.floating-btn.telegram:hover {
    background: #0077B3;
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.4);
}

.floating-btn.callback {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold) 100%);
}

.floating-btn.callback:hover {
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.5);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 20px;
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cookie-text p {
    font-size: 14px;
    color: var(--text-muted);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-accept {
    padding: 12px 24px;
    background: var(--accent-gold);
    color: var(--bg-main);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    background: var(--accent-gold);
}

.cookie-decline {
    padding: 12px 24px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-main);
    z-index: 1500;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-card);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

.mobile-nav-dropdown {
    border-bottom: 1px solid var(--border-glass);
}

.mobile-nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500;
    padding: 8px 0;
    color: var(--text-main);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-nav-trigger::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
}

.mobile-nav-dropdown.active .mobile-nav-trigger::after {
    content: '-';
}

.mobile-nav-submenu {
    display: none;
    padding: 8px 0 0 0;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-nav-dropdown.active .mobile-nav-submenu {
    display: block;
}

.mobile-nav-submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    padding: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--bg-card);
    border-radius: 8px;
    margin-bottom: 4px;
}

.mobile-nav-submenu a:last-child {
    border-bottom: none;
}

.mobile-nav-submenu .dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(30, 58, 95, 0.06);
    color: var(--text-muted);
}

.mobile-nav-submenu .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav-submenu .dropdown-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
}

.mobile-nav-submenu .dropdown-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.mobile-phone {
    display: block;
    margin-top: 32px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
}

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1300;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.3);
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    touch-action: manipulation;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(200, 169, 110, 0.25);
    border-color: rgba(200, 169, 110, 0.5);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: var(--text-main);
}

/* ===== BOTTOM NAVIGATION (MOBILE) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 4px 0 env(safe-area-inset-bottom, 2px);
    background: rgba(14, 17, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1200;
}

.bottom-nav-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    width: 100%;
}

.bottom-nav-brand {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    padding: 2px 0 4px;
    width: 100%;
    text-align: center;
}

.bottom-nav-brand .accent {
    color: rgba(var(--accent-gold-rgb), 0.4);
}

@media (max-width: 480px) {
    .bottom-nav-brand {
        font-size: 8px;
        letter-spacing: 1.2px;
        padding: 1px 0 3px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-heading);
    flex: 1;
    min-width: 0;
    max-width: 72px;
    touch-action: manipulation;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-icon {
    width: clamp(22px, 4vw, 26px);
    height: clamp(22px, 4vw, 26px);
    transition: color 0.2s ease;
}

.bottom-nav-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.2;
    color: inherit;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus-visible {
    color: var(--accent-gold);
}

/* Center CTA button — gold circle */
.bottom-nav-cta {
    position: relative;
    max-width: 64px;
}

.bottom-nav-cta .bottom-nav-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-gold);
    color: var(--bg-main);
    border-radius: 50%;
    padding: 6px;
    margin-bottom: 1px;
    stroke: currentColor;
}

.bottom-nav-cta .bottom-nav-label {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== BOTTOM NAV PANEL (Services) ===== */
.bottom-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1189;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    will-change: opacity;
}

.bottom-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1190;
    background: var(--bg-main);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s var(--transition-smooth);
    pointer-events: none;
    will-change: transform;
}

.bottom-nav-panel.active {
    transform: translateY(0);
    pointer-events: auto;
}

.bottom-panel-grip {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(var(--text-main-rgb), 0.15);
    flex-shrink: 0;
}

.bottom-panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.bottom-panel-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.bottom-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-panel-close svg {
    pointer-events: none;
}

.bottom-panel-close:hover,
.bottom-panel-close:focus-visible {
    background: rgba(200, 169, 110, 0.15);
    color: var(--accent-gold);
}

.bottom-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px calc(78px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.bottom-panel-section {
    margin-bottom: 16px;
}

.bottom-panel-section:last-child {
    margin-bottom: 0;
}

.bottom-panel-section-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: rgba(var(--accent-gold-rgb), 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 10px 6px;
}

.bottom-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
    touch-action: manipulation;
}

.bottom-panel-link:active {
    background: rgba(200, 169, 110, 0.08);
}

.bottom-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.15);
    color: var(--accent-gold);
    flex-shrink: 0;
}

.bottom-panel-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bottom-panel-link-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.9);
    line-height: 1.3;
}

.bottom-panel-link-desc {
    font-size: 12px;
    color: rgba(var(--text-main-rgb), 0.6);
    line-height: 1.4;
}

/* Body lock when panel is open */
body.bottom-panel-open {
    overflow: hidden;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* --- 1200px and below --- */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contacts-map {
        min-height: 350px;
    }
}

/* --- 1024px and below --- */
@media (max-width: 1024px) {
    .hero {
        min-height: 100dvh;
        padding: 130px 0 90px;
    }

    .nav {
        display: none;
    }
    
    .nav-dropdown {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .portfolio-filters {
        gap: 8px;
    }
    
    .portfolio-filter {
        padding: 10px 18px;
    font-size: 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    
    .portfolio-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .review-card {
        flex: 0 0 calc(50% - 14px);
    }
    
    .calculator-wrapper {
        gap: 60px;
    }
    
    .calculator-title {
        font-size: 34px;
    }
    
    .english-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-top > .container {
        max-width: 100%;
        padding: 0 16px;
    }

    .header {
        height: 56px;
    }

    .header-content {
        gap: 0;
        padding: clamp(4px, 0.6vw, 8px) 0;
    }

    .header-phone-block {
        display: none;
    }

    .header-mobile-top {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    .hm-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
    }

    .hm-top-row .logo {
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
    }

    .header-mobile-socials {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: clamp(4px, 0.6vw, 10px);
        flex-shrink: 0;
    }

    .header-mobile-socials .social-icon {
        background: none;
        border: none;
        border-radius: 0;
        width: auto;
        height: auto;
    }

    .header-mobile-socials .social-icon img {
        width: clamp(26px, 4vw, 34px);
        height: clamp(26px, 4vw, 34px);
        display: block;
    }

    .header-mobile-socials .social-icon:hover {
        background: none;
        border: none;
        transform: none;
        box-shadow: none;
    }

    .logo-img {
        height: clamp(38px, 5vw, 46px);
    }

    .logo-text {
        flex-direction: column;
        gap: 0;
    }

    .logo-line2 {
        display: block;
        font-size: 12px;
        letter-spacing: 0.6px;
    }

    .logo-line1 {
        font-size: 17px;
    }

    .hm-subtitle {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .back-to-top {
        bottom: 150px;
    }

    .footer {
        padding-bottom: 78px;
    }
}

/* --- 768px and below --- */
@media (max-width: 768px) {

    .advantages {
        padding: 60px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .advantage-card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        padding: 20px;
    }
    
    .advantage-icon {
        margin: 0;
        flex-shrink: 0;
        width: 52px;
        height: 52px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .about-features {
        gap: 16px;
    }
    
    .about-feature {
        padding: 20px;
    }
    
    .faq {
        padding: 80px 0;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 15px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 14px;
    }
    
    .english-section {
        padding: 80px 0;
    }
    
    .english-text h2 {
        font-size: 28px;
    }
    
    .english-form {
        padding: 28px;
    }
    
    .blog {
        padding: 80px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .nav a, .mobile-nav a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .social-icon {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .services,
    .portfolio,
    .process,
    .calculator,
    .reviews,
    .contacts {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .calculator-form {
        padding: 32px;
    }
    
    .review-card {
        flex: 0 0 100%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    
    .portfolio-item.large {
        grid-column: span 1;
    }
    
    .portfolio-overlay {
        opacity: 1;
    }
    
    .portfolio-task,
    .portfolio-result {
        display: none;
    }
    
    .footer {
        padding: 60px 0 82px;
        background-image:
            repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.03) 30px, rgba(200, 169, 110, 0.03) 31px),
            repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.03) 30px, rgba(200, 169, 110, 0.03) 31px);
        background-color: #0E1117;
        box-shadow: none;
    }
    .footer::after {
        display: none;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 48px;
    }
    
    .footer-brand {
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    
    .footer-brand .brand-phone {
        font-size: clamp(18px, 5vw, 24px);
        white-space: normal;
        word-break: break-word;
    }
    
    .footer-brand .brand-worktime {
        font-size: clamp(12px, 3.5vw, 15px);
        white-space: normal;
    }
    
    .brand-cta-wrap {
        flex-direction: row;
        align-items: center;
        white-space: nowrap;
    }
    
    .brand-cta-btn {
        flex: 1;
        padding: 12px 16px;
        min-width: 0;
        font-size: 13px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-text {
        padding: 18px 20px;
    }
    
    .footer-logo-text .step {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .footer-logo-text .step--light {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        padding: 24px 0 20px;
    }
    
    .footer-copyright {
        font-size: 11px;
        line-height: 1.7;
    }
    
    .footer-copyright .footer-divider {
        display: none;
    }
    
    .footer-legal {
        margin-left: 0;
    }
    
    .footer-legal a + a {
        margin-left: 8px;
    }
    
    .footer-legal a {
        font-size: 10px;
        padding: 0;
        min-height: auto;
    }
}

/* --- 480px and below --- */
@media (max-width: 480px) {
    .footer-brand {
        padding: 12px;
        gap: 10px;
    }
    
    .footer-bottom {
        padding: 20px 0 16px;
        gap: 12px;
    }
    
    .footer-copyright {
        font-size: 10px;
        line-height: 1.6;
    }
    
    .footer-legal {
        margin-left: 0;
    }
    
    .footer-legal a + a {
        margin-left: 8px;
    }
    
    .footer-legal a {
        font-size: 10px;
        padding: 0;
        min-height: auto;
    }
}
    
/* ===== MEASURER MODAL (Engineer) ===== */
.measurer-modal {
    max-width: 380px;
}

.measurer-header {
    text-align: center;
    margin-bottom: 14px;
}

.measurer-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.3;
}

.measurer-subtitle {
    font-size: 13px;
    color: rgba(var(--text-main-rgb),0.5);
    margin-bottom: 0;
    text-align: center;
}

#measurerForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.measurer-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.measurer-modal .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.measurer-modal .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb),0.7);
    margin-bottom: 6px;
    white-space: nowrap;
}

.measurer-modal .form-group input,
.measurer-modal .form-group select {
    padding: 10px 12px;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.measurer-modal .form-group input::placeholder {
    font-size: 13px;
    color: rgba(var(--text-main-rgb),0.3);
}

.measurer-modal .optional-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(var(--text-main-rgb),0.5);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.measurer-modal .optional-checkbox input {
    display: none;
}

.measurer-modal .optional-checkbox .checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.measurer-modal .optional-checkbox input:checked + .checkbox-custom {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.measurer-modal .optional-checkbox input:checked + .checkbox-custom::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-main);
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.measurer-modal .form-hint {
    font-size: 11px;
    margin-top: 2px;
    color: rgba(var(--text-main-rgb),0.4);
}

.measurer-modal .checkbox-wrapper {
    justify-content: center;
    margin-top: 6px;
}

.measurer-modal .checkbox-label {
    margin-bottom: 0;
}



/* ===== Checkbox validation ===== */
.checkbox-error {
    border: 1px solid #e74c3c !important;
    border-radius: 8px;
    padding: 8px;
    background: rgba(231, 76, 60, 0.08);
}

.checkbox-error .checkbox-custom {
    border-color: #e74c3c !important;
}

.checkbox-error-message {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 6px;
    margin-bottom: 16px;
    display: block;
}

    font-size: 0.85em;
    margin-top: 6px;
    margin-bottom: 16px;
    display: block;
}
