/* Продавашка. Палитра снята с логотипа: томатный фон, сливочный ценник, синие искры. */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  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: 400 800;
  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+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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Знак рубля есть только в latin-ext у Onest — у Unbounded его нет, поэтому ₽ в заголовках берётся из Onest */
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF;
}

:root {
  --tomato: #ff5a36;
  --tomato-deep: #f04a25;
  --butter: #ffe8a3;
  --butter-soft: #fff3cf;
  --ink: #1b2559;
  --ink-soft: #4a5280;
  --paper: #fffcf4;
  --line: #ebe1c4;
  --on-tomato: #1b2559;

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff1c9;
    --ink-soft: #c8c6dc;
    --paper: #141a3f;
    --butter-soft: #1e275c;
    --line: #2e3870;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
code { font-size: 0.92em; background: var(--butter-soft); padding: 1px 6px; border-radius: 6px; }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 68px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; max-width: 34em; }
.muted { color: var(--ink-soft); }

/* Шапка — томатная полоса, на главной продолжается в первый экран */
.site-header { background: var(--tomato); color: var(--on-tomato); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -0.02em; color: var(--on-tomato); text-decoration: none; }
.logo img { width: 44px; height: auto; display: block; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-weight: 500; }
.nav a { color: var(--on-tomato); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--on-tomato); }
.nav a[aria-current="page"] { border-bottom-color: var(--butter); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 16px;
  background: #1b2559; color: #ffe8a3;
  font: 600 17px/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { background: #26327a; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(27, 37, 89, 0.08); }

/* Первый экран */
.hero-zone { background: var(--tomato); color: var(--on-tomato); overflow: hidden; }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-block: 40px 88px; }
.hero h1 { margin-bottom: 22px; max-width: 11em; text-wrap: balance; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .note { font-size: 15px; margin-top: 18px; max-width: 30em; }

/* Демо: сообщение в MAX превращается в ценник-объявление */
.demo { position: relative; display: grid; gap: 22px; justify-items: start; padding: 8px 0 0; }
.bubble {
  background: #fff; color: #1b2559; border-radius: 22px 22px 22px 6px;
  padding: 10px 10px 14px; width: min(290px, 100%);
  box-shadow: 0 2px 0 rgba(27, 37, 89, 0.12);
  font-size: 16px;
}
.bubble .photo {
  aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 10px;
  background:
    radial-gradient(circle at 70% 30%, #ffe8a3 0 18%, transparent 19%),
    repeating-linear-gradient(-35deg, #f2ead2 0 14px, #e9dfc2 14px 28px);
  display: grid; place-items: center; font-size: 64px;
}
.bubble .text { padding: 0 6px; }
.bubble .time { display: block; padding: 2px 6px 0; font-size: 12px; color: #6b7299; text-align: right; }

.listing {
  --hole: 15px;
  position: relative; justify-self: end; width: min(400px, 100%);
  background: #ffe8a3; color: #1b2559;
  padding: 26px 26px 24px 64px;
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 34px 100%, 0 50%);
  border-radius: 6px;
  transform: rotate(-4deg);
  transform-origin: 20% 50%;
}
.listing::before {
  content: ""; position: absolute; left: 22px; top: 50%;
  width: calc(var(--hole) * 2); height: calc(var(--hole) * 2); margin-top: calc(var(--hole) * -1);
  border-radius: 50%; background: var(--tomato);
}
.listing .cat { font-size: 13px; color: #4a5280; margin-bottom: 6px; }
.listing h3 { font-size: 20px; margin-bottom: 6px; }
.listing .price { font: 700 30px/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.listing .desc { font-size: 14px; color: #4a5280; margin: 0 0 12px; }
.listing .status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.listing .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d6a; }

.sparkle { position: absolute; width: 30px; height: 30px; color: #1b2559; }
.sparkle svg { width: 100%; height: 100%; display: block; }
.sparkle.s1 { right: 14%; top: 36%; }
.sparkle.s2 { right: 6%; top: 29%; width: 16px; height: 16px; }

/* Единственная анимация на странице: ценник «выпадает» из сообщения при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .demo .listing { animation: tag-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) 0.35s both; }
  .demo .sparkle { animation: twinkle 0.9s ease-out 0.9s both; }
}
@keyframes tag-in {
  from { opacity: 0; transform: translate(-40px, -28px) rotate(-14deg) scale(0.92); }
  to { opacity: 1; transform: rotate(-4deg); }
}
@keyframes twinkle {
  0% { opacity: 0; transform: scale(0.2) rotate(-30deg); }
  60% { opacity: 1; transform: scale(1.2) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Секции */
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Шаги — настоящая последовательность, поэтому нумерация */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 22px; }
.steps li::before {
  content: counter(step); display: block;
  font: 800 64px/1 var(--display); color: var(--tomato); letter-spacing: -0.04em; margin-bottom: 18px;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Для кого: подойдёт / не подойдёт */
.fit { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: stretch; }
.fit > div { border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); }
.fit .yes { background: var(--butter); color: #1b2559; }
.fit .no { box-shadow: inset 0 0 0 2px var(--line); }
.fit h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 12px; }
.fit h3 .mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 700 18px/1 var(--text); flex: none; }
.fit .yes .mark { background: #1b2559; color: #ffe8a3; }
.fit .no .mark { background: var(--tomato); color: #1b2559; }
.fit p { margin: 0; }
.fit .no p { color: var(--ink-soft); }

/* Важно заранее — тёмная полоса во всю ширину */
.notice { margin-top: clamp(64px, 9vw, 112px); background: #1b2559; color: #fff3cf; }
.notice .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.notice h2 { color: #ffe8a3; margin: 0; font-size: clamp(24px, 3vw, 34px); }
.notice p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 36em; }
.notice a { color: #ffe8a3; }

/* Возможности — список с искрой из логотипа */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.features li { padding-left: 38px; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px;
  background: var(--tomato);
  -webkit-mask: url("/assets/sparkle.svg") center / contain no-repeat;
  mask: url("/assets/sparkle.svg") center / contain no-repeat;
}
.features p { color: var(--ink-soft); margin: 0; }

/* Вопросы */
.faq { max-width: 860px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 600 19px/1.35 var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--butter-soft);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 40em; }

/* Финальный призыв */
.cta {
  margin-top: clamp(64px, 9vw, 112px); background: var(--tomato); color: var(--on-tomato);
  border-radius: 32px; padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center;
}
.cta img { width: clamp(96px, 12vw, 150px); height: auto; display: block; }
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; font-size: 18px; }

/* Подвал */
.site-footer { margin-top: clamp(72px, 10vw, 120px); background: #1b2559; color: #d8d6e8; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; padding-top: 44px; padding-bottom: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-footer a { color: #fff3cf; text-decoration-color: rgba(255, 232, 163, 0.4); }
.site-footer a:hover { text-decoration-color: #ffe8a3; }

/* Тарифы */
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.page-head h1 { margin-bottom: 18px; }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin-top: 44px; }
.plan { border-radius: 28px; padding: 32px; display: grid; gap: 14px; align-content: start; box-shadow: inset 0 0 0 2px var(--line); }
.plan.featured { background: #ffe8a3; color: #1b2559; box-shadow: none; position: relative; }
.plan h3 { font-size: 22px; margin: 0; }
.plan .price { font: 700 clamp(40px, 5vw, 52px)/1 var(--display); letter-spacing: -0.03em; }
.plan .price small { font: 500 17px/1 var(--text); letter-spacing: 0; color: inherit; opacity: 0.75; }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 3px; border-radius: 2px; background: var(--tomato); }
.badge { justify-self: start; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: #1b2559; color: #ffe8a3; }

.callout { background: var(--butter-soft); border-radius: 20px; padding: 22px 26px; max-width: 860px; }
.callout p { margin: 0; }
.callout strong { display: block; font-family: var(--display); font-weight: 600; margin-bottom: 6px; }
.prose { max-width: 760px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

/* Юридические тексты */
.doc { max-width: 800px; padding-top: clamp(40px, 6vw, 72px); }
.doc h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc p, .doc li { line-height: 1.7; }
.doc .version { color: var(--ink-soft); font-size: 15px; }
.doc li { margin: 6px 0; }
.todo { background: var(--butter); color: #1b2559; padding: 0 4px; border-radius: 4px; }
.req { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; }
.req dt { color: var(--ink-soft); }
.req dd { margin: 0; }

/* Страницы возврата и 404 */
.center { min-height: 68vh; display: grid; place-items: center; text-align: center; padding-top: 48px; }
.center .card { max-width: 500px; padding: 44px 32px; border-radius: 32px; background: var(--butter-soft); }
.center .icon { width: 96px; height: auto; margin: 0 auto 18px; display: block; }
.center h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; text-wrap: balance; }
.center p { color: var(--ink-soft); }
.center .actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero, .fit, .notice .wrap { grid-template-columns: 1fr; }
  .hero { padding-block: 24px 64px; gap: 40px; }
  .steps, .features { grid-template-columns: 1fr; gap: 32px; }
  .cta { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header .wrap { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 18px; }
  .logo img { width: 36px; }
  .nav { gap: 4px 16px; font-size: 15px; }
  .btn { width: 100%; }
  .listing { padding-left: 56px; }
  .bubble .photo { aspect-ratio: 16 / 9; font-size: 48px; }
  .req { grid-template-columns: 1fr; gap: 2px; }
  .req dd { margin-bottom: 10px; }
}
