/* ============================================================
   JOTA URBANIC – ПРЕМИАЛЬНЫЙ МИНИМАЛИСТИЧНЫЙ ДИЗАЙН
   Шрифт: TT Norms Pro (fallback: Manrope / Inter)
   ============================================================ */

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
    --primary-color: #FF5C01;
    --primary-hover: #E04D00;
    --primary-light: #FF8C42;
    --secondary-color: #435395;
    --secondary-light: #5A6BC4;
    --text-color: #1A1A2E;
    --text-secondary: #4A4A6A;
    --text-muted: #8888AA;
    --light-bg: #F7F8FC;
    --white: #FFFFFF;
    --dark-gray: #222222;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --box-shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 16px 48px rgba(255, 92, 1, 0.12);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #FF5C01 0%, #FF8C42 100%);
    --gradient-secondary: linear-gradient(135deg, #435395 0%, #5A6BC4 100%);
    --font-primary: 'TT Norms Pro', 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- СБРОС ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 130px 0;
    position: relative;
}

.container {
    max-width: 1280px;
    padding: 0 24px;
    margin: 0 auto;
}

/* ---------- ТИПОГРАФИКА ---------- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ---------- Декоративная линия под заголовком ---------- */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 92, 1, 0.15) 15%,
        #FF5C01 50%,
        rgba(255, 92, 1, 0.15) 85%,
        transparent 100%
    );
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* При наведении — линия чуть растягивается */
.section-title:hover::after {
    width: 120px;
}

/* Убираем точку из прошлой версии */
.section-title::before {
    display: none !important;
    content: none !important;
}

/* Центрированные заголовки (text-center) — то же поведение */
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 4rem;
    line-height: 1.7;
    font-weight: 400;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.75;
}

.section-header {
    margin-bottom: 3rem;
}

/* ---------- КНОПКИ ---------- */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 92, 1, 0.22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 92, 1, 0.32);
    color: var(--white);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(67, 83, 149, 0.22);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(67, 83, 149, 0.32);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 92, 1, 0.22);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--text-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 17px 42px;
    font-size: 1rem;
}

/* ---------- НАВИГАЦИЯ ---------- */

/* 1. БАЗОВЫЕ СТИЛИ (ДЛЯ ВСЕХ СТРАНИЦ ПО УМОЛЧАНИЮ - СВЕТЛЫЕ) */
.navbar {
    padding: 18px 0;
    /* По умолчанию светлый фон и тень */
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Цвета текста и логотипа по умолчанию (темные) */
.navbar .nav-link { color: var(--text-secondary) !important; }
.navbar .nav-link:hover { color: var(--primary-color) !important; background: rgba(255, 92, 1, 0.06) !important; }
.navbar .nav-link.active { color: var(--primary-color) !important; font-weight: 600; }
.navbar .logo-img { filter: none; }


/* 2. СПЕЦИАЛЬНО ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (ПРОЗРАЧНЫЙ ФОН, БЕЛЫЙ ТЕКСТ) */
body.home-page .navbar:not(.scrolled) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: none !important;
}

body.home-page .navbar:not(.scrolled) .nav-link { 
    color: rgba(255, 255, 255, 0.8) !important; 
}
body.home-page .navbar:not(.scrolled) .nav-link:hover { 
    color: #FFFFFF !important; 
    background: rgba(255, 255, 255, 0.1) !important; 
}
body.home-page .navbar:not(.scrolled) .nav-link.active { 
    color: #FFFFFF !important; 
}
body.home-page .navbar:not(.scrolled) .logo-img { 
    filter: brightness(0) invert(1); /* Делаем логотип белым */
}

/* 3. СОСТОЯНИЕ ПРИ СКРОЛЛЕ (ДЛЯ ВСЕХ СТРАНИЦ) */
.navbar.scrolled {
    padding: 12px 0;
    /* Плавное уменьшение отступов при скролле */
}

/* --- ОБЩИЕ СТИЛИ (БЕЗ ИЗМЕНЕНИЙ) --- */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    width: 65px;
    height: 65px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-primary {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.brand-secondary {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    font-weight: 500;
    padding: 10px 18px !important;
    border-radius: 100px;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-cta {
    margin-left: 12px;
}

.nav-cta .btn {
    padding: 12px 26px;
    font-size: 0.9rem;
}

/* ============================================================
   HERO SECTION — PREMIUM MODERN
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 60px;
    background: #0A0E1A;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    
    background: url('../images/basti-bet.webp') center bottom / cover no-repeat;
    
    transform: scale(1);
    
    transition: transform 12s ease;
    opacity: 1;
    filter: brightness(0.9) contrast(1.05) saturate(0.9);
    -webkit-filter: brightness(0.9) contrast(1.05) saturate(0.9);
}

.hero-section:hover .hero-background-image {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 14, 26, 0.205);
}

/* ---------- BLOBS (декоративные градиентные пятна) ---------- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    animation: blobFloat 14s ease-in-out infinite;
}

.hero-blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #FF5C01 0%, transparent 70%);
    top: 5%;
    left: -8%;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #435395 0%, transparent 70%);
    bottom: -5%;
    right: -10%;
    animation-delay: -7s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -20px) scale(1.05); }
    66%      { transform: translate(-20px, 30px) scale(0.98); }
}

/* ---------- GRID & CONTENT ---------- */
.hero-grid {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(-20px);
}

/* ---------- BADGE ---------- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-badge strong {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF5C01;
    box-shadow: 0 0 0 4px rgba(255, 92, 1, 0.25);
    animation: pulseDot 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 92, 1, 0.25); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 92, 1, 0); }
}

/* ---------- TITLE ---------- */
.hero-title {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-title .highlight {
    background: linear-gradient(120deg, #FF5C01 0%, #FF8C42 45%, #FFB37A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

/* ---------- SUBTITLE ---------- */
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto 2rem;
    max-width: 640px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* ---------- ACTIONS ---------- */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.btn-hero-primary,
.btn-hero-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 54px;
    white-space: nowrap;
    line-height: 1;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #FF5C01 0%, #FF8C42 100%);
    color: #FFFFFF !important;
    border: none;
    box-shadow: 0 10px 30px rgba(255, 92, 1, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FF8C42 0%, #FF5C01 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
}

.btn-hero-primary > i,
.btn-hero-primary > span {
    position: relative;
    z-index: 1;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(255, 92, 1, 0.5);
    color: #FFFFFF !important;
}

.btn-hero-primary:hover::before {
    opacity: 1;
}

.btn-hero-primary:active {
    transform: translateY(-1px);
}

.btn-hero-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF !important;
}

.btn-hero-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px);
    color: #FFFFFF !important;
}

.btn-hero-glass:active {
    transform: translateY(-1px);
}

.btn-hero-primary i,
.btn-hero-glass i {
    font-size: 0.9rem;
}

/* ---------- STATS (glass capsule) ---------- */
.hero-stats {
    display: inline-flex;
    align-items: stretch;
    padding: 22px 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 28px;
    min-width: 0;
}

.hero-stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 92, 1, 0.15);
    color: #FF8C42;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stat:hover .hero-stat-icon {
    background: linear-gradient(135deg, #FF5C01 0%, #FF8C42 100%);
    color: #FFFFFF;
    transform: scale(1.06) rotate(-3deg);
}

.hero-stat-body {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
    min-width: 0;
}

.hero-stat-body .stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    font-family: var(--font-primary);
    line-height: 1;
    display: block;
}

.hero-stat-body .stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
    display: block;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-stat-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    flex-shrink: 0;
    align-self: center;
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-down {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    z-index: 3;
    animation: scrollBounce 2.4s infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
}

.scroll-down:hover {
    background: rgba(255, 92, 1, 0.18);
    border-color: #FF5C01;
    color: #FFFFFF;
    transform: translateX(-50%) translateY(-4px);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%                     { transform: translateX(-50%) translateY(-8px); }
    60%                     { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- HERO ADAPTIVE ---------- */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-stats {
        padding: 18px 8px;
    }

    .hero-stat {
        padding: 0 18px;
        gap: 10px;
    }

    .hero-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .hero-stat-body .stat-number {
        font-size: 1.5rem;
    }

    .hero-stat-body .stat-label {
        font-size: 0.66rem;
    }

    .hero-stat-divider {
        height: 38px;
    }

    .hero-actions {
        margin-bottom: 48px;
    }

    .hero-background-image {
        background-attachment: scroll;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.15rem;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
        margin-bottom: 40px;
    }

    .btn-hero-primary,
    .btn-hero-glass {
        width: 100%;
        padding: 15px 24px;
        min-height: 52px;
    }

    .hero-stats {
        flex-direction: column;
        padding: 8px 22px;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 20px;
    }

    .hero-stat {
        padding: 16px 0;
        width: 100%;
    }

    .hero-stat-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    }

    .scroll-down {
        bottom: 22px;
        width: 42px;
        height: 42px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 7px 14px;
        margin-bottom: 24px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-stat-body .stat-number {
        font-size: 1.4rem;
    }
}

/* ---------- ABOUT ---------- */
.about-section {
    background: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2rem 0;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-item i {
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.04);
}

/* ---------- SERVICES ---------- */
.services-section.light-bg {
    background: var(--light-bg);
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 44px 32px 36px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 92, 1, 0.15);
}

.service-icon {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 92, 1, 0.08);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05) rotate(-3deg);
}

.service-card h4 {
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 22px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-size: 0.95rem;
    margin-top: auto;
}

.service-link:hover {
    gap: 12px;
    color: var(--primary-hover);
}

/* ---------- PRODUCTS ---------- */
.products-section {
    background: var(--white);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 92, 1, 0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h4 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.65;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.feature-item {
    background: rgba(67, 83, 149, 0.06);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.product-info .btn {
    width: 100%;
    margin-top: auto;
}

/* ---------- PROJECTS ---------- */
.projects-section.light-bg {
    background: var(--light-bg);
}

.projects-container {
    max-width: 1300px;
    margin: 0 auto;
}

.project-item {
    margin-bottom: 130px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-row {
    display: flex;
    align-items: center;
    min-height: 500px;
    gap: 70px;
}

.project-image-col {
    flex: 0 0 55%;
    position: relative;
}

.project-content-col {
    flex: 0 0 45%;
}

.project-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    height: 500px;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s, box-shadow 0.4s ease;
    transform: translateZ(0);
    will-change: transform;
}

.project-item.visible .project-image {
    opacity: 1;
    transform: scale(1);
}

.project-image:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); 
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.project-item.visible .project-badge {
    opacity: 1;
    transform: translateY(0);
}

.badge-city {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.badge-year {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(255, 92, 1, 0.3);
}

.project-content {
    padding: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.project-item.visible .project-content {
    opacity: 1;
    transform: translateY(0);
}

.project-content h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.project-location {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 22px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

.project-location::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.project-description {
    margin-bottom: 26px;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}

.project-features {
    margin-bottom: 26px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.project-features h5 {
    margin-bottom: 14px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    padding: 8px 0 8px 26px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-item.visible .project-features li {
    opacity: 1;
    transform: translateX(0);
}

.project-item.visible .project-features li:nth-child(1) { transition-delay: 0.4s; }
.project-item.visible .project-features li:nth-child(2) { transition-delay: 0.5s; }
.project-item.visible .project-features li:nth-child(3) { transition-delay: 0.6s; }
.project-item.visible .project-features li:nth-child(4) { transition-delay: 0.7s; }

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.project-stats {
    display: flex;
    gap: 30px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: left;
    flex: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-item.visible .stat {
    opacity: 1;
    transform: translateY(0);
}

.project-item.visible .stat:nth-child(1) { transition-delay: 0.5s; }
.project-item.visible .stat:nth-child(2) { transition-delay: 0.6s; }
.project-item.visible .stat:nth-child(3) { transition-delay: 0.7s; }

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ---------- ADVANTAGES ---------- */
.advantage-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 28px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 92, 1, 0.15);
}

.advantage-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(255, 92, 1, 0.08);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.06) rotate(-3deg);
}

.advantage-card h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.advantage-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ---------- CONTACT ---------- */
.contact-section.light-bg {
    background: var(--light-bg);
}

.contact-info {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    background: rgba(255, 92, 1, 0.08);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}

.contact-details h5 {
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.contact-details p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.social-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
}

.social-section h5 {
    margin-bottom: 18px;
    font-size: 1rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(67, 83, 149, 0.08);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 92, 1, 0.28);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 44px;
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.form-control {
    padding: 14px 18px;
    border: 1.5px solid #E8E8F0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    font-family: var(--font-primary);
    color: var(--text-color);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 92, 1, 0.08);
    outline: none;
}

.form-check-input {
    border: 1.5px solid #E8E8F0;
    margin-top: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #14141F;
    color: var(--white);
    padding: 90px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 1, 0.4), transparent);
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-logo {
    width: 85px;
    height: 85px;
    margin-bottom: 16px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-size: 0.92rem;
}

.footer-contact:hover {
    color: var(--primary-color);
}

.footer-contact i {
    width: 20px;
    color: var(--primary-color);
}

.footer-heading {
    font-size: 0.95rem;
    margin-bottom: 22px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    margin-top: 60px;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-size: 0.85rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.legal-link:hover {
    color: var(--primary-color);
}

.footer-legal {
    text-align: right;
}

/* ---------- QUICK ACTIONS ---------- */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.quick-action {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    font-size: 1.15rem;
}

.quick-action:hover {
    transform: translateY(-4px) scale(1.06);
    color: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.quick-action.phone {
    background: var(--gradient-primary);
}

.quick-action.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.quick-action.email {
    background: var(--gradient-secondary);
}

.quick-text {
    display: none;
}

/* ---------- SCROLL TO TOP ---------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(255, 92, 1, 0.28);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 92, 1, 0.38);
}

/* ---------- NOTIFICATIONS ---------- */
.notification-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 18px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification i {
    font-size: 1.3rem;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification-content {
    flex: 1;
    font-size: 0.92rem;
    color: var(--text-color);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-color);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* ---------- ACCESSIBILITY ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* ---------- PRODUCT IMAGE LOADING ---------- */
.product-image img,
.project-image img {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.product-image img.loaded,
.project-image img.loaded {
    opacity: 1;
}

/* ---------- ZOOM OVERLAY ---------- */
.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.product-image:hover .zoom-overlay {
    opacity: 1;
}

.zoom-overlay i {
    color: var(--white);
    font-size: 1.4rem;
    background: rgba(255, 92, 1, 0.9);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.35s ease;
}

.product-image:hover .zoom-overlay i {
    transform: scale(1);
}

/* ============================================================
   PRODUCT MODAL (ZOOM) — Premium
   ============================================================ */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Затемнённый фон */
.product-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Контейнер модалки */
.product-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(900px, 92vw);
    max-height: 92vh;
    background: #FFFFFF;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

/* ---------- КАРТИНКА: заполняет верхнюю часть модалки ---------- */
.product-modal .modal-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;   /* фиксированное соотношение — без серых полей */
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    object-position: center;
    background: #F1F5F9;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
}

/* ---------- ТЕКСТОВЫЙ БЛОК ---------- */
.product-modal .modal-info {
    padding: 22px 32px 26px;
    background: #FFFFFF;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    overflow-y: auto;
}

.product-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-modal .modal-description {
    font-size: 0.94rem;
    color: #64748B;
    margin: 0;
    line-height: 1.6;
}

/* ---------- КНОПКА ЗАКРЫТИЯ ---------- */
.product-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0F172A;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    line-height: 1;
}

.product-modal .modal-close:hover {
    background: #FF5C01;
    color: #FFFFFF;
    transform: rotate(90deg);
    box-shadow: 0 6px 24px rgba(255, 92, 1, 0.45);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 767.98px) {
    .product-modal .modal-content {
        width: 94vw;
        max-height: 94vh;
        border-radius: 18px;
    }

    .product-modal .modal-image {
        aspect-ratio: 4 / 3;
        max-height: 55vh;
    }

    .product-modal .modal-info {
        padding: 18px 22px 22px;
    }

    .product-modal .modal-title {
        font-size: 1.1rem;
    }

    .product-modal .modal-description {
        font-size: 0.88rem;
    }

    .product-modal .modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .product-modal .modal-image {
        aspect-ratio: 1 / 1;
        max-height: 50vh;
    }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 92, 1, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ---------- SELECTION ---------- */
::selection {
    background: rgba(255, 92, 1, 0.2);
    color: var(--text-color);
}

/* ---------- SMOOTH IMAGE LOADING ---------- */
img {
    background: linear-gradient(90deg, #F7F8FC 25%, #EEF0F6 50%, #F7F8FC 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img.loaded,
img[src*=".svg"] {
    background: none;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   АДАПТАЦИЯ
   ============================================================ */

@media (max-width: 1199.98px) {
    .container { max-width: 960px; }
    .section { padding: 110px 0; }
    .section-title { font-size: 2.4rem; }
    .project-row { gap: 50px; }
    .project-image { height: 460px; }
}

@media (max-width: 991.98px) {
    .container { max-width: 100%; }
    .section { padding: 90px 0; }
    
    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: 16px;
        right: 16px;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 6px;
    }
    
    .nav-link {
        padding: 14px 18px !important;
        margin: 0 !important;
        text-align: left;
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
    }
    
    .nav-cta .btn {
        width: 100%;
    }
    
    .hero-section {
        background-attachment: scroll;
        min-height: 90vh;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-background-image {
        background-attachment: scroll;
    }
    
    .hero-stats .stat-card {
        min-width: 100px;
        padding: 16px 22px;
    }
    
    .hero-stats .stat-number {
        font-size: 2.2rem;
    }
    
    .project-row {
        flex-direction: column;
        min-height: auto;
        gap: 36px;
    }
    
    .project-image-col,
    .project-content-col {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .project-image {
        height: 400px;
    }
    
    .project-content {
        padding: 0;
    }
    
    .project-stats {
        gap: 22px;
    }
    
    .contact-form-card,
    .contact-info {
        padding: 32px 26px;
    }
}

@media (max-width: 767.98px) {
    .section { padding: 70px 0; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 3rem; }
    
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-actions .btn { width: 100%; }
    .btn-price { width: 100%; }
    
    .hero-stats {
        gap: 10px;
    }
    .hero-stats .stat-card {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 80px;
        padding: 14px 12px;
    }
    .hero-stats .stat-number { font-size: 1.8rem; }
    .hero-stats .stat-label { font-size: 0.75rem; }
    
    .project-image { height: 300px; }
    .project-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    .stat { flex: 1 1 calc(33.333% - 16px); min-width: 90px; }
    .stat-number { font-size: 1.8rem; }
    
    .footer .row > div { margin-bottom: 32px; }
    .footer-legal { text-align: left; margin-top: 12px; }
    
    .quick-actions { bottom: 20px; right: 20px; gap: 10px; }
    .quick-action { width: 50px; height: 50px; font-size: 1rem; }
    
    .scroll-to-top { bottom: 20px; left: 20px; width: 44px; height: 44px; }
    
    .notification-container {
        top: 80px;
        left: 16px;
        right: 16px;
    }
    .notification { min-width: auto; width: 100%; }
    
    .modal-image { height: 260px; }
}

@media (max-width: 575.98px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    
    .btn-lg { padding: 15px 32px; font-size: 0.95rem; }
    .btn { padding: 12px 26px; font-size: 0.9rem; }
    
    .hero-stats .stat-card { flex: 1 1 100%; max-width: 140px; margin: 0 auto; }
    .hero-stats { gap: 10px; }
    
    .project-image { height: 260px; }
    .stat { flex: 1 1 calc(50% - 16px); }
    
    .contact-form-card,
    .contact-info,
    .social-section {
        padding: 26px 22px;
    }
}

/* ---------- УВАЖЕНИЕ К НАСТРОЙКАМ ПОЛЬЗОВАТЕЛЯ ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-background-image {
        transform: none !important;
    }
}

/* ---------- PRINT ---------- */
@media print {
    .navbar,
    .hero-actions,
    .contact-form-card,
    .quick-actions,
    .scroll-to-top,
    .footer {
        display: none !important;
    }
}

/* ============================================================
   PRIVACY MODAL — Clean & Professional
   ============================================================ */
.privacy-modal .modal-dialog {
    max-width: 720px;
}

.privacy-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.18),
        0 8px 24px rgba(15, 23, 42, 0.08);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

/* ---------- ШАПКА ---------- */
.privacy-modal .modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0F172A;
    line-height: 1.3;
    margin: 0;
    padding-right: 20px;
}

.privacy-modal .btn-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.04);
    background-size: 11px;
    opacity: 0.6;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.privacy-modal .btn-close:hover {
    background-color: rgba(255, 92, 1, 0.12);
    opacity: 1;
    transform: rotate(90deg);
}

.privacy-modal .btn-close:focus {
    box-shadow: none;
}

/* ---------- ТЕЛО ---------- */
.privacy-modal .modal-body {
    padding: 32px 40px 36px;
    overflow-y: auto;
    flex: 1 1 auto;
    background: #FFFFFF;
}

.privacy-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #334155;
    letter-spacing: -0.005em;
}

.privacy-body p {
    margin: 0 0 16px;
    color: #334155;
}

.privacy-body p:last-child {
    margin-bottom: 0;
}

.privacy-body p strong {
    color: #0F172A;
    font-weight: 600;
}

.privacy-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.015em;
    line-height: 1.4;
    margin: 32px 0 14px;
}

.privacy-body h4:first-child {
    margin-top: 0;
}

.privacy-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-body ul li {
    position: relative;
    padding-left: 22px;
    color: #334155;
    line-height: 1.7;
}

.privacy-body ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF5C01;
}

.privacy-body a {
    color: #FF5C01;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 92, 1, 0.3);
    transition: border-color 0.2s ease;
}

.privacy-body a:hover {
    border-bottom-color: #FF5C01;
}

/* ---------- ПОДВАЛ МОДАЛКИ ---------- */
.privacy-modal .modal-footer {
    padding: 18px 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #FAFBFD;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

.btn-privacy-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 100px;
    background: #0F172A;
    border: none;
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.005em;
    min-height: 46px;
    line-height: 1;
}

.btn-privacy-close:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    color: #FFFFFF;
}

.btn-privacy-close:active {
    transform: translateY(0);
}

/* ---------- СКРОЛЛБАР ---------- */
.privacy-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.privacy-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    border: 2px solid #FFFFFF;
}

.privacy-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.55);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 767.98px) {
    .privacy-modal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .privacy-modal .modal-content {
        border-radius: 18px;
        max-height: 94vh;
    }

    .privacy-modal .modal-header {
        padding: 18px 20px;
    }

    .privacy-modal .modal-title {
        font-size: 1rem;
        padding-right: 12px;
    }

    .privacy-modal .modal-body {
        padding: 24px 22px 28px;
    }

    .privacy-body {
        font-size: 0.9rem;
    }

    .privacy-body h4 {
        font-size: 0.96rem;
        margin-top: 26px;
    }

    .privacy-modal .modal-footer {
        padding: 14px 20px;
    }

    .btn-privacy-close {
        width: 100%;
    }
}

/* ============================================================
   П.22 — Bounce-анимация иконки корзины
   ============================================================ */
@keyframes cartBounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.22); }
    50%  { transform: scale(0.92); }
    75%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.cart-icon.cart-icon-bounce {
    animation: cartBounce 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   П.23 — Усиленная тень под карточкой товара
   ============================================================ */
.product-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.product-card:hover {
    box-shadow:
        0 25px 40px -12px rgba(255, 92, 1, 0.22),
        0 18px 36px -10px rgba(15, 23, 42, 0.14),
        0 6px 12px -4px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   П.19 — Cookies-баннер
   ============================================================ */
.cookies-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 620px;
    margin: 0 auto;
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.4),
        0 8px 20px rgba(15, 23, 42, 0.2);
    z-index: 9000;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
    pointer-events: none;
}

.cookies-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookies-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cookies-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 92, 1, 0.18);
    color: #FF8C42;
    font-size: 1.15rem;
}

.cookies-text {
    flex: 1;
    min-width: 180px;
}

.cookies-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 3px;
    letter-spacing: -0.005em;
}

.cookies-text p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.cookies-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.cookies-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookies-link:hover {
    color: #FFFFFF;
    border-bottom-color: #FF5C01;
}

.cookies-accept {
    background: linear-gradient(135deg, #FF5C01 0%, #FF8C42 100%);
    border: none;
    color: #FFFFFF;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(255, 92, 1, 0.35);
    white-space: nowrap;
    letter-spacing: -0.005em;
}

.cookies-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 92, 1, 0.5);
}

.cookies-accept:active {
    transform: translateY(0);
}

/* Сдвигаем плавающие кнопки, чтобы не накладывались на баннер */
body.has-cookies-banner .scroll-to-top {
    bottom: 200px;
}

body.has-cookies-banner .quick-actions {
    bottom: 200px;
}

@media (max-width: 767.98px) {
    .cookies-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .cookies-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cookies-actions {
        width: 100%;
        margin-left: 0;
    }

    .cookies-accept {
        flex: 1;
    }

    body.has-cookies-banner .scroll-to-top {
        bottom: 230px;
    }

    body.has-cookies-banner .quick-actions {
        bottom: 230px;
    }
}

/* ============================================================
   П.13 — Бесконечный скролл каталога
   ============================================================ */
.product-row-hidden {
    display: none;
}

.product-row-reveal {
    animation: productRowReveal 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes productRowReveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.catalog-sentinel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0 24px;
    width: 100%;
}

.catalog-loader {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF5C01;
    font-size: 1.6rem;
    opacity: 0.85;
}

/* ============================================================
   П.12 — Sticky-панель «В корзину» на product-detail (mobile)
   ============================================================ */
.product-sticky-bar {
    display: none;
}

@media (max-width: 767.98px) {
    .product-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        z-index: 1000;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .product-sticky-bar.show {
        transform: translateY(0);
    }

    .product-sticky-info {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .product-sticky-name {
        font-size: 0.88rem;
        font-weight: 700;
        color: #0F172A;
        letter-spacing: -0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }

    .product-sticky-price {
        font-size: 0.72rem;
        color: #94A3B8;
        margin-top: 3px;
        font-weight: 500;
    }

    .product-sticky-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }

    .product-sticky-btn {
        height: 42px;
        border-radius: 100px;
        border: none;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: inherit;
        font-weight: 700;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        letter-spacing: -0.005em;
    }

    .product-sticky-btn:not(.product-sticky-btn-primary) {
        width: 42px;
        background: #F1F5F9;
        color: #0F172A;
    }

    .product-sticky-btn:not(.product-sticky-btn-primary):hover {
        background: #E2E8F0;
    }

    .product-sticky-btn-primary {
        padding: 0 22px;
        background: linear-gradient(135deg, #FF5C01 0%, #FF8C42 100%);
        color: #FFFFFF;
        box-shadow: 0 4px 14px rgba(255, 92, 1, 0.35);
    }

    .product-sticky-btn-primary:hover {
        box-shadow: 0 6px 20px rgba(255, 92, 1, 0.5);
    }
}

/* Стиль для невалидного чекбокса */
.form-check-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}