/* Fonts: Alegreya + Alegreya Sans (Telegram 1157). Subset WOFF2 Latin+Cyrillic. See fonts/OFL-NOTE.txt.
   size-adjust matches fonts-preview so live matches the pair he chose. */
@font-face {
  font-family: "Alegreya";
  src: url("fonts/Alegreya-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
}
@font-face {
  font-family: "Alegreya";
  src: url("fonts/Alegreya-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 106%;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Medium.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
  size-adjust: 106%;
}

:root {
  --paper: #F6F2EA;
  --ink: #1D2129;
  --accent: #23487F;
  --accent-hover: #1A3866;
  --support: #6E7D95;
  --tint: #E2E7EE;
  --sun: #E8A13A; /* third colour, marigold (2026-11-15): small highlights only */
  --muted: #555A63;

  --serif: "Alegreya", "Noto Serif", Georgia, serif;
  --sans: "Alegreya Sans", "Noto Sans", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: 20px;
  --measure: 62ch;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "locl" 1;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
  hyphens: manual;
}

h1 {
  font-weight: 700;
  font-size: clamp(36px, 6vw + 14px, 56px);
  line-height: 1.12;
}

h2 {
  font-weight: 700;
  font-size: clamp(28px, 2.4vw + 18px, 36px);
}

h3 {
  font-weight: 600;
  font-size: 22px;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--paper);
}

/* Navigation: stable header height keeps anchors and the hero in place. */
:root { --nav-height: 88px; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: var(--paper);
  border-bottom-color: rgba(29, 33, 41, 0.12);
  box-shadow: 0 4px 20px rgba(29, 33, 41, 0.05);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: calc(var(--nav-height) - 1px);
}

.site-header .brand { justify-self: start; gap: 11px; }
.site-header .brand-mark { width: 36px; height: 36px; }
.site-header .brand .wordmark { font-size: 28px; letter-spacing: -0.025em; }

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}

/* Logo mark + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

a.brand {
  min-height: 44px;
}

a.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: auto;
  height: 28px;
  flex: none;
  border-radius: 6px;
}

.brand .wordmark {
  font-size: 24px;
  letter-spacing: 0.01em;
  padding-top: 2px;
}

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

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav a:hover { color: var(--ink); background: rgba(29, 33, 41, 0.05); }
.nav a[aria-current="location"] { color: var(--accent); background: var(--tint); }

.header-contact { justify-self: end; display: flex; align-items: center; gap: 4px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
}
.nav-cta:hover { background: var(--accent-hover); color: var(--paper); }
.nav-cta-icon { display: none; }
.nav-cta-arrow { margin-left: 8px; font-size: 20px; line-height: 1; }
.nav-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-underline-offset: 3px;
}
/* Narrow desktops: the four menu links need the room, and the email link is in the hero just below. */
@media (min-width: 960px) and (max-width: 1179.98px) {
  .nav-email { display: none; }
}
.site-header :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.nav-toggle[hidden], .nav-backdrop[hidden], .nav-panel[hidden] { display: none; }
.nav-toggle { display: none; }
.skip { z-index: 60; }

@media (max-width: 959.98px) {
  :root { --nav-height: 80px; }
  .site-header:not(.nav-ready) { position: static; }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 14px; }
  .site-header .brand-mark { width: 32px; height: 32px; }
  .site-header .brand .wordmark { font-size: 26px; }
  .nav-cta-label { display: none; }
  .nav-cta { min-height: 44px; padding: 0 14px; }
  .nav-cta-arrow { margin-left: 5px; }
  .nav-email { font-size: 15px; }
  .nav-toggle:not([hidden]) {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(29, 33, 41, 0.2);
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle:hover { background: var(--tint); }
  .nav-toggle-icon { position: relative; width: 20px; height: 12px; }
  .nav-toggle-icon::before, .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 150ms ease, top 150ms ease;
  }
  .nav-toggle-icon::before { top: 2px; }
  .nav-toggle-icon::after { top: 10px; }
  [aria-expanded="true"] .nav-toggle-icon::before { top: 6px; transform: rotate(45deg); }
  [aria-expanded="true"] .nav-toggle-icon::after { top: 6px; transform: rotate(-45deg); }
  .nav-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 16px;
  }
  /* Absolute only after JS enhances the disclosure: no-JS links stay usable. */
  .nav-ready .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    max-width: 520px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid rgba(29, 33, 41, 0.15);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 16px 44px rgba(29, 33, 41, 0.14);
    max-height: calc(100dvh - var(--nav-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav { display: grid; gap: 4px; }
  .nav a {
    justify-content: space-between;
    min-height: 60px;
    padding: 10px 18px;
    color: var(--ink);
    font-size: 22px;
  }
  .nav a::after { content: "↘"; color: var(--support); font-size: 19px; }
  .nav-backdrop {
    position: fixed;
    inset: var(--nav-height) 0 0;
    z-index: 40;
    background: rgba(29, 33, 41, 0.22);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
}

/* Phone contact: a quiet icon target; shared height also drives menu/anchor offsets. */
@media (max-width: 639.98px) {
  :root { --nav-height: 64px; }
  .header-contact { display: flex; align-items: center; }
  .nav-cta {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    gap: 0;
  }
  .nav-cta, .nav-toggle:not([hidden]) {
    position: relative;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--tint);
    color: var(--accent);
  }
  .nav-toggle:not([hidden]) { width: 36px; height: 36px; }
  /* Four extra pixels on each side keep both targets 44px without adding visual weight. */
  .nav-cta::before, .nav-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
  .nav-cta:hover, .nav-toggle:hover { background: var(--tint); color: var(--accent); }
  .nav-cta-icon { display: block; width: 18px; height: 18px; flex: none; }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { width: 18px; }
  .nav-cta-label, .nav-cta-name, .nav-cta-arrow, .nav-email { display: none; }
}

@media (max-width: 359.98px) {
  .header-inner { gap: 10px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand .wordmark { font-size: 23px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav a, .nav-cta,
  .nav-toggle-icon::before, .nav-toggle-icon::after { transition: none; }
}

/* Buttons and links */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 40px 0 56px;
}

.hero-inner {
  display: grid;
  gap: 40px;
}

.hero h1 {
  max-width: 16em;
}

.lead {
  margin-top: 20px;
  font-size: 20px;
}

.hero .actions {
  margin-top: 28px;
}

/* Viber is the main button; email stays one small line below it */
.alt-contact {
  margin-top: 4px;
  color: var(--muted);
  font-size: 17px;
}

.alt-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Hero scene "DMs → one link" (job 736, polished in job 742): flat inline SVG, classes prefixed htl-.
   Under the buttons on phones and tablets, the right column on desktop.
   Its motion lives in the SVG's own <style> (since job 742: plays once, about 4 s, then rests on the
   full picture). A tiny observer in index.html pauses it while the hero is off screen. */
.hero-art {
  width: 100%;
  max-width: 520px;
  margin: -12px auto 0;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-art.is-paused * {
  animation-play-state: paused !important;
}

/* Background geometry behind the hero scene (2026-11-15). It shares the scene's 480 x 380
   coordinates and spills past it; .hero clips it so the page never scrolls sideways. */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.hero-art {
  position: relative;
  margin-top: 20px; /* room for the shapes that sit above the scene */
}

.hero-art svg.hero-geo {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-art .htl {
  position: relative;
}

.hg-disc { fill: var(--tint); opacity: 0.55; }
.hg-line { stroke: var(--support); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.hg-soft { opacity: 0.28; }

.ill {
  width: 100%;
}

.ill [stroke] {
  vector-effect: non-scaling-stroke;
}

/* Sections */
.section {
  padding: 64px 0;
}

.band {
  background: var(--tint);
}

.section-head {
  margin-bottom: 36px;
}

.section-head p {
  margin-top: 14px;
}

/* Prices: three plans, then the promises that hold for all of them */
.plans {
  list-style: none;
  margin: 0;
  padding: 30px 0 0;
  display: grid;
  gap: 40px 24px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
}

.plan-main {
  border-color: var(--accent);
  border-top-left-radius: 0;
  box-shadow: 6px 6px 0 var(--accent);
}

/* A cut-paper tab on the shop card, not a floating badge */
.plan-tag {
  position: absolute;
  bottom: 100%;
  left: -2px;
  padding: 5px 14px 3px;
  border-radius: 8px 8px 0 0;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}

.plan h3 {
  font-size: 22px;
}

.plan-for {
  margin-top: 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

/* The price sits on its own slip, between two tear lines */
.plan-price {
  margin-top: 16px;
  padding: 14px 0 14px;
  border-top: 2px dashed rgba(29, 33, 41, 0.3);
  border-bottom: 2px dashed rgba(29, 33, 41, 0.3);
}

.plan .amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 4vw + 18px, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.plan .from-word,
.plan .unit {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}

.plan .from-word {
  color: var(--muted);
}

.plan .eur {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 20px;
}

.plan-list li {
  position: relative;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.45;
}

.plan-list li + li {
  margin-top: 10px;
}

.plan-list li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%231D2129' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.plan-main .plan-list li::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%23F6F2EA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.button-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.button-line:hover {
  background: var(--ink);
  color: var(--paper);
}

.plan-alt {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.plan-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 6px;
}

.plan-alt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* What holds for every plan: a footnote strip, not more paragraphs */
.assurances {
  list-style: none;
  margin: 48px 0 0;
  padding: 24px 0 0;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 20px 32px;
}

.assurances li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.assure-icon {
  width: 32px;
  height: 32px;
}

.assurances p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.assurances strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

/* Selected work */
.work {
  display: grid;
  gap: 48px;
}

.work-card picture,
.work-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.work-card img {
  background: var(--tint);
}

.work-card h3 {
  margin-top: 20px;
}

.work-card p {
  margin-top: 6px;
}

.work-card .text-link {
  margin-top: 4px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 52px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.steps p {
  margin-top: 8px;
}

/* Wider screens */
@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .section {
    padding: 88px 0;
  }

  .work {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* Tablet: the shop card on its own row, the other two side by side */
@media (min-width: 640px) and (max-width: 959.98px) {
  .plans {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .plan-main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }

  .plan-main .ill { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .plan-main .plan-list { grid-column: 1; grid-row: 3 / span 2; padding-bottom: 0; }
  .plan-main .plan-head { grid-column: 2; grid-row: 1; }
  .plan-main .plan-price { grid-column: 2; grid-row: 2; }
  .plan-main .plan-cta { grid-column: 2; grid-row: 3; margin-top: 18px; }
  .plan-main .plan-alt { grid-column: 2; grid-row: 4; }

  .assurances {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Desktop: three plans side by side. Cards stay flex so short titles
   do not leave empty holes the way CSS subgrid row-alignment did. */
@media (min-width: 960px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .plan {
    min-height: 100%;
  }

  .assurances {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }

  .hero-art {
    max-width: none;
    margin: 0;
  }
}

/* ======================================================================
   Go-live Part 5 (job 758): one offer section, proof after it, a folding FAQ,
   a closing ink band, and the calm motion from the dynamic preview.
   ====================================================================== */

/* Offer cards: the drawing sits at the top of each price card */
.plan .ill {
  width: 100%;
  max-width: 100%;
  margin: -4px 0 14px;
}

/* Two-column section heads on wide screens: the title left, the intro right */
.section-head.split > div > p + p {
  margin-top: 10px;
}

/* An inline link in a sentence keeps the text's line height but gets a taller hit area. */
.section-head a {
  padding: 13px 0;
  font-weight: 600;
}

@media (min-width: 960px) {
  .section-head.split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: baseline;
  }

  .section-head.split > p,
  .section-head.split > div > p:first-child {
    margin-top: 0;
  }
}

/* Proof: an honest label above each project */
.work-label {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.work-card .work-label + h3 {
  margin-top: 4px;
}

/* FAQ: <details>, so it opens without JavaScript. Two independent columns on wide screens. */
.faq {
  display: grid;
  gap: 0 56px;
}

.faq details {
  border-bottom: 1px solid rgba(29, 33, 41, 0.18);
}

.faq-col:first-child details:first-child {
  border-top: 1px solid rgba(29, 33, 41, 0.18);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary h3 {
  font-size: 20px;
  line-height: 1.3;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4.5v11M4.5 10h11' fill='none' stroke='%231D2129' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 180ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover h3 {
  color: var(--accent);
}

.faq details p {
  padding: 0 46px 22px 0;
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .faq-col details:first-child {
    border-top: 1px solid rgba(29, 33, 41, 0.18);
  }
}

/* Closing band: ink, one big Viber button, the email under it. The footer continues the ink. */
.contact {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}


.contact-inner {
  display: grid;
  gap: 28px;
}

.contact h2 {
  max-width: 16em;
  color: var(--paper);
}

.contact-text p {
  margin-top: 14px;
  color: rgba(246, 242, 234, 0.86);
  font-size: 19px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button-big {
  width: 100%;
  max-width: 420px;
  min-height: 60px;
  padding: 14px 32px;
  background: var(--paper);
  color: var(--accent);
  font-size: 21px;
}

.button-big:hover {
  background: #fff;
  color: var(--accent-hover);
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  color: var(--paper);
  font-weight: 600;
}

.contact-mail:hover {
  color: #fff;
}

.contact .where {
  margin-top: 4px;
  color: rgba(246, 242, 234, 0.72);
}

.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--paper);
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }

  .contact-actions {
    align-items: stretch;
    padding: 32px;
    border: 1px solid rgba(246, 242, 234, 0.22);
    border-radius: 12px;
  }

  .button-big {
    max-width: none;
  }

  .contact-mail,
  .contact .where {
    align-self: center;
  }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(246, 242, 234, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(246, 242, 234, 0.16);
}

.footer-inner .brand {
  gap: 8px;
  color: var(--paper);
}

.footer-inner .brand-mark {
  height: 22px;
}

.footer-inner .wordmark {
  color: var(--paper);
  font-size: 19px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--paper);
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
}

/* ---------- Motion, ported by hand from the dynamic preview (jobs 734/742). Nothing loops.
   transform / opacity / clip-path only; reduced motion shows every end state. */

/* Hero: ink underline under „еден линк.“, drawn once on load (the SVG has its own reduced-motion rule) */
.ink-mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.ink-mark .ink-line {
  position: absolute;
  left: -0.03em;
  bottom: -0.16em;
  width: calc(100% + 0.08em);
  max-width: none;
  height: 0.26em;
  pointer-events: none;
}

/* Straight band edges (2026-11-15): the soft curves between sections were removed at
   Nikola's request. The old rules are in the scratchpad backup styles.before-nocurve.css;
   images/soft-edge*.svg stay on disk. */
.band,
.contact {
  position: relative;
}

/* Steps: an icon above each number, played once; on wide screens one line joins the numbers */
.steps li {
  padding-top: 120px;
}

.steps li::before {
  top: 78px;
}

.step-icon {
  position: absolute;
  top: 0;
  left: -4px;
  width: 64px;
  height: 64px;
}

.step-icon svg {
  width: 64px;
  height: 64px;
}

@media (min-width: 720px) {
  .steps {
    position: relative;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 95px;
    left: 18px;
    right: calc((100% - 80px) / 3 - 18px);
    border-top: 2px solid var(--support);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  }

  .steps.is-in::before,
  html:not(.mo-js) .steps::before {
    clip-path: inset(0 0 0 0);
  }

  .steps li:nth-child(2) { --sd: 0.55s; }
  .steps li:nth-child(3) { --sd: 1.1s; }
}

/* The blue button in each drawing is pressed once when the card scrolls in */
@keyframes mo-press {
  0%, 35% { transform: none; }
  50% { transform: scale(0.92); }
  68%, 100% { transform: none; }
}

@keyframes mo-pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

@keyframes mo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ill-press,
.ill-pop {
  transform-box: fill-box;
  transform-origin: center;
}

.mo-js .ill.is-in .ill-press {
  animation: mo-press 1.4s ease-in-out 0.7s both;
}

.mo-js .ill .ill-pop,
.mo-js .ill .ill-fade {
  opacity: 0;
}

.mo-js .ill.is-in .ill-pop {
  animation: mo-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.mo-js .ill.is-in .ill-fade {
  animation: mo-fade 0.5s ease-out 1s both;
}

/* Scroll-in reveal (the head adds .mo-js before first paint; without JS everything is visible) */
.mo-js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.mo-js .rv.is-in {
  opacity: 1;
  transform: none;
}

/* Animated SVGs below the fold wait until they are on screen */
.mo-js .mo:not(.is-in),
.mo-js .mo:not(.is-in) * {
  animation-play-state: paused !important;
}

span.mo {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .mo-js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .steps::before {
    clip-path: none !important;
    transition: none;
  }

  .mo-js .ill .ill-pop,
  .mo-js .ill .ill-fade {
    opacity: 1;
  }

  .mo-js .ill.is-in .ill-press,
  .mo-js .ill.is-in .ill-pop,
  .mo-js .ill.is-in .ill-fade {
    animation: none;
  }

  .faq summary::after {
    transition: none;
  }
}

/* Privacy page (go-live Part 6, job 759) and the footer's company line (shown once legal_line is set) */
.legal-inner {
  max-width: calc(760px + 2 * var(--gutter));
}

.legal-head .lead {
  margin-top: 16px;
}

.legal section {
  margin-top: 44px;
}

.legal h2 {
  font-size: clamp(24px, 1.2vw + 18px, 28px);
}

.legal h2 + p,
.legal h2 + ul,
.legal p + p,
.legal p + .legal-line,
.legal .legal-line + p {
  margin-top: 12px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  max-width: var(--measure);
}

.legal li + li {
  margin-top: 10px;
}

.legal ul + p {
  margin-top: 16px;
}

.legal .legal-line {
  color: var(--muted);
}

.site-footer .legal-line {
  flex-basis: 100%;
  order: 3;
  font-size: 15px;
  max-width: none;
}

.footer-links a[aria-current="page"] {
  text-decoration: underline;
}

@media print {
  .mo-js .rv,
  .mo-js .ill .ill-pop,
  .mo-js .ill .ill-fade {
    opacity: 1;
    transform: none;
  }
}

/* ======================================================================
   Background texture on the bands (2026-11-15): imprint contours, thin wavy rings spreading
   out of one corner like the imprint mark (images/contours*.svg, made by next/tools/contours.py). Tinted bands and the
   closing ink band only; the paper sections stay clean. CSS only.
   Undo: delete the three .sec-geo divs in index.html and this block.
   ====================================================================== */
.section {
  position: relative;
}

.section > .wrap {
  position: relative;
}

.sec-geo {
  --ht: clamp(360px, 42vw, 800px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: url("images/contours.svg") right top / var(--ht) var(--ht) no-repeat;
}

/* Bottom-left corner: the same field turned half a circle */
#pochetok > .sec-geo {
  transform: rotate(180deg);
}

.contact > .sec-geo {
  background-image: url("images/contours-light.svg");
}

/* Living contours (2026-11-15): every 9 s a soft wave rolls out of the corner and turns the
   lines it passes blue.
   A second copy of the field in the accent colour, shown only inside a moving ring
   (registered --rip so the ring can animate). Reduced motion and print: no wave.
   Images: images/contours*.svg. */
@property --rip {
  syntax: "<length>";
  inherits: false;
  initial-value: -120px;
}

.sec-geo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/contours-blue.svg") right top / var(--ht) var(--ht) no-repeat;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, transparent calc(var(--rip) - 70px), #000 var(--rip), transparent calc(var(--rip) + 40px));
  mask-image: radial-gradient(circle at 100% 0%, transparent calc(var(--rip) - 70px), #000 var(--rip), transparent calc(var(--rip) + 40px));
  animation: dot-wave 9s cubic-bezier(0.3, 0.1, 0.4, 1) 1.2s infinite;
}

#pochetok > .sec-geo::after {
  animation-delay: 4.2s;
}

.contact > .sec-geo::after {
  background-image: url("images/contours-light-wave.svg");
  animation-delay: 2.6s;
}

@keyframes dot-wave {
  0% { --rip: -120px; }
  55% { --rip: 1000px; }
  100% { --rip: 1000px; }
}

@media (prefers-reduced-motion: reduce) {
  .sec-geo::after { display: none; }
}

@media print {
  .sec-geo::after { display: none; }
}

/* ======================================================================
   Shorter price cards on desktop (2026-11-15): a card was about 1020 px high, more than a
   laptop screen. Smaller drawing, tighter price slip with the euro gloss on the price line,
   tighter list. Phones keep the roomier card. Undo: delete this block.
   ====================================================================== */
@media (min-width: 960px) {
  .plans {
    gap: 40px 20px;
  }

  .plan {
    padding: 18px 20px 14px;
  }

  .plan .ill {
    width: 100%;
    height: auto;
    margin: -6px 0 8px;
  }

  .plan h3 {
    font-size: 21px;
  }

  .plan-for {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.35;
  }

  .plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 10px;
    margin-top: 10px;
    padding: 8px 0;
  }

  .plan .amount {
    font-size: 38px;
  }

  .plan .eur {
    margin-top: 0;
  }

  .plan-list {
    padding: 12px 0 14px;
  }

  .plan-list li {
    padding-left: 27px;
    font-size: 16px;
    line-height: 1.32;
  }

  .plan-list li + li {
    margin-top: 6px;
  }

  .plan-list li::before {
    top: 1px;
    width: 18px;
    height: 18px;
  }

  .plan-alt a {
    min-height: 34px;
  }
}

/* ======================================================================
   A cursor "clicks" the part that moves in each price-card drawing (2026-11-15):
   it glides in, presses, a ring spreads, then the button presses / the slot fills.
   The cursor fades out after the click; rest frame, reduced motion, print and no-JS show none. Undo: delete the .ill-click groups and this block.
   ====================================================================== */
.ill-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes ill-cur {
  0% { opacity: 0; transform: translate(70px, 64px); }
  18% { opacity: 1; }
  58% { transform: translate(0, 0) scale(1); }
  66% { transform: translate(0, 0) scale(0.8); }
  74% { opacity: 1; transform: translate(0, 0) scale(1); }
  92%, 100% { opacity: 0; transform: translate(0, 0) scale(1); }
}

@keyframes ill-ring {
  0% { opacity: 0; transform: scale(0.3); }
  1% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.7); }
}

/* hidden at rest: it only shows while it moves and clicks, then fades */
.ill-cur {
  opacity: 0;
}

.mo-js .ill.is-in .ill-cur {
  animation: ill-cur 2s cubic-bezier(0.3, 0.6, 0.3, 1) calc(var(--cd, 0s) + 0.1s) both;
}

.mo-js .ill.is-in .ill-ring {
  animation: ill-ring 0.7s ease-out calc(var(--cd, 0s) + 1.42s) both;
}

/* the targets react right after the click */
.mo-js .ill.is-in .ill-press {
  animation-delay: calc(var(--cd, 0s) + 0.86s);
}

.mo-js .ill.is-in .ill-pop {
  animation-delay: calc(var(--cd, 0s) + 1.4s);
}

.mo-js .ill.is-in .ill-fade {
  animation-delay: calc(var(--cd, 0s) + 0.4s);
}

/* Side by side on desktop, the cards take turns: shop, then business, then portfolio.
   Stacked on phones each card plays as it scrolls in, so no wait there. */
@media (min-width: 960px) {
  .plan:nth-child(2) .ill { --cd: 1.7s; }
  .plan:nth-child(3) .ill { --cd: 3.4s; }
}

@media (prefers-reduced-motion: reduce) {
  .mo-js .ill.is-in .ill-cur,
  .mo-js .ill.is-in .ill-ring {
    animation: none;
  }
}


/* ======================================================================
   Two stars drawn over the project pictures' top corners when they scroll in (2026-11-15;
   replaced the squiggly line): a big one on the left card's corner, a small one on the right
   card's corner. The outline draws itself, then the paper fill fades in. Big first, then small.
   Reduced motion / no JS: both stars, static. Undo: delete the .proj-star svgs in #raboti and this block.
   ====================================================================== */
.work {
  position: relative;
}

/* the small star sits inside the last card (21 Nov 2026), so on phones it marks the last project, not the first */
.work-card {
  position: relative;
}

.proj-star {
  position: absolute;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

.star-big {
  top: -30px;
  left: -12px;
  width: 64px;
  height: 64px;
}

/* phone (21 Nov 2026, Nikola: "on phone make every project have a star"): one star per card,
   alternating corners: Kaia left (big), Prime Design right, Stef Fitness left. The middle star is phone-only. */
.star-small {
  top: -22px;
  left: -10px;
  width: 50px;
  height: 50px;
}

.star-mid {
  top: -22px;
  right: -10px;
  width: 50px;
  height: 50px;
}

@media (min-width: 720px) {
  .star-mid {
    display: none;
  }

  .star-small {
    left: auto;
  }

  .star-big {
    top: -44px;
    left: -40px;
    width: 92px;
    height: 92px;
  }

  .star-small {
    top: -26px;
    right: -22px;
    width: 52px;
    height: 52px;
  }
}

.proj-star path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.mo-js .proj-star path {
  stroke-dashoffset: 1;
  fill-opacity: 0;
}

.mo-js .proj-star.is-in path {
  animation: star-draw 1.1s cubic-bezier(0.45, 0.05, 0.25, 1) var(--sd, 0.3s) both,
             star-fill 0.4s ease-out calc(var(--sd, 0.3s) + 0.9s) both;
}

/* computer: the small star waits for the big one; on the phone each star plays as its own card scrolls in */
@media (min-width: 720px) {
  .star-small {
    --sd: 1.2s;
  }
}

@keyframes star-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes star-fill {
  from { fill-opacity: 0; }
  to { fill-opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mo-js .proj-star path {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }

  .mo-js .proj-star.is-in path {
    animation: none;
  }
}

@media print {
  .mo-js .proj-star path {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

/* Smaller header Viber button on desktop (2026-11-15). Height stays a 40 px tap target. */
@media (min-width: 960px) {
  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 15px;
  }

  .nav-cta-arrow {
    margin-left: 6px;
    font-size: 16px;
  }
}

/* ======================================================================
   „Пишете на Вибер“ restyled (2026-11-15; Nikola did not like the plain blue block):
   the hero's bubble language. A 2 px ink outline, corners like the chat bubbles, a small
   chat-bubble icon, and a hard offset shadow the button presses into on hover/click.
   Hero, header and the closing band. Undo: delete this block and the .btn-icon svgs / button-chat class.
   ====================================================================== */
.button-chat {
  gap: 10px;
  padding: 10px 24px 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 150ms ease;
}

.button-chat:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button-chat:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

/* closing band: paper button on ink, light-blue shadow */
.contact .button-chat {
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--sun);
}

.contact .button-chat:hover {
  box-shadow: 3px 3px 0 var(--sun);
}

.contact .button-chat:active {
  box-shadow: 0 0 0 var(--sun);
}

.button-big .btn-icon {
  width: 22px;
  height: 22px;
}

/* header: the same look, smaller; the chat icon replaces the arrow */
@media (min-width: 640px) {
  .nav-cta {
    gap: 0;
    padding: 0 14px 0 12px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--ink);
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 150ms ease;
  }

  .nav-cta:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
  }

  .nav-cta-icon {
    display: block;
    width: 17px;
    height: 17px;
    margin-right: 8px;
  }

  .nav-cta-label {
    margin-right: 0.25em;
  }

  .nav-cta-arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-chat,
  .nav-cta {
    transition: none;
  }
}

/* ======================================================================
   Floating island header on desktop (2026-11-15; Nikola found the full-width bar too thick).
   The bar itself is transparent; the links sit on a rounded paper island 60 px tall, 12 px
   below the top, with a thin ink outline and a soft shadow that grows once the page scrolls.
   Phones and tablets keep the full-width bar (their menu panel hangs from it).
   Undo: delete this block.
   ====================================================================== */
@media (min-width: 960px) {
  :root { --nav-height: 72px; }

  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    padding-top: 12px;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    pointer-events: none;
  }

  .site-header .header-inner {
    pointer-events: auto;
    width: min(calc(100% - 48px), var(--wrap));
    min-height: 60px;
    padding: 0 10px 0 20px;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(246, 242, 234, 0);
    box-shadow: 0 8px 28px rgba(29, 33, 41, 0);
    transition: background-color 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  }

  /* At the top of the page the header is plain (no island); it becomes the island once the
     page scrolls. Same size and positions in both states, so nothing jumps. */
  .site-header.is-scrolled .header-inner,
  .site-header.is-open .header-inner {
    border-color: rgba(29, 33, 41, 0.18);
    background: rgba(246, 242, 234, 0.88);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 8px 28px rgba(29, 33, 41, 0.1);
  }

  .site-header .brand-mark { width: 30px; height: 30px; }
  .site-header .brand .wordmark { font-size: 24px; }

  .nav a {
    min-height: 40px;
    padding: 0 12px;
    font-size: 16px;
  }

  .nav-cta {
    min-height: 38px;
  }
}

/* ======================================================================
   Third colour (2026-11-15; Nikola found the page too bland): marigold --sun on small
   highlights only. Step number badges here; elsewhere: the sun in the hero phone picture,
   the project stars, the click ring in the card drawings, the contact button shadow.
   ====================================================================== */
.steps li::before {
  background: var(--sun);
}

/* Hero scene on phones and tablets (2026-11-15): its own drawing (.htl-mob, from next/hero/make_svg.py) with
   the phone in the centre and the messages alternating left and right; it brings its own disc and ring,
   so the desktop background shapes are hidden. Desktop (960 px and up) keeps .htl-desk. */
.hero-art .htl-mob { display: none; }

@media (max-width: 959px) {
  .hero-art .htl-desk,
  .hero-art .hero-geo { display: none; }
  .hero-art .htl-mob { display: block; }
  .hero-art { max-width: 460px; margin-top: 8px; }
}

/* First screen that says "we build your website" (job 964, 17 Nov 2026; on the page since job 1016, 19 Nov 2026). Only the first screen changes, plus the small „Како функционира“
   section that now holds the old hero scene. Pictures follow design/DIRECTION.md: a real site on a device
   drawn in the house line (2 px ink, paper fill), one flat tint field, one soft ink-blue shadow from a light
   at the top left, the caption on plain ground. No gradients. */

/* ---------- text ---------- */
.fs-hero { padding-top: 28px; }
.fs-kicker { margin: 0 0 10px; font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--accent); }
.fs-hero h1 { max-width: 15em; font-size: clamp(32px, 3.4vw + 18px, 52px); }
.fs-benefit { margin-top: 14px; max-width: 32em; font-size: 19px; line-height: 1.45; color: var(--ink); }

/* one quiet price line (21 Nov 2026: three chips → one "from" line, as on comparable studio sites) */
.fs-price { margin-top: 14px; font-size: 19px; line-height: 1.4; color: var(--muted); }
.fs-price a { display: inline-block; padding: 9px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--support); text-underline-offset: 4px; }
.fs-price a:hover { text-decoration-color: var(--accent); }
.fs-price b { font-weight: 700; color: var(--accent); }
.fs-price .e { font-size: 16px; }
.fs-note { margin-top: 0; max-width: 30em; font-size: 16px; line-height: 1.45; color: var(--muted); }
.fs-hero .actions { margin-top: 20px; }

/* ---------- the proof: a real site we built, on a laptop and a phone, lying on a real torn sheet ---------- */
.fs-proof { display: flex; flex-direction: column; margin: 0; max-width: 420px; }
.fs-stage { position: relative; height: 236px; }
.fs-stage > * { position: absolute; }
.fs-screen picture, .fs-screen img { display: block; width: 100%; height: 100%; }
.fs-proof .fs-screen img { object-fit: cover; object-position: top center; }

/* one flat cut-paper field, straight facets */
.fs-field { background: var(--tint); clip-path: polygon(6% 14%, 40% 2%, 84% 8%, 98% 40%, 92% 86%, 56% 98%, 14% 92%, 2% 56%); }
/* a real sheet of torn paper (CC0 photo), lit from the top left like everything else */
.fs-sheet { transform: rotate(5deg); filter: drop-shadow(6px 8px 10px rgba(35, 72, 127, .18)); }
.fs-sheet img { display: block; width: 100%; height: auto; }

/* laptop in the house line */
.fs-laptop { filter: drop-shadow(10px 12px 14px rgba(35, 72, 127, .22)); }
.fs-lid { padding: 9px 9px 11px; border: 2px solid var(--ink); border-radius: 12px 12px 4px 4px; background: var(--paper); }
.fs-laptop .fs-screen { aspect-ratio: 16 / 10; overflow: hidden; border: 2px solid var(--ink); border-radius: 3px; background: #fff; }
.fs-base { position: relative; height: 13px; margin: -1px -7% 0; border: 2px solid var(--ink); border-radius: 2px 2px 12px 12px; background: var(--paper); }
.fs-base::before { content: ""; position: absolute; left: 50%; top: -2px; width: 18%; margin-left: -9%; height: 5px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; }

/* phone in the house line */
.fs-phone { padding: 18px 6px 20px; border: 2.5px solid var(--ink); border-radius: 20px; background: var(--paper); filter: drop-shadow(10px 12px 14px rgba(35, 72, 127, .22)); }
.fs-phone::before { content: ""; position: absolute; left: 50%; top: 8px; width: 26px; margin-left: -13px; border-top: 2.5px solid var(--ink); border-radius: 2px; }
.fs-phone::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 34px; margin-left: -17px; border-top: 2.5px solid var(--ink); border-radius: 2px; }
.fs-phone .fs-screen { aspect-ratio: 390 / 844; overflow: hidden; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }

.fs-proof figcaption { position: relative; z-index: 2; margin: 12px 0 0; max-width: 34em; font-size: 15px; line-height: 1.4; color: var(--muted); }
.fs-proof figcaption b { color: var(--ink); font-weight: 600; }

/* phone and tablet: the picture, then its caption, after the text and the Viber button (caption moved under it 21 Nov 2026) */
.fs-field { left: 6px; top: 6px; width: 92%; height: 226px; }
.fs-sheet { left: 226px; top: 0; width: 136px; }
.fs-laptop { left: 18px; top: 22px; width: 256px; }
.fs-phone { left: 250px; top: 10px; width: 94px; }
@media (max-width: 370px) {
  .fs-laptop { left: 14px; width: 230px; }
  .fs-sheet { left: 190px; width: 140px; }
  .fs-phone { left: 222px; width: 88px; }
}

/* computer: text left, picture right, caption under it */
@media (min-width: 960px) {
  .fs-hero { padding: 56px 0 72px; }
  .fs-hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .fs-proof { max-width: none; }
  .fs-stage { height: 452px; }
  .fs-field { left: 34px; top: 4px; width: 540px; height: 440px; }
  .fs-sheet { left: auto; right: -14px; top: 64px; width: 236px; }
  .fs-laptop { left: 0; top: 34px; width: 500px; }
  .fs-lid { padding: 12px 12px 14px; border-radius: 16px 16px 5px 5px; }
  .fs-base { height: 17px; }
  .fs-phone { left: auto; right: 0; top: 118px; width: 146px; padding: 24px 8px 26px; border-radius: 26px; }
  .fs-phone::before { top: 11px; width: 34px; margin-left: -17px; }
  .fs-phone::after { bottom: 11px; width: 44px; margin-left: -22px; }
  .fs-proof figcaption { order: 0; margin: 18px 0 0; max-width: 400px; font-size: 16px; }
}

/* ---------- „Како функционира“: the old hero scene, now labelled ---------- */
.fs-how { position: relative; overflow: hidden; overflow: clip; }
.fs-how-inner { display: grid; gap: 28px; }
.fs-how-steps { display: grid; gap: 18px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: fs; }
.fs-how-steps li { position: relative; padding-left: 50px; font-size: 18px; line-height: 1.45; color: var(--muted); }
.fs-how-steps li::before {
  counter-increment: fs; content: counter(fs); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: 17px;
}
.fs-how-steps b { display: block; margin-bottom: 2px; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--ink); }
.fs-how .hero-art { margin-top: 0; }
@media (min-width: 960px) {
  .fs-how-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}


/* Job 966, on the page since job 1016: two-line wordmark „Стапка“ + small lowercase „студио“ for the rename preview
   (lowercase: the brand rules say sentence case, no all-caps; the first try was all-caps СТУДИО).
   The name stays large; „студио“ is the category line, so стапка never reads as a rate.
   14px after the name-neutral comparison called 13px with wide tracking tiny on the computer. */
.stapka-wm {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
}
.stapka-wm-sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 3px;
  padding-left: 1px;
}
.footer-inner .stapka-wm-sub { color: #B9C3D3; }
@media (max-width: 359.98px) {
  .stapka-wm-sub { font-size: 13px; letter-spacing: 0.08em; }
}

/* ---------- Наши проекти: three cards (job 1016, 19 Nov 2026: Stef Fitness added) ----------
   One column on phones, two on tablets (the third card spans both and stays card-sized), three on computers. */
@media (min-width: 720px) and (max-width: 1099.98px) {
  .work.work-3 > .work-card:nth-of-type(3) { grid-column: 1 / -1; justify-self: center; width: min(100%, calc(50% - 20px)); }
}
@media (min-width: 1100px) {
  .work.work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ======================================================================
   Phones (21–22 Nov 2026, Nikola: "the plans on phone look huge"): the cards stay stacked
   (11 of 16 pricing pages researched stack them; swipe rows hide the other prices), but get compact:
   the drawing shrinks to a small picture beside the title, the euro sits on the price line,
   the list is tighter. Computer (22 Nov 2026, "make it more compact for web view as well"): same card,
   slightly bigger drawing. Tablet 720–959 keeps its own two-column layout. Undo: delete this block.
   ====================================================================== */
@media (max-width: 719px), (min-width: 960px) {
  .plans { gap: 36px; }
  .plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    column-gap: 12px;
    padding: 18px 18px 14px;
  }
  .plan > * { grid-column: 1 / -1; }
  .plan .ill { grid-column: 2; grid-row: 1; width: 104px; height: auto; margin: 0; align-self: start; }
  .plan .plan-head { grid-column: 1; grid-row: 1; }
  .plan h3 { font-size: 21px; }
  .plan-for { margin-top: 4px; font-size: 16px; line-height: 1.4; }
  .plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 10px;
    margin-top: 12px;
    padding: 8px 0;
  }
  .plan .eur { margin-top: 0; }
  .plan-list { padding: 12px 0 14px; }
  .plan-list li { padding-left: 28px; font-size: 16px; line-height: 1.38; }
  .plan-list li + li { margin-top: 6px; }
  .plan-list li::before { top: 1px; width: 18px; height: 18px; }
  .assurances { margin-top: 36px; gap: 16px; }
}

/* computer: a small drawing above the title (beside it broke „продавница“ at 1024 px), and the cards share
   one row grid (subgrid) so the prices, lists and buttons line up across the three cards */
@media (min-width: 960px) {
  .plans { grid-template-rows: repeat(6, auto); gap: 0 20px; }
  .plan {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 6;
    row-gap: 0;
    padding: 20px 20px 14px;
  }
  .plan > *, .plan .ill, .plan .plan-head { grid-column: 1; grid-row: auto; }
  .plan .ill { width: 140px; margin: 0 0 10px; }
  .plan-cta { align-self: end; }
}

/* tablet 720–959 (22 Nov 2026): keep its two-column layout, smaller drawings */
@media (min-width: 720px) and (max-width: 959px) {
  .plan:not(.plan-main) .ill { width: 150px; margin-bottom: 12px; }
  .plan-main .ill { max-width: 240px; }
}
