/* ==========================================================================
   GradiamDigital — style.css
   Plain CSS, no build step. Colours and spacing are defined as variables below.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0D0F12;
  --band: #111418;
  --surface: #15181D;
  --surface-2: #1C2027;
  --line: #2A2F38;
  --line-soft: #1F232A;
  --line-strong: #3A414C;
  --text: #F3F4F1;
  --muted: #A7ADB8;
  --lime: #C6F36B;
  --lime-hover: #D9FA96;
  --sky: #8FB8FF;
  --error: #FFB3A8;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, .disp { font-family: var(--font-display); }
a { color: var(--lime); }
a:hover { color: var(--lime-hover); }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--lime); color: var(--bg);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; }
.section { padding: 120px 24px; scroll-margin-top: var(--header-h); }
.section--band { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--contact { padding-bottom: 140px; }
@media (max-width: 640px) { .section { padding: 80px 20px; } }

.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.h2 { margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.section-head { max-width: 720px; }
.section-head--center { max-width: 680px; margin: 0 auto; text-align: center; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 28px; border: none; border-radius: 14px; text-align: center; line-height: 1.25;
  font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--lime); color: var(--bg); box-shadow: 0 18px 40px -16px rgba(198, 243, 107, .55); }
.btn--primary:hover { background: var(--lime-hover); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { padding: 0 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--lime); color: var(--text); }
.btn--sm { min-height: 44px; padding: 8px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: none; }
.btn--block { width: 100%; min-height: 60px; font-size: 17px; }
.btn--outline { min-height: 48px; padding: 8px 20px; border-radius: 12px; background: transparent; border: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 600; }
.btn--outline:hover { border-color: var(--lime); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 18, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo__text span { color: var(--lime); }

.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.lang a {
  min-width: 40px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--text); color: var(--bg); }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--lime); transform-origin: left; transform: scaleX(0);
}

@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 560px) { .header__cta { display: none; } }
@media (max-width: 400px) {
  .header__inner { padding: 0 16px; gap: 12px; }
  .logo__text { font-size: 17px; }
  .lang a { min-width: 34px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 24px 120px; }
.hero__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#262B33 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 40%, #000 25%, transparent 75%);
}
.hero__grid { position: relative; max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.hero__copy { flex: 1 1 480px; min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted);
}
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--lime); }
.hero h1 {
  position: relative; z-index: 0; margin: 0 0 24px;
  font-size: clamp(40px, 5.6vw, 74px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
}
.hl { position: relative; display: inline-block; padding: 0 .1em; color: var(--bg); }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; top: .1em; bottom: .02em; z-index: -1;
  border-radius: .12em; background: var(--lime); transform-origin: left;
}
.hero__lead { margin: 0 0 36px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.trust {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px;
}
.trust__item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--lime); }
.trust__item strong { display: block; font-weight: 600; }
.trust__item span { color: var(--muted); }
.hero__visual { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 64px; }

/* ---------- Hero mockup ("the site builds itself") ---------- */
.mock { position: relative; width: 100%; max-width: 560px; }
.mock__win { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .85); }
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: #2F3540; }
.mock__url {
  flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border-radius: 8px; background: var(--bg); font: 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden;
}
.mock__url svg { width: 12px; height: 12px; flex: none; }
.mock__online {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  background: rgba(198, 243, 107, .12); color: var(--lime); font-size: 12px; font-weight: 600;
}
.pulse { position: relative; width: 8px; height: 8px; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); }
.mock__stage { position: relative; height: 340px; }

.blk { position: absolute; border: 1.5px dashed var(--line-strong); border-radius: 10px; }
.blk__fill { position: absolute; inset: -1.5px; border-radius: inherit; background: var(--surface-2); }
.blk--nav { top: 20px; left: 5%; width: 90%; height: 30px; border-radius: 8px; }
.blk--nav .blk__fill { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.blk--hero { top: 66px; left: 5%; width: 52%; height: 134px; }
.blk--hero .blk__fill { display: flex; flex-direction: column; gap: 9px; padding: 18px 16px; }
.blk--img { top: 66px; left: 61%; width: 34%; height: 134px; }
.blk--img .blk__fill { display: flex; align-items: center; justify-content: center; background: rgba(143, 184, 255, .14); }
.blk--img svg { width: 72%; }
.blk--c1, .blk--c2, .blk--c3 { top: 220px; width: 27.5%; height: 100px; }
.blk--c1 { left: 5%; } .blk--c2 { left: 36.25%; } .blk--c3 { left: 67.5%; }
.blk--c1 .blk__fill, .blk--c2 .blk__fill, .blk--c3 .blk__fill { display: flex; flex-direction: column; gap: 9px; padding: 14px; }

.bar { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); }
.bar--lg { height: 12px; }
.bar--txt { background: var(--text); opacity: .85; }
.bar--lime { background: var(--lime); }
.bar--sky { background: var(--sky); }
.bar--dim { background: #4A515D; }
.w12 { width: 12%; } .w22 { width: 22%; } .w26 { width: 26%; } .w30 { width: 30%; } .w32 { width: 32%; }
.w40 { width: 40%; } .w50 { width: 50%; } .w58 { width: 58%; } .w62 { width: 62%; } .w74 { width: 74%; }
.w80 { width: 80%; } .w84 { width: 84%; } .w88 { width: 88%; } .w92 { width: 92%; }
.mini-logo { width: 42px; height: 10px; border-radius: 3px; background: var(--lime); }
.mini-links { display: flex; gap: 10px; }
.mini-links span { width: 26px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.mini-btn { width: 84px; height: 24px; margin-top: 6px; border-radius: 6px; background: var(--lime); }
.sq { width: 20px; height: 20px; border-radius: 6px; background: var(--lime); }
.sq--sky { background: var(--sky); }

.mock__code {
  position: absolute; left: -28px; bottom: -40px; width: 58%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
}
.mock__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font: 11px var(--mono); color: var(--muted); }
.mock__head span:last-child { color: var(--sky); }
.mock__tests .mock__head span:last-child { color: var(--lime); }
.code-lines { display: flex; flex-direction: column; gap: 8px; }
.code-line { display: flex; gap: 6px; height: 7px; transform-origin: left; }
.code-line--in { padding-left: 16px; }
.code-line .bar { height: 100%; }
.mock__tests {
  position: absolute; right: -26px; top: 104px; width: 206px; padding: 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
}
.check-rows { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.check-row { display: flex; align-items: center; gap: 10px; }
.check-ico {
  width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--lime); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.check-ico svg { width: 12px; height: 12px; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }

@media (max-width: 600px) {
  .mock__stage { height: 300px; }
  .blk--hero, .blk--img { height: 118px; }
  .blk--c1, .blk--c2, .blk--c3 { top: 200px; height: 84px; }
  .mock__code { left: -6px; bottom: -48px; width: 68%; }
  .mock__tests { right: -6px; top: 92px; width: 176px; }
}

/* ---------- Services ---------- */
.scale { display: flex; align-items: center; gap: 16px; margin: 56px 0 24px; font-size: 13px; font-weight: 500; color: var(--muted); }
.scale__line { position: relative; flex: 1; height: 2px; background: var(--line); }
.scale__line::after {
  content: ""; position: absolute; right: -1px; top: -4px; width: 10px; height: 10px;
  border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg);
}
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: end; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s ease, border-color .3s ease; }
.card--hover:hover { transform: translateY(-4px); border-color: #3D4450; }
.tier { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
@media (min-width: 980px) {
  .tier--1 { min-height: 470px; } .tier--2 { min-height: 530px; } .tier--3 { min-height: 590px; }
}
.meter { display: flex; gap: 6px; }
.meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.meter .on { background: var(--lime); }
.tier__level { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tier h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.tier__desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.benefit {
  margin: 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(198, 243, 107, .07); border: 1px solid rgba(198, 243, 107, .22);
  font-size: 14px; line-height: 1.5;
}
.benefit strong { color: var(--lime); }
.checklist { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.checklist li { display: flex; gap: 10px; }
.checklist svg { width: 18px; height: 18px; flex: none; color: var(--lime); }
.foundation {
  margin-top: 20px; padding: 28px 32px; border-radius: var(--radius);
  background: var(--lime); color: var(--bg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.foundation__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.foundation h3 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.pills { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.pills li { padding: 9px 14px; border: 1.5px solid rgba(13, 15, 18, .3); border-radius: 999px; }
.pills--dark { font-weight: 500; }
.pills--dark li { border: 1px solid var(--line); }

/* ---------- Process ---------- */
.process { max-width: 880px; margin: 0 auto; }
.timeline { position: relative; margin-top: 64px; }
.timeline__track { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; border-radius: 2px; background: var(--lime); transform-origin: top; }
.timeline__list { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step__num {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--lime); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
}
.step__num--done { background: var(--lime); color: var(--bg); }
.step__card { flex: 1; min-width: 0; padding: 28px 32px; }
.step__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.step__head h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.step__result { font-size: 13px; font-weight: 600; color: var(--lime); }
.step__card p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.process__cta { margin-top: 56px; }
@media (max-width: 560px) {
  .step { gap: 14px; }
  .step__num { width: 44px; height: 44px; font-size: 17px; }
  .timeline__track { left: 21px; top: 22px; bottom: 22px; }
  .step__card { padding: 22px; }
}

/* ---------- Quality ---------- */
.split { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split__a { flex: 1 1 440px; min-width: 0; }
.split__b { flex: 1 1 420px; min-width: 0; }
.features { margin: 36px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; }
.features li { display: flex; gap: 16px; }
.features h3 { margin: 0 0 4px; font-size: 17px; }
.features p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.icon-box {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--lime); display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 20px; height: 20px; }
.report { padding: 28px; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.report__head h3 { margin: 0; font-size: 18px; }
.report__domain { margin: 2px 0 0; font: 12px var(--mono); color: var(--muted); }
.tag-lime { padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--bg); font-size: 12px; font-weight: 700; }
.report__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.report__row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; }
.report__row .check-ico { width: 26px; height: 26px; }
.report__row .check-ico svg { width: 14px; height: 14px; }
.report__txt { flex: 1; font-size: 15px; }
.report__ok { font: 12px var(--mono); color: var(--lime); }
.report__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- About ---------- */
.about__photo { flex: 0 1 380px; min-width: 260px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.about__text { flex: 1 1 460px; min-width: 0; }
.about__p1 { margin: 0 0 16px; font-size: 18px; line-height: 1.65; }
.about__p2 { margin: 0 0 32px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fact { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fact__k { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact__v { margin: 0; font-size: 15px; }

/* ---------- References ---------- */
.refs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 48px; }
.refs-head .h2 { margin: 0; }
.refs-head p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.ref { overflow: hidden; display: flex; flex-direction: column; }
.ref--soon { border: 1.5px dashed var(--line-strong); }
.ref__shot { position: relative; height: 210px; padding: 22px 22px 0; display: flex; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ref__win { flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px 10px 0 0; background: var(--bg); border: 1px solid var(--line); border-bottom: none; }
.ref--soon .ref__win { border-style: dashed dashed none; }
.ref__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.ref__bar > span:not(.ref__url) { width: 8px; height: 8px; border-radius: 50%; background: #2F3540; }
.ref__url { margin-left: 8px; font: 11px var(--mono); color: var(--muted); }
.ref__screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ref__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ref__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ref__typing { display: flex; gap: 6px; }
.ref__typing span { height: 6px; border-radius: 3px; transform-origin: left; }
.ref__typing span:nth-child(1) { width: 46px; }
.ref__typing span:nth-child(2) { width: 30px; }
.ref__typing span:nth-child(3) { width: 38px; }
.ref__soon { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: var(--bg); font-size: 12px; font-weight: 700; }
.ref__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ref h3 { margin: 0; font-size: 22px; }
.ref__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ref__role { margin: 0; font-size: 14px; line-height: 1.5; }
.ref__role strong { color: var(--lime); }
.ref__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ref__link svg { width: 14px; height: 14px; }
.ref__status { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.agency { margin-top: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.agency__text { flex: 1 1 420px; min-width: 0; }
.agency__label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.agency h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.agency p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 400px; min-width: 0; }
.contact__form { flex: 1 1 500px; min-width: 0; }
.contact__h2 { margin: 0 0 20px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.next__title { margin: 44px 0 18px; font-size: 18px; }
.next { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.next li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.next__num {
  width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--lime); color: var(--lime);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.direct { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.direct span { font-size: 14px; color: var(--muted); }
.direct a { font-weight: 600; text-decoration: none; }

.form-card { padding: clamp(24px, 3vw, 40px); border-radius: 24px; box-shadow: 0 0 0 1px rgba(198, 243, 107, .08), 0 50px 100px -40px rgba(0, 0, 0, .8); }
.form { position: relative; display: flex; flex-direction: column; gap: 22px; }
.form fieldset { margin: 0; padding: 0; border: none; min-width: 0; }
.form legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500;
  transition: border-color .2s ease, background-color .2s ease;
}
.chip:hover span { border-color: var(--lime); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--bg); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.label small { font-size: inherit; font-weight: 400; color: var(--muted); }
.field {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-family: inherit; font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea.field { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field::placeholder { color: #7C838F; }
.field:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(198, 243, 107, .18); }
.field:user-invalid { border-color: var(--error); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.form__error {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 138, 122, .1); border: 1px solid rgba(255, 138, 122, .4);
  color: var(--error); font-size: 14px; line-height: 1.5;
}
.success { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 8px; text-align: center; }
.success__ico { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.success__ico svg { width: 36px; height: 36px; }
.success h3 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.success p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.success p strong { color: var(--text); }
.success:focus { outline: none; }

/* ---------- Footer & floating CTA ---------- */
.footer { padding: 36px 24px; border-top: 1px solid var(--line-soft); }
.footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: var(--muted); }
.footer strong { color: var(--text); }

.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--lime); color: var(--bg); font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 16px 40px -10px rgba(198, 243, 107, .45);
  transition: opacity .35s ease, visibility .35s ease, translate .35s var(--ease), background-color .2s ease;
}
.fab:hover { background: var(--lime-hover); color: var(--bg); }
.fab svg { width: 18px; height: 18px; }
.js .fab { opacity: 0; visibility: hidden; translate: 0 24px; }
.js .fab.is-shown { opacity: 1; visibility: visible; translate: none; }
@media (max-width: 560px) { .fab { right: 16px; bottom: 16px; } }

/* Thank-you page rendered by send.php without JavaScript */
.plain-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.plain-page .form-card { max-width: 520px; width: 100%; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes gd-up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes gd-hl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gd-hlc { from { color: var(--text); } to { color: var(--bg); } }

/* Hero entrance */
.in { animation: gd-up .9s var(--ease) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .35s; } .d4 { animation-delay: .5s; } .d5 { animation-delay: .65s; }
.hl { animation: gd-hlc .9s 1s cubic-bezier(.7, 0, .2, 1) both; }
.hl::after { animation: gd-hl .9s 1s cubic-bezier(.7, 0, .2, 1) both; }

/* Hero mockup loop — 12 s cycle: wireframe → design → code → tests → online */
.m-wire { animation: gd-wire 12s infinite both; }
.m-fill { animation: gd-fill 12s infinite both; }
.m-code { animation: gd-code 12s infinite both; }
.m-type { animation: gd-type 12s infinite both; }
.m-test { animation: gd-test 12s infinite both; }
.m-check { animation: gd-check 12s infinite both; }
.m-online { animation: gd-online 12s infinite both; }
.pulse::before { animation: gd-pulse 1.6s ease-out infinite; }
.m-s1 { animation: gd-s1 12s infinite both; } .m-s2 { animation: gd-s2 12s infinite both; }
.m-s3 { animation: gd-s3 12s infinite both; } .m-s4 { animation: gd-s4 12s infinite both; }
.dl1 { animation-delay: .12s; } .dl2 { animation-delay: .24s; } .dl3 { animation-delay: .36s; }
.dl4 { animation-delay: .48s; } .dl5 { animation-delay: .6s; }
.dc1 { animation-delay: .5s; } .dc2 { animation-delay: 1s; }

@keyframes gd-wire { 0% { opacity: 0; transform: scale(.94); } 6%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes gd-fill { 0%, 20% { opacity: 0; } 28%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gd-code { 0%, 27% { opacity: 0; transform: translateY(16px); } 31%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes gd-type { 0%, 31% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes gd-test { 0%, 47% { opacity: 0; transform: translateX(16px); } 51%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes gd-check { 0%, 52% { opacity: 0; transform: translateY(6px); } 56%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes gd-online { 0%, 73% { opacity: 0; transform: scale(.7); } 77%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes gd-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes gd-s1 { 0%, 26% { background: var(--lime); color: var(--bg); border-color: var(--lime); } 28%, 100% { background: transparent; color: var(--muted); border-color: var(--line); } }
@keyframes gd-s2 { 0%, 27% { background: transparent; color: var(--muted); border-color: var(--line); } 29%, 48% { background: var(--lime); color: var(--bg); border-color: var(--lime); } 50%, 100% { background: transparent; color: var(--muted); border-color: var(--line); } }
@keyframes gd-s3 { 0%, 49% { background: transparent; color: var(--muted); border-color: var(--line); } 51%, 72% { background: var(--lime); color: var(--bg); border-color: var(--lime); } 74%, 100% { background: transparent; color: var(--muted); border-color: var(--line); } }
@keyframes gd-s4 { 0%, 73% { background: transparent; color: var(--muted); border-color: var(--line); } 75%, 96% { background: var(--lime); color: var(--bg); border-color: var(--lime); } 98%, 100% { background: transparent; color: var(--muted); border-color: var(--line); } }

/* Scroll-driven animations (Chrome, Edge, Safari 26+). Other browsers: see .no-sda below (main.js). */
@keyframes gd-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gd-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes gd-row { from { opacity: .2; translate: -18px 0; } to { opacity: 1; translate: none; } }

@supports (animation-timeline: view()) {
  .progress { animation: gd-grow linear both; animation-timeline: scroll(root); }
  .rv { animation: gd-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .rv2 { animation-range: entry 15% entry 85%; }
  .rv3 { animation-range: entry 30% entry 100%; }
  .timeline__track { view-timeline-name: --gd-process; }
  .timeline__fill { animation: gd-draw linear both; animation-timeline: --gd-process; animation-range: cover 20% cover 65%; }
  .chk { animation: gd-row linear both; animation-timeline: view(); animation-range: entry 100% cover 45%; }
}

/* Fallback driven by main.js (IntersectionObserver + scroll listener) */
.no-sda .rv, .no-sda .chk { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.no-sda .chk { translate: -18px 0; }
.no-sda .rv2 { transition-delay: .12s; }
.no-sda .rv3 { transition-delay: .24s; }
.no-sda .rv.is-in, .no-sda .chk.is-in { opacity: 1; translate: none; }
.no-sda .timeline__fill { transform: scaleY(var(--p, 0)); }
.no-sda .progress { transform: scaleX(var(--p, 0)); }

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .chk { opacity: 1 !important; translate: none !important; }
  .timeline__fill { transform: none !important; }
}

/* ---------- Legal pages (privacy policy) ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 120px; font-size: 16px; line-height: 1.7; }
.legal__back { display: inline-block; margin-bottom: 32px; font-size: 14px; font-weight: 600; text-decoration: none; }
.legal h1 { margin: 0 0 8px; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.legal__meta { margin: 0 0 40px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 48px 0 12px; font-size: 22px; letter-spacing: -.01em; scroll-margin-top: 96px; }
.legal p, .legal li { color: #D5D8DD; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--lime); }
.legal strong { color: var(--text); }

/* ---------- Cookie consent banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 70;
  width: min(760px, calc(100% - 32px)); translate: -50% 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  animation: gd-cookie .5s var(--ease) both;
}
@keyframes gd-cookie { from { opacity: 0; translate: -50% 20px; } to { opacity: 1; translate: -50% 0; } }
.cookie__text { flex: 1 1 360px; min-width: 0; }
.cookie__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.cookie__text p:last-child { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie .btn { min-height: 48px; min-width: 128px; padding: 10px 22px; font-size: 15px; box-shadow: none; }
.cookie-open .fab { opacity: 0 !important; visibility: hidden !important; }
@media (max-width: 560px) {
  .cookie { bottom: 12px; padding: 18px; }
  .cookie__actions { width: 100%; }
  .cookie .btn { flex: 1; min-width: 0; }
}
.link-btn {
  padding: 0; border: none; background: none; color: var(--lime);
  font: inherit; text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--lime-hover); }
.no-js .link-btn { display: none; }
