/* ============================================================
   ГК ФАБРИКА — Лендинг
   Концепция: «Деловой Партнёр» — светлый, B2B, чистый
   Шрифты: Unbounded (заголовки) + Onest (тело)
   Палитра: белый + тёмно-синий #1B2C4E + оранжевый #FF6B35
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;800;900&family=Onest:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --navy: #1B2C4E;
    --navy-dark: #0F1C33;
    --navy-mid: #243659;
    --orange: #FF6B35;
    --orange-dark: #E55A25;
    --orange-light: #FF8A5B;
    --white: #FFFFFF;
    --gray-50: #F8F9FB;
    --gray-100: #EEF0F5;
    --gray-200: #DDE1EA;
    --gray-400: #9AA3B5;
    --gray-600: #5C6880;
    --gray-800: #2D3748;
    --text: #1A2540;
    --text-muted: #5C6880;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(27,44,78,0.08);
    --shadow: 0 4px 24px rgba(27,44,78,0.12);
    --shadow-lg: 0 12px 48px rgba(27,44,78,0.18);
    --shadow-xl: 0 24px 80px rgba(27,44,78,0.22);
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
    --container: 1200px;
    --section-gap: 96px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

a[href^="tel"] {
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Typography ---------- */
.font-display {
    font-family: 'Unbounded', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Unbounded', sans-serif;
    line-height: 1.15;
    color: var(--navy);
}

h1 {
    font-size: clamp(28px, 4.5vw, 56px);
    font-weight: 800;
}

h2 {
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 700;
}

h3 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

p {
    color: var(--text-muted);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section ---------- */
section {
    padding: var(--section-gap) 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius);
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255,107,53,0.35);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,107,53,0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 17px;
    border-radius: 14px;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- HEADER ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}

#header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

nav a:hover {
    color: var(--navy);
    background: var(--gray-50);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

.header-phone {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
}

.header-phone:hover {
    color: var(--orange);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 16px 24px 24px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.mobile-nav a:hover {
    background: var(--gray-50);
}

.mobile-nav .mobile-phone {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    padding: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--gray-100);
    text-decoration: none;
}

/* ---------- HERO ---------- */
#hero {
    padding-top: 72px;
    background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, #1E3A6B 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-glow2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 80px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #FF9B6E;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--orange);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
}

.hero-bullet-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(255,107,53,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bullet-icon svg {
    width: 12px;
    height: 12px;
    color: var(--orange);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-trust {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hero-stat {
}

.hero-stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-num span {
    color: var(--orange);
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* Hero visual */
.hero-visual {
    position: relative;
    align-self: stretch; /* fill grid row height */
}

.hero-image-wrap {
    /* 9:16 portrait, anchored to left edge of hero-visual */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    aspect-ratio: 9/16;
    width: auto;
    height: 100%;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(255,107,53,0.2);
    background: var(--navy-mid);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #243659 0%, #1B2C4E 100%);
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
}

.hero-image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.hero-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
}

.hero-card-bottom {
    bottom: 32px;
    left: 24px;
}

.hero-card-top {
    top: 32px;
    right: 32px;
}

.hero-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-card-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.hero-card-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,107,53,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-card-icon svg {
    width: 18px;
    height: 18px;
    color: var(--orange);
}

/* ---------- TRUST BAR ---------- */
#trust-bar {
    padding: 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.trust-bar-inner {
    display: flex;
    align-items: start;
    gap: 0;
    overflow: hidden;
}

.trust-bar-item {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 20px 32px;
    flex: 1;
    border-right: 1px solid var(--gray-200);
}

.trust-bar-item:last-child {
    border-right: none;
}

.trust-bar-icon {
    color: var(--orange);
    flex-shrink: 0;
}

.trust-bar-icon svg {
    width: 22px;
    height: 22px;
}

.trust-bar-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.trust-bar-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ---------- ДЛЯ КОГО МЫ РАБОТАЕМ — СЕГМЕНТЫ ---------- */
#segments {
    background: var(--gray-50);
}

.segments-header {
    text-align: center;
    margin-bottom: 48px;
}
.segments-header .section-subtitle {
    margin: 0 auto;
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.segment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.segment-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}
.segment-card:hover::after { transform: scaleX(1); }
.segment-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

/* Accent middle card */
.segment-card--accent {
    background: var(--navy);
    border-color: transparent;
}
.segment-card--accent::after { background: var(--orange); }
.segment-card--accent .segment-tag { color: var(--orange-light); border-color: rgba(255,107,53,0.3); background: rgba(255,107,53,0.12); }
.segment-card--accent .segment-title { color: var(--white); }
.segment-card--accent .segment-divider { background: rgba(255,255,255,0.12); }
.segment-card--accent .segment-desc { color: rgba(255,255,255,0.7); }
.segment-card--accent .segment-list li { color: rgba(255,255,255,0.8); }
.segment-card--accent .segment-list li::before { background: var(--orange); }
.segment-card--accent .segment-icon { background: rgba(255,107,53,0.15); color: var(--orange); }

.segment-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,107,53,0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 20px;
    flex-shrink: 0;
}
.segment-icon svg { width: 26px; height: 26px; }

.segment-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    border: 1px solid rgba(255,107,53,0.25);
    background: rgba(255,107,53,0.06);
    border-radius: 100px;
    padding: 5px 12px;
    margin-bottom: 14px;
    width: fit-content;
}

.segment-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0;
    line-height: 1.3;
}

.segment-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 20px 0;
}

.segment-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.segment-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.segment-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.segment-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
}

/* ---------- КЛИЕНТЫ — СОЦИАЛЬНОЕ ДОКАЗАТЕЛЬСТВО ---------- */
#clients {
    background: var(--white);
}

.clients-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 48px;
}

.clients-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.clients-bullet {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
.clients-bullet strong { color: var(--navy); }

.clients-bullet-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(255,107,53,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    color: var(--orange);
}
.clients-bullet-icon svg { width: 14px; height: 14px; }

/* Logo grid: 3×3 */
.clients-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.client-logo-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--white);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.client-logo-item:hover {
    border-color: var(--gray-400);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.client-logo-item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    display: block;
}
/* Placeholder state (when image fails to load) */
.client-logo-item.logo-empty {
    background: var(--gray-50);
}
.logo-empty-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    display: none;
}
.client-logo-item.logo-empty .logo-empty-text {
    display: block;
}

/* CTA box */
.clients-cta {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-100);
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.clients-cta-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 24px;
}
.clients-cta-title span { color: var(--orange); }

.clients-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.clients-form-row .form-control { flex: 1; }
.clients-form-row .btn { flex-shrink: 0; white-space: nowrap; }

.clients-cta-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}

.clients-cta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.clients-cta-item svg {
    width: 20px;
    height: 20px;
    color: var(--orange);
    flex-shrink: 0;
}

/* ---------- УСЛУГИ ---------- */
#services {    background: var(--white);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    border-radius: inherit;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    background: rgba(255,107,53,0.2);
    color: var(--orange);
}

.service-card:hover .service-name {
    color: var(--white);
}

.service-card:hover .service-desc {
    color: rgba(255,255,255,0.65);
}

.service-card:hover .service-price {
    color: var(--orange);
}

.service-card:hover .service-link {
    color: rgba(255,255,255,0.8);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--gray-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
    color: var(--navy);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    transition: color var(--transition);
}

.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    transition: color var(--transition);
}

.service-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    transition: color var(--transition);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    transition: color var(--transition);
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.service-card:hover .service-link svg {
    transform: translateX(4px);
}

/* ---------- КАТАЛОГ ---------- */
#catalog {
    background: var(--gray-50);
}

.catalog-header {
    margin-bottom: 48px;
}

.catalog-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.catalog-tab {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}

.catalog-tab:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.catalog-tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.catalog-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
}

.catalog-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--gray-200);
}

.catalog-img {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}

.catalog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.catalog-item:hover .catalog-img img {
    transform: scale(1.05);
}

/* Placeholder для каталога */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    color: var(--gray-400);
    font-size: 12px;
    font-weight: 500;
    gap: 8px;
    text-align: center;
    padding: 12px;
}

.img-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.catalog-body {
    padding: 20px;
}

.catalog-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.catalog-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.catalog-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
}

/* ---------- ШАГИ РАБОТЫ ---------- */
#steps {
    background: var(--white);
}

.steps-header {
    text-align: center;
    margin-bottom: 64px;
}

.steps-header .section-subtitle {
    margin: 0 auto;
}

.steps-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 16px;
}

.step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-400);
    transition: all var(--transition);
    position: relative;
}

.step:hover .step-num {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow);
}

.step-icon-wrap {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon-wrap svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ---------- ТИПЫ КОНСТРУКЦИЙ ---------- */
#constructions {
    background: var(--gray-50);
}

.constructions-header {
    margin-bottom: 48px;
}

.constructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.constructions-grid.second {
    grid-template-columns: repeat(4, 1fr);
}

.construction-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
}

.construction-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.construction-img {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--gray-100);
}

.construction-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.construction-card:hover .construction-img img {
    transform: scale(1.05);
}

.construction-body {
    padding: 16px;
}

.construction-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.construction-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- МАТЕРИАЛЫ ---------- */
#materials {
    background: var(--white);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.materials-visual {
    grid-column: span 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 3/4;
}

.materials-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.materials-list {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.material-item {
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.material-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--gray-200);
}

.material-icon {
    width: 44px;
    height: 44px;
    background: var(--gray-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--navy);
    flex-shrink: 0;
}

.material-icon svg {
    width: 22px;
    height: 22px;
}

.material-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.material-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1; /* push badge to bottom */
}

.material-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: var(--gray-50);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    align-self: flex-start; /* don't stretch full width */
}

/* ---------- ОСВЕЩЕНИЕ ---------- */
#lighting {
    background: var(--navy-dark);
}

.lighting-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lighting-left .section-label {
    color: var(--orange-light);
}

.lighting-left .section-title {
    color: var(--white);
}

.lighting-left p {
    color: rgba(255,255,255,0.65);
}

.lighting-specs {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lighting-spec {
    padding: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}

.lighting-spec-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 4px;
}

.lighting-spec-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.lighting-guarantee {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255,107,53,0.12);
    border: 1px solid rgba(255,107,53,0.25);
    border-radius: var(--radius);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lighting-guarantee-icon {
    flex-shrink: 0;
    color: var(--orange);
}

.lighting-guarantee-icon svg {
    width: 28px;
    height: 28px;
}

.lighting-guarantee-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.lighting-guarantee-text strong {
    color: var(--white);
}

.lighting-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lighting-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.lighting-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.lighting-card:first-child {
    grid-column: span 2;
}

.lighting-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.lighting-card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* ---------- ДИЗАЙН И ФОТОПРИВЯЗКА ---------- */
#design {
    background: var(--white);
}

.design-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.design-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 1;
}

.design-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.design-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
}

.design-feature:hover {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.08);
}

.design-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,107,53,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.design-feature-icon svg {
    width: 22px;
    height: 22px;
}

.design-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.design-feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- ЗАМЕРЩИК CTA ---------- */
#surveyor {
    background: linear-gradient(135deg, var(--navy) 0%, #1E3A6B 100%);
    position: relative;
    overflow: hidden;
}

.surveyor-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.surveyor-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.surveyor-left .section-label {
    color: var(--orange-light);
}

.surveyor-left h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.surveyor-left p {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    margin-bottom: 32px;
}

.surveyor-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.surveyor-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

.surveyor-perk-check {
    width: 24px;
    height: 24px;
    background: rgba(255,107,53,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.surveyor-perk-check svg {
    width: 12px;
    height: 12px;
    color: var(--orange);
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
#advantages {
    background: var(--gray-50);
}

.advantages-header {
    text-align: center;
    margin-bottom: 56px;
}

.advantages-header .section-subtitle {
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
}

.advantage-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}

.advantage-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: 16px;
}

.advantage-card:hover .advantage-num {
    color: rgba(255,107,53,0.15);
}

.advantage-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.advantage-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- АГЕНТСТВАМ ---------- */
#agencies {
    background: var(--white);
}

.agencies-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.agencies-big-num {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 900;
    color: var(--gray-100);
    line-height: 0.9;
    position: relative;
}

.agencies-big-num::after {
    content: '%';
    font-size: 0.5em;
    color: var(--orange);
    position: absolute;
    top: 0;
}

.agencies-caption {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-top: 12px;
    line-height: 1.3;
}

.agencies-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 12px;
}

.agencies-cta {
    margin-top: 32px;
}

.agencies-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agencies-benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    transition: all var(--transition);
}

.agencies-benefit:hover {
    border-color: var(--orange);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.agencies-benefit-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    color: var(--orange);
}

.agencies-benefit-icon svg {
    width: 22px;
    height: 22px;
}

.agencies-benefit-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.agencies-benefit-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- МОНТАЖНИКИ ---------- */
#installers {
    background: var(--navy);
}

.installers-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.installers-left .section-label {
    color: var(--orange-light);
}

.installers-left h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.installers-left > p {
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
}

.installers-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.installer-fact {
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.installer-fact:hover {
    background: rgba(255,255,255,0.09);
}

.installer-fact-icon {
    color: var(--orange);
    margin-bottom: 12px;
}

.installer-fact-icon svg {
    width: 24px;
    height: 24px;
}

.installer-fact-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.installer-fact-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

.installers-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.installer-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    aspect-ratio: 3/4;
}

.installer-photo:first-child {
    margin-top: 32px;
}

.installer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- ГАРАНТИЯ ---------- */
#guarantee {
    background: var(--gray-50);
}

.guarantee-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}

.guarantee-badge {
    background: var(--navy);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    color: var(--white);
    position: sticky;
    top: 100px;
}

.guarantee-badge-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    color: var(--orange);
}

.guarantee-badge-unit {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-top: 4px;
}

.guarantee-badge-label {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-top: 8px;
}

.guarantee-badge-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 24px 0;
}

.guarantee-badge-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.guarantee-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guarantee-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
}

.guarantee-item:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.guarantee-item-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,107,53,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--orange);
}

.guarantee-item-icon svg {
    width: 24px;
    height: 24px;
}

.guarantee-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.guarantee-item-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- О КОМПАНИИ ---------- */
#about {
    background: var(--white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-photo {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}

.about-photo:first-child {
    grid-column: span 2;
    aspect-ratio: 16/7;
}

.about-photo:not(:first-child) {
    aspect-ratio: 1;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-photo:hover img {
    transform: scale(1.05);
}

.about-text p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 24px;
}

.about-mission {
    padding: 24px;
    background: var(--gray-50);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    font-size: 16px;
    color: var(--navy);
    font-style: italic;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.about-stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
}

.about-stat-num span {
    color: var(--orange);
}

.about-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---------- ПРИНЦИПЫ ---------- */
#principles {
    background: var(--gray-50);
}

.principles-header {
    text-align: center;
    margin-bottom: 56px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.principle-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.principle-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.principle-card:hover::after {
    transform: scaleX(1);
}

.principle-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}

.principle-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,107,53,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 16px;
}

.principle-icon svg {
    width: 24px;
    height: 24px;
}

.principle-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.principle-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- КЕЙСЫ ---------- */
#cases {
    background: var(--white);
}

.cases-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.case-img {
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-img img {
    transform: scale(1.05);
}

.case-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.case-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.case-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.case-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    margin-top: auto;
}

.case-result svg {
    width: 16px;
    height: 16px;
}

/* ---------- ОТЗЫВЫ ---------- */
#reviews {
    background: var(--gray-50);
}

.reviews-header {
    text-align: center;
    margin-bottom: 48px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1.5px solid var(--gray-100);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.review-stars svg {
    width: 18px;
    height: 18px;
    color: #FFC107;
}

.review-text {
    font-size: 15px;
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    flex: 1; /* push author to bottom */
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-200);
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.review-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------- ФОРМЫ ---------- */
.form-section {
    background: var(--navy-dark);
    position: relative;
    overflow: hidden;
}

.form-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
}

.form-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.form-left h2 {
    color: var(--white);
}

.form-left p {
    color: rgba(255,255,255,0.65);
    font-size: 17px;
    margin-top: 12px;
}

.form-left .form-gifts {
    margin-top: 32px;
}

.form-gift {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 15px;
    color: rgba(255,255,255,0.8);
}

.form-gift:last-child {
    border-bottom: none;
}

.form-gift-icon {
    color: var(--orange);
    flex-shrink: 0;
}

.form-gift-icon svg {
    width: 20px;
    height: 20px;
}

.form-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.form-box-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-box-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    outline: none;
    transition: all var(--transition);
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27,44,78,0.08);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    cursor: pointer;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--navy);
}

.form-check-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-check-label a {
    color: var(--navy);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    margin-top: 20px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 32px 0;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,107,53,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--orange);
}

.form-success-icon svg {
    width: 32px;
    height: 32px;
}

.form-success-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-success-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Standalone forms */
.form-section-light {
    background: var(--gray-50);
}

.form-section-light .form-inner {
    align-items: start;
}

.form-section-light .form-left h2 {
    color: var(--navy);
}

.form-section-light .form-left p {
    color: var(--text-muted);
}

.form-section-light .form-gift {
    color: var(--text);
    border-color: var(--gray-200);
}

.form-section-light .form-gift-icon {
    color: var(--orange);
}

.form-section-light .form-box {
    box-shadow: var(--shadow-lg);
}

/* ---------- КОНТАКТЫ ---------- */
#contacts {
    background: var(--white);
}

.contacts-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-block-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-phone-big {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
}

.contact-phone-big:hover {
    color: var(--orange);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-link:hover {
    color: var(--navy);
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

.map-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.55);
    padding: 48px 0 32px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand {
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo .logo-sub {
    color: rgba(255,255,255,0.4);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-phone {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.footer-phone:hover {
    color: var(--orange);
}

.footer-email {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}

.footer-email:hover {
    color: var(--white);
}

.footer-col-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal {
    font-size: 12px;
    line-height: 1.7;
}

.footer-legal a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-copy {
    font-size: 12px;
}

/* ---------- FLOATING CTA ---------- */
#floating-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
    pointer-events: none;
}

#floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--orange);
    color: var(--white);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(255,107,53,0.45);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Onest', sans-serif;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255,107,53,0.55);
}

.floating-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.in-view {
    opacity: 1;
}

/* ---------- COUNTERS ---------- */
.count-num {
    transition: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    :root {
        --section-gap: 72px;
    }

    .segments-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .clients-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .clients-cta {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .constructions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* At 1000px: phone number hides to free space, button stays visible */
@media (max-width: 1000px) {
    .header-phone {
        display: none;
    }
    /* Compact nav so button always has room */
    nav {
        gap: 0;
    }
    nav a {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    :root {
        --section-gap: 64px;
    }

    nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    /* На мобильных (с бургером) — кнопку скрываем, оставляем как было */
    .header-right .btn {
        display: none;
    }

    .segments-grid {
        grid-template-columns: 1fr;
    }

    .clients-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .clients-cta {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }

    /* ---- Hero: reset desktop absolute image, switch to normal layout ---- */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
        align-self: auto;
        width: 100%;
    }

    .hero-image-wrap {
        /* Reset desktop absolute positioning */
        position: relative !important;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        border-radius: var(--radius-xl);
    }

    /* Hide floating cards on tablet — they overlap badge */
    .hero-card {
        display: none;
    }

    .hero-trust {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-bar-inner {
        flex-wrap: wrap;
    }

    .trust-bar-item {
        flex: 1 1 50%;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .constructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .materials-visual {
        display: none;
    }

    .materials-list {
        grid-column: span 3;
    }

    .lighting-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .design-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .surveyor-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .agencies-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .installers-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .principles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-timeline::before {
        display: none;
    }

    .step {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
        padding: 0;
    }

    .step-num {
        margin: 0;
        flex-shrink: 0;
    }

    .guarantee-inner {
        grid-template-columns: 1fr;
    }

    .guarantee-badge {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --section-gap: 56px;
    }

    /* ---- Prevent any overflow beyond 360px ---- */
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    .container {
        padding: 0 16px;
    }

    /* ---- Hero: single column, no bleed ---- */
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 48px;
    }

    .hero-visual {
        display: none;
    }

    .hero-image-wrap {
        position: relative !important;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        border-radius: var(--radius-lg);
    }

    /* Hero cards hidden on mobile (overlap issue) */
    .hero-card {
        display: none;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .hero-trust {
        grid-template-columns: 1fr 1fr;
    }

    /* ---- Trust bar ---- */
    .trust-bar-item {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    /* ---- Services ---- */
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ---- Segments ---- */
    .segments-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Clients ---- */
    .clients-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .clients-logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .client-logo-item {
        height: 56px;
        padding: 8px 10px;
    }
    .clients-cta {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 16px;
    }
    .clients-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .clients-form-row .btn {
        width: 100%;
    }

    /* ---- Catalog: hide filter tabs, show all in 1 column ---- */
    .catalog-tabs {
        display: none;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    /* Force all catalog items visible regardless of JS filter */
    .catalog-item {
        display: block !important;
    }

    /* ---- Constructions: horizontal scroll carousel ---- */
    .constructions-all {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        /* Extend to viewport edges, indent start for breathing room */
        margin: 0 -16px;
        padding: 4px 16px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Free scroll, no snap */
    }
    .constructions-all::-webkit-scrollbar {
        display: none;
    }
    /* Both grids become transparent — their cards are direct flex children */
    .constructions-all .constructions-grid,
    .constructions-all .constructions-grid.second {
        display: contents;
    }
    .construction-card {
        flex: 0 0 70%;
        min-width: 0;
        /* Next card peeks from the right because flex container is wider than viewport */
    }

    /* ---- Advantages ---- */
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Principles ---- */
    .principles-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Cases ---- */
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .cases-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ---- Reviews ---- */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* ---- Lighting ---- */
    .lighting-right {
        grid-template-columns: 1fr;
    }
    .lighting-card:first-child {
        grid-column: span 1;
    }

    /* ---- Installers ---- */
    .installers-right {
        display: none;
    }
    .installers-facts {
        grid-template-columns: 1fr;
    }

    /* ---- Materials ---- */
    .materials-list {
        grid-template-columns: 1fr;
    }

    /* ---- About ---- */
    .about-gallery {
        grid-template-columns: 1fr;
    }
    .about-photo:first-child {
        grid-column: span 1;
    }
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .about-stat-num {
        font-size: 22px;
    }

    /* ---- Hero stats ---- */
    .hero-stat-num {
        font-size: 24px;
    }

    /* ---- Hero CTA ---- */
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* ---- Forms ---- */
    .form-box {
        padding: 28px 16px;
    }

    /* ---- Lighting specs ---- */
    .lighting-specs {
        grid-template-columns: 1fr 1fr;
    }

    /* ---- Footer ---- */
    .footer-inner {
        grid-template-columns: 1fr;
    }

    /* ---- Floating CTA ---- */
    #floating-cta {
        bottom: 16px;
        right: 12px;
        left: 12px;
    }
    .floating-btn {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius);
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* ---- JS-loading safety net ----
   If IntersectionObserver fires (JS loaded), in-view class handles visibility.
   This ensures nothing stays invisible if JS is slow or blocked. */
@keyframes revealFade {
    to { opacity: 1; transform: none; }
}
.fade-up {
    animation: revealFade 0s 2s forwards;
}
.fade-in {
    animation: revealFade 0s 2s forwards;
}
/* When JS adds in-view, cancel the fallback animation */
.fade-up.in-view,
.fade-in.in-view {
    animation: none;
    opacity: 1;
    transform: none;
}
