/* ==========================================================================
   PEGO Agency — design system v2 «Бумага и краска»
   Editorial studio look: paper stock, ink blocks, one acid accent, no gradients.
   Hand-written CSS (Tailwind CDN removed — it was render-blocking).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:      #F3F0E9;
  --paper-2:    #EBE7DC;
  --paper-3:    #E1DCCE;
  --ink:        #131210;
  --ink-2:      #201E19;
  --ink-soft:   #56524A;
  --ink-mute:   #837D70;
  --lime:       #CCFF33;
  --verm:       #FF4D1C;   /* decorative fills only — 2.9:1 on paper */
  --verm-ink:   #BF360C;   /* text-safe accent — 4.9:1 on paper */

  --rule:        rgba(19, 18, 16, .13);
  --rule-strong: rgba(19, 18, 16, .30);
  --rule-inv:    rgba(243, 240, 233, .16);

  --maxw: 1280px;
  --gut:  clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --f-text:    "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

/* paper grain — the tactile, non-machine texture */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .95;
  text-wrap: balance;
}
.mono {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.h-sec  { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.h-sub  { color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; }
.lead   { font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: var(--ink-soft); }

/* highlighter swipe — replaces the AI-default gradient text */
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.06em; top: .16em; bottom: .11em;
  background: var(--lime);
  transform: scaleX(0); transform-origin: 0 50%;
  rotate: -.7deg;
}
.mark > span { position: relative; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sec  { padding-block: clamp(72px, 10vw, 148px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(38px, 5vw, 68px); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.label {
  display: flex; align-items: baseline; gap: 14px;
  color: var(--ink-mute); padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.label b { color: var(--ink); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-text); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: 2px; border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-ink   { background: var(--ink); color: var(--paper); }
.btn-ink:hover   { background: var(--verm); color: var(--ink); }
.btn-lime  { background: var(--lime); color: var(--ink); }
.btn-lime:hover  { background: var(--ink); color: var(--lime); }
.btn-line  { border-color: var(--rule-strong); color: var(--ink); }
.btn-line:hover  { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--verm); color: var(--ink); }
.btn-lg { padding: 19px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
  transition: transform .45s var(--ease);
}
.hdr.up { transform: translateY(-100%); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 15px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.04em; }
.brand svg { width: 32px; height: 32px; }
.nav { display: none; gap: 30px; }
.nav a { font-size: 14.5px; color: var(--ink-soft); position: relative; padding-block: 4px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.hdr-cta { display: flex; align-items: center; gap: 10px; }

/* scroll progress — native scroll-driven animation, no JS */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--verm); transform: scaleX(0); transform-origin: 0 50%; display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: progress linear both; animation-timeline: scroll(root block); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* flex + explicit gap makes the bar spacing exactly 6.5px, which the X transform relies on */
.burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: 2px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mnav { position: fixed; inset: var(--hdr-h, 72px) 0 0; z-index: 55; background: var(--paper); padding: 8px var(--gut) 40px; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.mnav[hidden] { display: none; }
.mnav a { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: -.04em; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.mnav .btn { margin-top: 28px; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(120px, 16vw, 190px); padding-bottom: clamp(48px, 6vw, 86px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 60px); align-items: end; }
.hero-h1 { font-size: clamp(2.35rem, 6.1vw, 4.9rem); line-height: .96; }
.hero-h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h1 .line > span { display: block; }
.hero-lead { margin-top: 30px; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* editorial spec sheet — replaces the generic 4-stat banner */
.spec { border-top: 1px solid var(--rule-strong); }
.spec > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: baseline; padding-block: 15px; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--ink-mute); }
.spec dd { font-weight: 500; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--verm); margin-right: 8px; vertical-align: middle; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- marquee ---------- */
.marq { background: var(--ink); color: var(--paper); padding-block: 20px; overflow: hidden; display: grid; gap: 6px; }
.marq-row { display: flex; width: max-content; }
.marq-row > span { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2.8vw, 2rem); letter-spacing: -.03em; padding-inline: 20px; display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marq-row > span::after { content: "◆"; color: var(--verm); font-size: .42em; }
.marq-a { animation: marq-l 34s linear infinite; }
.marq-b { animation: marq-r 44s linear infinite; color: var(--ink-mute); }
.marq:hover .marq-row { animation-play-state: paused; }
@keyframes marq-l { to { transform: translateX(-50%); } }
@keyframes marq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- services: ruled editorial rows, not a card grid ---------- */
.srows { border-top: 1px solid var(--rule-strong); }
.srow {
  position: relative; isolation: isolate; display: block;
  border-bottom: 1px solid var(--rule);
  padding: clamp(22px, 3vw, 34px) clamp(0px, 2vw, 26px);
}
.srow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
.srow-in { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.srow-no { color: var(--ink-mute); transition: color .35s; }
.srow h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1.05; }
.srow p { color: var(--ink-soft); margin-top: 10px; max-width: 56ch; transition: color .35s; }
.srow-price { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; transition: color .35s;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.srow-arrow { transition: transform .5s var(--ease), color .35s; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tags span { font-size: 12.5px; color: var(--ink-soft); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 4px 10px; transition: color .35s, border-color .35s; }

@media (hover: hover) {
  .srow:hover::before { transform: scaleY(1); transform-origin: 50% 0%; }
  .srow:hover h3, .srow:hover .srow-price { color: var(--paper); }
  .srow:hover p, .srow:hover .srow-no { color: color-mix(in srgb, var(--paper) 66%, transparent); }
  .srow:hover .tags span { color: var(--paper); border-color: var(--rule-inv); }
  .srow:hover .srow-arrow { transform: translate(6px, -6px); color: var(--lime); }
}

/* group headings inside the services list */
.grp { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: clamp(52px, 6vw, 80px) 0 8px; }
.grp:first-of-type { margin-top: 0; }
.grp .mono { color: var(--ink); font-size: 12px; }
.grp em { font-style: normal; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 3px 8px; }
.grp-note { color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; margin-bottom: 20px; }

/* separator row inside the rate table */
.r-sep td { padding: 40px 18px 10px; border-bottom: 1px solid var(--rule-strong); }
.r-sep .mono { color: var(--ink-mute); }

/* ---------- works ---------- */
.works { display: grid; gap: clamp(30px, 4vw, 56px); }
.work { display: block; }
.work-media { position: relative; overflow: hidden; background: var(--paper-3); aspect-ratio: 16 / 10; border: 1px solid var(--rule); }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; scale: 1.1; transition: scale .8s var(--ease); }
.work:hover .work-media img { scale: 1.02; }
.work-meta { display: grid; justify-items: start; gap: 7px; margin-top: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.work-meta .mono { color: var(--ink-mute); }
.work h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.work p { color: var(--ink-soft); margin-top: 12px; font-size: 15.5px; max-width: 48ch; }
.work-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-weight: 600; font-size: 14.5px; }
.work-go svg { transition: transform .45s var(--ease); }
.work:hover .work-go svg { transform: translate(4px, -4px); }
.work-go::after { content: ""; }

/* native scroll-linked parallax; `translate` is independent of `scale` so hover still works */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .work-media img { animation: par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes par { from { translate: 0 -3%; } to { translate: 0 3%; } }

/* ---------- rate table — how a real studio publishes prices ---------- */
.rate { width: 100%; border-collapse: collapse; text-align: left; }
.rate th, .rate td { padding: 20px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rate thead th { color: var(--ink-mute); font-weight: 500; border-bottom: 1px solid var(--rule-strong); padding-block: 12px; }
.rate tbody tr { transition: background .35s var(--ease); }
.rate tbody tr:hover { background: var(--paper-2); }
.rate .r-name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: 1.12rem; }
.rate .r-note { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; display: block; }
.rate .r-term { color: var(--ink-soft); white-space: nowrap; font-size: 15px; }
.rate .r-price { font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; white-space: nowrap; letter-spacing: -.03em; }
.rate .r-price small { display: block; font-family: var(--f-text); font-weight: 400; font-size: 12.5px; color: var(--ink-mute); letter-spacing: 0; margin-bottom: 2px; }
.rate .r-hit { background: var(--ink); color: var(--paper); }
.rate .r-hit:hover { background: var(--ink-2); }
.rate .r-hit .r-note, .rate .r-hit .r-term { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.rate .r-hit .r-price small { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.rate .r-hit td { border-bottom-color: var(--rule-inv); }
.hit-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; background: var(--lime); color: var(--ink); padding: 3px 7px; margin-left: 10px; vertical-align: middle; }
.r-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.r-go:hover { color: var(--verm-ink); }
.r-hit .r-go:hover { color: var(--lime); }

.support { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 26px 0 0; margin-top: 8px; border-top: 1px solid var(--rule-strong); }
.support .s-t { flex: 1 1 260px; }

/* ---------- process ---------- */
.steps { border-top: 1px solid var(--rule-strong); counter-reset: s; }
.step { display: grid; grid-template-columns: 1fr; gap: 10px; padding-block: clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--rule); }
.step-no { color: var(--verm-ink); }
.step h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(1.3rem, 3vw, 2rem); }
.step p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- ink band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band .h-sec { color: var(--paper); }
.band p { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.band-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule-inv); border: 1px solid var(--rule-inv); }
.fig { background: var(--ink); padding: clamp(20px, 3vw, 30px); }
.fig b { display: block; font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1; color: var(--lime); }
.fig span { display: block; margin-top: 10px; font-size: 14px; color: color-mix(in srgb, var(--paper) 62%, transparent); }

/* ---------- faq ---------- */
.qa { border-top: 1px solid var(--rule-strong); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  list-style: none; cursor: pointer; padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem); transition: color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--verm-ink); }
.qa .ic { position: relative; flex: none; width: 16px; height: 16px; }
.qa .ic::before, .qa .ic::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.qa .ic::after { rotate: 90deg; }
.qa details[open] .ic::after { transform: scaleX(0); }
.qa .ans { overflow: hidden; }
.qa .ans > div { padding-bottom: 26px; color: var(--ink-soft); max-width: 68ch; }
.qa .ans a { border-bottom: 1.5px solid var(--verm-ink); }

/* ---------- final cta ---------- */
.cta { background: var(--lime); color: var(--ink); text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 7vw, 5.4rem); }
.cta p { color: color-mix(in srgb, var(--ink) 68%, transparent); max-width: 44ch; margin: 22px auto 0; font-size: 1.1rem; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 84px) 30px; }
.ftr a { color: color-mix(in srgb, var(--paper) 70%, transparent); transition: color .25s; }
.ftr a:hover { color: var(--lime); }
.ftr-grid { display: grid; gap: 40px; }
.ftr h4 { color: color-mix(in srgb, var(--paper) 45%, transparent); margin-bottom: 16px; }
.ftr-col { display: grid; gap: 10px; font-size: 15px; align-content: start; }
.ftr-note { color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.ftr-btm { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--rule-inv); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 13.5px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.ftr-btm a, .ftr-btm button { color: inherit; }
.ftr-btm .l { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; left: var(--gut); right: var(--gut); bottom: 20px; z-index: 90;
  max-width: 460px;
  background: var(--ink); color: var(--paper); padding: 26px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
}
.cookie[hidden] { display: none; }
.cookie p { font-size: 14.5px; color: color-mix(in srgb, var(--paper) 74%, transparent); }
.cookie a { border-bottom: 1.5px solid var(--lime); }
.cookie .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie .btn { padding: 12px 20px; font-size: 14px; }
.cookie .btn-line { border-color: var(--rule-inv); color: var(--paper); }
.cookie .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- a11y ---------- */
:focus-visible { outline: 2.5px solid var(--verm-ink); outline-offset: 3px; }
.band :focus-visible, .ftr :focus-visible, .cookie :focus-visible { outline-color: var(--lime); }
.cookie:focus, .cookie:focus-visible { outline: none; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 20px; }
.skip:focus { left: 12px; top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- reveal (progressive enhancement — content visible without JS) ---------- */
.js .rise { opacity: 0; translate: 0 22px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; translate: 0 0; }

/* on-load hero choreography, JS-gated so a failed load never hides copy */
.js .hero-h1 .line > span { translate: 0 105%; }
.js .hero-h1.go .line > span { translate: 0 0; transition: translate 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .mark::before { transition: transform .8s var(--ease) .75s; }
.js .hero-h1.go .mark::before { transform: scaleX(1); }
:where(html:not(.js)) .mark::before { transform: scaleX(1); }

/* ---------- breakpoints ---------- */
@media (min-width: 700px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 5rem 1fr; gap: 0 28px; align-items: baseline; }
  .step-no { padding-top: .2em; }
  .srow-in { grid-template-columns: 3.2rem 1fr auto; gap: 18px 22px; }
  .srow-no { padding-top: .45em; }
  .srow-price { display: block; }
  .figs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .burger { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr); }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .works { gap: clamp(30px, 3.4vw, 56px) clamp(24px, 3vw, 44px); }
  .work--wide { grid-column: span 2; }
  .work--wide .work-media { aspect-ratio: 16 / 9; }
}
@media (min-width: 1100px) {
  .sec-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 44px; }
}

/* small screens: keep the header from crowding out the wordmark */
@media (max-width: 520px) {
  .hdr-in { padding-block: 12px; }
  .hdr-cta .btn { padding: 12px 16px; font-size: 14px; }
  .brand { font-size: 17px; }
  .brand svg { width: 28px; height: 28px; }
  .spec > div { grid-template-columns: 6.5rem 1fr; gap: 12px; }
}

/* rate table → stacked cards on small screens */
@media (max-width: 800px) {
  .rate, .rate tbody, .rate tr, .rate td { display: block; width: 100%; }
  .rate thead { display: none; }
  .rate tbody tr { border-bottom: 1px solid var(--rule-strong); padding-block: 8px; }
  .rate td { border-bottom: 0; padding: 6px 14px; }
  .rate td:first-child { padding-top: 20px; }
  .rate td:last-child { padding-bottom: 22px; }
  .rate .r-term::before { content: "Срок: "; color: var(--ink-mute); }
  .rate .r-sep td { padding: 34px 14px 8px; border-bottom: 1px solid var(--rule-strong); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .rise { opacity: 1; translate: none; }
  .js .hero-h1 .line > span { translate: none; }
  .mark::before { transform: scaleX(1); }
  .marq-row { animation: none; }
}
