:root {
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --text-muted: rgba(29, 29, 31, 0.45);

  --accent: #0891b2;
  --accent-2: #14b8a6;
  --accent-soft: rgba(8, 145, 178, 0.12);
  --accent-border: rgba(8, 145, 178, 0.35);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Golos Text', -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Back-out with a slight overshoot -- used only where a bit of bounce
     reads as "landing" rather than jitter (scroll-reveal, sticker peel,
     spring-in badges). Not a replacement for --ease. */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* FORGE — the site's only visual language now (see below): solid
     fills, hard offset shadows, no blur/backdrop-filter/translucency
     anywhere on the page. */
  --forge-blue: oklch(52% 0.21 264);
  --forge-lime: oklch(88% 0.23 130);
  --forge-ink: oklch(18% 0.03 264);
  --forge-ink-soft: oklch(26% 0.03 264);
  --forge-cream: oklch(97% 0.015 90);
  --forge-font-body: 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Soft color blur blobs behind everything */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob-cyan { background: radial-gradient(circle, rgba(8, 145, 178, 0.5), rgba(8, 145, 178, 0) 70%); }
.blob-teal { background: radial-gradient(circle, rgba(20, 184, 166, 0.5), rgba(20, 184, 166, 0) 70%); }

.blob-1 { width: 520px; height: 520px; top: -140px; left: -120px; }
.blob-2 { width: 620px; height: 620px; top: -80px; right: -160px; }
.blob-3 { width: 560px; height: 560px; bottom: 10%; right: -180px; }
.blob-4 { width: 480px; height: 480px; bottom: -160px; left: -100px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--text);
}

p { margin: 0 0 16px; color: var(--text-soft); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 24px;
}

.eyebrow-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--forge-font-body);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--forge-lime);
  color: var(--forge-ink);
  border: 2.5px solid var(--forge-ink);
  box-shadow: 5px 5px 0 var(--forge-ink);
}

/* .btn.btn-primary:hover (not just .btn-primary:hover): needs the extra
   .btn class to outrank [data-reveal].in-view's `transform: none` at
   equal specificity later in the file -- .final-cta-btn carries both
   data-reveal and .btn-primary, so without this the press-in silently
   never applied once the entrance reveal had settled. */
.btn.btn-primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--forge-ink);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2.5px solid #fff;
  box-shadow: 5px 5px 0 #fff;
}

.btn-ghost:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 #fff;
}

.btn-small { padding: 10px 22px; font-size: 0.92rem; }
.btn-large { padding: 17px 32px; font-size: 1rem; }

/* Header */
/* clears the sticky header when a nav link jumps straight to a section */
#work, #services, #process, #lead-form, #contacts {
  scroll-margin-top: 96px;
}

/* Header sits transparent over the blue hero at the top of the page —
   logo/nav/lang-switch in white, exactly like #ref-hero's embedded nav —
   then swaps to a solid cream bar with ink text once scrolled past the
   hero onto lighter sections (`.scrolled`, toggled in js/script.js). No
   backdrop-filter/glass in either state, just two solid looks. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid blue, same as the hero directly beneath it -- reads exactly like
     #ref-hero's transparent-over-blue nav without the layout risk of an
     actually-transparent position:fixed header reflowing every section. */
  background: var(--forge-blue);
  border-bottom: 3px solid transparent;
  font-family: var(--forge-font-body);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: var(--forge-cream);
  border-bottom-color: var(--forge-ink);
}

.site-header.scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
  transition: padding 0.3s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.site-header .logo { color: #fff; }
.site-header.scrolled .logo { color: var(--forge-ink); }

.logo-accent-text { color: var(--forge-lime); }
.site-header.scrolled .logo-accent-text { color: var(--forge-blue); }

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

.nav a {
  font-family: var(--forge-font-body);
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s var(--ease);
}

.site-header.scrolled .nav a { color: var(--forge-ink); }

.nav a:hover { color: var(--forge-lime); }
.site-header.scrolled .nav a:hover { color: var(--forge-blue); }

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

.lang-switch {
  display: flex;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.site-header.scrolled .lang-switch { background: #fff; border-color: var(--forge-ink); }

.lang-btn {
  padding: 7px 13px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.site-header.scrolled .lang-btn { color: var(--forge-ink); opacity: 0.5; }

.lang-btn:hover { opacity: 0.85; }

.lang-btn.active {
  background: var(--forge-lime);
  color: var(--forge-ink);
  opacity: 1;
}

.site-header.scrolled .lang-btn.active { background: var(--forge-blue); color: #fff; }

.header-cta {
  border: 2px solid var(--forge-ink);
  box-shadow: 3px 3px 0 var(--forge-ink);
}

.cta-label-short { display: none; }

/* Hero — centered, FORGE: solid blue field, hard-edge accent chip, thick
   pill buttons. Opaque background so it simply covers the page's own
   fixed .bg-blobs / iridescence layer within its own bounds — no need to
   touch those globals. */
/* Hero — left copy / right browser-mockup grid, 1:1 with #ref-hero in
   adnova-reference-sections.html. Opaque blue field so it simply covers
   the page's own fixed .bg-blobs / iridescence layer within its bounds. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forge-blue);
  font-family: var(--forge-font-body);
  color: var(--forge-ink);
}

.hero-glow { display: none; }

/* Nudged further into the corner than #ref-hero's literal -40/-40 — our
   hero is shorter than the reference's fixed 820px canvas, so the same
   offset would cut across the quick-stats row instead of sitting clear
   of it in the corner. */
.hero-stripes { position: absolute; bottom: -170px; left: -150px; z-index: 0; pointer-events: none; }

/* Decorative corner stripes on services/final-cta, matching #ref-whatwedo
   and #ref-footer. [data-parallax] elements get a scroll-linked translateY
   in js/script.js (transform only, rAF-throttled). */
.section-stripes { position: absolute; top: -30px; right: -20px; z-index: 0; pointer-events: none; will-change: transform; }
.hero-stripes[data-parallax] { will-change: transform; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 110px;
}

.hero-copy { max-width: 528px; margin-left: 32px; text-align: left; }

.hero .eyebrow.hero-tags {
  display: inline-flex;
  gap: 8px;
  font-family: var(--font-head);
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  color: var(--forge-ink);
  transform: rotate(-1.5deg);
}

.hero-tag-2 { color: var(--forge-blue); }

.hero-title, .hero-title span { color: #fff; font-family: var(--font-head); font-weight: 800; }

.hero .text-accent {
  display: inline-block;
  background: var(--forge-lime);
  color: var(--forge-ink);
  padding: 2px 12px;
  border-radius: 12px;
  border: 3px solid var(--forge-ink);
  transform: rotate(-2deg);
  margin: 4px 0;
}

/* Live social-proof chip — bounces in, then re-bounces on every name
   swap (see js/script.js: updateHeroProofChip). Names are demo data,
   not translated (people's names aren't localized elsewhere either). */
.hero-proof-chip {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 5px 5px 0 var(--forge-ink);
  transform: rotate(-2deg);
  font-family: var(--forge-font-body);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--forge-ink);
}

.hero-proof-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forge-lime);
  border: 1.5px solid var(--forge-ink);
}

.hero-proof-text { white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .hero-proof-dot { animation: hero-dot-pulse 1.8s ease-out infinite; }
  .hero-proof-chip.pop { animation: hero-toast-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
}

@keyframes hero-dot-pulse {
  0% { box-shadow: 0 0 0 0 oklch(88% 0.23 130 / 0.7); }
  70% { box-shadow: 0 0 0 8px oklch(88% 0.23 130 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(88% 0.23 130 / 0); }
}

@keyframes hero-toast-pop {
  0% { transform: translateY(22px) scale(0.4) rotate(-2deg); opacity: 0; }
  55% { transform: translateY(-5px) scale(1.1) rotate(-2deg); opacity: 1; }
  75% { transform: translateY(0) scale(0.94) rotate(-2deg); }
  100% { transform: translateY(0) scale(1) rotate(-2deg); opacity: 1; }
}

@media (max-width: 760px) {
  .hero-proof-chip {
    position: static;
    margin: 28px auto 0;
    transform: rotate(-1deg);
    width: fit-content;
  }
}

.site-iridescence {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  /* Was 1.6s -- a fade that slow reads as "the effect showed up late" even
     once init itself got faster. Short and immediate instead. */
  transition: opacity 0.2s ease;
}

.site-iridescence.is-ready { opacity: 0.48; }

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.16;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: oklch(92% 0.03 264 / 0.92);
  max-width: 440px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; margin-bottom: 34px; }

.hero-actions .btn-ghost { gap: 8px; }
.hero-actions .btn-ghost svg { width: 16px; height: 16px; flex: 0 0 auto; }

.hero-stats-row { display: flex; align-items: center; flex-wrap: wrap; }

.hero-stat { display: flex; flex-direction: column; gap: 2px; padding-right: 28px; }
.hero-stat-value { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: #fff; }
.hero-stat-label { font-size: 0.72rem; color: oklch(85% 0.05 264); }
.hero-stats-divider { width: 1px; height: 34px; background: oklch(75% 0.06 264 / 0.5); margin: 0 28px; flex: 0 0 auto; }

/* Right column: browser mockup + two floating chips, matching #ref-hero's
   absolute-positioned visual block. */
/* Fixed 640:520 aspect ratio, same as #ref-hero's outer visual box — the
   mockup and the two floating chips are siblings positioned absolutely
   within it, so the chips overflow past the mockup's own edges instead
   of colliding with its internal content. */
/* width:100% is required, not optional -- with only absolutely-positioned
   children (mockup + chips) the box has no intrinsic size to stretch
   from, so aspect-ratio alone collapses it to 0x0 in a grid column. */
.hero-visual { position: relative; width: 100%; aspect-ratio: 640 / 520; }

.hero-float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 5px 5px 0 var(--forge-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--forge-ink);
  white-space: nowrap;
}

.hero-float-chip svg { width: 16px; height: 16px; flex: 0 0 auto; }

.hero-float-chip-price { top: -14px; left: -6px; background: var(--forge-lime); --r: -6deg; }
.hero-float-chip-fast { bottom: -14px; right: -6px; --r: 5deg; }

@media (prefers-reduced-motion: no-preference) {
  .hero-float-chip { animation: hero-float 3.4s ease-in-out infinite; }
  .hero-float-chip-fast { animation-delay: 0.5s; }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, -4deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, -4deg)); }
}

.hero-mockup {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 3.5px solid var(--forge-ink);
  box-shadow: 14px 14px 0 var(--forge-ink);
  background: var(--forge-cream);
}

.hero-mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--forge-ink);
  border-bottom: 3px solid var(--forge-ink);
}

.hero-mockup-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.hero-mockup-dot-lime { background: var(--forge-lime); }
.hero-mockup-dot-red { background: oklch(60% 0.2 25); }

.hero-mockup-url {
  flex: 1;
  margin-left: 12px;
  background: oklch(30% 0.03 264);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  color: oklch(75% 0.05 264);
  font-family: var(--forge-font-body);
}

.hero-mockup-body { position: relative; padding: 26px; }

.hero-mockup-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.hero-mockup-logo-bar { width: 70px; height: 14px; border-radius: 5px; background: var(--forge-blue); }
.hero-mockup-topbar-actions { display: flex; gap: 10px; align-items: center; }
.hero-mockup-line-mini { width: 34px; height: 10px; border-radius: 4px; background: oklch(85% 0.02 264); }
.hero-mockup-pill { width: 52px; height: 22px; border-radius: 999px; background: var(--forge-lime); border: 2px solid var(--forge-ink); }

.hero-mockup-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--forge-blue);
  border: 2.5px solid var(--forge-ink);
  padding: 24px;
  margin-bottom: 18px;
}

.hero-mockup-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-mockup-line-light { display: block; position: relative; width: 64%; height: 14px; border-radius: 5px; background: #fff; margin-bottom: 10px; }
.hero-mockup-line-accent { display: block; position: relative; width: 44%; height: 14px; border-radius: 5px; background: var(--forge-lime); margin-bottom: 16px; }
.hero-mockup-cta { display: block; position: relative; width: 110px; height: 26px; border-radius: 999px; background: var(--forge-lime); border: 2px solid var(--forge-ink); }

.hero-mockup-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.hero-mockup-card {
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--forge-ink);
  box-shadow: 3px 3px 0 var(--forge-ink);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup-card svg { width: 26px; height: 26px; }
.hero-mockup-card-accent { background: var(--forge-lime); }

/* Moved out of the corner (used to sit tucked against the lime "+" card,
   tiny and easy to miss) into its own visible row below the icon grid,
   with a road-sign "work in progress" triangle for legibility. */
.hero-mockup-status {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 12px;
  background: var(--forge-cream);
  border: 1.5px dashed var(--forge-ink);
  border-radius: 999px;
  font-family: var(--forge-font-body);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--forge-ink);
}

.hero-mockup-status-icon { width: 15px; height: 15px; flex: 0 0 auto; color: oklch(68% 0.19 60); }

.hero-mockup-cursor { width: 6px; height: 12px; background: var(--forge-blue); display: inline-block; flex: 0 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .hero-mockup-cursor { animation: hero-blink 1.6s ease-in-out infinite; }
}

@keyframes hero-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Cursor trail inside the hero (js/script.js) -- small blocky shapes,
   not soft dots, to match the sticker/hard-shadow language. */
.hero-trail-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid var(--forge-ink);
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
}

/* Confetti burst on successful form submit (js/script.js: burstConfetti). */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 12px;
  border: 1.5px solid var(--forge-ink);
  border-radius: 2px;
  pointer-events: none;
  z-index: 500;
  transform: translate(-50%, -50%);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 80px; text-align: center; }
  .hero-copy { max-width: none; margin: 0 auto; text-align: center; }
  .hero .eyebrow.hero-tags { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats-row { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 40px auto 0; }
  .hero-float-chip { position: absolute; }
}

@media (max-width: 480px) {
  .hero-stats-row { gap: 12px 0; }
  .hero-stats-divider { display: none; }
  .hero-stat { padding-right: 18px; }
}

.work-section {
  background: var(--forge-cream);
  padding: 90px 0 100px;
  text-align: center;
}

.work-section .eyebrow-center {
  font-family: var(--forge-font-body);
  background: var(--forge-blue);
  border: 2.5px solid var(--forge-ink);
  color: #fff;
  transform: rotate(-1.5deg);
}

.work-section .section-title { color: var(--forge-ink); }

.work-desc {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 0.95rem;
  color: oklch(40% 0.02 264);
}

/* Portfolio grid — 1:1 with #ref-portfolio: fixed 2-column grid (no
   featured/asymmetric spans), each card is a static image-top block
   (real screenshot instead of the reference's generic icon+gradient,
   since we actually have real preview shots) with an always-visible
   "готово"/"скоро" badge and a white content area below. No hover-reveal
   swap — that was our own past invention, not in the reference. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

.work-grid [data-reveal]:nth-child(1) { transition-delay: 0ms; }
.work-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.work-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.work-grid [data-reveal]:nth-child(4) { transition-delay: 180ms; }
.work-grid [data-reveal]:nth-child(5) { transition-delay: 240ms; }

.case-card {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: 24px;
  border: 3px solid var(--forge-ink);
  box-shadow: 8px 8px 0 var(--forge-ink);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease), z-index 0.18s step-end;
}

@media (hover: hover) and (pointer: fine) {
  .work-grid .case-card:hover {
    transform: translate(-6px, -6px) scale(1.05);
    box-shadow: 16px 16px 0 var(--forge-ink);
    z-index: 5;
    transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease), z-index 0s;
  }
}

.case-image {
  position: relative;
  height: 200px;
  background: var(--forge-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-image-torq { background: linear-gradient(155deg, oklch(45% 0.19 25), oklch(22% 0.1 25) 75%); }
.case-image-kaffa { background: linear-gradient(155deg, oklch(55% 0.1 55), oklch(32% 0.08 45) 75%); }
.case-image-onyx { background: linear-gradient(155deg, oklch(24% 0.01 264), oklch(10% 0.01 264) 75%); }
.case-image-rally { background: linear-gradient(155deg, oklch(30% 0.06 255), oklch(15% 0.04 255) 75%); }

/* Default-state icon -- fades out on hover to reveal the live preview. */
.case-icon { position: relative; z-index: 1; transition: opacity 0.15s ease; }

@media (hover: hover) and (pointer: fine) {
  .work-grid .case-card:hover .case-icon { opacity: 0; }
}

/* Live iframe preview -- js/script.js lazily mounts the real site into
   this on first hover (not eagerly, so three full sites don't load on
   page view) and fades it in over the static screenshot. Non-interactive
   (pointer-events:none): the card is a plain link out to the real site,
   so the preview is for looking, not for operating a page-inside-a-page. */
.case-image-live {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-image-live { opacity: 1; }
}

.case-image-live iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

/* "Перейти" -- appears centered over the live preview on hover; the
   whole card is already the <a>, so this is a visual affordance only. */
.case-visit-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2.5px solid var(--forge-ink);
  color: var(--forge-ink);
  background: var(--forge-lime);
  box-shadow: 4px 4px 0 var(--forge-ink);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.15s var(--ease), transform 0.2s var(--ease-spring);
  pointer-events: none;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-visit-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.case-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--forge-ink);
  color: var(--forge-ink);
  background: #fff;
  transform: rotate(-3deg);
}

/* Result badge -- pops in with a spring on card hover, real copy from
   the card's own description (no invented metrics). */
.case-result-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--forge-ink);
  color: var(--forge-ink);
  background: var(--forge-lime);
  box-shadow: 3px 3px 0 var(--forge-ink);
  opacity: 0;
  transform: scale(0.5) translateY(8px);
  transition: opacity 0.15s var(--ease), transform 0.25s var(--ease-spring);
  pointer-events: none;
}


.case-body { padding: 24px 26px; }

.case-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }

.case-niche {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--forge-blue);
  margin-bottom: 12px;
}

.case-desc { font-size: 0.86rem; line-height: 1.5; color: oklch(40% 0.02 264); margin: 0; }

/* Scroll reveal — lands with a slight rotation + spring overshoot instead
   of a flat fade. --reveal-rot (-3deg..0deg, randomized per element in
   js/script.js) keeps a run of cards from all rotating identically. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) rotate(var(--reveal-rot, -2deg));
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-spring);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Section titles */
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* Services — FORGE: dark ink section, white cards, lime icon badges that
   idly float/rotate and pop-scale on hover (replaces the old per-icon
   wiggle/spin/plane/ping animations, since .card/.card-icon are only ever
   used inside this section). */
.services {
  position: relative;
  overflow: hidden;
  background: var(--forge-ink);
  font-family: var(--forge-font-body);
  padding: 100px 0;
  text-align: center;
}

.services .eyebrow-center {
  font-family: var(--font-head);
  background: var(--forge-lime);
  border: 2.5px solid #fff;
  color: var(--forge-ink);
  transform: rotate(-1.5deg);
}

.services .section-title { color: #fff; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.card-featured { grid-column: span 4; }
.card-span-2 { grid-column: span 2; }
.card-span-3 { grid-column: span 3; }

.card {
  background: #fff;
  border: 2.5px solid #fff;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: 6px 6px 0 var(--forge-lime);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 9px 9px 0 var(--forge-lime);
}

.card-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--forge-lime);
  border: 2.5px solid var(--forge-ink);
  color: var(--forge-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-icon svg { position: relative; z-index: 1; width: 24px; height: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .card-icon {
    animation: services-icon-float 3.4s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }
}

@keyframes services-icon-float {
  0%, 100% { transform: rotate(var(--r, -3deg)) translateY(0) scale(1); }
  50% { transform: rotate(calc(var(--r, -3deg) * -1)) translateY(-5px) scale(1.05); }
}

.card:hover .card-icon {
  animation-play-state: paused;
  /* A paused CSS animation still wins over a plain transform declaration
     of equal-or-lower specificity (animations override normal rules
     regardless of specificity) -- !important is required to make the
     hover pop actually snap to this value instead of freezing on
     whatever keyframe the idle float happened to be on. */
  transform: rotate(0deg) scale(1.18) !important;
}

.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--forge-ink); font-family: var(--font-head); }
.card p { font-size: 0.98rem; margin-bottom: 0; color: oklch(40% 0.02 264); }

/* Process — FORGE: blue section, icon badges directly on the field (no
   card container), lime step numbers, "→" between cards in the same row. */
.process {
  background: var(--forge-blue);
  font-family: var(--forge-font-body);
  padding: 100px 0 90px;
  text-align: center;
}

.process .eyebrow-center {
  font-family: var(--font-head);
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  color: var(--forge-ink);
  transform: rotate(-1.5deg);
}

.process .section-title { color: #fff; }

.process-grid {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  text-align: left;
}

.process-step { position: relative; }

/* A small "→" between cards in the same row shows the sequence without
   the cost of computing a connecting line across a 2-row grid. Skipped
   after every 3rd item (row end) and hidden on mobile where the cards
   stack vertically and the relation is already obvious top-to-bottom. */
.process-step:not(:nth-child(3n))::after {
  content: '→';
  position: absolute;
  top: 20px;
  right: 0;
  transform: translateX(50%);
  color: var(--forge-lime);
  font-weight: 700;
  font-size: 1.1rem;
  pointer-events: none;
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  box-shadow: 5px 5px 0 var(--forge-ink);
  color: var(--forge-blue);
  transform: rotate(var(--r, -3deg));
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

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

.process-step-highlight .process-icon { background: var(--forge-lime); color: var(--forge-ink); }

@media (hover: hover) and (pointer: fine) {
  .process-step:hover .process-icon { transform: rotate(0deg) scale(1.08); }
}

.process-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--forge-lime);
  margin-bottom: 6px;
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; font-family: var(--font-head); }
.process-step p { font-size: 0.94rem; margin-bottom: 0; color: oklch(88% 0.05 264); }

/* Stats — FORGE: dark ink section + a lime marquee strip underneath. */
.stats {
  background: var(--forge-ink);
  font-family: var(--forge-font-body);
  padding: 90px 0 0;
  text-align: center;
  overflow: hidden;
}

.stats .container { padding-bottom: 64px; }

.stats .eyebrow-center {
  font-family: var(--font-head);
  background: var(--forge-lime);
  border: 2.5px solid #fff;
  color: var(--forge-ink);
  transform: rotate(-1.5deg);
}

.stats .section-title { color: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--forge-ink-soft);
  border: 2.5px solid oklch(40% 0.03 264);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: transform 0.2s ease;
}

.stat:hover { transform: translateY(-6px); }

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--forge-lime);
  margin-bottom: 4px;
}

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

.stat-number {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  color: var(--forge-lime);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.86rem;
  color: oklch(85% 0.03 264);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-marquee {
  overflow: hidden;
  background: var(--forge-lime);
  border-top: 3px solid var(--forge-ink);
  padding: 16px 0;
}

.stats-marquee-track {
  display: flex;
  width: max-content;
  animation: forge-marquee 22s linear infinite;
}

.stats-marquee-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--forge-ink);
  white-space: nowrap;
  padding: 0 16px;
}

@keyframes forge-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Lead form — FORGE: rotated blue pricing card + white bordered form card,
   the two halves of the merged pricing+lead section (item 6 of the brief). */
.lead {
  background: var(--forge-cream);
  font-family: var(--forge-font-body);
  padding: 100px 0;
}

.lead-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.lead-pricing {
  background: var(--forge-blue);
  color: #fff;
  border: 3px solid var(--forge-ink);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--forge-ink);
  padding: 40px 34px;
  transform: rotate(-1.5deg);
}

.lead-pricing-badge {
  display: inline-flex;
  align-items: center;
  background: var(--forge-lime);
  border: 2px solid var(--forge-ink);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
  font-family: var(--forge-font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--forge-ink);
}

.lead-pricing-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 8px;
}

.lead-pricing-note { font-size: 0.86rem; color: oklch(85% 0.05 264); margin-bottom: 26px; }

.lead-pricing-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.lead-pricing-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; }

.lead-pricing-list svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--forge-lime); }

.lead-pricing-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid var(--forge-ink);
  border-radius: 999px;
  padding: 8px 14px;
  transform: rotate(1.5deg);
  font-family: var(--forge-font-body);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--forge-ink);
}

.lead .eyebrow {
  font-family: var(--font-head);
  background: var(--forge-lime);
  border: 2.5px solid var(--forge-ink);
  color: var(--forge-ink);
  transform: rotate(-1.5deg);
}

.lead-form h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--forge-ink); }
.lead-form > p { font-size: 1rem; }

.lead-form {
  background: #fff;
  border: 3px solid var(--forge-ink);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: 10px 10px 0 var(--forge-ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--forge-ink);
}

.form-row input,
.form-row select {
  font-family: var(--forge-font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 2px solid var(--forge-ink);
  background: #fff;
  color: var(--forge-ink);
  outline: none;
  transition: box-shadow 0.2s ease;
  appearance: none;
}

.form-row input::placeholder { color: oklch(55% 0.02 264); }

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2318181b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  color-scheme: light;
}

.form-row input:focus,
.form-row select:focus {
  box-shadow: 3px 3px 0 var(--forge-ink);
}

.form-row.invalid input,
.form-row.invalid select { border-color: #e5484d; }

.field-error { font-size: 0.82rem; color: #e5484d; min-height: 1em; }

.btn-submit { margin-top: 8px; width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.form-success {
  display: none;
  text-align: center;
  font-weight: 600;
  color: #0f7a63;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0;
}

.form-success.visible { display: block; }

.form-error {
  display: none;
  text-align: center;
  font-weight: 600;
  color: #b3261e;
  background: rgba(229, 72, 77, 0.1);
  border: 1px solid rgba(229, 72, 77, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-error.visible { display: block; }

/* Consent checkbox -- independent of the cookie banner; gates the submit
   button (see .btn:disabled above) until checked. Custom box built on a
   visually-hidden native checkbox so it stays keyboard/AT accessible. */
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--forge-ink);
}

.consent-check input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.consent-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid var(--forge-ink);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.consent-box svg {
  width: 14px;
  height: 14px;
  color: var(--forge-ink);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.2s var(--ease-spring);
}

.consent-check input:checked + .consent-box {
  background: var(--forge-lime);
  box-shadow: 2px 2px 0 var(--forge-ink);
}

.consent-check input:checked + .consent-box svg {
  opacity: 1;
  transform: scale(1);
}

.consent-check input:focus-visible + .consent-box {
  box-shadow: 0 0 0 3px oklch(52% 0.21 264 / 0.35);
}

.consent-text { flex: 1; min-width: 0; }

.consent-text a {
  color: var(--forge-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-text a:hover { color: var(--forge-ink); }

.form-row-consent.invalid .consent-box { border-color: #e5484d; }

.form-row-consent.shake-error .consent-check { animation: consent-shake 0.4s ease; }

@keyframes consent-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .form-row-consent.shake-error .consent-check { animation: none; }
}

/* Final CTA — FORGE dark ink, sits flush above the equally-dark footer */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--forge-ink);
  font-family: var(--forge-font-body);
  padding: 88px 0 64px;
  text-align: center;
}

.final-cta-badge {
  display: inline-flex;
  align-items: center;
  background: var(--forge-lime);
  border: 2.5px solid var(--forge-ink);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 24px;
  transform: rotate(-1.5deg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--forge-ink);
}

.final-cta-title {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-bottom: 36px;
}

.final-cta-btn {
  padding: 22px 48px;
  font-size: 1.1rem;
}

/* Footer — FORGE dark ink, matches #ref-footer: brand + 3 nav columns,
   then a bottom bar with copyright and a second (functional, same
   applyLanguage()) language switcher. */
.site-footer {
  background: var(--forge-ink);
  font-family: var(--forge-font-body);
  color: oklch(70% 0.03 264);
  border-top: 2px solid oklch(30% 0.02 264);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 0 40px;
}

.footer-brand { max-width: 280px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: oklch(65% 0.02 264); margin: 12px 0 0; font-size: 0.9rem; line-height: 1.6; }

.footer-nav-cols { display: flex; gap: 64px; flex-wrap: wrap; }

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

.footer-nav-heading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forge-lime);
  margin-bottom: 4px;
}

.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: oklch(75% 0.03 264);
  transition: color 0.3s var(--ease);
}

a.foot-link:hover { color: var(--forge-lime); }

.footer-contact-icon { width: 14px; height: 14px; flex: 0 0 auto; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0;
  border-top: 2px solid oklch(30% 0.02 264);
}

.footer-copy { font-size: 0.8rem; color: oklch(55% 0.02 264); }

.footer-lang-switch {
  background: oklch(24% 0.02 264);
  border: 1.5px solid oklch(35% 0.02 264);
}

.footer-lang-switch .lang-btn { color: oklch(60% 0.02 264); }

/* Signature detail: live lead-notification toast */
.lead-toast-root {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.lead-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--forge-ink);
  transform: translateX(-140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  max-width: 300px;
}

.lead-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.lead-toast-dot {
  position: relative;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forge-lime);
  border: 1.5px solid var(--forge-ink);
}

.lead-toast-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--forge-lime);
  animation: toast-pulse 1.8s var(--ease) infinite;
}

@keyframes toast-pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.lead-toast-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.lead-toast-title {
  font-family: var(--forge-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--forge-ink);
}

.lead-toast-meta {
  font-size: 0.76rem;
  color: oklch(45% 0.02 264);
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner[hidden] { display: none; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 210;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 20px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: var(--radius-md);
  box-shadow: 6px 6px 0 var(--forge-ink);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-text {
  flex: 1 1 240px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.cookie-banner-btn {
  flex: 0 0 auto;
  padding: 10px 22px;
  border: 2px solid var(--forge-ink);
  border-radius: var(--radius-sm);
  background: var(--forge-lime);
  color: var(--forge-ink);
  font-family: var(--forge-font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--forge-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-banner-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--forge-ink); }
.cookie-banner-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--forge-ink); }

/* Toasts share the bottom-left corner -- give the banner room instead of
   letting a toast pop in underneath/behind it while it's up. */
body.cookie-banner-visible .lead-toast-root {
  bottom: 96px;
  transition: bottom 0.4s var(--ease);
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .cookie-banner-btn { flex: 1 1 100%; }
  body.cookie-banner-visible .lead-toast-root { bottom: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.3s ease; transform: none; }
}

/* ---------- Device preview — interactive phone/tablet/desktop carousel
   (item 3 of the FORGE brief). Two nested elements per device on purpose:
   .device-frame carries the role position/rotation (front/back-left/
   back-right, set by JS), .device-visual carries the one-shot spin —
   putting both transforms on one element would fight each other. ---------- */
.device-preview {
  background: var(--forge-cream);
  font-family: var(--forge-font-body);
  padding: 100px 0;
  overflow: hidden;
}

.device-preview-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: center;
}

.device-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 20px;
  transform: rotate(-1.5deg);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--forge-ink);
}

.device-preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(60% 0.18 145);
}

.device-preview-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 16px;
  color: var(--forge-ink);
}

.device-preview-desc {
  font-size: 0.94rem;
  color: oklch(40% 0.02 264);
  max-width: 380px;
  margin-bottom: 28px;
}

.device-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 4px 4px 0 var(--forge-ink);
}

.device-tab {
  width: 48px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 2px solid transparent;
  background: transparent;
  color: oklch(45% 0.02 264);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.device-tab svg { width: 18px; height: 18px; }

.device-tab:hover { transform: translateY(-3px); }

.device-tab.is-active {
  background: var(--forge-lime);
  border-color: var(--forge-ink);
  color: var(--forge-ink);
  transform: rotate(-2deg);
}

.device-tab.is-active:hover { transform: rotate(-2deg) translateY(-3px); }

.device-stage { position: relative; height: 420px; }

.device-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform 0.7s cubic-bezier(0.3, 1.1, 0.4, 1);
  transform-origin: center center;
  cursor: pointer;
}

.role-front { z-index: 3; cursor: default; }
.role-back-left { z-index: 1; opacity: 0.94; }
.role-back-right { z-index: 2; opacity: 0.94; }
.role-back-left:hover, .role-back-right:hover { opacity: 1; }

#phoneFrame.role-front { transform: translate(-50%, -50%) translate(30px, 0) rotate(0deg) scale(1); }
#phoneFrame.role-back-left { transform: translate(-50%, -50%) translate(-190px, -34px) rotate(-9deg) scale(0.56); }
#phoneFrame.role-back-right { transform: translate(-50%, -50%) translate(195px, -48px) rotate(8deg) scale(0.56); }

#tabletFrame.role-front { transform: translate(-50%, -50%) translate(22px, 0) rotate(0deg) scale(1); }
#tabletFrame.role-back-left { transform: translate(-50%, -50%) translate(-185px, -34px) rotate(-8deg) scale(0.56); }
#tabletFrame.role-back-right { transform: translate(-50%, -50%) translate(192px, -48px) rotate(7deg) scale(0.56); }

#desktopFrame.role-front { transform: translate(-50%, -50%) translate(18px, 18px) rotate(0deg) scale(1); }
#desktopFrame.role-back-left { transform: translate(-50%, -50%) translate(-185px, -22px) rotate(-6deg) scale(0.6); }
#desktopFrame.role-back-right { transform: translate(-50%, -50%) translate(192px, -40px) rotate(6deg) scale(0.6); }

.device-visual-phone {
  width: 140px;
  height: 280px;
  border-radius: 22px;
  background: var(--forge-ink);
  border: 3px solid var(--forge-ink);
  box-shadow: 8px 8px 0 oklch(75% 0.06 264 / 0.5);
  padding: 9px;
}

.device-visual-tablet {
  width: 210px;
  height: 280px;
  border-radius: 18px;
  background: var(--forge-ink);
  border: 3px solid var(--forge-ink);
  box-shadow: 8px 8px 0 oklch(75% 0.06 264 / 0.5);
  padding: 11px;
}

.device-visual-desktop {
  width: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 3.5px solid var(--forge-ink);
  box-shadow: 10px 10px 0 var(--forge-ink);
  background: var(--forge-cream);
}

/* Real KAFFA site, lazily mounted into each screen on first reveal (see
   js/script.js mountDevicePreview) and scaled to fit via transform --
   same technique as the portfolio cards' live preview. */
.device-visual-phone .device-screen,
.device-visual-tablet .device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: var(--forge-cream);
  overflow: hidden;
}

.device-visual-desktop .device-screen {
  position: relative;
  height: 220px;
  background: var(--forge-cream);
  overflow: hidden;
}

.device-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

.device-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--forge-ink);
  border-bottom: 3px solid var(--forge-ink);
}

.device-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(85% 0.02 264); flex: 0 0 auto; }
.device-dot:first-child { background: var(--forge-lime); }

.device-url {
  margin-left: 8px;
  font-family: var(--forge-font-body);
  font-size: 0.7rem;
  color: oklch(75% 0.05 264);
}

.device-sync-chip {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow: 4px 4px 0 var(--forge-ink);
  transform: rotate(-2deg);
  color: var(--forge-ink);
}

.device-sync-chip span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .device-preview-grid { grid-template-columns: 1fr; }
  .device-preview-text { text-align: center; }
  .device-preview-desc { margin-left: auto; margin-right: auto; }
  .device-tabs { margin: 0 auto; }
  .device-stage { height: 340px; margin-top: 24px; }
}

@media (max-width: 560px) {
  .device-preview { padding: 70px 0; }
  .device-stage { height: 280px; }
  #phoneFrame.role-back-left, #tabletFrame.role-back-left, #desktopFrame.role-back-left { transform: translate(-50%, -50%) translate(-130px, -24px) rotate(-8deg) scale(0.5); }
  #phoneFrame.role-back-right, #tabletFrame.role-back-right, #desktopFrame.role-back-right { transform: translate(-50%, -50%) translate(135px, -34px) rotate(7deg) scale(0.5); }
  .device-sync-chip { display: none; }
}

/* ---------- Comparison + "чего не делаем" — 1:1 with #ref-comparison,
   FORGE: solid cream section, 3 comparison cards + 4 honesty chips, no
   glass anywhere. Folds in what used to be the separate #limits section,
   since the reference keeps both halves in one block. ---------- */
.compare { background: var(--forge-cream); padding: 90px 0; text-align: center; }

.compare .eyebrow-center {
  font-family: var(--forge-font-body);
  background: var(--forge-blue);
  border: 2.5px solid var(--forge-ink);
  color: #fff;
  transform: rotate(-1.5deg);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0 64px;
  text-align: left;
}

.compare-card {
  position: relative;
  border-radius: 24px;
  background: #fff;
  border: 3px solid var(--forge-ink);
  box-shadow: 8px 8px 0 var(--forge-ink);
  padding: 28px 26px;
}

.compare-card-us { background: var(--forge-blue); color: #fff; }

.compare-tag {
  position: absolute;
  top: -14px;
  right: 22px;
  background: var(--forge-lime);
  color: var(--forge-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--forge-ink);
  transform: rotate(-3deg);
}

.compare-card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.compare-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1.5px dashed oklch(75% 0.02 264);
}

.compare-row:first-of-type { border-top: none; }
.compare-card-us .compare-row { border-top-color: oklch(60% 0.1 264); }

.compare-icon-check, .compare-icon-cross { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.compare-icon-check { color: var(--forge-lime); }
.compare-icon-cross { color: oklch(60% 0.2 25); }
.compare-icon-tilde { flex: 0 0 auto; width: 18px; text-align: center; color: oklch(50% 0.02 264); }

.compare-row-value { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; }
.compare-row-label { font-size: 0.76rem; color: oklch(45% 0.02 264); }
.compare-card-us .compare-row-value { color: #fff; }
.compare-card-us .compare-row-label { color: oklch(85% 0.05 264); }

.compare-chips-badge { background: var(--forge-ink); border-color: var(--forge-ink); color: #fff; }

.compare-chips-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--forge-ink);
  margin: 0 0 28px;
}

.compare-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.compare-chip {
  max-width: 280px;
  background: #fff;
  border: 2.5px solid var(--forge-ink);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 5px 5px 0 var(--forge-ink);
  transform: rotate(-1deg);
  text-align: left;
}

.compare-chip:nth-child(even) { transform: rotate(1deg); }

.compare-chip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.compare-chip-head svg { flex: 0 0 auto; width: 16px; height: 16px; color: oklch(60% 0.2 25); }
.compare-chip-head span { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }

/* "No-no" wiggle on the ✕ icon -- a quick side-to-side shake, not a loop. */
@keyframes chip-icon-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-18deg); }
  75% { transform: rotate(18deg); }
}

@media (hover: hover) and (pointer: fine) {
  .compare-chip:hover .compare-chip-head svg {
    animation: chip-icon-shake 0.35s ease-in-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-chip:hover .compare-chip-head svg { animation: none; }
}

.compare-chip p { font-size: 0.8rem; line-height: 1.5; color: oklch(40% 0.02 264); margin: 0; }

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .compare { padding: 60px 0; }
  .compare-chip { max-width: none; width: 100%; transform: none !important; }
}

/* ---------- Micro-interactions: tilt, sticker-peel, magnetic buttons ----------
   Tilt: js/script.js sets `transform` inline on mousemove (no transition
   while tracking) and lets this CSS transition take over on mouseleave,
   which is why each tilt target gets a transform transition here instead
   of inline. Gated to (hover:hover) and (pointer:fine) + !reduced-motion
   entirely in JS -- these elements simply never receive an inline
   transform on touch/reduced-motion, so no separate CSS gate is needed. */
.hero-mockup { transition: transform 0.4s var(--ease); }

/* .case-card already transitions transform+box-shadow for its own hover
   lift; restating just "transform" here at equal specificity, later in
   the file, would win the cascade and silently drop the box-shadow half.
   Same for .compare-card/.lead-pricing below -- always restate both. */
.compare-card, .lead-pricing { transition: transform 0.4s var(--ease), box-shadow 0.2s ease; }

.case-card, .compare-card, .lead-pricing { position: relative; }

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-result-badge { opacity: 1; transform: scale(1) translateY(0); }
}

/* Magnetic buttons get their pull as an inline transform from JS. Restates
   .btn's own transition (not just transform) so box-shadow keeps
   transitioning on hover -- .magnetic-btn's transition would otherwise
   win the cascade (later in the file, equal specificity) and silently
   drop the box-shadow half. */
.magnetic-btn { transition: transform 0.25s var(--ease), box-shadow 0.15s ease; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lead-toast-dot::after { animation: none; }
  .stats-marquee-track { animation: none; }
  .final-cta-btn { transition: none; }
  html { scroll-behavior: auto; }

  /* JS never attaches the tilt/trail/magnetic/parallax listeners under
     reduced motion (see js/script.js), so this is just a belt-and-braces
     CSS backstop for the hover-only pieces that stay CSS-driven. */
  .case-result-badge, .hero-mockup, .magnetic-btn {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-inner { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .lead-form { padding: 26px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .btn-small { padding: 9px 18px; font-size: 0.88rem; }

  .demo-card-glow { height: 130px; }
  .blob { filter: blur(60px); }
  .lead-toast-root { left: 12px; bottom: 12px; right: 12px; }
  .lead-toast { max-width: none; }

  .lead-pricing { transform: none; }
}

/* Header: at narrow phone widths (375-414px) logo + lang switch + CTA text
   no longer fit on one line at their normal sizes — compact every piece
   and swap the CTA to its short label instead of letting anything overflow. */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .header-inner { gap: 6px; }
  .header-actions { gap: 6px; }

  .logo { font-size: 1.1rem; }

  .lang-switch { padding: 2px; gap: 1px; }
  .lang-btn { padding: 5px 7px; font-size: 0.62rem; }

  .header-cta.btn-small { padding: 7px 11px; font-size: 0.78rem; gap: 0; }
  .cta-label-full { display: none; }
  .cta-label-short { display: inline; }
}

/* ---------- Privacy policy page (privacy.html) ----------
   Standalone static page linked from the lead form's consent checkbox.
   Plain content layout on the base (non-FORGE) tokens -- no hero/iridescence/
   script.js, just the site's shared fonts/colors for a dense text page. */
.policy-header {
  background: #fff;
  border-bottom: 2px solid var(--forge-ink);
}

.policy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.policy-header .logo { color: var(--forge-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.policy-header .logo-accent-text { color: var(--accent); }

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forge-ink);
  transition: color 0.2s ease;
}

.policy-back:hover { color: var(--accent); }

.policy-main { padding: 56px 0 80px; }

.policy-container { max-width: 760px; }

.policy-container h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 8px; }

.policy-updated { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 28px; }

.policy-section { margin-bottom: 32px; }

.policy-section h2 { font-size: 1.15rem; margin-bottom: 12px; }

.policy-section p { margin-bottom: 12px; }

.policy-section ul { margin: 0 0 12px; padding-left: 22px; color: var(--text-soft); }

.policy-section li { margin-bottom: 6px; }

.policy-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.policy-footer {
  background: var(--forge-ink);
  padding: 24px 0;
}

.policy-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: oklch(70% 0.03 264);
}

.policy-footer-inner a { color: oklch(75% 0.03 264); transition: color 0.2s ease; }
.policy-footer-inner a:hover { color: var(--forge-lime); }

@media (max-width: 560px) {
  .policy-main { padding: 40px 0 56px; }
}
