@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper:      #FBF9F5;
  --paper-2:    #F3EEE5;
  --ink:        #16120F;
  --ink-2:      #5F564D;
  --ink-3:      #8C8177;
  --line:       #E3DBCD;
  --amber:      #B45309;
  --amber-lit:  #E9A02B;
  --card:       #FFFFFF;
  --shadow:     0 1px 2px rgba(22,18,15,.05), 0 12px 28px -18px rgba(22,18,15,.35);
  --radius:     20px;
  --pad:        20px;
  --maxw:       1120px;
}

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

html { -webkit-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: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--pad); padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-stuck { border-bottom-color: var(--line); }

.wordmark {
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
.wordmark span { color: var(--amber); }
.wordmark b { font-weight: 500; color: var(--ink-3); }

.topbar__share {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500;
  padding: 7px 14px; cursor: pointer; min-height: 36px;
}
.topbar__share svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.topbar__share:hover { color: var(--ink); border-color: var(--ink-3); }

/* ---------- layout ---------- */

main { display: block; }
.hero > *, .cards > *, .reviews > *, .strip > * { min-width: 0; }

.hero, .section, .footer { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: 34px; }
.section + .section { padding-top: 4px; }

.section__title { font-size: clamp(28px, 7.5vw, 38px); }
.section__note { color: var(--ink-2); margin-top: 8px; max-width: 42ch; font-size: 15.5px; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 30px;
  grid-template-areas: "title" "photo" "lead" "stats" "cta";
}

.hero__title {
  grid-area: title;
  font-size: clamp(32px, 10.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero__ing { color: var(--amber); }
.hero__with {
  display: block; margin-top: .12em;
  font-size: .46em; font-weight: 400; color: var(--ink-2);
  letter-spacing: -0.025em;
}

.hero__lead { grid-area: lead; color: var(--ink-2); font-size: 17.5px; max-width: 46ch; }

.hero__photo { grid-area: photo; margin: 0; position: relative; }
.hero__photo img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--paper-2);
}
.hero__photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(18,16,14,.72); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 500;
  padding: 6px 11px; border-radius: 999px;
}

.stats {
  grid-area: stats;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px 8px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 13px;
}
.stats li { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-size: clamp(19px, 5.2vw, 24px); font-weight: 700; letter-spacing: -0.03em; }
.stats span { font-size: 11.5px; color: var(--ink-3); line-height: 1.25; }

.hero__cta { grid-area: cta; display: grid; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border-radius: 14px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #2A2420; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--paper-2); }
/* ---------- quote ---------- */

.section--quote { padding-top: 4px; padding-bottom: 24px; }
.quote {
  margin: 0; padding: 20px 18px;
  background: var(--paper-2); border-radius: var(--radius);
  position: relative;
}
.quote p {
  font-size: clamp(18px, 4.6vw, 22px); line-height: 1.4; letter-spacing: -0.02em;
  text-wrap: pretty;
}
.quote footer { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- cards ---------- */

.cards { display: grid; gap: 14px; margin-top: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}

.card__media { position: relative; background: var(--paper-2); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.card__index {
  position: absolute; top: 12px; left: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: rgba(18,16,14,.62); backdrop-filter: blur(6px);
  padding: 5px 9px; border-radius: 8px;
}
.card__badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; font-weight: 600;
  color: #16120F; background: var(--amber-lit);
  padding: 5px 10px; border-radius: 999px;
}

.card__body { padding: 19px 17px 17px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card__hook {
  font-size: clamp(23px, 6vw, 26px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.14;
  text-wrap: balance;
}
.card__hook span {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 7px;
}

.card__name { font-size: 14.5px; font-weight: 500; color: var(--ink-3); margin-top: -6px; }
.card__text { font-size: 15.5px; color: var(--ink-2); line-height: 1.48; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}

.card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto;
}
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.rating .star { fill: var(--amber-lit); flex: none; }
.rating--new { color: var(--ink-2); font-weight: 600; }
.muted { color: var(--ink-3); font-weight: 400; }
.price { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.price .muted { font-size: 13px; font-weight: 500; }

.card__btn { width: 100%; }

/* ---------- photo strip ---------- */

.section--strip { padding-block: 24px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44vw;
  gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  padding-bottom: 4px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--paper-2); }

/* ---------- reviews ---------- */

.reviews { display: grid; gap: 12px; margin-top: 18px; }
.review {
  margin: 0; padding: 17px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.review p { font-size: 16.5px; line-height: 1.45; letter-spacing: -0.015em; text-wrap: pretty; }
.review footer {
  margin-top: 11px; display: flex; align-items: baseline; gap: 10px;
  font-size: 13.5px; font-weight: 600;
}
.review footer span { font-weight: 400; color: var(--ink-3); }

.link-more {
  display: inline-block; margin-top: 16px;
  font-size: 15px; font-weight: 600; color: var(--amber);
  text-decoration: none; text-underline-offset: 4px;
}
.link-more:hover { text-decoration: underline; }

/* ---------- facts ---------- */

.facts { margin-top: 18px; border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.facts dd { font-size: 15.5px; color: var(--ink); }

/* ---------- footer ---------- */

.footer {
  padding-top: 34px;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
  text-align: left;
}
.footer__title { font-size: clamp(30px, 8.5vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.footer__lead { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 44ch; }
.footer__actions { display: grid; gap: 10px; margin-top: 18px; }
.footer__mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.minibtn {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 500;
  padding: 9px 16px; cursor: pointer; min-height: 40px;
}
.minibtn:hover { color: var(--ink); border-color: var(--ink-3); }
.footer__note { margin-top: 20px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); max-width: 52ch; }
.footer__mark { margin-top: 18px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.footer__mark a { text-decoration: none; }
.footer__mark span { color: var(--amber); }

/* ---------- sticky cta ---------- */

.sticky {
  position: fixed; z-index: 45;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 10px 10px 18px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px -12px rgba(22,18,15,.45);
  transform: translateY(140%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.sticky[hidden] { display: none; }
.sticky.is-visible { transform: none; }
.sticky__info { display: flex; flex-direction: column; line-height: 1.25; }
.sticky__info b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.sticky__info span { font-size: 12.5px; color: var(--ink-3); }
.sticky .btn { min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky { transition: none; }
}

/* ---------- wider screens ---------- */

@media (min-width: 600px) {
  :root { --pad: 32px; }
  .hero__cta, .footer__actions { grid-auto-flow: column; justify-content: start; }
  .hero__cta .btn, .footer__actions .btn { padding-inline: 30px; }
  .card__btn { width: auto; align-self: start; padding-inline: 30px; }
  .strip { grid-auto-columns: 220px; }
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .facts { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}

@media (min-width: 880px) {
  body { font-size: 18px; }
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .75fr);
    grid-template-areas:
      "title  photo"
      "lead   photo"
      "stats  photo"
      "cta    photo";
    align-content: start;
    column-gap: 56px;
    row-gap: 20px;
    padding-top: 34px;
    padding-bottom: 44px;
  }
  .stats { grid-template-columns: repeat(4, max-content); gap: 4px 52px; }
  .hero__cta { align-self: start; }
  .hero__photo { align-self: start; }
  .hero__photo img { aspect-ratio: 4 / 5; }
  .stats { margin-top: 6px; }
  .section { padding-block: 48px; }
  .sticky { display: none; }
  .footer { padding-bottom: 56px; }
}

@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card__hook { font-size: 24px; }
}
