/* ==========================================================================
   AI NextStep — business.ai-nextstep.eu
   "Origin" dark gallery design system (refero style), adapted for services.
   Sections: tokens · base · buttons · nav · hero · stats · tiles · reasons
             · statement · cases · steps · services page · pricing · about
             · contacts · cta · footer · 404 · motion · responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Surfaces */
    --obsidian: #0f1011;
    --abyss: #090a0b;
    --graphite: #2e2e2e;
    --steel: #3f4041;
    --silver: #cacaca;

    /* Text */
    --fog: #85868a;
    --ash: #9f9fa0;
    --ash-strong: #c3c3c5;
    --cloud: #f5f5f7;
    --pure: #ffffff;

    /* Chromatic accents (feature tiles / signals only) */
    --iris: #847dff;
    --deep-iris: #4b49aa;
    --pale-iris: #d1c9ff;
    --orchid: #dd90d8;
    --periwinkle: #90b8f0;
    --cyan: #00b3dd;

    /* Lines */
    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.18);

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Roboto Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* Layout */
    --container: 1200px;
    --section-pad: clamp(64px, 9vw, 140px);
    --gap: 24px;

    /* Radii */
    --r-s: 8px;
    --r-m: 16px;
    --r-l: 30px;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-atm: cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --t: 0.2s ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--obsidian);
    color: var(--ash-strong);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

::selection { background: var(--iris); color: var(--obsidian); }

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--cloud);
    margin: 0;
    letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; transition: color var(--t), border-color var(--t), opacity var(--t); }

:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}

.section { padding: var(--section-pad) 0; }
.section.tight { padding: calc(var(--section-pad) * 0.62) 0; }
.track-section { padding: calc(var(--section-pad) * 0.38) 0; }

/* Mono micro-label */
.mono {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fog);
}

/* Section heading block */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.04; margin: 14px 0 16px; }
.section-head p { font-size: 17px; font-weight: 300; color: var(--ash-strong); max-width: 640px; line-height: 1.55; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.lead { font-size: 18px; font-weight: 300; line-height: 1.55; color: var(--ash-strong); }

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--pure);
    color: #000;
    padding: 10px 16px;
    border-radius: var(--r-s);
    font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; opacity: 0; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--r-s);
    border: 1px solid transparent;
    font-family: var(--font-ui);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--t), border-color var(--t), color var(--t), transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { font-size: 15px; line-height: 1; transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.btn-primary { background: var(--pure); color: #000; }
.btn-primary:hover { background: #e6e6e9; }

.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--pure); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }

.btn-dark { background: #000; color: var(--pure); }
.btn-dark:hover { background: #1c1c1e; }

.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px clamp(14px, 3vw, 28px);
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}
.nav-wrap.scrolled {
    background: rgba(9, 10, 11, 0.72);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--line);
}

.nav-pill {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 12px 10px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: 0.01em;
    color: var(--cloud);
    white-space: nowrap;
}
.nav-logo .mark {
    width: 7px;
    height: 7px;
    background: var(--iris);
    transform: rotate(45deg);
    border-radius: 1px;
    flex: 0 0 auto;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
}
.nav-links a:hover { color: var(--pure); }
.nav-links a.active {
    color: var(--pure);
    border-bottom: 1.5px solid var(--iris);
}

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: var(--r-s);
    background: rgba(255, 255, 255, 0.06);
}
.lang-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 6px 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--fog);
    cursor: pointer;
    transition: background-color var(--t), color var(--t);
}
.lang-switch button.on { background: rgba(255, 255, 255, 0.14); color: var(--pure); }

.burger {
    display: none;
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--r-s);
    width: 40px;
    height: 36px;
    cursor: pointer;
    padding: 10px 9px;
    flex-direction: column;
    justify-content: space-between;
}
.burger span { display: block; height: 1.5px; background: var(--pure); border-radius: 2px; }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(9, 10, 11, 0.98);
    display: flex;
    align-items: center;
    padding: 88px 28px 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { width: 100%; max-width: 520px; margin: 0 auto; }
.mobile-menu nav > a {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(26px, 6vw, 34px);
    color: var(--cloud);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu nav > a:hover, .mobile-menu nav > a.active { color: var(--pale-iris); }
.mm-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

/* ---------- Hero (index) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(600px, 92vh, 900px);
    display: grid;
    align-items: center;
    padding: clamp(140px, 16vh, 190px) 24px clamp(88px, 12vh, 130px);
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 16, 17, 0.62) 0%, rgba(15, 16, 17, 0.18) 28%, rgba(15, 16, 17, 0.18) 72%, rgba(15, 16, 17, 0.62) 100%),
        linear-gradient(180deg, rgba(15, 16, 17, 0.88) 0%, rgba(15, 16, 17, 0.46) 36%, rgba(15, 16, 17, 0.66) 68%, var(--obsidian) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; }
.hero .eyebrow { color: rgba(255, 255, 255, 0.62); }
.hero h1 {
    font-size: clamp(36px, 4.9vw, 68px);
    line-height: 1.07;
    margin: 22px 0 26px;
    letter-spacing: -0.015em;
}
.hero h1 .it { font-style: italic; }
.hero-sub {
    font-size: clamp(16.5px, 1.6vw, 19px);
    font-weight: 300;
    line-height: 1.55;
    color: var(--ash-strong);
    max-width: 620px;
    margin: 0 auto 34px;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Hero entrance (atmospheric, staggered) */
.hero-inner > * {
    opacity: 0;
    transform: translateY(22px);
    animation: heroIn 1.5s var(--ease-atm) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.35s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.55s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.8s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    padding: clamp(120px, 15vw, 170px) 0 clamp(28px, 5vw, 48px);
    text-align: center;
}
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; margin: 16px 0 18px; }
.page-hero .lead { max-width: 620px; margin: 0 auto; }

/* ---------- Stats strip ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat { padding: 34px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.05;
    color: var(--cloud);
    margin-bottom: 10px;
}
.stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }

/* ---------- Feature tiles (services) ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--r-l);
    color: var(--tc, var(--pure));
    background: var(--tc-bg, var(--graphite));
    transition: background-color 0.25s ease, transform 0.3s var(--ease);
}
.tile:hover { background: var(--tc-bg-hover, var(--steel)); transform: translateY(-4px); }
.tile--big { grid-column: span 4; min-height: 380px; }
.tile .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--tc-dim); }
.tile h3 { font-size: clamp(25px, 2.3vw, 34px); line-height: 1.06; margin: 16px 0 12px; color: inherit; }
.tile p { font-size: 15px; line-height: 1.55; color: var(--tc-body); }
.tile ul {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    border-top: 1px solid var(--tc-line);
}
.tile li {
    padding: 10px 0;
    border-bottom: 1px solid var(--tc-line);
    font-size: 13.5px;
    letter-spacing: 0.01em;
    color: var(--tc-body);
}
.tile .go {
    margin-top: auto;
    padding-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    color: var(--tc, var(--pure));
    opacity: 0.92;
}
.tile .go:hover { opacity: 1; }
.tile .go .arrow { transition: transform var(--t); }
.tile .go:hover .arrow { transform: translateX(3px); }

.tile--iris { --tc-bg: #847dff; --tc-bg-hover: #716af2; --tc: #14142a; --tc-body: rgba(20,20,42,0.82); --tc-dim: rgba(20,20,42,0.64); --tc-line: rgba(20,20,42,0.18); }
.tile--orchid { --tc-bg: #dd90d8; --tc-bg-hover: #d37ecd; --tc: #241024; --tc-body: rgba(36,16,36,0.82); --tc-dim: rgba(36,16,36,0.64); --tc-line: rgba(36,16,36,0.16); }
.tile--periwinkle { --tc-bg: #90b8f0; --tc-bg-hover: #7ea9e6; --tc: #12203a; --tc-body: rgba(18,32,58,0.84); --tc-dim: rgba(18,32,58,0.64); --tc-line: rgba(18,32,58,0.18); }
.tile--deep { --tc-bg: #4b49aa; --tc-bg-hover: #5654bd; --tc: #ffffff; --tc-body: rgba(255,255,255,0.94); --tc-dim: rgba(255,255,255,0.68); --tc-line: rgba(255,255,255,0.2); }
.tile--pale { --tc-bg: #d1c9ff; --tc-bg-hover: #c3b9f7; --tc: #16162c; --tc-body: rgba(22,22,44,0.78); --tc-dim: rgba(22,22,44,0.55); --tc-line: rgba(22,22,44,0.16); }

/* ---------- Reasons (why me) ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.reason { border-top: 1px solid var(--line); padding-top: 24px; }
.reason .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--fog); display: block; margin-bottom: 14px; }
.reason b { display: block; font-size: 17px; font-weight: 500; color: var(--cloud); margin-bottom: 8px; }
.reason p { font-size: 15px; line-height: 1.55; color: var(--ash-strong); }

/* ---------- Statement band (silver) ---------- */
.statement {
    background: var(--silver);
    color: #1c1c1c;
    border-radius: var(--r-l);
    padding: clamp(44px, 6vw, 84px) clamp(28px, 5vw, 72px);
    text-align: center;
}
.statement h2 { color: #101010; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; margin-bottom: 18px; }
.statement p { color: #3a3a3a; font-size: 16.5px; line-height: 1.55; max-width: 680px; margin: 0 auto 28px; }
.statement .btn-dark { padding: 13px 22px; }

/* ---------- Cases ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cases-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cases-grid .case-card { grid-column: span 3; }
.cases-grid .case-card--wide { grid-column: 1 / -1; }
.case-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--graphite);
    border: 1px solid transparent;
    border-radius: var(--r-m);
    padding: 26px;
    transition: border-color var(--t), background-color var(--t);
}
.case-card:hover { border-color: var(--line-2); }
.case-visual {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.015);
    padding: 12px 10px;
}
.case-visual svg { width: 100%; height: auto; display: block; }
.case-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a8a8aa; }
.case-card h3 { font-size: 23px; line-height: 1.15; color: var(--cloud); margin: 10px 0 10px; }
.case-card p { font-size: 14.5px; line-height: 1.62; color: var(--ash-strong); }
.case-meta { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: #d4d4d6; text-transform: uppercase; }

.case-card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 30px; padding: 30px; }
.case-card--wide .case-visual { flex: 0 0 300px; }
.case-card--wide > div:not(.case-visual):not(.case-meta) { flex: 1 1 auto; }
.case-card--wide .case-meta { margin: 0; padding: 0; border: 0; flex: 0 0 auto; text-align: right; }

/* ---------- Steps (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--fog); display: block; margin-bottom: 14px; }
.step b { display: block; font-size: 17px; font-weight: 500; color: var(--cloud); margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--ash-strong); }

/* ---------- Services page ---------- */
.track-top { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }
.track { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.track-body .mono { display: block; margin-bottom: 14px; }
.track-body h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; margin-bottom: 16px; }
.track-body .lead { max-width: 520px; }
.track-panel {
    background: var(--graphite);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-m);
    padding: clamp(24px, 3vw, 34px);
}
.track-panel ul { list-style: none; margin: 0; padding: 0; }
.track-panel li {
    position: relative;
    padding: 12px 0 12px 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ash-strong);
    border-bottom: 1px solid var(--line);
}
.track-panel li:last-child { border-bottom: 0; }
.track-panel li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 19px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--ash);
    border-radius: 1px;
    transform: rotate(45deg);
}
.track.rev .track-body { order: 2; }
.track.rev .track-panel { order: 1; }

.band {
    position: relative;
    overflow: hidden;
    min-height: clamp(340px, 46vw, 520px);
    display: grid;
    align-items: center;
    padding: clamp(56px, 8vw, 96px) 0;
}
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: brightness(1.18) contrast(1.06) saturate(1.06); }
.band-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 10, 11, 0.88) 0%, rgba(9, 10, 11, 0.45) 45%, rgba(9, 10, 11, 0) 100%);
}
.band-inner { position: relative; z-index: 1; max-width: 620px; }
.band-inner h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.06; margin: 14px 0 16px; }
.band-inner p { font-size: 16px; line-height: 1.55; color: var(--ash-strong); margin-bottom: 26px; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.stack span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d2d2d4;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 9px 16px;
    transition: border-color var(--t), color var(--t);
}
.stack span:hover { border-color: rgba(132, 125, 255, 0.55); color: var(--pure); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--graphite);
    border: 1px solid transparent;
    border-radius: var(--r-m);
    padding: 30px;
}
.price-card.featured { border-color: rgba(132, 125, 255, 0.55); }
.price-badge {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pure);
    background: rgba(132, 125, 255, 0.18);
    border: 1px solid rgba(132, 125, 255, 0.45);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 4px;
}
.price-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog); }
.price-value { font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); line-height: 1; color: var(--cloud); }
.price-note { font-size: 14px; color: var(--ash-strong); }
.price-card ul { list-style: none; margin: 14px 0 18px; padding: 0; flex: 1; }
.price-card li { position: relative; padding: 9px 0 9px 22px; font-size: 14.5px; line-height: 1.5; color: var(--ash-strong); border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 17px;
    width: 6px;
    height: 6px;
    border: 1px solid var(--ash);
    border-radius: 1px;
    transform: rotate(45deg);
}

.hourly {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--abyss);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 26px 30px;
    margin-top: 18px;
}
.hourly .price-value { font-size: clamp(26px, 3vw, 36px); color: var(--cloud); }
.hourly p { flex: 1; min-width: 240px; font-size: 14.5px; color: var(--ash-strong); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--cloud);
    transition: color var(--t);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--fog);
    line-height: 1;
    transition: transform 0.25s ease, color var(--t);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--pale-iris); }
.faq summary:hover { color: var(--pale-iris); }
.faq details p { padding: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--ash-strong); max-width: 680px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose p { margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--ash-strong); }
.prose p:last-child { margin-bottom: 0; }
.prose .lead { color: var(--ash-strong); }
.about-side .panel { background: var(--graphite); border-radius: var(--r-m); padding: 28px; margin-bottom: 18px; }
.about-side .panel:last-child { margin-bottom: 0; }
.about-side h3 { font-size: 22px; margin-bottom: 14px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); padding-top: 3px; }
.fact b { font-size: 14.5px; font-weight: 500; color: var(--ash-strong); text-align: right; }
.principle { padding: 14px 0; border-bottom: 1px solid var(--line); }
.principle:last-child { border-bottom: 0; }
.principle b { display: block; font-size: 15.5px; font-weight: 500; color: var(--cloud); margin-bottom: 6px; }
.principle p { font-size: 14.5px; line-height: 1.55; color: var(--ash-strong); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag-row span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #d2d2d4; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 13px; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 0; }
.contact-line {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.contact-line:first-child { padding-top: 6px; }
.contact-line .ico {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-line .ico svg { width: 19px; height: 19px; }
.contact-line small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); margin-bottom: 4px; }
.contact-line b { font-size: 15.5px; font-weight: 500; color: var(--cloud); }
a.contact-line:hover b { color: var(--pale-iris); }

.form-card { background: var(--graphite); border-radius: var(--r-m); padding: clamp(24px, 3.2vw, 38px); }
.form-card h3 { font-size: 24px; margin-bottom: 8px; }
.form-card .sub { font-size: 14.5px; color: var(--ash-strong); margin-bottom: 10px; }
.form-legend { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fog); margin: 0 0 20px; }
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ash-strong);
    margin-bottom: 8px;
}
.field input, .field textarea {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-s);
    color: var(--pure);
    font-family: var(--font-ui);
    font-size: 15px;
    padding: 13px 14px;
    transition: border-color var(--t), box-shadow var(--t);
}
.field input::placeholder, .field textarea::placeholder { color: #97979a; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: rgba(132, 125, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(132, 125, 255, 0.22);
}
.field textarea { min-height: 140px; resize: vertical; }
.field--req label::after { content: " *"; color: var(--pale-iris); }
.contact-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ash-strong); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--pale-iris); }
.form-status.err { color: #ff9b9b; }
.form-hint { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: #97979a; }

/* ---------- CTA box ---------- */
.cta-box {
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    background: var(--graphite);
    border-radius: var(--r-l);
    padding: clamp(36px, 5vw, 64px);
}
.cta-box h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; margin-bottom: 12px; }
.cta-box p { font-size: 15.5px; color: var(--ash-strong); max-width: 520px; }

/* ---------- Footer ---------- */
.footer { background: var(--abyss); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); }
.footer-statement {
    padding: 60px 0 48px;
    text-align: center;
}
.footer-statement p {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.15;
    color: var(--cloud);
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 52px 0;
    border-top: 1px solid var(--line);
}
.footer-cols h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ash);
    margin: 0 0 18px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; font-size: 14.5px; }
.footer-cols a { color: var(--ash-strong); }
.footer-cols a:hover { color: var(--pure); }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--ash-strong); max-width: 300px; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 0 34px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #9a9a9c;
}

/* ---------- 404 ---------- */
.nf {
    min-height: 68vh;
    display: grid;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
}
.nf .mono { display: block; margin-bottom: 18px; }
.nf h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: 16px; }
.nf p { color: var(--ash-strong); margin-bottom: 30px; }
.nf .hero-actions { justify-content: center; }

/* ---------- Motion (reveal) ---------- */
html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
}
html.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-inner > * { opacity: 1; transform: none; }
    html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 14px; }
    .tile, .tile--big { grid-column: span 3; }
    .tile:last-child { grid-column: 1 / -1; min-height: 320px; }
    .reasons, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (max-width: 1020px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .track, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .track.rev .track-body { order: 0; }
    .track.rev .track-panel { order: 0; }
}

@media (max-width: 900px) {
    .nav-links, .nav-right .lang-switch, .nav-right .nav-cta { display: none; }
    .burger { display: flex; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stat { border-left: 0; border-top: 1px solid var(--line); }
    .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
    .stat:nth-child(2n) { border-left: 1px solid var(--line); }
}

@media (max-width: 700px) {
    .section { padding: 62px 0; }
    .section.tight { padding: 44px 0; }
    .tile, .tile--big, .tile:last-child { grid-column: 1 / -1; min-height: 0; }
    .case-card--wide { flex-direction: column; align-items: stretch; gap: 18px; }
    .case-card--wide .case-visual { flex: auto; }
    .case-card--wide .case-meta { text-align: left; }
    .cases-grid { grid-template-columns: 1fr; }
    .cases-grid .case-card, .cases-grid .case-card--wide { grid-column: auto; }
    .reasons, .steps { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
    .cta-box { flex-direction: column; align-items: flex-start; }
    .hero { min-height: 0; padding-top: 130px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .stats-strip { grid-template-columns: 1fr 1fr; }
    .stat { padding: 24px 18px; }
    .hourly { padding: 22px; }
}
