﻿/* ========================================
   Intomade — Студия аддитивных технологий
   Технологичный дизайн 2025
   ======================================== */

:root {
    /* Цветовая палитра — светлая, чистая */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f9fa;
    --color-bg-tertiary: #e9ecef;
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #5a6c7d;
    --color-text-muted: #667789;
    --color-accent: #ff6b35;
    --color-accent-hover: #ff8c5a;
    --color-accent-dark: #e55a2b;
    --color-steel: #4a6fa5;
    --color-steel-light: #6b8fc7;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --gradient-steel: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --gradient-hero: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.95) 100%);

    /* Тени */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(255,107,53,0.2);

    /* Границы */
    --border-color: #e9ecef;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Анимации */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Типографика */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   Базовые стили
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    overflow-y: scroll;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(255, 107, 53, 0.85);
    outline-offset: 3px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs-separator,
.breadcrumbs [aria-current="page"] {
    color: var(--color-text-muted);
}

ul {
    list-style: none;
}

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

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

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   Типографика
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

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

/* ========================================
   Кнопки
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255,107,53,0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
    contain: layout style;
    will-change: transform;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    height: 42px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-block;
    background: url('/images/pwa/intomade-pwa-logo.svg') center / contain no-repeat;
    transform: translateY(-2px);
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-primary);
    position: relative;
    padding: 8px 0;
}

@media (max-width: 992px) {
    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        transition: background var(--transition-base);
    }
    
    .nav-link:hover {
        background: rgba(255, 107, 53, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Скрываем мобильные действия в nav по умолчанию */
.nav-mobile-actions {
    display: none !important;
}

@media (max-width: 992px) {
    .nav-mobile-actions {
        display: flex !important;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 992px) {
    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .header-actions .header-phone,
    .header-actions .header-login-btn,
    .header-actions .header-telegram-btn,
    .header-actions .header-cart-btn {
        display: none !important;
    }
    
    .header-actions .mobile-menu-btn {
        display: flex !important;
        order: 2;
    }
    
    .header-actions .mobile-cart-btn {
        display: inline-flex !important;
        order: 1;
        padding: 8px 12px !important;
        height: 40px !important;
        font-size: 13px !important;
    }
}

.header-actions .btn {
    padding: 10px 16px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.header-actions .btn-outline {
    padding: 10px 16px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.header-phone {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 112px 0 120px;
    overflow-x: visible;
    overflow-y: visible;
    background: var(--color-bg-primary);
}

.hero.is-scroll-driven {
    --hero-scroll-distance: 6svh;
    min-height: calc(100svh + var(--hero-scroll-distance));
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(140, 152, 164, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 152, 164, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 34%, transparent 78%);
    pointer-events: none;
    opacity: 0.28;
    z-index: 0;
}

.hero::after {
    display: none;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 152px;
        padding-bottom: 32px;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .hero::after {
        display: none;
    }

    .hero::before {
        opacity: 0.22;
    }
}

.hero-photo-stage {
    /* Matches the current hero canvas until hero-config.js overrides it. */
    --hero-stage-ratio: 1262 / 1683;
    --hero-stage-width: clamp(510px, 49vw, 920px);
    --hero-hover-shift-x: 0px;
    --hero-hover-shift-y: 0px;
    --hero-tilt-x: 0deg;
    --hero-tilt-y: 0deg;
    --hero-impulse-shift-x: 0px;
    --hero-impulse-shift-y: 0px;
    --hero-impulse-tilt-x: 0deg;
    --hero-impulse-tilt-y: 0deg;
    --hero-impulse-rotate-z: 0deg;
    position: relative;
    width: var(--hero-stage-width);
    max-width: none;
    aspect-ratio: var(--hero-stage-ratio);
    z-index: 0;
    overflow: visible;
    pointer-events: auto;
    perspective: 1800px;
    transform-style: preserve-3d;
    margin-left: auto;
    grid-column: 2 / 3;
    align-self: center;
    justify-self: end;
    transform: translateX(30px);
}

.hero-photo-canvas {
    position: relative;
    margin-left: -130px;
    margin-top: 95px;
    width: 100%;
    aspect-ratio: var(--hero-stage-ratio, 1262 / 1683);
    isolation: isolate;
    transform-origin: 52% 46%;
    transform-style: preserve-3d;
    will-change: transform;
    transform:
        scale(1.35)
        translate3d(
            calc(var(--hero-hover-shift-x) + var(--hero-impulse-shift-x)),
            calc(var(--hero-hover-shift-y) + var(--hero-impulse-shift-y)),
            0
        )
        rotateX(calc(var(--hero-tilt-x) + var(--hero-impulse-tilt-x)))
        rotateY(calc(var(--hero-tilt-y) + var(--hero-impulse-tilt-y)))
        rotateZ(var(--hero-impulse-rotate-z));
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-mobile-assembled {
    display: none;
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 4px 12px rgba(0,0,0,.06)) drop-shadow(6px 14px 32px rgba(0,0,0,.04));
}
.hero-mobile-assembled img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-photo-stage.is-animated {
    animation: heroStageFloat 6.8s ease-in-out infinite;
}

.hero-photo-stage.is-final-hold .hero-photo-canvas {
    filter: drop-shadow(0 20px 50px rgba(24, 30, 52, 0.04));
}

.hero-photo-stage.is-impulsing .hero-photo-canvas {
    transition-duration: 0ms;
}

.hero-photo-stage.is-scrubbing .hero-photo-canvas {
    transition-duration: 0ms;
}

.hero-photo-stage.is-static-hero {
    aspect-ratio: var(--hero-stage-ratio, 492 / 454);
}

.hero-photo-stage.is-static-hero .hero-photo-canvas {
    display: none;
}

.hero-photo-stage.is-static-hero .hero-mobile-assembled {
    display: block;
}

@keyframes heroStageFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0.16deg);
    }

    50% {
        transform: translate3d(0, -6px, 0) rotate(-0.18deg);
    }
}

@media (min-width: 981px) {
    .hero {
        padding-bottom: 96px;
    }

    .hero.is-scroll-driven .hero-content {
        position: sticky;
        top: 92px;
    }

    .hero-content {
        min-height: calc(100svh - 208px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        row-gap: 20px;
    }

    .hero-shell {
        width: min(100%, 620px);
        position: relative;
        z-index: 1;
    }

    .hero-photo-stage {
        position: relative;
        top: -12px;
        right: 0;
        width: auto;
        height: calc(92% + 70px);
        max-width: none;
        margin: 20px auto 0;
        justify-self: auto;
        align-self: auto;
        transform: none;
        z-index: 1;
    }

    .hero-photo-canvas {
        width: auto;
        height: 100%;
        aspect-ratio: var(--hero-stage-ratio);
    }

    .hero-stats {
        position: relative;
        z-index: auto;
        margin-top: 18px;
        padding-top: 22px;
        gap: 24px;
    }
}

@media (max-width: 980px) {
    .hero-content {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .hero-photo-stage {
        --hero-stage-width: clamp(320px, 70vw, 640px);
        --hero-stage-ratio: 492 / 454;
        width: min(100%, var(--hero-stage-width));
        margin: 0 auto;
        grid-column: 1 / -1;
        justify-self: center;
        transform: none;
    }

    .hero-photo-stage .hero-photo-canvas {
        display: none;
    }

    .hero-mobile-assembled {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 980px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr) clamp(220px, 30vw, 300px);
        column-gap: 20px;
        row-gap: 24px;
        align-items: start;
    }

    .hero-shell {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    .hero-photo-stage {
        --hero-stage-width: clamp(220px, 30vw, 300px);
        width: min(100%, var(--hero-stage-width));
        margin: 96px 0 0;
        grid-column: 2 / 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .hero-title {
        max-width: none;
    }

    .hero-subtitle {
        max-width: none;
    }

    .hero-stats {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 12px;
    }
}

@media (max-width: 768px) {
    .hero-photo-stage {
        display: block;
        --hero-stage-width: clamp(200px, 55vw, 280px);
        width: var(--hero-stage-width);
        margin: 20px auto 0;
        position: relative;
        top: auto;
        right: auto;
        z-index: 1;
        overflow: visible;
        transform: none;
    }

}

.hero-photo-layer {
    position: absolute;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
    contain: layout style;
    backface-visibility: hidden;
    overflow: visible;
    filter: none;
    pointer-events: none;
    transition:
        left var(--hero-move-duration, 760ms) var(--hero-move-ease, linear),
        top var(--hero-move-duration, 760ms) var(--hero-move-ease, linear),
        opacity var(--hero-opacity-duration, 420ms) var(--hero-opacity-ease, linear) var(--hero-opacity-delay, 0ms),
        transform var(--hero-move-duration, 760ms) var(--hero-move-ease, linear);
}

.hero.is-scroll-driven .hero-photo-layer {
    transition: none !important;
}

.hero-photo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
    display: block;
    filter: drop-shadow(2px 4px 12px rgba(0,0,0,.06)) drop-shadow(6px 14px 32px rgba(0,0,0,.04));
    }

/* Убираем тень у собранного редуктора (шаг 28), чтобы не наслаивалась на тени от деталей */
.hero-photo-layer[data-step="28"] .hero-photo-image {
    filter: none;
}


.hero-photo-layer-1 {
    --photo-x: 0%;
    --photo-y: 0%;
    --photo-rotate: 0deg;
    --photo-scale: 1.08;
    z-index: 1;
}

.hero-photo-layer-2 {
    --photo-x: 0%;
    --photo-y: 0%;
    --photo-rotate: 0deg;
    --photo-scale: 1.08;
    z-index: 2;
}

.hero-photo-layer-3 {
    --photo-x: 0%;
    --photo-y: 0%;
    --photo-rotate: 0deg;
    --photo-scale: 1.08;
    z-index: 3;
}

.hero-photo-layer-4 {
    --photo-x: 0%;
    --photo-y: 0%;
    --photo-rotate: 0deg;
    --photo-scale: 1.08;
    z-index: 4;
}

.hero-photo-layer-5 {
    --photo-x: 0%;
    --photo-y: 0%;
    --photo-rotate: 0deg;
    --photo-scale: 1.08;
    z-index: 5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 56px);
    row-gap: 48px;
}

.hero-shell {
    display: block;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    grid-column: 1 / 2;
}

.hero-copy {
    min-width: 0;
    max-width: 620px;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
        width: 100%;
        max-width: none;
        padding-top: 0;
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 18px;
        align-items: start;
    }

    .hero-shell {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
        overflow: visible;
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hero-stats {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .hero-title {
        max-width: calc(100% - clamp(112px, 31vw, 152px));
        min-height: auto;
        margin-bottom: 18px;
        font-size: clamp(2rem, 5vw, 2.6rem);
        line-height: 1.04;
    }

    .hero-copy,
    .hero-actions,
    .hero-stats,
    .hero-subtitle {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .hero-actions .btn.btn-lg {
        min-width: 0;
        width: 100%;
        white-space: normal;
    }

    .hero-stats {
        max-width: none;
        padding-top: 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-shell {
        margin-bottom: 18px;
    }

    .hero-subtitle {
        margin-bottom: 22px;
    }

    .hero-stats {
        padding-top: 16px;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .hero-photo-stage {
        --hero-stage-width: 132px;
        top: auto;
        right: 8px;
    }

    .hero-title {
        max-width: calc(100% - 116px);
        min-height: 184px;
    }

    .hero-title .highlight {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-actions .btn.btn-lg {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 1rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.18);
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 24px;
    animation: pulse 2.8s ease-in-out infinite;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-title-line,
.hero-highlight-re {
    display: block;
    white-space: nowrap;
}

.hero-highlight-re {
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    color: var(--color-accent);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.hero-title-line {
    opacity: 0;
    animation: heroLineFade 0.55s ease-out forwards;
}

.hero-title-line--top {
    animation-delay: 0.08s;
}

.hero-title-line--bottom {
    animation-delay: 1.25s;
}

.hero-subtitle {
    opacity: 0;
    animation: heroLineFade 0.6s ease-out 1.45s forwards;
}

.hero-workflow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 107, 53, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(24, 30, 52, 0.06);
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 600;
    opacity: 0;
    animation: heroLineFade 0.55s ease-out 1.34s forwards;
}

.hero-workflow-step {
    white-space: nowrap;
}

.hero-workflow-arrow {
    color: var(--color-accent);
    opacity: 0.72;
}

@keyframes heroLineFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-title-separator {
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}


.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 0;
    width: 100%;
    justify-content: flex-start;
}

.hero-actions .btn {
    flex: 1 1 auto;
    min-width: 150px;
    justify-content: center;
}

.hero-actions .btn.btn-lg {
    flex: 0 0 auto;
    width: auto;
    min-width: 320px;
    max-width: none;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 28px;
    position: relative;
    width: 100%;
    grid-column: 1 / -1;
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.stat {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.hero-scroll {
    position: absolute;
    bottom: clamp(76px, 8vh, 110px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    z-index: 10;
    pointer-events: none;
}

.hero-scroll * {
    pointer-events: auto;
}

.hero-scroll span {
    display: block;
    line-height: 1;
    margin-top: 10px;
    animation: bounce 2s ease-in-out infinite;
    text-align: center;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(-10px); }
}

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

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

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

/* Tighter transition from hero to first content block on home page. */
.hero + .features {
    padding-top: 64px;
}

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

.feature-card {
    background: var(--gradient-steel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,53,0.1);
    border-radius: var(--border-radius-md);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-accent);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Home Production Scope
   ======================================== */

.home-production-scope {
    padding: 96px 0;
    background: var(--color-bg-primary);
}

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

.scope-card,
.client-input-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-md);
}

.scope-card {
    padding: 24px;
}

.scope-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    object-fit: contain;
}

.scope-card h3 {
    margin-bottom: 10px;
}

.scope-card p,
.client-input-card p,
.client-input-card li {
    color: var(--color-text-secondary);
}

.client-input-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px;
}

.client-input-card h3 {
    margin-bottom: 10px;
}

.client-input-card ul {
    margin: 0;
    padding-left: 20px;
}

.client-input-card .btn {
    white-space: nowrap;
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */

.services {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
}

.service-card {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-rows: 260px auto auto;
    background: #ffffff;
    border: 1px solid rgba(16, 24, 39, 0.08);
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 20px 44px rgba(15, 20, 26, 0.08);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.22);
    box-shadow: 0 24px 52px rgba(15, 20, 26, 0.12);
}

.service-image {
    position: relative;
    inset: auto;
    height: 260px;
    background: linear-gradient(180deg, rgba(248, 249, 251, 0.2) 0%, rgba(15, 20, 26, 0.08) 100%);
    overflow: hidden;
}

.service-placeholder {
    font-size: 5rem;
    opacity: 0.8;
}

.service-placeholder svg {
    width: 88px;
    height: 88px;
    display: block;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(12, 16, 22, 0.04) 46%, rgba(12, 16, 22, 0.12) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 55%);
    pointer-events: none;
}

.service-content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: auto;
    margin: 0;
    padding: 22px 24px 8px;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
}

.service-content h3 {
    margin-bottom: 10px;
    color: var(--color-text-primary);
    font-size: 1.35rem;
}

.service-content p {
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
    max-width: none;
    font-size: 0.98rem;
}

.service-list {
    display: grid;
    gap: 6px;
    margin-bottom: 0;
}

.service-list li {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.35;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 53, 0.58);
    background: var(--gradient-primary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 22px rgba(255, 107, 53, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: gap var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.service-cta {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    z-index: 2;
    margin: 16px 24px 24px;
    justify-self: start;
}

.service-link:hover {
    gap: 8px;
    background: linear-gradient(135deg, #ff824f 0%, #ff6b35 100%);
    border-color: rgba(255, 107, 53, 0.82);
    transform: translateY(-1px);
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-card[data-service="3d-printing"] .service-image img {
    object-position: center 42%;
}

.service-card[data-service="3d-scanning"] .service-image img {
    object-position: center 38%;
}

.service-card[data-service="reverse-engineering"] .service-image img {
    object-position: center 44%;
}

.service-card[data-service="cad-design"] .service-image img {
    object-position: center 40%;
}

/* ========================================
   Calculator Section
   ======================================== */

.calculator {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}


.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.calculator-wrapper.is-contact-only {
    grid-template-columns: 1fr 400px;
}

.calculator-wrapper > * {
    min-width: 0;
}

.calculator-form {
    background: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 40px;
}

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

.form-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 1.1em;
    display: block;
    line-height: 1.2;
}

.form-error.is-hidden {
    visibility: hidden;
}

.form-error.is-shaking {
    animation: shake 0.35s ease;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--color-error);
    box-shadow: none;
}

.form-input.is-valid,
.form-select.is-valid,
.form-textarea.is-valid {
    border-color: #111111;
    box-shadow: none;
}

.form-input.is-valid:focus,
.form-select.is-valid:focus,
.form-textarea.is-valid:focus {
    border-color: #111111;
    box-shadow: none;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.form-label .icon {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.visually-hidden-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-row[hidden] {
    display: none;
}

.form-row .calculator-result {
    margin-bottom: 0;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* File Upload */

.file-upload {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 28px;
    text-align: center;
    transition: all var(--transition-base);
    background: var(--color-bg-tertiary);
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--color-accent);
    background: rgba(255,107,53,0.05);
}

.file-upload input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    pointer-events: auto;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: var(--color-accent);
    margin-bottom: 16px;
}

.upload-content p {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.upload-content .link {
    color: var(--color-accent);
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.file-list {
    margin-top: 16px;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
}

.file-item .file-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    word-break: break-all;
}

.file-item .file-size {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.file-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.file-remove,
.file-view {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    pointer-events: auto;
    z-index: 10;
}

.file-remove:hover {
    background: var(--color-error);
    border-color: var(--color-error);
    color: white;
}

.file-view:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.file-upload .upload-content,
.file-upload .file-list {
    pointer-events: auto;
}
.file-upload input[type="file"] {
    pointer-events: auto;
}

/* Range Slider */

.form-range {
    width: 100%;
    height: 6px;
    background: var(--color-bg-tertiary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-fast);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Param Info (аккордеон) - НОВЫЕ СТИЛИ */
.param-info {
    margin-top: 12px;
}

.param-info-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.param-info-btn:hover {
    background: linear-gradient(135deg, #e8f4f8 0%, #f5f9fc 100%);
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    box-shadow: 0 3px 10px rgba(255,107,53,0.12);
    transform: translateY(-1px);
}

.param-info-btn .chevron {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 8px;
    stroke: var(--color-text-muted);
}

.param-info-btn.active .chevron {
    transform: rotate(180deg);
}

.param-info-btn.active {
    background: linear-gradient(135deg, #e8f4f8 0%, #f5f9fc 100%);
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    box-shadow: 0 2px 8px rgba(255,107,53,0.1);
}

.param-info-btn.active .chevron {
    stroke: var(--color-accent);
}

.param-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
    background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
    border: 1px solid transparent;
    border-radius: 12px;
    margin-top: 8px;
    padding: 0 16px;
}

.param-info-content.show {
    max-height: 650px;
    padding: 16px;
    border-color: rgba(255,107,53,0.25);
    box-shadow: 0 4px 15px rgba(255,107,53,0.08);
}

.param-info-content .info-table {
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
    border-collapse: collapse;
}

.param-info-content .info-table th {
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    padding: 8px 10px;
    border-bottom: 2px solid var(--border-color);
}

.param-info-content .info-table td {
    color: var(--color-text-secondary);
    text-align: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.param-info-content .info-table tr:last-child td {
    border-bottom: none;
}

.param-info-content .info-table strong {
    color: var(--color-accent);
}

/* Calculator Preview */

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1.5rem;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.qty-input {
    width: 80px;
    height: 44px;
    text-align: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* Calculator Result */

.calculator-result {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.form-section-divider {
    margin: 8px 0 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
}
.result-price.is-placeholder {
    font-size: 1.125rem;
    line-height: 1.35;
    font-weight: 600;
    color: #64748b;
}

.result-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.calculator-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.calculator-actions .form-error {
    text-align: center;
    width: 100%;
}

.calculator-actions .btn-ghost {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--border-color);
}

.calculator-actions .btn-ghost:hover {
    background: var(--color-bg-secondary);
}

.btn.is-shaking {
    animation: shake 0.35s ease;
}

.form-input.is-shaking {
    animation: shake 0.35s ease;
}

.form-select.is-shaking,
.form-textarea.is-shaking {
    animation: shake 0.35s ease;
}

.form-status {
    margin-top: 12px;
}

.form-consent-label {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    display: flex;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: var(--color-bg-tertiary);
    transition: border-color .2s;
}
.form-consent-label:hover {
    border-color: var(--color-accent);
}

.form-consent-label a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(255,107,53,.3);
    text-underline-offset: 2px;
}
.form-consent-label a:hover {
    text-decoration-color: var(--color-accent);
}

.form-consent-checkbox {
    margin-top: 2px;
    width: auto !important;
    min-width: auto;
    box-sizing: content-box;
    flex: 0 0 auto;
}

.form-consent-label.is-invalid {
    border: 1px solid var(--color-error);
    border-radius: var(--border-radius-md);
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.08);
}

.form-consent-label.is-shaking {
    animation: shake 0.35s ease;
}

.file-upload.is-invalid {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.08);
}

.file-upload.is-shaking {
    animation: shake 0.35s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* Calculator Preview */

.calculator-preview {
    background: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    height: fit-content;
}

@media (min-width: 981px) {
    .calculator-preview {
        position: sticky;
        top: 96px;
    }
}

.preview-header {
    padding: 20px 24px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.preview-header h4 {
    color: var(--color-text-primary);
}

.preview-content {
    padding: 24px;
}

.preview-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

.preview-empty svg {
    width: 64px;
    height: 64px;
    fill: var(--color-text-muted);
    margin-bottom: 16px;
    opacity: 0.3;
}

.preview-checklist {
    padding: 4px 0;
}
.preview-checklist-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 14px;
}
.preview-checklist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.preview-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}
.preview-checklist-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--color-text-muted);
    color: transparent;
    font-size: 11px;
    font-weight: 700;
    transition: border-color .3s, background .3s, color .3s;
}
.preview-checklist-icon.is-checked {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #fff;
}

.preview-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.preview-item:last-child {
    border-bottom: none;
}

.preview-label {
    color: var(--color-text-secondary);
}

.preview-value {
    color: var(--color-text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    white-space: pre-line;
}

/* ========================================
   Cart Modal (единые стили для всех страниц)
   ======================================== */

#cartModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#cartModal.active {
    display: flex;
}

#cartModal .cart-dialog {
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

#cartModal .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

#cartModal .cart-title {
    font-size: 1.4rem;
    font-weight: 700;
}

#cartModal .cart-close {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

#cartModal .cart-body {
    padding: 0 24px;
    overflow: auto;
}

#cartModal .cart-item {
    display: grid;
    grid-template-columns: 1fr 120px 140px 32px;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

#cartModal .cart-item:last-child {
    border-bottom: none;
}

#cartModal .cart-item-main {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 12px;
    align-items: center;
}

#cartModal .cart-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--color-bg-tertiary);
}

#cartModal .cart-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    line-height: 1.28;
}

#cartModal .cart-item-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

#cartModal .cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

#cartModal .cart-qty .qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--color-bg-tertiary);
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cartModal .cart-qty input {
    width: 60px;
    height: 36px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

#cartModal .cart-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
    text-align: right;
    justify-self: end;
    width: 100%;
}

#cartModal .cart-remove {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 8px;
}

#cartModal .cart-remove:hover {
    color: var(--color-error);
}

#cartModal .cart-empty {
    padding: 32px 0;
    text-align: center;
    color: var(--color-text-muted);
}

#cartModal .cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

#cartModal .cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

#cartModal .cart-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

#cartModal .cart-order-number {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

#cartModal .cart-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-accent);
}

#cartModal .cart-summary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#cartModal .cart-form {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
    column-gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

#cartModal .cart-form > * {
    margin: 0 !important;
}

#cartModal .cart-form textarea {
    margin: 0;
}

#cartModal .cart-field {
    width: 100%;
    min-width: 0;
}

#cartModal .cart-field-full {
    grid-column: 1 / -1;
}

#cartModal .cart-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

#cartModal .cart-form input:not([type="checkbox"]):not([type="radio"]),
#cartModal .cart-form select,
#cartModal .cart-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

#cartModal .cart-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
        linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 2px),
        calc(100% - 14px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

#cartModal .cart-form input:not([type="checkbox"]):not([type="radio"]):focus,
#cartModal .cart-form select:focus,
#cartModal .cart-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#cartModal .cart-form input[type="checkbox"],
#cartModal .cart-form input[type="radio"] {
    width: auto !important;
    min-width: auto;
    box-sizing: content-box;
    flex: 0 0 auto;
}

#cartModal .cart-delivery-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
}

#cartModal .cart-delivery-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--color-bg-tertiary);
    cursor: pointer;
}

#cartModal .cart-consent label {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    display: flex;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

#cartModal .cart-consent-checkbox {
    margin-top: 2px;
}

#cartModal .cart-consent a {
    color: var(--color-accent);
}

#cartModal #addressInput {
    min-height: 46px;
    height: 46px;
    max-height: 46px;
    overflow: hidden;
    resize: none;
}

#cartModal .address-suggest {
    position: relative;
    grid-column: 1 / -1;
}

#cartModal .address-suggest-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-height: 200px;
    overflow: auto;
    display: none;
}

#cartModal .address-suggest-item {
    padding: 10px 12px;
    cursor: pointer;
}

#cartModal .address-suggest-item:hover {
    background: rgba(255, 107, 53, 0.08);
}

/* Form validation */
#cartModal .form-error {
    min-height: 0;
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 6px;
}

#cartModal .form-error.is-hidden {
    display: none;
    visibility: hidden;
}

#cartModal .cart-form input.is-invalid:not([type="checkbox"]):not([type="radio"]),
#cartModal .cart-form select.is-invalid,
#cartModal .cart-form textarea.is-invalid {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--color-error);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

#cartModal .cart-form select.is-valid {
    border-color: #111111;
    box-shadow: none;
}

#cartModal .cart-form select.is-valid:focus {
    border-color: #111111;
    box-shadow: none;
}

#cartModal .cart-consent.is-invalid {
    border: 1px solid var(--color-error);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.08);
}

#cartModal .cart-status {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    line-height: 1.45;
}

#cartModal .cart-status.is-hidden {
    display: none;
}

#cartModal .cart-status.is-success {
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.10);
    color: var(--color-success);
}

#cartModal .cart-status.is-error {
    border: 1px solid rgba(239, 68, 68, 0.26);
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-error);
}

/* Privacy consent */
.privacy-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
}

.privacy-banner-text {
    display: grid;
    gap: 4px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.privacy-banner-text strong {
    color: var(--color-text-primary);
}

.privacy-banner-text a,
.privacy-banner-more,
.privacy-dialog a {
    color: var(--color-accent);
}

.privacy-banner-more {
    align-self: center;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.privacy-banner-actions,
.privacy-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.privacy-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.privacy-dialog-panel {
    position: relative;
    width: min(560px, 100%);
    padding: 28px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
}

.privacy-dialog-panel h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.privacy-dialog-panel p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.privacy-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    cursor: pointer;
}

.privacy-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--color-bg-primary);
    cursor: pointer;
}

.privacy-choice.is-disabled {
    cursor: default;
    opacity: 0.78;
}

.privacy-choice input {
    margin-top: 4px;
}

.privacy-choice span {
    display: grid;
    gap: 4px;
}

.privacy-choice small {
    color: var(--color-text-muted);
    line-height: 1.35;
}

.map-consent-frame {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.map-consent-frame iframe {
    display: none;
}

.map-consent-frame > a {
    display: none;
}

.map-consent-frame.is-loaded iframe {
    display: block;
}

.map-consent-frame.is-loaded > a {
    display: block;
}

.map-consent-frame.is-loaded .map-consent-placeholder {
    display: none;
}

.map-consent-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--color-text-secondary);
}

.map-consent-placeholder strong {
    color: var(--color-text-primary);
}

.auth-consent-note {
    margin-top: 10px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.auth-consent-note a {
    color: var(--color-accent);
}

/* Mobile */
@media (max-width: 768px) {
    .privacy-banner {
        grid-template-columns: 1fr;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        gap: 8px;
        padding: 10px 12px;
        max-height: 30vh;
        max-height: 30dvh;
        overflow-y: auto;
    }

    .privacy-banner-text {
        gap: 2px;
        font-size: 0.86rem;
        line-height: 1.3;
    }

    .privacy-banner-text span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .privacy-banner-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
        justify-content: stretch;
    }

    .privacy-banner-actions .btn {
        min-height: 40px;
        min-width: 0;
        padding: 9px 8px;
        font-size: 0.84rem;
        flex: initial;
        white-space: normal;
    }

    .privacy-banner-more {
        min-width: 0;
        font-size: 0.82rem;
        text-align: center;
        white-space: normal;
    }

    .privacy-dialog {
        align-items: flex-end;
        padding: 12px;
    }

    .privacy-dialog-panel {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        padding: 22px 18px 18px;
    }

    .privacy-dialog-actions {
        justify-content: stretch;
    }

    .privacy-dialog-actions .btn {
        flex: 1 1 100%;
    }

    #cartModal {
        overflow-x: hidden;
        padding: 12px;
    }

    #cartModal .cart-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 24px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    #cartModal .cart-header {
        padding: 16px;
    }

    #cartModal .cart-body {
        padding: 0 16px;
        flex: 0 0 auto;
        min-height: 120px;
        max-height: 34vh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #cartModal .cart-item {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "info remove"
            "qty price";
        gap: 6px 10px;
        align-items: center;
        padding: 10px 0;
    }

    #cartModal .cart-item-main {
        grid-area: info;
        width: 100%;
        min-width: 0;
        grid-template-columns: 42px 1fr;
        gap: 8px;
    }

    #cartModal .cart-item-thumb {
        width: 42px;
        height: 42px;
    }

    #cartModal .cart-item-title {
        display: block;
        overflow: visible;
        font-size: 0.95rem;
        line-height: 1.25;
    }

    #cartModal .cart-qty {
        grid-area: qty;
        justify-content: flex-start;
    }

    #cartModal .cart-qty .qty-btn {
        width: 34px;
        height: 34px;
    }

    #cartModal .cart-qty input {
        width: 56px;
        height: 34px;
        padding: 4px 6px;
        font-size: 1rem;
    }

    #cartModal .cart-price {
        grid-area: price;
        width: auto;
        text-align: right;
        justify-self: end;
        font-size: 1rem;
    }

    #cartModal .cart-remove {
        grid-area: remove;
        justify-self: end;
        align-self: start;
    }

    #cartModal .cart-footer {
        padding: 14px 16px 16px;
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    #cartModal .cart-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    #cartModal .cart-summary > div {
        min-width: 0 !important;
        width: 100%;
    }

    #cartModal #addressInput {
        min-height: 68px;
        height: 68px;
        max-height: 68px;
        line-height: 1.3;
    }
}

/* ========================================
   Portfolio Section
   ======================================== */

.portfolio {
    padding: 100px 0;
    background: var(--color-bg-primary);
}

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

.portfolio-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 200px;
    background: var(--gradient-steel);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-placeholder {
    font-size: 5rem;
    opacity: 0.8;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.btn-view-3d {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: transform var(--transition-fast);
}

.btn-view-3d:hover {
    transform: scale(1.05);
}

.btn-view-3d svg {
    width: 20px;
    height: 20px;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,107,53,0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.portfolio-content h3 {
    margin-bottom: 20px;
}

.case-stages {
    margin-bottom: 20px;
}

.stage {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.stage-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stage-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.stage p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.portfolio-specs {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.portfolio-specs span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ========================================
   Catalog Section
   ======================================== */

.catalog {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.catalog-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

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

.catalog-item {
    background: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: all var(--transition-base);
}

.catalog-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.catalog-item-image {
    height: 120px;
    background: var(--gradient-steel);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.catalog-item-image span {
    font-size: 3rem;
}

.catalog-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.catalog-item-specs {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.catalog-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.catalog-item .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

.catalog-actions {
    text-align: center;
}

/* ========================================
   Trust Section
   ======================================== */

.trust {
    padding: 100px 0 60px;
    background: var(--color-bg-primary);
    border-bottom: 1px solid var(--border-color);
}

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

.trust-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.trust-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 140, 90, 0.04) 100%);
    border: 1px solid rgba(255, 107, 53, 0.16);
    color: var(--color-accent);
}

.trust-svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-icon img {
    max-height: 30px;
    width: auto;
    display: block;
}

.trust-rating-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.trust-rating-star {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: var(--color-accent);
    filter: drop-shadow(0 3px 7px rgba(255, 107, 53, 0.22));
}

.avito-svg {
    width: 30px;
    height: 30px;
    display: block;
}

.trust-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.2);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.trust-profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 107, 53, 0.26);
}

.trust-card h4 {
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.trust-desc {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-section {
    text-align: center;
}

.team-section h3 {
    margin-bottom: 40px;
}

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

.team-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px 24px;
    transition: all var(--transition-base);
}

.team-card:hover {
    border-color: var(--color-accent);
}

.team-photo {
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(244, 247, 250, 0.54) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 14px 28px rgba(15, 20, 26, 0.08);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.team-photo-artem {
    object-position: center 18%;
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-card p {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.team-card span {
    font-size: 0.85rem;
    color: var(--color-accent);
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    padding: 100px 0;
    background: var(--gradient-primary);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.cta-form {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.cta-form input {
    padding: 16px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1rem;
}

.cta-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.cta-form input:focus {
    outline: none;
    border-color: white;
}

.cta-form .btn {
    background: white;
    color: var(--color-accent-dark);
}

.cta-form .btn:hover {
    background: rgba(255,255,255,0.9);
}

.cta-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 44px 0 22px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.footer-desc {
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    line-height: 1.6;
}

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

.footer-col ul li a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.contacts-list .icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    fill: currentColor;
    flex-shrink: 0;
    margin-top: 2px;
}

.contacts-list a {
    color: var(--color-text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--color-text-primary);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-copyright {
    margin-top: 14px;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   Modal
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--color-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.modal-header {
    padding: 24px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    justify-content: center;
}

.modal-header h3 {
    color: var(--color-text-primary);
    margin: 0;
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow: auto;
}

#viewerContainer {
    width: 100%;
    height: 500px;
    background: var(--color-bg-primary);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}

.viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-secondary);
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-bg-tertiary);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.viewer-controls {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.viewer-controls .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.9rem;
}

#viewerContainer canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1200px) {
    .features-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav.active {
        display: flex;
    }
    
    /* Мобильные действия в меню */
    .nav-mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-phone {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-text-primary);
        text-decoration: none;
        padding: 12px;
        background: var(--color-bg-primary);
        border-radius: 8px;
        text-align: center;
    }
    
    .nav-telegram-btn,
    .nav-login-btn,
    .nav-cart-btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

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

    .client-input-card {
        grid-template-columns: 1fr;
        align-items: start;
    }
    
    .services-grid,
    .portfolio-grid {
        gap: 16px;
    }
    .portfolio-card {
        grid-template-columns: 1fr;
    }
    .portfolio-card-media {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
    .portfolio-card-details-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper.is-contact-only {
        grid-template-columns: 1fr;
    }

    .calculator-preview {
        display: none;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero + .features {
        padding-top: 48px;
    }

    .features-grid,
    .scope-grid,
    .trust-grid,
    .catalog-filters,
    .form-row {
        grid-template-columns: 1fr;
    }

    .home-production-scope {
        padding: 64px 0;
    }

    .client-input-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .client-input-card .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        margin-bottom: 8px;
    }

    .hero-actions .btn.btn-lg {
        flex-basis: 100%;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .hero-badge {
        max-width: 100%;
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-top: 16px;
        justify-content: center;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        -webkit-hyphens: none;
        -ms-hyphens: none;
    }

    .hero-title {
        font-size: clamp(2.05rem, 8vw, 2.8rem);
        margin-top: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
        margin-top: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 16px;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .hero-scroll {
        display: none;
    }

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

    .service-card {
        min-height: 0;
        display: grid;
        grid-template-rows: 180px auto;
        background: var(--color-bg-secondary);
    }

    .service-image {
        position: relative;
        inset: auto;
        height: 180px;
    }

    .service-image::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(12, 16, 22, 0.08) 100%);
    }

    .service-content {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: auto;
        margin: -18px 14px 14px;
        padding: 16px 16px 14px;
        border-radius: 20px;
    }

    .service-content h3 {
        font-size: 1.08rem;
        margin-bottom: 8px;
    }

    .service-content p {
        font-size: 0.9rem;
        line-height: 1.42;
        margin-bottom: 10px;
        max-width: none;
    }

    .service-list {
        gap: 5px;
        margin-bottom: 12px;
    }

    .service-list li {
        font-size: 0.84rem;
    }

    .service-list li:nth-child(n + 3) {
        display: none;
    }

    .service-cta {
        position: relative;
        top: 14px;
        left: 14px;
        right: auto;
        bottom: auto;
        margin: 20px auto 0;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .calculator {
        padding: 60px 0;
    }

    .calculator-preview {
        display: none;
    }

    .calculator-form {
        padding: 24px;
        width: 100%;
    }

    .file-upload {
        padding: 24px;
    }

    .calculator-result .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .calculator-result .result-price {
        text-align: left;
    }

    /* Param Info на мобильных */
    .param-info-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .param-info-content.show {
        padding: 12px;
    }

    .info-table {
        font-size: 0.75rem;
    }

    .info-table th,
    .info-table td {
        padding: 6px 8px;
    }

    /* 3D Viewer на мобильных */
    .modal-content {
        width: 95%;
        max-width: none;
    }

    .viewer-controls {
        flex-direction: column;
        gap: 8px;
    }

    .viewer-controls .btn {
        width: 100%;
        padding: 12px 16px;
    }

    #viewerContainer {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .service-card {
        grid-template-rows: 156px auto;
    }

    .service-image {
        height: 156px;
    }

    .service-content {
        margin: -14px 12px 12px;
        padding: 14px 14px 12px;
        border-radius: 18px;
    }

    .service-content h3 {
        font-size: 1rem;
    }

    .service-content p {
        font-size: 0.86rem;
        margin-bottom: 8px;
    }

    .service-list li {
        font-size: 0.8rem;
    }

    .service-cta {
        top: 12px;
        left: 12px;
        margin: 20px auto 0;
        padding: 9px 12px;
        font-size: 0.88rem;
    }
}

/* ========================================
   Service Detail Pages (Лендинги услуг)
   ======================================== */

.service-detail {
    padding: 80px 0;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--border-color);
}

.service-detail-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-detail-header .section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-detail-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.service-detail-header .section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.service-detail-content {
    min-width: 0;
    max-width: 100%;
}

.service-detail-content h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-text-primary);
    overflow-wrap: anywhere;
}

.tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    margin-bottom: 40px;
    min-width: 0;
}

.tech-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.tech-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.tech-visual {
    height: 220px;
    margin-bottom: 14px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f5f7fa;
}

.tech-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.015);
    filter: saturate(1.04) contrast(1.01);
    transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.tech-card p {
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
}

.tech-card ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

@media (min-width: 769px) {
    .tech-card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .tech-card:hover {
        border-color: transparent;
        box-shadow: none;
        transform: translateY(-5px);
    }

    .tech-visual {
        height: 250px;
        margin-bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-bottom: none;
        border-radius: 24px 24px 0 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(244, 247, 250, 0.52) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 14px 34px rgba(15, 20, 26, 0.08);
        backdrop-filter: blur(14px) saturate(130%);
        -webkit-backdrop-filter: blur(14px) saturate(130%);
    }

    .tech-visual img {
        object-position: center 42%;
    }

    .tech-card h4,
    .tech-card p,
    .tech-card ul {
        position: relative;
        z-index: 1;
    }

    .tech-card h4 {
        margin-bottom: 10px;
    }

    .tech-card p {
        margin-bottom: 14px;
    }

    .tech-card > h4,
    .tech-card > p,
    .tech-card > ul {
        margin-left: 22px;
        margin-right: 22px;
    }

    .tech-card > h4:first-of-type {
        margin-top: 10px;
    }

    .tech-card > ul:last-child {
        margin-bottom: 22px;
    }

    .tech-card > h4,
    .tech-card > p,
    .tech-card > ul {
        padding-left: 0;
        padding-right: 0;
    }

    .tech-card::after {
        content: '';
        position: relative;
        left: 0;
        right: 0;
        top: 236px;
        bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-top: none;
        border-radius: 0 0 24px 24px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(246, 248, 251, 0.56) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 18px 40px rgba(15, 20, 26, 0.1);
        backdrop-filter: blur(16px) saturate(135%);
        -webkit-backdrop-filter: blur(16px) saturate(135%);
        pointer-events: none;
        transition:
            box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
            background 320ms cubic-bezier(0.22, 1, 0.36, 1),
            border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .tech-card {
        position: relative;
    }

    .tech-card:hover .tech-visual img {
        transform: scale(1.05) translateY(-2px);
        filter: saturate(1.04) contrast(1.01);
    }

    .tech-card:hover .tech-visual {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.44),
            0 18px 38px rgba(15, 20, 26, 0.1);
    }

    .tech-card:hover::after {
        border-color: rgba(255, 255, 255, 0.7);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 248, 251, 0.62) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 24px 44px rgba(15, 20, 26, 0.12);
    }

}

.application-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.application-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.app-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.application-item strong {
    display: block;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.application-item p {
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.step-card {
    background: var(--color-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-visual {
    position: relative;
    height: 185px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f5f7fa;
}

.step-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.015);
    filter: saturate(1.04) contrast(1.01);
    transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    position: absolute;
    top: 16px;
    left: 16px;
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.28);
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
        background 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.step-card p {
    color: var(--color-text-secondary);
    font-size: 0.86rem;
    line-height: 1.5;
}

@media (min-width: 769px) {
    .step-card {
        position: relative;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .step-visual {
        height: 180px;
        margin-bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-bottom: none;
        border-radius: 24px 24px 0 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(244, 247, 250, 0.52) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 14px 34px rgba(15, 20, 26, 0.08);
        backdrop-filter: blur(14px) saturate(130%);
        -webkit-backdrop-filter: blur(14px) saturate(130%);
    }

    .step-visual img {
        object-position: center 42%;
    }

    .step-card h4,
    .step-card p {
        position: relative;
        z-index: 1;
        margin-left: 18px;
        margin-right: 18px;
    }

    .step-card > h4:first-of-type {
        margin-top: 10px;
    }

    .step-card > p:last-child {
        margin-bottom: 18px;
    }

    .step-card::after {
        content: '';
        position: relative;
        left: 0;
        right: 0;
        top: 168px;
        bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.58);
        border-top: none;
        border-radius: 0 0 24px 24px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(246, 248, 251, 0.56) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 18px 40px rgba(15, 20, 26, 0.1);
        backdrop-filter: blur(16px) saturate(135%);
        -webkit-backdrop-filter: blur(16px) saturate(135%);
        pointer-events: none;
        transition:
            box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
            background 320ms cubic-bezier(0.22, 1, 0.36, 1),
            border-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .step-card:hover {
        transform: translateY(-5px);
    }

    .step-card:hover .step-visual img {
        transform: scale(1.05) translateY(-2px);
        filter: saturate(1.04) contrast(1.01);
    }

    .step-card:hover .step-number {
        transform: scale(1.35);
        box-shadow: 0 14px 26px rgba(255, 107, 53, 0.34);
    }

    .step-card:hover .step-visual {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.44),
            0 18px 38px rgba(15, 20, 26, 0.1);
    }

    .step-card:hover::after {
        border-color: rgba(255, 255, 255, 0.7);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 248, 251, 0.62) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 24px 44px rgba(15, 20, 26, 0.12);
    }
}

.service-detail-sidebar {
    position: sticky;
    top: 100px;
    margin-top: 54px;
}

.price-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(16, 24, 39, 0.09);
    border-radius: 28px;
    padding: 28px;
    box-shadow:
        0 22px 56px rgba(15, 20, 26, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.price-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--gradient-primary);
}

.price-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.16);
    color: var(--color-accent);
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-card h4 {
    font-size: 1.28rem;
    margin-bottom: 14px;
    color: var(--color-text-primary);
}

.price-lead {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(16, 24, 39, 0.08);
}

.price-lead-value {
    display: block;
    margin-bottom: 6px;
    color: var(--color-accent);
    font-size: clamp(1.65rem, 2.3vw, 2.15rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price-lead-text {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(16, 24, 39, 0.07);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row span:first-child {
    color: var(--color-text-secondary);
}

.price {
    flex-shrink: 0;
    font-weight: 800;
    color: var(--color-accent);
}

.price-note {
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 24, 39, 0.07);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.price-card .btn {
    width: 100%;
    margin-top: 18px;
    min-height: 48px;
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.22);
}

.price-helper {
    margin: 12px 0 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .service-detail-sidebar {
        position: static;
        margin-top: 0;
    }

    .tech-cards {
        grid-template-columns: 1fr;
    }

    .tech-card {
        padding: 22px;
    }

    .steps-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .tech-card {
        position: relative;
        background: var(--color-bg-primary);
        border: 1px solid var(--border-color);
        border-radius: 22px;
        box-shadow: var(--shadow-md);
        padding: 18px;
        min-width: 0;
        max-width: 100%;
    }

    .tech-visual {
        max-width: 100%;
        height: 180px;
        margin-bottom: 14px;
        border: 1px solid var(--border-color);
        border-radius: 16px;
        background: #f5f7fa;
    }

    .tech-card h4,
    .tech-card p,
    .tech-card ul {
        position: static;
        z-index: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .tech-card > h4:first-of-type {
        margin-top: 0;
    }

    .tech-card > ul:last-child {
        margin-bottom: 0;
    }

    .tech-card::after {
        display: none;
    }

    .tech-visual img {
        transform: none;
    }

    .application-item {
        min-width: 0;
    }

    .application-item > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tech-card h4 {
        font-size: 1.12rem;
    }

    .step-card {
        position: relative;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .step-visual {
        height: 180px;
        margin-bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.56);
        border-bottom: none;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.66) 0%, rgba(244, 247, 250, 0.5) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 12px 28px rgba(15, 20, 26, 0.08);
        backdrop-filter: blur(12px) saturate(128%);
        -webkit-backdrop-filter: blur(12px) saturate(128%);
    }

    .step-card h4,
    .step-card p {
        position: relative;
        z-index: 1;
        margin-left: 18px;
        margin-right: 18px;
    }

    .step-card > h4:first-of-type {
        margin-top: 10px;
    }

    .step-card > p:last-child {
        margin-bottom: 18px;
    }

    .step-card::after {
        content: '';
        position: relative;
        left: 0;
        right: 0;
        top: 166px;
        bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.56);
        border-top: none;
        border-radius: 0 0 20px 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(246, 248, 251, 0.56) 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.42),
            0 16px 34px rgba(15, 20, 26, 0.1);
        backdrop-filter: blur(14px) saturate(132%);
        -webkit-backdrop-filter: blur(14px) saturate(132%);
        pointer-events: none;
    }

    .step-card h4 {
        font-size: 1.12rem;
    }

    .step-number {
        width: 38px;
        height: 38px;
        top: 14px;
        left: 14px;
        font-size: 1.05rem;
    }
}

/* Stable frosted panel: no image silhouette under card text */
@media (min-width: 769px) {
    .tech-card::after,
    .step-card::after {
        background:
            linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%),
            radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 42%);
        background-blend-mode: normal, screen;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.86),
            inset 0 -34px 54px rgba(228, 234, 244, 0.42),
            0 18px 40px rgba(15, 20, 26, 0.1);
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .tech-visual,
    .step-visual {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .tech-card:hover::after,
    .step-card:hover::after {
        background:
            linear-gradient(135deg, #ffffff 0%, #f8fafc 100%),
            radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 44%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -34px 54px rgba(228, 234, 244, 0.48),
            0 24px 44px rgba(15, 20, 26, 0.12);
    }
}

/* Product page production-ready overrides */
.product-page .product-next-step {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
}

.product-page .product-next-step strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.product-page .product-next-step ol {
    margin: 0;
    padding-left: 20px;
    line-height: 1.55;
}

.product-page .product-next-step li + li {
    margin-top: 5px;
}

.product-page .product-action-row .btn {
    min-height: 44px;
}


/* Product chip — stock badge with green dot */
.product-chip--stock {
    color: #16794c;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}
.product-chip-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

@media (max-width: 640px) {
    body .product-page {
        padding-top: 76px;
    }

    .product-page .breadcrumbs {
        margin-bottom: 12px;
        font-size: 0.8rem;
    }

    .product-page .product-shell {
        gap: 14px;
    }

    .product-page .product-info,
    .product-page .product-visual,
    .product-page .product-section,
    .product-page .product-facts {
        padding: 14px;
        border-radius: 18px;
    }

    .product-page .product-title {
        font-size: clamp(1.25rem, 6vw, 1.65rem);
        margin-bottom: 8px;
    }

    .product-page .product-summary {
        margin-bottom: 10px;
        line-height: 1.45;
    }

    .product-page .product-price-row {
        margin-bottom: 12px;
    }

    .product-page .product-price {
        font-size: 1.55rem;
    }

    .product-page .product-chip-row {
        margin-bottom: 10px;
    }

    .product-page .product-action-row {
        gap: 8px;
    }

    .product-page .product-visual-frame img {
        max-height: 260px;
        padding: 10px;
    }

    .product-page .product-next-step {
        margin-top: 12px;
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* Word-reveal animation */
@keyframes heroWordReveal {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: heroWordReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-word--space {
    width: 0.3em;
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-scroll span,
    .scroll-arrow::before,
    .service-card,
    .service-image img,
    .service-content,
    .service-link,
    .tech-card,
    .tech-visual,
    .tech-visual img,
    .step-card,
    .step-visual,
    .step-visual img,
    .step-number,
    .hero-photo-layer,
    .hero-word,
    .hero-title-line,
    .hero-workflow,
    .hero-subtitle,
    .hero-photo-image {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
    }

    .hero-title-line,
    .hero-workflow,
    .hero-subtitle {
        opacity: 1 !important;
    }
}

/* Public launch form polish */
.form-legal-note {
    margin: -8px 0 18px;
    line-height: 1.5;
}

.file-upload.is-invalid {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.08);
}

@media (max-width: 640px) {
    .file-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    .file-item .file-name {
        flex-basis: 100%;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .file-view {
        min-width: 92px;
        width: auto;
        padding: 0 10px;
    }
}

/* mobile-360-polish */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 56px;
    }

    .hero-content {
        padding-left: 18px;
        padding-right: 18px;
        row-gap: 16px;
    }

    .hero-title {
        max-width: 100% !important;
        min-height: auto !important;
        margin-top: 12px;
        margin-bottom: 16px;
        font-size: clamp(1.86rem, 8.4vw, 2.15rem) !important;
        line-height: 1.06;
        letter-spacing: -0.035em;
    }

    .hero-highlight-re {
        max-width: 100%;
        font-size: 0.92em;
    }

    .hero-workflow {
        width: 100%;
        justify-content: center;
        gap: 6px 8px;
        padding: 8px 10px;
        border-radius: 18px;
        font-size: 0.78rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-top: 12px;
        margin-bottom: 22px;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .hero-actions {
        gap: 10px;
        margin-bottom: 28px;
    }

    .hero-photo-stage {
        --hero-stage-width: min(240px, 68vw) !important;
        margin-top: 8px;
        right: auto;
    }

    .features,
    .home-production-scope,
    .services,
    .service-detail,
    .trust {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .section-header,
    .service-detail-header {
        margin-bottom: 34px;
    }

    .section-title,
    .service-detail-header h2 {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1.12;
    }

    .services-grid {
        gap: 18px;
    }

    .service-card {
        grid-template-rows: 150px auto auto;
        background: #ffffff;
        border: 1px solid rgba(16, 24, 39, 0.08);
        border-radius: 22px;
        box-shadow: 0 16px 34px rgba(15, 20, 26, 0.08);
    }

    .service-image {
        height: 150px;
    }

    .service-content {
        margin: 0;
        padding: 16px 16px 10px;
        border-radius: 0;
        background: #ffffff;
    }

    .service-link {
        padding: 12px 16px 16px;
    }

    .service-detail-grid {
        gap: 28px;
    }

    .price-card {
        padding: 22px;
        border-radius: 22px;
    }

    .price-lead-value {
        font-size: 1.65rem;
    }

    .price-row {
        align-items: flex-start;
        gap: 12px;
    }

    .trust-grid {
        gap: 16px;
        margin-bottom: 42px;
    }

    .trust-card,
    .team-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .trust-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .trust-svg {
        width: 28px;
        height: 28px;
    }

    .team-grid {
        gap: 18px;
    }
}

/* Live chat widget */
.intomade-chat {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    font-family: inherit;
}

.intomade-chat-fab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    color: #ffffff;
    background: var(--gradient-primary);
    box-shadow: 0 18px 42px rgba(255, 107, 53, 0.32);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
}

.intomade-chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(255, 107, 53, 0.38);
}

.intomade-chat-fab.is-rocking {
    animation: intomade-chat-rock 0.5s ease-in-out infinite alternate;
    transform-origin: 50% 100%;
}

@keyframes intomade-chat-rock {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

.intomade-chat-operator.is-visible.is-front.is-rocking {
    animation: intomade-chat-operator-rock 0.5s ease-in-out infinite alternate;
    transform-origin: 50% 89%;
}

@keyframes intomade-chat-operator-rock {
    from { transform: rotate(-5deg) scale(1.07); }
    to { transform: rotate(5deg) scale(1.07); }
}

.intomade-chat-operator {
    position: absolute;
    bottom: -11px;
    right: -7.5px;
    width: 100px;
    height: 100px;
    background-image: url('images/chat/chat-operator.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    pointer-events: none;
    z-index: 0;
    transform-origin: 50% 89%;
    transform: scale(0);
    transition: transform 0.4s ease-out;
}

.intomade-chat-operator.is-visible {
    transform: scale(1.07);
}

.intomade-chat-operator.is-front {
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .intomade-chat-operator,
    .intomade-chat-fab.is-rocking {
        animation: none;
        transition: none;
    }
    .intomade-chat-operator {
        transform: translateY(0) scale(1.07);
        z-index: 2;
    }
}

.intomade-chat-fab-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.intomade-chat-panel[hidden] {
    display: none !important;
}

.intomade-chat-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: flex;
    flex-direction: column;
    width: min(380px, calc(100vw - 28px));
    max-height: min(680px, calc(100dvh - 96px));
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
    z-index: 2;
}

.intomade-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.intomade-chat-header strong,
.intomade-chat-header span {
    display: block;
}

.intomade-chat-header strong {
    font-size: 1rem;
    margin-bottom: 4px;
}

.intomade-chat-header span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.35;
}

.intomade-chat-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.intomade-chat-messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    max-height: 330px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fafc;
}

.intomade-chat-empty {
    margin: auto 0;
    padding: 18px;
    border-radius: 18px;
    color: var(--color-text-secondary);
    background: #ffffff;
    text-align: center;
    line-height: 1.45;
}

.intomade-chat-message {
    display: flex;
}

.intomade-chat-message > div {
    max-width: 82%;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
}

.intomade-chat-message.is-visitor {
    justify-content: flex-end;
}

.intomade-chat-message.is-visitor > div {
    color: #ffffff;
    background: var(--gradient-primary);
    border-bottom-right-radius: 6px;
}

.intomade-chat-message.is-operator > div {
    color: var(--color-text-primary);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom-left-radius: 6px;
}

.intomade-chat-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px 0;
}

.intomade-chat-contact input,
.intomade-chat-form textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--color-text-primary);
    background: #ffffff;
    font: inherit;
    outline: none;
}

.intomade-chat-contact input:focus,
.intomade-chat-form textarea:focus {
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.intomade-chat-contact input.is-invalid {
    border-color: var(--color-error);
    background: rgba(239, 68, 68, 0.08);
}

.intomade-chat-contact input:disabled {
    color: rgba(15, 23, 42, 0.58);
    background: rgba(248, 250, 252, 0.92);
    cursor: not-allowed;
}

.intomade-chat-contact-lock {
    grid-column: 1 / -1;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    line-height: 1.3;
}

.intomade-chat-field-error {
    grid-column: 1 / -1;
    color: var(--color-error);
    font-size: 0.78rem;
    line-height: 1.3;
}

.intomade-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 16px 0;
}

.intomade-chat-form textarea {
    min-height: 48px;
    max-height: 120px;
    resize: vertical;
}

.intomade-chat-form button {
    align-self: end;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    height: 48px;
    color: #ffffff;
    background: var(--gradient-primary);
    font-weight: 800;
    cursor: pointer;
}

.intomade-chat-note {
    margin: 0;
    padding: 10px 16px 16px;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}
.intomade-chat-note a {
    color: var(--color-accent);
    text-decoration: underline;
}
.intomade-chat-note a:hover {
    opacity: 0.8;
}
.intomade-chat-status {
    margin: 0;
    padding: 6px 16px;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 0 0 16px 16px;
}
.intomade-chat-status.is-connecting,
.intomade-chat-status.is-reconnecting {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
.intomade-chat-status.is-disconnected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.intomade-chat-pending {
    opacity: 0.5;
    font-size: 0.8em;
}
.is-pending {
    opacity: 0.7;
}
.is-failed {
    outline: 1px solid rgba(239, 68, 68, 0.45);
}
.intomade-chat-retry {
    margin-left: 8px;
    border: 0;
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    font-size: 0.72rem;
    cursor: pointer;
}

@media (max-width: 480px) {
    .intomade-chat {
        right: 12px;
        bottom: 12px;
    }

    .intomade-chat-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px));
        width: auto;
        max-height: calc(100dvh - 92px);
        border-radius: 24px;
    }

    .intomade-chat-header {
        padding: 14px 14px 12px;
    }

    .intomade-chat-messages {
        min-height: 150px;
        max-height: none;
        padding: 12px;
    }

    .intomade-chat-contact,
    .intomade-chat-form {
        grid-template-columns: 1fr;
        padding-left: 12px;
        padding-right: 12px;
    }

    .intomade-chat-note {
        padding-left: 12px;
        padding-right: 12px;
    }

    .intomade-chat-form button {
        width: 100%;
    }
}

/* Hero scale restore after live-chat CSS recovery */
@media (min-width: 981px) {
    .hero-shell,
    .hero-copy {
        width: min(100%, 780px);
        max-width: 780px;
    }

    .hero-title {
        font-size: clamp(4.25rem, 4.35vw, 5rem);
        line-height: 0.98;
        letter-spacing: -0.055em;
    }

    .hero-subtitle {
        max-width: 620px;
    }

}
