/* =========================================================
   by11design
   Palette: premium black + crisp white, purple brand accent,
   yellow reserved for the buttons that lead to contact (chosen 16.11.2026).
   Flat surfaces: no glows, no moving decoration.
   ========================================================= */

/* Manrope is served from our own server, not from Google Fonts, so visitors' IP addresses
   are not sent to Google (GDPR). File: Manrope variable, weights 200 to 800, with Cyrillic,
   SIL Open Font License 1.1 (copied from the WordPress Twenty Twenty-Five theme on 20.11.2026). */
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sofia Sans";
  src: url("../assets/fonts/SofiaSans-Variable.woff2") format("woff2");
  font-weight: 1 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0B0B0C;
  --white: #FFFFFF;
  --paper: #F4F4F1;
  --soft: #E9E9E4;
  --muted: #55555E;
  --line: rgba(11, 11, 12, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --on-dark-muted: rgba(255, 255, 255, .72);

  --purple: #7C3AED;
  --purple-bright: #B9A2FF;
  --purple-deep: #1A0D3D;

  /* The action colour. --cta fills the main button, --on-cta is the text on it,
     --mark is the same colour used for small marks on black. */
  --cta: #FFC400;
  --cta-hover: #E6B000;
  --on-cta: #0B0B0C;
  --mark: #FFC400;

  --max: 1360px;
  --nav-top: 14px;
  --nav-h: 60px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-frame: 28px;
  --radius-card: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* One line to change the typeface. To go back to Sofia Sans (still in assets/fonts),
     put "Sofia Sans" first. */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--black);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.frame :focus-visible, .quote :focus-visible, .work-card:focus-visible { outline-color: var(--mark); }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--cta); color: var(--on-cta); font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* One content width for everything: sections, hero, contact band and footer line up. */
.wrap, .frame { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Black "frames": hero, contact band, footer */
.frame {
  position: relative;
  border-radius: var(--radius-frame);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

/* ---------- Icons & buttons ---------- */
.arr {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* Three button types, one shape and one size:
   1. .btn-primary    filled with the action colour. The one main action: it leads to contact.
   2. .btn-secondary  an outline. Everything else that is a button, on light and on dark.
   3. .btn-text       plain underlined text, for links inside the flow.
   .btn-sm is the same button in the navigation, where there is less room. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 700; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

.btn-primary { background: var(--cta); color: var(--on-cta); }
.btn-primary:hover { background: var(--cta-hover); }

.btn-secondary { background: transparent; border-color: rgba(11, 11, 12, .28); color: var(--black); }
button.btn { font-family: inherit; cursor: pointer; }
.btn-secondary:hover { background: var(--black); border-color: var(--black); color: var(--white); }
/* on black surfaces the same outline button turns white */
.frame .btn-secondary, .quote .btn-secondary, .work-card .btn-secondary, .terms .btn-secondary { border-color: rgba(255, 255, 255, .34); color: var(--white); }
.frame .btn-secondary:hover, .quote .btn-secondary:hover, .work-card .btn-secondary:hover, .terms .btn-secondary:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.btn-text:hover { color: var(--purple); border-color: var(--purple); }

.tag {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--purple);
}

/* ---------- Floating pill nav ---------- */
/* Same width and same edges as the hero, the sections and the footer. It sits above
   the hero, not on top of it. */
.nav {
  position: fixed; top: var(--nav-top); left: 50%; z-index: 100;
  width: min(var(--max), 100% - 2 * var(--gutter));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h); padding: 0 8px 0 22px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(11, 11, 12, .08);
  border-radius: 999px;
  box-shadow: 0 10px 30px -16px rgba(11, 11, 12, .35);
}

/* Logo: 15% smaller than the first version (word 21.6px to 18.4px, mark 18px to 15px) */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.logo-mark { display: inline-flex; gap: 3px; align-items: flex-end; height: 15px; }
.logo-mark i { width: 4px; height: 100%; border-radius: 2px; background: var(--purple); transform: skewX(-10deg); }
.logo-mark i:first-child { height: 72%; background: var(--black); }
.logo-light .logo-mark i:first-child { background: var(--white); }
.logo-light .logo-mark i { background: var(--purple-bright); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: #2C2C33;
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(11, 11, 12, .07); color: var(--black); }
.nav-links .nav-links-cta { display: none; }

.nav-end { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--black);
}
.nav-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
/* The home hero has a fixed height and centres its content, so switching EN/BG
   never changes the size of the frame even if a line wraps differently. */
.hero {
  margin-top: calc(var(--nav-top) + var(--nav-h) + 12px);
  padding: 70px clamp(20px, 5vw, 72px);
  text-align: center;
}
.hero-home {
  display: flex; flex-direction: column; justify-content: center;
  height: clamp(540px, 72svh, 660px);
}
.hero h1 {
  max-width: 16ch; margin-inline: auto;
  font-size: clamp(2.25rem, 5.4vw, 4.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; color: var(--purple-bright); }
.hero-home h1 { max-width: 20ch; }
.hero-sub { max-width: 56ch; margin: 24px auto 0; font-size: clamp(1rem, 1.2vw, 1.125rem); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Inner pages: same frame, left aligned, smaller */
.hero-page { text-align: left; padding-block: clamp(48px, 6vw, 80px) clamp(48px, 6vw, 72px); }
.hero-page h1 { max-width: 22ch; margin-inline: 0; font-size: clamp(2rem, 4.2vw, 3.4rem); }
.hero-page .hero-sub { margin-inline: 0; max-width: 64ch; }
.hero-page .hero-actions { justify-content: flex-start; }
.hero-page .tag { color: var(--purple-bright); margin-bottom: 18px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: var(--on-dark-muted); }
/* Thank-you page after the form: one tall frame, content centred vertically. */
.hero-thanks { min-height: clamp(460px, 62svh, 640px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-note a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.facts dt { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-bright); }
.facts dd { margin-top: 6px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-top: 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2, .proof-intro h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
}
.section-head p { max-width: 56ch; margin-top: 12px; font-size: 1.1rem; color: var(--muted); }

/* ---------- Featured Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* The screenshot is shown whole (same 16:10 as the file, so nothing is cropped or
   stretched) and the text sits under it, never on top of it. */
.work-card {
  display: flex; flex-direction: column;
  padding: 12px; border-radius: var(--radius-card);
  background: var(--black); color: var(--white);
}
.work-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--white); }
.work-media img { width: 100%; height: 100%; object-fit: cover; }

/* Hover: a button fades in over the screenshot, and out again with no delay */
.work-hover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(11, 11, 12, .62);
  opacity: 0; transition: opacity .25s;
}
.work-card:hover .work-hover, .work-card:focus-visible .work-hover { opacity: 1; }

.work-caption { display: block; padding: 22px 12px 14px; }
.work-caption > span { display: block; }
.work-tag {
  margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--purple-bright);
}
.work-title { max-width: 34ch; font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

.work-caption > .work-touch { display: none; margin-top: 18px; }

@media (hover: none) {
  .work-hover { display: none; }
  .work-caption > .work-touch { display: inline-flex; }
}

/* ---------- Challenges ---------- */
.challenges { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; border-top: 1px solid var(--line); }

.challenge {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; align-items: start;
  padding: 26px 0 28px; border-bottom: 1px solid var(--line);
}
.challenge::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.challenge.is-active::before { transform: scaleX(1); }

.challenge-num {
  font-size: clamp(2.8rem, 4.8vw, 4.2rem); font-weight: 800; line-height: .9; letter-spacing: -.03em;
  color: rgba(11, 11, 12, .14); font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.challenge.is-active .challenge-num { color: var(--purple); }

.challenge h3 { margin: 6px 0 8px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.challenge-trigger { padding: 0; border: 0; background: none; text-align: left; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.challenge-trigger::after { content: ""; position: absolute; inset: 0; }
.challenge-body p { max-width: 48ch; color: var(--muted); }
.challenge .tag { transition: color .3s; }
.challenge:not(.is-active) .tag { color: var(--muted); }

.preview-col { position: sticky; top: 108px; padding-top: 26px; }
.preview-stage {
  position: relative; aspect-ratio: 10 / 8.4; overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--black); color: var(--white);
}
.preview {
  position: absolute; inset: 0; padding: 7%;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility 0s .4s;
}
.preview.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }

.window { position: relative; border-radius: 12px; background: var(--white); color: var(--black); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EFEFEA; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #C9C9C2; }
.window-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: var(--white); font-size: .72rem; color: var(--muted); }
.window img { width: 100%; }

.cap {
  display: inline-block; align-self: flex-start;
  padding: 6px 12px; border-radius: 14px;
  border: 1px solid var(--line-dark);
  font-size: .82rem; font-weight: 600;
}
.cap b { margin-right: 6px; color: var(--purple-bright); }

.preview-before { position: absolute; left: 4.5%; bottom: 6%; width: 34%; border-radius: 10px; overflow: hidden; border: 3px solid var(--black); background: var(--black); }
.preview-before span { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--black); color: var(--white); font-size: .68rem; font-weight: 700; }
.preview-design { justify-content: flex-start; }
.preview-design .cap { align-self: flex-end; max-width: 58%; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4%; align-items: start; }
.pair img { width: 100%; border-radius: 10px; }
.pair figcaption { margin-top: 10px; font-size: .82rem; line-height: 1.35; color: var(--on-dark-muted); }
.pair figcaption b { display: block; color: var(--white); }
.pair figure:last-child figcaption b { color: var(--purple-bright); }

.phones { display: flex; justify-content: center; gap: 6%; height: 100%; }
.phones figure { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; min-width: 0; }
.phones img { flex: 1; min-height: 0; width: auto; border-radius: 14px; border: 3px solid #2A2A30; }
.phones figcaption { font-size: .82rem; font-weight: 700; color: var(--on-dark-muted); }
.phones figure:last-child figcaption { color: var(--purple-bright); }

.bar { display: block; height: 10px; border-radius: 5px; background: var(--black); }
.bar + .bar { margin-top: 7px; }
.bar.thin { height: 6px; background: #D8D8D2; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }

.search-bar { display: flex; align-items: center; gap: 10px; margin: 14px 14px 0; padding: 9px 14px; border: 1px solid #DEDED8; border-radius: 999px; font-size: .82rem; color: var(--muted); }
.search-bar svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.serp { padding: 12px 14px 14px; display: grid; gap: 8px; }
.serp-item { position: relative; padding: 10px 12px; border-radius: 10px; opacity: .5; }
.serp-item small { display: block; margin-bottom: 6px; font-size: .7rem; color: var(--muted); }
.serp-item .bar { height: 8px; background: #9A9AA3; }
.serp-item .bar.thin { height: 5px; background: #D8D8D2; }
.serp-item.you { opacity: 1; background: #F3EEFF; box-shadow: inset 0 0 0 1.5px var(--purple); }
.serp-item.you small { color: var(--purple); font-weight: 700; }
.serp-item.you .bar:not(.thin) { background: var(--black); }
.stat-line { padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 12px; font-size: .92rem; color: var(--on-dark-muted); }
.stat-line b { color: var(--white); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.step {
  grid-column: span 2;
  display: flex; flex-direction: column;
  min-height: 380px; padding: 28px;
  border-radius: var(--radius-card);
}
.step:nth-child(n+4) { grid-column: span 3; min-height: 290px; }

.step-chip {
  align-self: flex-start; padding: 5px 12px; margin-bottom: 18px; border-radius: 999px;
  background: var(--white); color: var(--black);
  font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.step h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.step p { max-width: 40ch; margin-top: 10px; }
.step-art { margin-top: auto; padding-top: 28px; }

.step-dark { color: var(--white); background: var(--purple-deep); }
.step-dark p, .step-black p { color: var(--on-dark-muted); }
.step-light { background: var(--white); }
.step-light p, .step-soft p { color: var(--muted); }
.step-light .step-chip, .step-soft .step-chip { background: var(--black); color: var(--white); }
.step-soft { background: var(--soft); }
.step-black { color: var(--white); background: var(--black); }
.step-purple { color: var(--white); background: #6D28D9; }
.step-purple p { color: rgba(255, 255, 255, .88); }

.audit { display: grid; gap: 8px; }
.audit span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); font-size: .92rem; }
.audit i { position: relative; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--white); }
.audit i.ok::after { content: ""; position: absolute; left: 5.5px; top: 3.5px; width: 4px; height: 7px; border: solid var(--purple-deep); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.audit i.find { background: var(--purple-bright); }

.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant { position: relative; padding: 14px 12px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.variant b { position: absolute; top: -10px; left: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--black); color: var(--white); font-size: .7rem; }
.variant .bar { height: 7px; }
.variant .bar.thin { height: 5px; }
.variant em { display: block; width: 44%; height: 12px; margin-top: 9px; border-radius: 999px; background: var(--purple); }
.variant i { display: block; height: 34px; margin-top: 9px; border-radius: 7px; background: #DCCFFF; }
.variant.alt i { margin: 0 0 9px; }
.variant.alt b { background: var(--purple); }

.build .variant { background: var(--white); max-width: 240px; }
.build .variant strong { position: absolute; top: -10px; right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--black); color: var(--white); font-size: .7rem; }
.progress { height: 6px; margin-top: 14px; border-radius: 3px; background: rgba(11, 11, 12, .12); overflow: hidden; }
.progress span { display: block; width: 72%; height: 100%; border-radius: 3px; background: var(--purple); }

.launch .url { display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font-size: .95rem; }
.launch .url i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple-bright); }
.launch .url b { padding: 3px 10px; border-radius: 999px; background: var(--white); color: var(--black); font-size: .74rem; }

.growth { display: flex; align-items: flex-end; gap: 16px; }
.months { flex: 1; display: flex; align-items: flex-end; gap: 6px; height: 74px; max-width: 300px; }
.months i { flex: 1; height: var(--h); border-radius: 4px; background: rgba(255, 255, 255, .32); }
.months i:last-child { background: var(--white); }
.growth > span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); font-size: .8rem; font-weight: 700; white-space: nowrap; }

/* ---------- Results (measured, not quoted) ---------- */
.proof { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.proof-intro h2 { margin: 14px 0 18px; }
.proof-intro p { max-width: 44ch; margin-bottom: 24px; font-size: 1.1rem; color: var(--muted); }

.quote { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-card); background: var(--black); color: var(--white); }
.quote blockquote { margin: 0; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; letter-spacing: -.01em; }
.quote blockquote p + p { margin-top: 1em; }
.quote mark { background: none; color: var(--purple-bright); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--purple); font-size: .84rem; font-weight: 800; }
.quote figcaption b { display: block; font-weight: 700; }
.quote figcaption small { display: block; font-size: .85rem; color: var(--on-dark-muted); }

/* ---------- Contact: text on the left, form on the right ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(24px, 5vw, 64px);
  border-radius: var(--radius-frame); background: var(--white);
}
.contact h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.contact-intro p { max-width: 46ch; margin-top: 18px; font-size: 1.1rem; color: var(--muted); }
.contact-list { margin-top: 36px; display: grid; gap: 6px; }
.contact-list a { display: inline-block; padding: 8px 0; font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contact-list a:hover { color: var(--purple); border-color: var(--purple); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--paper); }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .95rem; font-weight: 700; }
.req { color: var(--purple); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid rgba(11, 11, 12, .18); border-radius: 12px; background: var(--white);
  font: inherit; color: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; border-radius: 12px; }
.field [aria-invalid="true"] { border-color: #C0262D; }
.form .btn { grid-column: 1 / -1; width: 100%; border: 0; }
.form-status, .form-note, .form-check { grid-column: 1 / -1; }
.form-check { min-height: 65px; }
.form-status { padding: 12px 14px; border-radius: 12px; background: var(--white); font-weight: 600; }
.form-status.is-error { color: #A31D24; }
.form-note { font-size: .88rem; color: var(--muted); }

/* ---------- Back to top: a plain button, shown after a screen of scrolling ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; padding: 0; border: 3px solid var(--white); border-radius: 50%;
  background: var(--black); color: var(--mark);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.to-top.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.to-top .arr { width: 20px; height: 20px; stroke-width: 2; }

/* ---------- Floating contact button: phones and tablets only ----------
   The nav button is hidden below 900px, so this keeps contact one tap away.
   It shows after the hero and hides while the contact form or the footer is on screen. */
.float-cta { display: none; }
@media (max-width: 900px) {
  .float-cta {
    display: flex; position: fixed; z-index: 90;
    left: 14px; right: 76px; bottom: calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 12px 30px -10px rgba(11, 11, 12, .55);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .float-cta.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
}

/* ---------- Cookie consent (js/consent.js) ----------
   A card at the bottom left, not a wall: the page stays usable behind it.
   "Само необходимите" has the same size and weight as "Приемам всички". */
.consent {
  position: fixed; z-index: 120; left: var(--gutter); bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(520px, 100% - 2 * var(--gutter)); max-height: calc(100svh - 32px); overflow-y: auto;
  padding: 24px; border-radius: 22px; background: var(--black); color: var(--white);
  box-shadow: 0 24px 60px -20px rgba(11, 11, 12, .6);
}
.consent[hidden] { display: none; }
.consent-title { font-size: 1.25rem; font-weight: 800; }
.consent-text { margin-top: 8px; font-size: .95rem; color: var(--on-dark-muted); }
.consent-text a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.consent-settings { margin-top: 16px; display: grid; gap: 4px; }
.consent-settings[hidden] { display: none; }
.consent-row { display: flex; gap: 14px; align-items: flex-start; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line-dark); cursor: pointer; font-size: .92rem; color: var(--on-dark-muted); }
.consent-row b { display: block; color: var(--white); font-size: 1rem; }
.consent-row input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--purple-bright); }
.consent-row input:disabled { opacity: .6; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-actions .btn { flex: 1 1 auto; min-height: 46px; padding: 0 18px; font-size: .95rem; }
@media (max-width: 620px) {
  .consent { left: 12px; width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom)); padding: 20px; }
  .consent-text { font-size: .9rem; }
}
.consent-actions .btn[hidden] { display: none; }
.consent .btn-secondary { border-color: rgba(255, 255, 255, .34); color: var(--white); }
.consent .btn-secondary:hover { background: var(--white); border-color: var(--white); color: var(--black); }
/* While the banner is open the floating buttons step aside, so nothing overlaps on a phone. */
.consent-open .float-cta, .consent-open .to-top { visibility: hidden; }

/* Footer link that reopens the choice: looks like the other footer links */
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-base a, .footer-base .link-btn { color: rgba(255, 255, 255, .8); }
.footer-base a:hover, .footer-base .link-btn:hover { color: var(--mark); }

/* ---------- Legal pages (biskvitki.html) ---------- */
.legal { max-width: 860px; }
.legal h2 { margin: 44px 0 12px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 12px; font-size: 1.05rem; color: var(--muted); }
.legal p a { color: var(--black); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-table { margin-top: 18px; overflow-x: auto; border-radius: 16px; background: var(--white); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.legal tr:last-child td { border-bottom: 0; }
.legal td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 620px) {
  /* On a phone each row becomes a small card, with the column name above each value */
  .legal table, .legal tbody, .legal tr, .legal td { display: block; min-width: 0; }
  .legal thead { display: none; }
  .legal tr { padding: 16px; border-bottom: 1px solid var(--line); }
  .legal tr:last-child { border-bottom: 0; }
  .legal td { padding: 4px 0; border: 0; }
  .legal td:first-child { white-space: normal; font-size: 1.05rem; }
  .legal td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Footer ---------- */
.footer { margin-top: 16px; margin-bottom: 16px; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(24px, 3vw, 36px); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: clamp(32px, 4vw, 56px); }
.footer-brand p { max-width: 34ch; margin-top: 18px; color: var(--on-dark-muted); }
.footer h3 { margin-bottom: 14px; font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--purple-bright); }
.footer-grid li + li { margin-top: 4px; }
.footer-grid li a { display: inline-block; padding: 4px 0; color: rgba(255, 255, 255, .9); transition: color .2s; }
.footer-grid li a:hover { color: var(--mark); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.footer-base p { font-size: .88rem; color: rgba(255, 255, 255, .62); }

/* ---------- Services & prices ---------- */
.group-label { margin-bottom: 20px; font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-card); background: var(--white); }
.price-card h3 { font-size: 1.3rem; font-weight: 700; }
.price { margin-top: 14px; font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.price small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-time { margin-top: 8px; color: var(--muted); }
.price-card ul { margin: 22px 0 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.price-card li { position: relative; padding-left: 18px; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.price-card .btn { margin-top: auto; width: 100%; }
/* The recommended package: purple card, white text, yellow action button. */
.price-card.is-pick { background: var(--purple); color: var(--white); box-shadow: 0 24px 50px -24px rgba(124, 58, 237, .8); }
.price-card.is-pick .price small, .price-card.is-pick .price-time { color: rgba(255, 255, 255, .84); }
.price-card.is-pick ul { border-top-color: rgba(255, 255, 255, .28); }
.price-card.is-pick li::before { background: var(--cta); }
.pick-badge {
  align-self: flex-start; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: var(--cta); color: var(--on-cta);
  font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}

.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-card); background: var(--black); color: var(--white); }
.terms h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 700; }
.terms p { color: var(--on-dark-muted); }

.extra { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); }
.extra h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.extra p { max-width: 60ch; font-size: 1.1rem; color: var(--muted); }

/* ---------- Case studies ---------- */
.cs-cover { margin-top: 16px; border-radius: var(--radius-card); overflow: hidden; background: var(--white); }
.cs-cover img { width: 100%; }
.cs { padding-block: clamp(56px, 7vw, 96px); }
.cs + .cs { padding-top: 0; }
.cs h2 { max-width: 24ch; margin: 12px 0 18px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
.cs-p { max-width: 68ch; font-size: 1.1rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 24px; border-radius: 18px; background: var(--white); }
.card .tag { margin-bottom: 10px; }
.card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.card p { margin-top: 8px; color: var(--muted); }
.card.fig b { display: block; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.card.fig b small { font-size: .42em; font-weight: 700; letter-spacing: 0; color: var(--purple); }

.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; align-items: start; }
.ba figure { border-radius: 18px; overflow: hidden; background: var(--white); }
.ba img { width: 100%; }
.ba figcaption { padding: 14px 18px; color: var(--muted); }
.ba figcaption b { color: var(--black); }
.ba-phone { max-width: 760px; }

.tl { margin-top: 36px; border-top: 1px solid var(--line); counter-reset: tl; }
.tl li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: tl; }
.tl li::before { content: counter(tl, decimal-leading-zero); font-weight: 800; color: var(--purple); }
.tl b { font-weight: 700; }
.tl span { color: var(--muted); }

.notice { margin-top: 16px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
.notice b { display: block; margin-bottom: 6px; }
.notice p { max-width: 80ch; color: var(--muted); }

/* ---------- Scroll reveal: fade only ---------- */
.js .reveal { opacity: 0; transition: opacity .7s; }
.js .reveal.in { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step, .step:nth-child(n+4) { grid-column: span 1; min-height: 340px; }
  .step:last-child { grid-column: 1 / -1; min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .price-grid.three, .cards.three, .terms { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { padding-left: 18px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--white); border: 1px solid rgba(11, 11, 12, .08); border-radius: 24px;
    box-shadow: 0 24px 50px -20px rgba(11, 11, 12, .4);
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility 0s .2s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 14px 16px; font-size: 1.1rem; border-radius: 16px; }
  .nav-links .nav-links-cta { display: flex; margin-top: 6px; background: var(--cta); color: var(--on-cta); font-weight: 700; }
  .nav-links .nav-links-cta:hover { background: var(--cta-hover); color: var(--on-cta); }

  .section-head { flex-direction: column; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; }

  .challenges, .proof, .extra, .contact { grid-template-columns: 1fr; }
  .preview-col { display: none; }
  .challenge .preview-stage { grid-column: 1 / -1; margin-top: 22px; aspect-ratio: 1 / 1; max-height: 520px; width: 100%; }
  .tl li { grid-template-columns: 44px minmax(0, 1fr); }
  .tl span { grid-column: 2; }
}

@media (max-width: 620px) {
  :root { --nav-top: 12px; --nav-h: 56px; }
  .frame, .contact { border-radius: 22px; }
  .nav { padding: 0 6px 0 14px; gap: 8px; }
  .nav-end { gap: 6px; }
  .logo { font-size: 1rem; gap: 7px; }
  .hero-actions .btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(n+4), .step:last-child { grid-column: auto; min-height: 0; }
  .price-grid, .cards, .cards.two, .ba { grid-template-columns: 1fr; }
  .hero-home { height: 600px; padding-block: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid nav:last-child { grid-column: 1 / -1; }
  .challenge { column-gap: 14px; }
  .preview { padding: 6%; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; }
}
