@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-latin.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("assets/fonts/onest-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f7f4ee;
  --tint: #efe9df;
  --card: #fffdf9;
  --ink: #1c1b18;
  --muted: #5d5850;
  --line: #e2dbcf;
  --accent: #ffd43b;
  --accent-deep: #f5c400;

  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Onest", "Helvetica Neue", Arial, sans-serif;

  --sp: clamp(4rem, 9vw, 7.5rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --r-lg: 28px;
  --r-md: 16px;
  --r-pill: 999px;
  --shadow: 0 24px 48px -28px rgb(90 66 10 / .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, .3vw + .95rem, 1.125rem)/1.6 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: var(--r-md); z-index: 20; }
.skip:focus { top: 1rem; }

/* Типографика */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(2rem, 3vw + 1.1rem, 3.75rem); line-height: 1.05; letter-spacing: -.035em; }
.h2 { font-size: clamp(1.8rem, 3vw + .9rem, 3.2rem); line-height: 1.05; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.1rem, .6vw + 1rem, 1.4rem); line-height: 1.2; letter-spacing: -.015em; }
.eyebrow { margin: 0 0 .8rem; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(1.05rem, .5vw + 1rem, 1.3rem); color: var(--muted); max-width: 34em; margin: 1.4rem 0 0; }

/* Фирменный эффект: маркер прорисовывается под словом */
.marker {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%) no-repeat 0 0 / 0% 100%;
  padding-inline: .08em;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1) .15s;
}
.marker.is-on, .no-js .marker { background-size: 100% 100%; }

/* Кнопки и ссылки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .8rem 1.6rem;
  border-radius: var(--r-pill); border: 2px solid var(--ink);
  font: 600 1rem/1.2 var(--text); text-decoration: none; text-align: center;
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); box-shadow: 0 4px 0 var(--ink); }
.btn--accent:hover { box-shadow: 0 6px 0 var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--card); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.link { display: inline-block; margin-top: 1.2rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-deep); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--ink); }
.hint { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgb(247 244 238 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.header__row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.logo { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo__dot { display: inline-block; width: .5em; height: .5em; margin-left: .2em; border-radius: 50%; background: var(--accent-deep); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header .btn { margin-left: auto; }
.nav + .btn { margin-left: 0; }

/* Первый экран */
.hero {
  display: grid; align-items: center; gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}
.pill { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.5rem; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); font-size: .9rem; font-weight: 500; }
.pill__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2f9e44; }

.browser { display: block; margin: 0; overflow: hidden; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; }
.browser__bar { display: flex; align-items: center; gap: .35rem; height: 2rem; padding-inline: .8rem; border-bottom: 1px solid var(--line); background: var(--card); }
.browser__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.browser__bar span { margin-left: .6rem; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.phone { margin: 0; padding: 7px; border-radius: 34px; background: var(--ink); box-shadow: var(--shadow); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }

.collage { position: relative; aspect-ratio: 1 / .86; max-width: 620px; width: 100%; justify-self: center; }
.collage__back { position: absolute; width: 74%; right: 0; top: 0; rotate: 3deg; }
.collage__front { position: absolute; width: 78%; left: 4%; top: 22%; rotate: -2deg; }
.collage__phone { position: absolute; width: 27%; right: 3%; bottom: 0; rotate: 4deg; }
.sticker {
  position: absolute; left: 0; top: 2%; margin: 0;
  display: grid; place-content: center; text-align: center;
  width: clamp(92px, 17vw, 124px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--ink); rotate: -10deg;
  font-size: clamp(.72rem, .4vw + .6rem, .85rem); font-weight: 600; line-height: 1.15;
}
.sticker b { display: block; margin-top: .15em; font-family: var(--display); font-size: 1.2em; line-height: 1.1; letter-spacing: -.03em; }

/* Цифры */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  border-block: 1px solid var(--line);
}
.facts p { margin: 0; padding: 1.4rem 1.2rem 1.4rem 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.facts b { display: block; margin-bottom: .2rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem); color: var(--ink); letter-spacing: -.03em; }

/* Секции */
.section { padding-block: var(--sp); }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }
.section__sub { margin: 1rem 0 0; color: var(--muted); }

/* Кейсы */
.case {
  display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}
.case__media { transition: transform .3s; }
.case__media:hover { transform: translateY(-4px) rotate(-.5deg); }
.case--flip .case__media { order: 2; }
.case__lead { color: var(--muted); margin: .8rem 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li { padding: .25rem .75rem; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; }
.checks { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231c1b18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

.apps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); }
.app {
  display: grid; gap: 1.5rem; align-items: start;
  grid-template-columns: minmax(130px, 38%) 1fr;
  padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
}
.app__phone { rotate: -2deg; }
.app__body p { margin: .8rem 0 0; color: var(--muted); }
.app__metric { color: var(--ink) !important; }
.app__metric b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; }

/* Цены */
.prices { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.price {
  display: grid; align-items: center; gap: .4rem 2rem;
  grid-template-columns: 1fr auto auto;
  padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
}
.price--best { border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.price__main p { margin: .4rem 0 0; color: var(--muted); max-width: 40em; }
.price__time { margin: 0; color: var(--muted); white-space: nowrap; }
.price__sum { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); letter-spacing: -.03em; white-space: nowrap; }
.badge { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .2rem .65rem; border-radius: var(--r-pill); background: var(--accent); font: 600 .78rem/1.3 var(--text); letter-spacing: 0; }
.prices__extra { margin: 1.5rem 0 0; color: var(--muted); }
.prices__extra b { color: var(--ink); }

/* Шаги */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.steps li { counter-increment: step; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: .8rem; font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.steps p { margin: .6rem 0 0; color: var(--muted); }

/* Почему я */
.whys { margin: 0; display: grid; gap: 0 var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.whys div { padding-block: 1.3rem; border-top: 1px solid var(--line); }
.whys dt { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); letter-spacing: -.015em; }
.whys dd { margin: .4rem 0 0; color: var(--muted); }

/* Вопросы */
.faq { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.faq__list { display: grid; gap: .6rem; }
details { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; line-height: 1; transition: rotate .25s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* Финальный призыв */
.cta {
  margin-block: var(--sp) 0; padding: clamp(2.2rem, 6vw, 4.5rem);
  border-radius: var(--r-lg); background: var(--accent); border: 2px solid var(--ink);
}
.cta .h2 { max-width: 18em; }
.cta p { margin: 1rem 0 0; font-size: 1.1rem; }
.cta .btn--ghost:hover { background: rgb(255 255 255 / .45); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 2rem 2.5rem; color: var(--muted); font-size: .95rem; }
.footer p { margin: 0; }

/* Медиазапрос 1: на узких экранах навигация не помещается — оставляем только кнопку */
@media (max-width: 760px) {
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .case--flip .case__media { order: 0; }
  .price { grid-template-columns: 1fr auto; }
  .price__main { grid-column: 1 / -1; }
  .wide-only { display: none; }
  .app { grid-template-columns: 1fr; }
  .app__phone { width: min(190px, 60%); }
}

/* Медиазапрос 2: без анимаций для тех, кто их отключил */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .marker { background-size: 100% 100%; }
}
