/* ═══════════════════════════════════════════
       TOKENS
    ═══════════════════════════════════════════ */
    :root {
      --canvas:      #F8F9FA;
      --surface:     #FFFFFF;
      --ink:         #18181B;
      --muted:       #71717A;
      --border:      rgba(228,228,231,0.75);
      --midnight:    #1E293B;
      --accent:      #4F46E5;
      --accent-dim:  #4338CA;
      --accent-mist: #EEF2FF;
      --accent-soft: rgba(79,70,229,0.08);
      --font:        'Outfit', system-ui, sans-serif;
      --mono:        'JetBrains Mono', monospace;
      --r-card:      1.5rem;
      --r-btn:       0.625rem;
      --gap:         5rem;
      --container:   1280px;
      --px:          1.5rem;
    }
    @supports (padding: clamp(1rem, 2vw, 3rem)) {
      :root {
        --gap:       clamp(4rem, 8vw, 6.5rem);
        --px:        clamp(1.25rem, 5vw, 3rem);
      }
    }

    /* ═══════════════════════════════════════════
       RESET
    ═══════════════════════════════════════════ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: default; }
    html { scroll-padding-top: 80px; overflow-x: hidden; }
    body { font-family: var(--font); background: var(--canvas); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
    img { display: block; max-width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; cursor: pointer; }
    button { cursor: pointer; font-family: var(--font); border: none; background: none; }
    input[type="text"], input[type="tel"], input[type="email"], textarea, input[type="search"] { cursor: text; }
    ul, ol { list-style: none; }

    /* ═══════════════════════════════════════════
       LAYOUT
    ═══════════════════════════════════════════ */
    .container { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--px); padding-right: var(--px); margin-inline: auto; padding-inline: var(--px); }
    .section { padding-top: var(--gap); padding-bottom: var(--gap); padding-block: var(--gap); }
    .section-label {
      display: inline-block;
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 0.875rem;
    }
    .section-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }

    /* ═══════════════════════════════════════════
       TYPOGRAPHY
    ═══════════════════════════════════════════ */
    .display     { font-size: clamp(2.25rem, 5.5vw, 4rem);    font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
    .h2          { font-size: clamp(1.75rem,  3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
    .h3          { font-size: clamp(1.125rem, 2vw,  1.375rem); font-weight: 600; line-height: 1.3; }
    .body-lg     { font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; }
    .body-sm     { font-size: 0.9375rem; line-height: 1.65; }
    .muted       { color: var(--muted); }
    .accent-text { color: var(--accent); }

    /* ═══════════════════════════════════════════
       BUTTONS
    ═══════════════════════════════════════════ */
    .btn {
      display: inline-flex; align-items: center; gap: 0.5rem;
      padding: 0.75rem 1.5rem; border-radius: var(--r-btn);
      font-size: 0.9375rem; font-weight: 600; font-family: var(--font);
      transition: background 0.15s, transform 0.1s, border-color 0.15s;
      min-height: 44px; white-space: nowrap; cursor: pointer;
    }
    .btn:active { transform: translateY(1px); }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: var(--accent-dim); }
    .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
    .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
    .btn-ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
    .btn-ghost-white:hover { border-color: rgba(255,255,255,0.6); }
    .btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 36px; }

    /* ═══════════════════════════════════════════
       CARDS
    ═══════════════════════════════════════════ */
    .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.75rem; }

    /* ═══════════════════════════════════════════
       NAV
    ═══════════════════════════════════════════ */
    #nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      padding-top: 1rem; padding-bottom: 1rem;
      padding-block: 1rem;
      transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
    }
    #nav.scrolled {
      background: rgba(248,249,250,0.93);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: 0 1px 0 var(--border);
    }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
    .nav-logo { font-size: 1rem; font-weight: 600; color: #fff; transition: color 0.2s; }
    #nav.scrolled .nav-logo { color: var(--ink); }
    .nav-links { display: flex; align-items: center; gap: 2rem; }
    .nav-links a { font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.65); transition: color 0.15s; }
    .nav-links a:hover { color: #fff; }
    #nav.scrolled .nav-links a { color: var(--muted); }
    #nav.scrolled .nav-links a:hover { color: var(--ink); }
    .nav-cta { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--accent); color: #fff; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; transition: background 0.15s; min-height: 36px; }
    .nav-cta:hover { background: var(--accent-dim); }
    .nav-cta img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
    @media (max-width: 640px) { .nav-links { display: none; } }

    /* ═══════════════════════════════════════════
       HERO
    ═══════════════════════════════════════════ */
    #hero {
      background: var(--midnight);
      position: relative;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex; align-items: center;
      padding-top: calc(var(--gap) + 4.5rem); padding-bottom: var(--gap);
      padding-block: calc(var(--gap) + 4.5rem) var(--gap);
      overflow: hidden;
    }
    /* dot grid texture */
    #hero::before {
      content: '';
      position: absolute; top: 0; right: 0; bottom: 0; left: 0;
      background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
      background-size: 36px 36px;
      pointer-events: none;
    }
    /* soft glow */
    #hero::after {
      content: '';
      position: absolute;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(79,70,229,0.18) 0%, transparent 70%);
      top: -100px; right: -100px;
      pointer-events: none;
    }
    .hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
    .hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; color: var(--accent); background: rgba(79,70,229,0.12); border: 1px solid rgba(79,70,229,0.25); border-radius: 2rem; padding: 0.3rem 0.875rem; margin-bottom: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
    .hero-badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
    @keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
    .hero-title { color: #fff; margin-bottom: 1.5rem; }
    .hero-sub {
      color: rgba(255,255,255,0.6); font-size: clamp(1rem, 1.6vw, 1.125rem);
      line-height: 1.75; max-width: 54ch; margin-bottom: 0.875rem;
    }
    .hero-sub-2 { color: rgba(255,255,255,0.38); font-size: 0.9375rem; margin-bottom: 2.25rem; }
    .hero-ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2rem; }
    .hero-proof { font-size: 0.875rem; color: rgba(255,255,255,0.3); display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; }
    .hero-proof-sep { color: rgba(255,255,255,0.15); }

    /* typewriter */
    .tw-word { color: var(--accent); font-style: normal; }
    .tw-cursor { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: text-bottom; }
    @media (prefers-reduced-motion: no-preference) {
      @keyframes blink { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }
      .tw-cursor { animation: blink 0.8s step-end infinite; }
    }

    /* hero illustration */
    .hero-visual { display: flex; align-items: center; justify-content: flex-end; }
    .hero-visual img { width: 100%; max-width: 620px; max-height: 560px; object-fit: contain; filter: drop-shadow(0 32px 64px rgba(0,0,0,0.4)); }
    .hero-visual-ph {
      width: 100%; max-width: 560px; aspect-ratio: 620/520;
      border: 1px dashed rgba(255,255,255,0.1); border-radius: 1.5rem;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 0.75rem; color: rgba(255,255,255,0.18); font-size: 0.875rem;
    }
    @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero-visual { display: flex; justify-content: center; margin-top: 1rem; } .hero-visual img { max-width: 280px; } #hero { min-height: auto; } }

    /* ═══════════════════════════════════════════
       MARQUEE
    ═══════════════════════════════════════════ */
    #marquee {
      background: var(--accent-mist);
      border-top: 1px solid rgba(79,70,229,0.12);
      border-bottom: 1px solid rgba(79,70,229,0.12);
      padding-top: 1rem; padding-bottom: 1rem;
      padding-block: 1rem;
      overflow: hidden;
      white-space: nowrap;
    }
    .marquee-track { display: inline-flex; width: max-content; }
    @media (prefers-reduced-motion: no-preference) {
      @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
      .marquee-track { animation: marquee 36s linear infinite; }
    }
    .marquee-item {
      display: inline-flex; align-items: center; gap: 1rem;
      padding-left: 2rem; padding-right: 2rem;
      padding-inline: 2rem;
      font-size: 0.875rem; font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.03em;
    }
    .marquee-dot { width: 5px; height: 5px; background: rgba(79,70,229,0.3); border-radius: 50%; flex-shrink: 0; }

    /* ═══════════════════════════════════════════
       SECTION ILLUSTRATION (shared)
    ═══════════════════════════════════════════ */
    .section-illo {
      margin-top: clamp(2.5rem, 5vw, 4rem);
      border-radius: 1.5rem; overflow: hidden;
    }
    .section-illo img {
      width: 100%; display: block; border-radius: 1.5rem;
      max-height: 480px; object-fit: cover;
    }
    .section-illo-ph {
      width: 100%; aspect-ratio: 16/7;
      background: var(--surface);
      border: 1px dashed var(--border); border-radius: 1.5rem;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 0.625rem; color: var(--muted); font-size: 0.875rem;
    }
    .section-illo-ph-dark {
      background: rgba(255,255,255,0.03);
      border-color: rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.2);
    }

    /* ═══════════════════════════════════════════
       USP
    ═══════════════════════════════════════════ */
    #usp { background: var(--canvas); }
    .usp-list { display: grid; gap: 0; }
    .usp-row {
      display: grid; grid-template-columns: 100px 1fr;
      gap: 2.5rem; align-items: flex-start;
      padding: 2.5rem 0;
      border-bottom: 1px solid var(--border);
    }
    .usp-row:first-child { border-top: 1px solid var(--border); }
    .usp-ico {
      width: 72px; height: 72px;
      background: var(--accent-mist);
      border-radius: 1.125rem;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .usp-ico img { width: 38px; height: 38px; }
    .usp-ico svg { width: 32px; height: 32px; }
    .usp-text .h3 { margin-bottom: 0.375rem; }
    .usp-tag { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 2rem; padding: 0.2rem 0.75rem; }
    @media (max-width: 560px) { .usp-row { grid-template-columns: 1fr; gap: 1rem; } }

    /* ═══════════════════════════════════════════
       SERVICES
    ═══════════════════════════════════════════ */
    #services { background: var(--surface); }
    .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.125rem; }
    .service-card {
      display: flex; flex-direction: column; gap: 0.875rem;
      transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
      position: relative;
      overflow: hidden;
      min-width: 0;
    }
    .service-card::before {
      content: '';
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      background: radial-gradient(circle at top right, rgba(79,70,229,0.06), transparent 60%);
      opacity: 0; transition: opacity 0.3s;
      pointer-events: none;
    }
    .service-card:hover { 
      transform: translateY(-4px); 
      box-shadow: 0 12px 32px rgba(79,70,229,0.08), 0 2px 8px rgba(0,0,0,0.04); 
      border-color: rgba(79,70,229,0.3);
    }
    .service-card:hover::before { opacity: 1; }
    .service-card .h3 { font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
    .service-card .body-sm { white-space: normal; word-wrap: break-word; color: var(--muted); line-height: 1.6; }
    .service-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
    .service-price span { font-size: 0.875rem; color: var(--muted); font-weight: 400; font-family: var(--font); }
    .service-features { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
    .service-feat { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; white-space: normal; word-wrap: break-word; }
    .service-feat svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 0.1rem; }
    .service-card .btn { margin-top: 1rem; width: 100%; justify-content: center; }
    .section-cta-bar {
      margin-top: clamp(2rem, 4vw, 3rem);
      background: var(--accent-mist);
      border: 1px solid rgba(79,70,229,0.15);
      border-radius: var(--r-card);
      padding: clamp(1.5rem, 3vw, 2.25rem);
      display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
      flex-wrap: wrap;
    }
    .section-cta-bar p { font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--ink); }
    .section-cta-bar span { font-size: 0.9rem; color: var(--muted); display: block; font-weight: 400; margin-top: 0.2rem; }
    @media (max-width: 600px) { .section-cta-bar { flex-direction: column; align-items: flex-start; } }
    @media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 520px) { .services-grid { grid-template-columns: 1fr; } }

    /* ═══════════════════════════════════════════
       CALCULATOR
    ═══════════════════════════════════════════ */
    #calculator { background: linear-gradient(160deg, var(--canvas) 0%, var(--accent-mist) 60%, var(--canvas) 100%); }
    .calc-wrap { display: grid; grid-template-columns: 1fr 310px; gap: 2rem; align-items: start; max-width: 100%; }
    .calc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 2rem; padding: 2.25rem; display: flex; flex-direction: column; gap: 2rem; max-width: 100%; overflow: hidden; }
    .calc-step-block { display: flex; flex-direction: column; }
    .calc-step-title { font-size: 0.9375rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.875rem; }
    .step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0; flex-shrink: 0; }

    /* ─── Site type icon cards ─── */
    .ctype-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.625rem; }
    .ctype-r { display: none; }
    .ctype-l {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 0.3rem; padding: 0.875rem 0.375rem;
      border: 2px solid var(--border); border-radius: 1rem;
      cursor: pointer; text-align: center;
      font-size: 0.78rem; font-weight: 600; color: var(--muted);
      transition: all 0.18s; background: var(--canvas); line-height: 1.3;
      min-height: 74px; word-break: break-word; hyphens: auto;
    }
    .ctype-ico { width: 22px; height: 22px; flex-shrink: 0; }
    .ctype-l:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
    .ctype-r:checked + .ctype-l { border-color: var(--accent); color: var(--accent); background: var(--accent-mist); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); }

    /* ─── Materials selector ─── */
    .cmat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.625rem; }
    .cmat-r { display: none; }
    .cmat-l {
      padding: 1rem 0.75rem; border: 2px solid var(--border); border-radius: 1rem;
      cursor: pointer; font-size: 0.875rem; font-weight: 600; text-align: center;
      color: var(--muted); transition: all 0.15s; background: var(--canvas);
      display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    }
    .cmat-ico { width: 22px; height: 22px; flex-shrink: 0; }
    .cmat-l:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
    .cmat-r:checked + .cmat-l { border-color: var(--accent); color: var(--accent); background: var(--accent-mist); }

    /* ─── Urgency toggle ─── */
    .urgency-toggle { display: flex; align-items: center; gap: 0.875rem; cursor: pointer; }
    .urgency-toggle input { display: none; }
    .toggle-track { width: 44px; height: 24px; border-radius: 12px; background: #D1D5DB; position: relative; transition: background 0.2s; flex-shrink: 0; }
    .toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.25); transition: transform 0.2s; }
    .urgency-toggle input:checked + .toggle-track { background: var(--accent); }
    .urgency-toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
    .toggle-label { font-size: 0.9375rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

    .urgency-badge { font-size: 0.75rem; font-weight: 700; color: #DC2626; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 2rem; padding: 0.2rem 0.6rem; }
    .calc-hint { font-size: 0.8125rem; color: var(--accent); margin-top: 0.625rem; line-height: 1.55; font-style: italic; min-height: 1.8em; }

    /* ─── Price output ─── */
    .calc-out {
      background: var(--midnight); border-radius: 2rem; padding: 2.25rem;
      display: flex; flex-direction: column;
      position: sticky; top: 6rem;
    }
    .calc-price-lbl { font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.375rem; }
    .calc-price-val { font-family: var(--mono); font-size: clamp(1.875rem, 5vw, 2.875rem); font-weight: 500; color: #fff; line-height: 1.1; margin-bottom: 0.375rem; letter-spacing: -0.02em; }
    .calc-price-sub { font-size: 0.8125rem; color: rgba(255,255,255,0.3); margin-bottom: 1.75rem; }
    .calc-includes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; flex: 1; }
    .calc-includes li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
    .calc-includes li::before {
      content: ''; display: block; width: 16px; height: 16px; flex-shrink: 0;
      background: rgba(79,70,229,0.7); border-radius: 50%;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z'/%3E%3C/svg%3E");
      background-size: 10px; background-repeat: no-repeat; background-position: center;
    }

    /* ─── Compare section ─── */
    #compare { background: var(--canvas); }
    .compare-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; align-items: stretch; }
    .compare-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--r-card); padding: 2rem;
      display: flex; flex-direction: column; gap: 1.5rem;
    }
    .compare-card-me { border-color: var(--accent); border-width: 2px; }
    .compare-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
    .compare-card-me .compare-tag { color: var(--accent); }
    .compare-card-agency .compare-tag, .compare-card-cheap .compare-tag { color: var(--muted); }
    .compare-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
    .compare-card-agency .compare-title, .compare-card-cheap .compare-title { color: var(--muted); }
    .compare-price { font-family: var(--mono); font-size: 1.125rem; font-weight: 500; color: var(--muted); }
    .compare-card-me .compare-price { color: var(--accent); }
    .compare-rows { display: flex; flex-direction: column; gap: 0.75rem; }
    .compare-row { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; line-height: 1.55; }
    .compare-row svg { flex-shrink: 0; margin-top: 0.15rem; }
    .compare-card-me .compare-row { color: var(--ink); }
    .compare-card-agency .compare-row, .compare-card-cheap .compare-row { color: var(--muted); }
    @media (max-width: 900px) {
      .calc-wrap { grid-template-columns: 1fr; }
      .calc-out { position: static; }
      .ctype-grid { grid-template-columns: repeat(3, 1fr); }
      .compare-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 600px) {
      .calc-panel, .calc-out { padding: 1.5rem; border-radius: 1.5rem; }
      .calc-panel { gap: 1.5rem; }
      .calc-price-val { font-size: 2.25rem; }
      .ctype-l { padding: 0.6rem 0.25rem; font-size: 0.75rem; min-height: 64px; }
      .urgency-toggle { align-items: flex-start; }
      .toggle-track { margin-top: 0.125rem; }
    }
    @media (max-width: 480px) { 
      .ctype-grid { grid-template-columns: repeat(2, 1fr); } 
      .ctype-grid > .ctype-l:last-of-type { grid-column: span 2; }
      .cmat-grid { grid-template-columns: 1fr; }
      .calc-panel, .calc-out { padding: 1.25rem; border-radius: 1.25rem; }
    }

    /* ═══════════════════════════════════════════
       PROCESS
    ═══════════════════════════════════════════ */
    #process { background: var(--surface); }
    .process-steps {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 1.25rem; margin-bottom: 3rem;
    }
    .process-step {
      background: var(--canvas);
      border: 1px solid var(--border);
      min-width: 0;
      border-radius: var(--r-card);
      padding: 2rem 2rem 2rem 2rem;
      position: relative; overflow: hidden;
    }
    .step-bg-num {
      position: absolute; top: -0.5rem; right: 1rem;
      font-family: var(--mono); font-size: 5rem; font-weight: 700;
      color: var(--accent); opacity: 0.06; line-height: 1;
      pointer-events: none; user-select: none;
    }
    .step-circle {
      width: 40px; height: 40px; background: var(--accent);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.25rem; flex-shrink: 0;
    }
    .step-circle svg { width: 18px; height: 18px; color: #fff; }
    .step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
    .step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.7; max-width: 46ch; }
    .process-img { text-align: center; margin-top: 0.5rem; }
    .process-img img { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; margin-inline: auto; border-radius: 1rem; }
    @media (max-width: 600px) { .process-img img { border-radius: 0.75rem; } }
    .process-img-ph {
      max-width: 720px; margin-left: auto; margin-right: auto; margin-inline: auto;
      aspect-ratio: 800/300; background: var(--canvas);
      border: 1px dashed var(--border); border-radius: 1rem;
      display: flex; align-items: center; justify-content: center;
      color: var(--muted); font-size: 0.875rem; gap: 0.5rem;
    }
    @media (max-width: 600px) { .process-steps { grid-template-columns: 1fr; } }

    /* ═══════════════════════════════════════════
       CONTACT FORM
    ═══════════════════════════════════════════ */
    #contact-form { background: var(--canvas); }
    .form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
    .form-body { display: flex; flex-direction: column; gap: 1.25rem; }
    .form-group { display: flex; flex-direction: column; gap: 0.375rem; }
    .form-lbl { font-size: 0.875rem; font-weight: 600; }
    .form-lbl span { color: var(--accent); }
    .form-input, .form-textarea {
      width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border);
      border-radius: 0.75rem; font-family: var(--font); font-size: 0.9375rem;
      color: var(--ink); background: var(--surface);
      transition: border-color 0.15s, box-shadow 0.15s; outline: none;
    }
    .form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
    .form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
    .form-textarea { resize: vertical; min-height: 130px; }
    .form-consent { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); cursor: pointer; }
    .form-consent input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
    .form-consent a { color: var(--accent); text-decoration: underline; }
    .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
    .form-msg { padding: 0.875rem 1.25rem; border-radius: 0.75rem; font-size: 0.9375rem; font-weight: 500; display: none; }
    .form-msg.ok  { display: block; background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
    .form-msg.err { display: block; background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
    .form-msg.err a { color: var(--accent); text-decoration: underline; }
    .form-aside-box { background: var(--midnight); border-radius: var(--r-card); padding: 2rem; height: 100%; display: flex; flex-direction: column; }
    .form-aside-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
    .form-aside-steps { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; flex: 1; }
    .form-aside-step { display: flex; align-items: flex-start; gap: 0.875rem; }
    .step-n { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; color: var(--accent); background: rgba(79,70,229,0.15); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
    .form-aside-step p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
    .form-aside-step strong { color: rgba(255,255,255,0.85); }
    @media (max-width: 768px) { .form-layout { grid-template-columns: 1fr; } }

    /* ═══════════════════════════════════════════
       PORTFOLIO
    ═══════════════════════════════════════════ */
    #portfolio { background: var(--surface); }
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 1.125rem; margin-bottom: 2.5rem;
    }
    .portfolio-grid > li { grid-column: span 2; }
    .portfolio-grid > li:nth-child(4) { grid-column: 2 / 4; }
    .portfolio-grid > li:nth-child(5) { grid-column: 4 / 6; }
    .portfolio-card { display: flex; flex-direction: column; gap: 0.5rem; transition: transform 0.2s; height: 100%; }
    .portfolio-card:hover { transform: translateY(-3px); }

    .portfolio-screens {
      position: relative;
      aspect-ratio: 4/3;
      overflow: hidden;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      flex-shrink: 0;
      cursor: zoom-in;
    }
    /* Bottom fade — screenshots float on glow */
    .portfolio-screens::after {
      content: '';
      position: absolute;
      top: 0; right: 0; bottom: 0; left: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 45%);
      pointer-events: none;
      z-index: 4;
    }
    /* Fake browser chrome bar */
    .scr-bar {
      position: absolute;
      top: 6%;
      left: 5%;
      width: 80%;
      height: 5%;
      background: rgba(255,255,255,0.07);
      border-radius: 4px 4px 0 0;
      display: flex;
      align-items: center;
      padding: 0 8px;
      gap: 4px;
      z-index: 2;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .scr-bar::before {
      content: '';
      display: block;
      width: 6px; height: 6px;
      border-radius: 50%;
      background: #FF5F56;
      box-shadow: 10px 0 0 #FFBD2E, 20px 0 0 #27C93F;
      flex-shrink: 0;
    }
    .portfolio-screens img {
      position: absolute;
      display: block;
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .scr-pc {
      width: 80%;
      top: 11%;
      left: 5%;
      border-radius: 0 0 3px 3px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.6);
      transform-origin: left top;
      z-index: 1;
    }
    .scr-mo {
      width: 22%;
      bottom: 0;
      right: 6%;
      border-radius: 10px 10px 0 0;
      box-shadow: 0 20px 48px rgba(0,0,0,0.7);
      transform-origin: right bottom;
      z-index: 3;
    }
    .portfolio-card:hover .scr-pc { transform: scale(1.02) translateY(-4px); }
    .portfolio-card:hover .scr-mo { transform: translateY(-12px) scale(1.03); }

    .portfolio-card .h3 { font-size: 1.0625rem; }
    .portfolio-year { font-size: 0.75rem; color: var(--muted); font-family: var(--mono); }
    .portfolio-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--accent); font-weight: 500; transition: gap 0.15s; }
    .portfolio-link:hover { gap: 0.625rem; }
    .portfolio-tech { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--accent-mist); border-radius: 1rem; padding: 0.35rem 0.75rem; align-self: flex-start; border: 1px solid rgba(79,70,229,0.15); margin-top: 0.25rem; max-width: 100%; line-height: 1.4; }
    /* ── LIGHTBOX ── */
    .lb-overlay {
      position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9000;
      background: rgba(4,4,10,0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 2rem;
      opacity: 0; pointer-events: none;
      transition: opacity 0.22s ease;
    }
    .lb-overlay.is-open { opacity: 1; pointer-events: all; }
    .lb-inner {
      position: relative;
      width: 100%;
      max-width: min(88vw, 1140px);
      animation: lb-in 0.28s cubic-bezier(0.22,1,0.36,1) both;
    }
    .lb-overlay:not(.is-open) .lb-inner { animation: none; }
    @keyframes lb-in {
      from { transform: scale(0.94) translateY(12px); opacity: 0; }
      to   { transform: scale(1)    translateY(0);    opacity: 1; }
    }
    .lb-img-pc {
      width: 100%; display: block;
      border-radius: 8px;
      box-shadow: 0 40px 100px rgba(0,0,0,0.7);
    }
    .lb-img-mo {
      position: absolute;
      right: -3%;
      bottom: 0;
      width: 17%;
      display: block;
      border-radius: 14px 14px 0 0;
      box-shadow: 0 28px 64px rgba(0,0,0,0.8);
    }
    .lb-close {
      position: fixed; top: 1.25rem; right: 1.25rem;
      width: 44px; height: 44px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: 50%;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.8);
      transition: background 0.15s, color 0.15s;
      z-index: 9001;
    }
    .lb-close:hover { background: rgba(255,255,255,0.16); color: #fff; }
    .lb-meta {
      margin-top: 1.25rem;
      display: flex; align-items: center; gap: 1rem;
      color: rgba(255,255,255,0.35);
      font-size: 0.8125rem;
    }
    .lb-meta strong { color: rgba(255,255,255,0.7); font-weight: 600; }
    .lb-hint { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

    .portfolio-note {
      font-size: 0.9375rem; color: var(--muted);
      display: flex; align-items: center; gap: 0.75rem;
    }
    .portfolio-note::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
    @media (max-width: 900px) {
      .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
      .portfolio-grid > li,
      .portfolio-grid > li:nth-child(4),
      .portfolio-grid > li:nth-child(5) { grid-column: span 1; }
    }
    @media (max-width: 520px) {
      .portfolio-grid { grid-template-columns: 1fr; }
      .portfolio-grid > li { grid-column: span 1; }
    }

    /* ═══════════════════════════════════════════
       REVIEWS
    ═══════════════════════════════════════════ */
    #reviews { background: var(--surface); }
    .reviews-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }
    .reviews-grid > .review-card:last-child:nth-child(odd) {
      grid-column: 1 / -1;
      max-width: calc((100% - 1.5rem) / 2);
      margin-inline: auto;
    }
    @media (max-width: 700px) {
      .reviews-grid { grid-template-columns: 1fr; }
      .reviews-grid > .review-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; }
    }
    .review-card {
      background: var(--canvas);
      border: 1px solid var(--border);
      border-radius: var(--r-card);
      padding: 1.75rem;
      display: flex; flex-direction: column; gap: 1rem;
    }
    .review-stars { display: flex; gap: 3px; }
    .review-stars svg { width: 16px; height: 16px; fill: #f59e0b; }
    .review-text { font-size: 0.9375rem; line-height: 1.75; color: var(--ink); flex: 1; }
    .review-author { display: flex; flex-direction: column; gap: 0.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
    .review-name { font-weight: 600; font-size: 0.9375rem; }
    .review-role { font-size: 0.8125rem; color: var(--muted); }

    /* ═══════════════════════════════════════════
       FAQ
    ═══════════════════════════════════════════ */
    #faq { background: var(--canvas); }
    .faq-wrap { max-width: 860px; margin-left: auto; margin-right: auto; margin-inline: auto; }
    .faq-item { border-bottom: 1px solid var(--border); }
    .faq-item:first-child { border-top: 1px solid var(--border); }
    .faq-q {
      width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1.5rem 0; text-align: left;
      font-size: clamp(1rem, 1.5vw, 1.0625rem); font-weight: 600; color: var(--ink);
      cursor: pointer; transition: color 0.15s;
    }
    .faq-q:hover { color: var(--accent); }
    .faq-ico { width: 28px; height: 28px; background: var(--accent-mist); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, transform 0.3s; }
    .faq-ico svg { width: 14px; height: 14px; color: var(--accent); }
    .faq-item.open .faq-ico { background: var(--accent); transform: rotate(45deg); }
    .faq-item.open .faq-ico svg { color: #fff; }
    .faq-a { display: none; padding-bottom: 1.5rem; font-size: 0.9375rem; color: var(--muted); line-height: 1.75; max-width: 64ch; }
    .faq-item.open .faq-a { display: block; }

    /* ═══════════════════════════════════════════
       ABOUT
    ═══════════════════════════════════════════ */
    #about { background: var(--surface); }
    .about-grid { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center; }
    .about-text p { font-size: clamp(1rem, 1.5vw, 1.0625rem); line-height: 1.8; color: var(--muted); max-width: 58ch; margin-bottom: 1rem; }
    .about-text strong { color: var(--ink); font-weight: 600; }
    .about-text p:last-of-type { margin-bottom: 0; }
    .about-stats { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 2.5rem; }
    .stat-pill {
      background: var(--canvas); border: 1px solid var(--border); border-radius: 2rem; padding: 0.625rem 1.25rem;
    }
    .stat-pill strong { display: block; font-family: var(--mono); font-size: 1.25rem; color: var(--accent); }
    .stat-pill span { font-size: 0.8125rem; color: var(--muted); }
    .about-img img { width: 100%; border-radius: 1.5rem; }
    .about-img-ph { width: 100%; aspect-ratio: 400/400; background: var(--canvas); border: 1px dashed var(--border); border-radius: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--muted); font-size: 0.875rem; }
    @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .about-img { display: flex; justify-content: center; } .about-img img { max-width: 280px; } }

    /* ═══════════════════════════════════════════
       CONTACTS (redesigned)
    ═══════════════════════════════════════════ */
    #contacts { background: var(--midnight); padding-top: var(--gap); padding-bottom: var(--gap); padding-block: var(--gap); }
    .contacts-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
    .contacts-head .h2 { color: #fff; margin-bottom: 0.875rem; }
    .contacts-head p { color: rgba(255,255,255,0.5); font-size: clamp(1rem, 1.5vw, 1.125rem); max-width: 50ch; margin-left: auto; margin-right: auto; margin-inline: auto; }
    .contacts-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
    .contact-card {
      border-radius: var(--r-card); padding: 2rem;
      display: flex; flex-direction: column; gap: 1.25rem;
      transition: transform 0.2s;
      min-width: 0;
    }
    .contact-card:hover { transform: translateY(-4px); }
    .contact-card-primary { background: var(--accent); }
    .contact-card-secondary { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
    .contact-logo { width: 56px; height: 56px; border-radius: 1rem; overflow: hidden; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .contact-logo img { width: 56px; height: 56px; object-fit: cover; }
    .contact-logo svg { width: 28px; height: 28px; }
    .contact-info { flex: 1; }
    .contact-channel { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.25rem; }
    .contact-card-primary .contact-channel { color: rgba(255,255,255,0.6); }
    .contact-card-secondary .contact-channel { color: rgba(255,255,255,0.35); }
    .contact-name { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
    .contact-handle { font-size: 0.875rem; }
    .contact-card-primary .contact-handle { color: rgba(255,255,255,0.65); }
    .contact-card-secondary .contact-handle { color: rgba(255,255,255,0.4); }
    .contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6875rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 700; transition: all 0.15s; min-height: 42px; }
    .contact-card-primary .contact-btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
    .contact-card-primary .contact-btn:hover { background: rgba(255,255,255,0.25); }
    .contact-card-secondary .contact-btn { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.12); }
    .contact-card-secondary .contact-btn:hover { background: rgba(255,255,255,0.14); }
    @media (max-width: 768px) { .contacts-cards { grid-template-columns: 1fr; } }

    /* ═══════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════ */
    footer { background: var(--midnight); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 2rem; padding-bottom: 2rem; padding-block: 2rem; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
    .footer-copy { font-size: 0.875rem; color: rgba(255,255,255,0.3); }
    .footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
    .footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.35); transition: color 0.15s; }
    .footer-links a:hover { color: rgba(255,255,255,0.8); }
    .footer-note { width: 100%; font-size: 0.8125rem; color: rgba(255,255,255,0.18); }

    /* ═══════════════════════════════════════════
       FLOATING MAX BUTTON (desktop)
    ═══════════════════════════════════════════ */
    #float-max {
      position: fixed; right: 1.5rem; bottom: 1.5rem;
      width: 58px; height: 58px;
      background: var(--accent); border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      z-index: 99; overflow: hidden;
      transition: transform 0.15s, box-shadow 0.15s;
      box-shadow: 0 4px 24px rgba(79,70,229,0.45);
    }
    #float-max:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(79,70,229,0.6); }
    #float-max img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
    #float-max svg { width: 28px; height: 28px; fill: #fff; }
    @media (max-width: 767px) { #float-max { display: none; } }
    @media (prefers-reduced-motion: no-preference) {
      @keyframes float-pulse {
        0%,100% { box-shadow: 0 4px 24px rgba(79,70,229,0.45); }
        50%      { box-shadow: 0 4px 40px rgba(79,70,229,0.7), 0 0 0 10px rgba(79,70,229,0.08); }
      }
      #float-max { animation: float-pulse 2.5s ease-in-out infinite; }
    }

    /* ═══════════════════════════════════════════
       MOBILE STICKY BAR
    ═══════════════════════════════════════════ */
    #mobile-bar {
      display: none;
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 98;
      background: var(--surface); border-top: 1px solid var(--border);
      padding: 0.75rem var(--px);
      padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
      gap: 0.75rem;
    }
    @media (max-width: 767px) {
      #mobile-bar { display: flex; }
      body { padding-bottom: 76px; }
    }
    #mobile-bar .btn { flex: 1; justify-content: center; }
    #mobile-bar.hidden { display: none !important; }

    /* ═══════════════════════════════════════════
       SCROLL REVEAL — управляется GSAP ScrollTrigger
    ═══════════════════════════════════════════ */

    /* ═══════════════════════════════════════════
       PAIN SECTION
    ═══════════════════════════════════════════ */
    .pain-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }
    @media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; } }
    .pain-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-top: 3px solid #ef4444;
      border-radius: var(--r-card);
      padding: 1.75rem;
    }
    .pain-card h3 { margin-bottom: 0.5rem; }
    .pain-icon {
      width: 48px; height: 48px;
      background: rgba(239, 68, 68, 0.08);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 1.25rem;
      color: #ef4444;
    }
    .pain-icon svg { width: 22px; height: 22px; }

    /* ═══════════════════════════════════════════
       RESPONSIVE — TABLET 1024px
    ═══════════════════════════════════════════ */
    @media (max-width: 1024px) {
      .about-grid { grid-template-columns: 1fr; gap: 3rem; }
      .about-img { display: flex; justify-content: center; }
      .about-img img { max-width: 320px; }
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE — TABLET 768px
    ═══════════════════════════════════════════ */
    @media (max-width: 768px) {
      :root { --px: clamp(1rem, 4vw, 1.75rem); }
      .display { font-size: clamp(2rem, 7vw, 3rem); }
      .h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
      .contacts-cards { grid-template-columns: 1fr; }
      .nav-cta { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
      .calc-wrap { grid-template-columns: 1fr; }
      .form-layout { grid-template-columns: 1fr; }
      .about-stats { gap: 0.75rem; }
      .section-cta-bar { flex-direction: column; align-items: flex-start; }
      .form-layout { grid-template-columns: 1fr; }
      .usp-ico { width: 60px; height: 60px; }
      .usp-ico img { width: 32px; height: 32px; }
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE — MOBILE 600px
    ═══════════════════════════════════════════ */
    @media (max-width: 600px) {
      .services-grid { grid-template-columns: 1fr; }
      .pain-grid { grid-template-columns: 1fr; }
      .reviews-grid { grid-template-columns: 1fr; }
      .reviews-grid > .review-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; margin-inline: 0; }
      .process-steps { grid-template-columns: 1fr; }
      .stack-grid { grid-template-columns: repeat(2, 1fr); }
      .hero-ctas { flex-direction: column; }
      .hero-ctas .btn { width: 100%; justify-content: center; }
      .form-aside-box { display: none; }
      .card { padding: 1.375rem; }
      .calc-out { padding: 1.5rem; border-radius: 1.5rem; }
      .calc-price-val { font-size: clamp(1.75rem, 8vw, 2.25rem); }
      #calc-to-form { font-size: 0.9rem; }
      .about-stats { flex-direction: row; flex-wrap: wrap; }
      .stat-pill { flex: 1 1 45%; }
    }

    /* ═══════════════════════════════════════════
       RESPONSIVE — SMALL MOBILE 400px
    ═══════════════════════════════════════════ */
    @media (max-width: 400px) {
      :root { --px: 1rem; }
      .display { font-size: clamp(1.75rem, 8vw, 2.25rem); letter-spacing: -0.025em; }
      .h2 { font-size: clamp(1.375rem, 5.5vw, 1.75rem); }
      .h3 { font-size: 1rem; }
      .btn { padding: 0.6875rem 1.125rem; font-size: 0.875rem; }
      .stack-grid { grid-template-columns: 1fr; }
      .stat-pill { flex: 1 1 100%; }
      .nav-links { display: none; }
      .portfolio-grid { grid-template-columns: 1fr; }
      .portfolio-grid > li { grid-column: span 1; }
      .usp-row { grid-template-columns: 1fr; gap: 0.875rem; }
      .usp-ico { width: 52px; height: 52px; }
    }

    /* ═══════════════════════════════════════════
       HERO STATS BAR
    ═══════════════════════════════════════════ */
    .hero-stats-bar {
      display: flex; align-items: center; justify-content: center;
      margin-top: 3rem;
      padding: 1.5rem 2.5rem;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 1.125rem;
      position: relative; z-index: 1;
    }
    .hero-stat-item { flex: 1; text-align: center; padding: 0.375rem 1.25rem; }
    .hero-stat-item strong {
      display: block; font-family: var(--mono);
      font-size: clamp(1.5rem, 2.5vw, 2.125rem); font-weight: 600;
      color: #fff; line-height: 1.1; margin-bottom: 0.25rem;
      letter-spacing: -0.02em;
    }
    .hero-stat-item span { font-size: 0.8rem; color: rgba(255,255,255,0.38); letter-spacing: 0.01em; }
    .hero-stats-divider { width: 1px; height: 2.5rem; background: rgba(255,255,255,0.1); flex-shrink: 0; }
    @media (max-width: 900px) { .hero-stats-bar { display: none; } }

    /* ═══════════════════════════════════════════
       TECH STACK SECTION
    ═══════════════════════════════════════════ */
    #stack { background: var(--surface); }
    .stack-header {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 2rem; align-items: end;
      margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
    }
    .stack-header-desc { font-size: 1rem; color: var(--muted); line-height: 1.7; }
    @media (max-width: 768px) { .stack-header { grid-template-columns: 1fr; gap: 1rem; } }
    .stack-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
    }
    .stack-item {
      display: flex; flex-direction: column; gap: 1rem;
      background: var(--canvas); border: 1px solid var(--border);
      border-radius: 1.375rem; padding: 1.625rem;
      transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    }
    .stack-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 16px 40px rgba(0,0,0,0.08);
      border-color: rgba(79,70,229,0.3);
    }
    .stack-ico {
      width: 54px; height: 54px; border-radius: 1rem;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; font-weight: 700; flex-shrink: 0;
      font-family: var(--mono); letter-spacing: -0.02em;
    }
    .stack-name { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 0.2rem; }
    .stack-cat { font-size: 0.8125rem; color: var(--muted); line-height: 1.4; }
    .stack-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; margin-top: 0.375rem; }
    .stack-note {
      margin-block: 1.25rem; padding: 1.25rem 2rem;
      background: var(--accent-mist); border: 1px solid rgba(79,70,229,0.15);
      border-radius: var(--r-card); text-align: center;
      font-size: 0.9375rem; color: var(--muted);
    }
    .stack-note strong { color: var(--ink); }
    @media (max-width: 1100px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 480px) { .stack-grid { gap: 0.875rem; } .stack-ico { width: 44px; height: 44px; } }

    /* ═══════════════════════════════════════════
       FLASH FIX — скрываем до загрузки GSAP
       (js-init добавляется синхронно в <head>)
    ═══════════════════════════════════════════ */
    /* Блок данных калькулятора в форме */
    .calc-prefill-box { background: rgba(79, 70, 229, 0.08); border: 1px solid rgba(79, 70, 229, 0.25); border-radius: 0.625rem; padding: 0.75rem 1rem; margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
    .calc-prefill-box b { color: var(--ink); }

    /* ── Scroll-reveal: elements start hidden, GSAP animates them in.
         CSS fallback: if GSAP hasn't touched an element within 1.5s
         after page load, the .gsap-ready class triggers a CSS
         transition so nothing stays invisible on fast scroll. ── */
    @keyframes sr-fallback {
      to { opacity: 1; transform: none; }
    }
    html.js-init .hero-badge,
    html.js-init .hero-title,
    html.js-init .hero-sub,
    html.js-init .hero-sub-2,
    html.js-init .hero-ctas > *,
    html.js-init .hero-proof,
    html.js-init .hero-visual img,
    html.js-init .hero-stats-bar .hero-stat-item,
    html.js-init .section-head,
    html.js-init .pain-card,
    html.js-init .usp-row,
    html.js-init .section-illo,
    html.js-init .process-img,
    html.js-init .process-step,
    html.js-init .service-card,
    html.js-init .stack-item,
    html.js-init .stack-note,
    html.js-init .calc-panel,
    html.js-init .calc-out,
    html.js-init .compare-card,
    html.js-init .portfolio-card,
    html.js-init .review-card,
    html.js-init .about-text,
    html.js-init .about-img,
    html.js-init .stat-pill,
    html.js-init .form-body,
    html.js-init .form-aside-box,
    html.js-init .faq-item,
    html.js-init .section-cta-bar,
    html.js-init .contacts-head,
    html.js-init .contact-card,
    html.js-init .portfolio-note { opacity: 0; }

    /* Once gsap-ready fires, any element GSAP hasn't already animated
       gets a gentle CSS fade-in as safety net */
    html.gsap-ready .section-head,
    html.gsap-ready .pain-card,
    html.gsap-ready .usp-row,
    html.gsap-ready .section-illo,
    html.gsap-ready .process-img,
    html.gsap-ready .process-step,
    html.gsap-ready .service-card,
    html.gsap-ready .stack-item,
    html.gsap-ready .stack-note,
    html.gsap-ready .calc-panel,
    html.gsap-ready .calc-out,
    html.gsap-ready .compare-card,
    html.gsap-ready .portfolio-card,
    html.gsap-ready .review-card,
    html.gsap-ready .about-text,
    html.gsap-ready .about-img,
    html.gsap-ready .stat-pill,
    html.gsap-ready .form-body,
    html.gsap-ready .form-aside-box,
    html.gsap-ready .faq-item,
    html.gsap-ready .section-cta-bar,
    html.gsap-ready .contacts-head,
    html.gsap-ready .contact-card,
    html.gsap-ready .portfolio-note {
      animation: sr-fallback 0.5s ease forwards;
      animation-delay: 0.15s;
    }
