/* Отвычка: сайт. Цвета и шрифты те же, что в приложении (app/src/constants/theme.ts). */

@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(/static/fonts/Unbounded-Bold.woff2?v=e0812e89) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(/static/fonts/Unbounded-Medium.woff2?v=9fc05878) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(/static/fonts/Onest-Regular.woff2?v=9cfa1881) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(/static/fonts/Onest-Medium.woff2?v=ffcc94ac) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(/static/fonts/Onest-SemiBold.woff2?v=bfc45a77) format("woff2"); }

:root {
  --ink: #2C494C;
  --slate: #557172;
  --paper: #F4FAF6;
  --white: #FFFFFF;
  --mint-1: #DCEFE4;
  --mint-2: #BFE9D1;
  --mint-3: #A1D6BD;
  --peach: #FCB38C;
  --peach-soft: #FDE3D3;
  --line: #DDEBE2;
  --shade: 0 6px 18px rgba(44, 73, 76, .07);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--mint-3); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--peach); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.05em; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.045em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.035em; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--slate); max-width: 34em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--white); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* Кнопки: персиковая пилюля из приложения. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 17px/1 var(--text); text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--peach { background: var(--peach); box-shadow: 0 10px 24px rgba(252, 179, 140, .45); }
.btn--peach:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(252, 179, 140, .55); }
.btn--peach:active { transform: none; opacity: .8; }
.btn--mint { background: var(--mint-2); }
.btn--mint:hover { background: var(--mint-3); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px var(--mint-3); }
.btn--ghost:hover { background: var(--mint-1); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }
@media (max-width: 400px) { .btn--small { padding: 0 14px; font-size: 14px; } .top__row { gap: 12px; } }
.btn--small:hover { box-shadow: 0 8px 18px rgba(252, 179, 140, .45); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 250, 246, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -.05em; }
.logo img { width: 48px; height: 40px; }
.top__nav { display: none; gap: 28px; margin-left: auto; font-weight: 500; }
.top__nav a { text-decoration: none; padding: 6px 0; }
.top__nav a:hover, .top__nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--mint-3); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top .btn { margin-left: auto; }
.top__nav + .btn { margin-left: 0; }
@media (min-width: 900px) { .top__nav { display: flex; } }
@media (max-width: 380px) { .logo span { display: none; } }

/* Первый экран */
.hero { padding: 28px 0 72px; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__text { display: grid; gap: 22px; justify-items: start; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px 0 16px;
  border-radius: 999px; border: 1.5px dashed var(--mint-3); color: var(--slate);
  font: 600 15px/1.1 var(--text); cursor: default;
}
.store small { display: block; font-size: 12px; font-weight: 500; }
.hero__note { font-size: 15px; color: var(--slate); }

.hero__shot { position: relative; justify-self: center; width: min(100%, 380px); padding: 0 0 0 0; }
.hero__shot::before {
  content: ""; position: absolute; z-index: -1; inset: 14% -6% 0 -6%;
  border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--mint-1), var(--mint-2) 70%);
}
.hero__sticker { position: absolute; width: 120px; height: 120px; right: -26px; top: -40px; transform: rotate(9deg); z-index: 2; filter: drop-shadow(0 8px 14px rgba(44, 73, 76, .16)); }

.phone {
  display: grid; gap: 12px; padding: 14px 14px 18px; border-radius: 40px; background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 30px 60px rgba(44, 73, 76, .16), 0 0 0 8px rgba(255, 255, 255, .55);
}
.phone__streak { position: relative; height: 290px; border-radius: 28px; overflow: hidden; background: var(--ink); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 16px; }
.phone__streak > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__streak::after { content: ""; position: absolute; inset: 0; background: rgba(29, 51, 53, .28); }
.phone__pill, .phone__count { position: relative; z-index: 1; }
.phone__pill { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.2; }
.phone__count { display: grid; }
.phone__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; opacity: .85; }
.phone__days { font: 600 20px/1 var(--text); }
.phone__days b { font: 700 84px/1 var(--display); letter-spacing: -.06em; margin-right: 6px; }
.phone__clock { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; opacity: .92; margin-top: 4px; }
.phone__level { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 24px; background: var(--white); box-shadow: var(--shade); }
.phone__level img { width: 52px; height: 52px; border-radius: 14px; }
.phone__level b { display: block; font: 700 17px/1.2 var(--display); letter-spacing: -.04em; }
.phone__level small { font-size: 13px; color: var(--slate); }
.phone__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phone__btn { display: grid; place-items: center; height: 52px; border-radius: 999px; background: var(--mint-2); font-weight: 600; }
.phone__btn--peach { background: var(--peach); box-shadow: 0 10px 24px rgba(252, 179, 140, .45); }
.phone__link { justify-self: center; font-weight: 600; font-size: 15px; color: var(--slate); }

@media (min-width: 900px) {
  .hero { padding: 56px 0 120px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; }
  .hero__sticker { width: 150px; height: 150px; right: -60px; top: -48px; }
  .hero__shot::before { inset: 8% -18% -6% -14%; }
}

/* Как устроено */
.how { padding: 72px 0 40px; background: var(--white); border-radius: 48px 48px 0 0; }
.how h2 { max-width: 14em; margin-bottom: 40px; }
.feature { display: grid; gap: 28px; padding: 36px 0; border-top: 1px solid var(--line); }
.feature__text { display: grid; gap: 14px; align-content: start; max-width: 32em; }
.feature__text p { color: var(--slate); }
.feature__ui { border-radius: 32px; background: var(--paper); padding: 22px; min-height: 230px; }
@media (min-width: 900px) {
  .how { padding: 110px 0 60px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 56px 0; }
  .feature--flip .feature__text { order: 2; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 6px 0 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--mint-1); font-size: 15px; font-weight: 500; }
.chips .chip--habit { background: var(--peach-soft); }

.ui-counters { display: grid; gap: 10px; align-content: center; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 22px; background: var(--white); box-shadow: var(--shade); }
.row__name { font-weight: 600; }
.row__value { color: var(--slate); font-size: 15px; }
.row__value b { font: 700 24px/1 var(--display); letter-spacing: -.05em; color: var(--ink); margin-right: 2px; }
.row--habit { flex-wrap: wrap; }
.week { display: flex; gap: 5px; }
.week i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: normal 500 11px/1 var(--text); background: var(--paper); color: var(--slate); }
.week .on { background: var(--mint-2); color: var(--ink); }
.week .today { box-shadow: inset 0 0 0 2px var(--peach); color: var(--ink); }

/* Дыхание 4-4-4-4: единственная анимация на сайте. */
.ui-breath { display: grid; place-items: center; gap: 14px; background: var(--mint-1); }
.breath { position: relative; display: grid; place-items: center; width: 200px; height: 200px; }
.breath__ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 38% 32%, var(--white), var(--mint-2) 60%, var(--mint-3)); transform: scale(.62); animation: breathe 16s ease-in-out infinite; }
.breath__words { position: relative; display: grid; font: 700 20px/1 var(--display); letter-spacing: -.04em; }
.breath__words span { grid-area: 1 / 1; text-align: center; opacity: 0; animation: word 16s infinite; }
.breath__words span:nth-child(2) { animation-delay: 4s; }
.breath__words span:nth-child(3) { animation-delay: 8s; }
.breath__words span:nth-child(4) { animation-delay: 12s; }
.ui-breath__why { font-style: italic; color: var(--slate); }
@keyframes breathe { 0% { transform: scale(.62); } 25%, 50% { transform: scale(1); } 75%, 100% { transform: scale(.62); } }
@keyframes word { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath__ring { animation: none; transform: scale(.85); }
  .breath__words span { animation: none; }
  .breath__words span:first-child { opacity: 1; }
  .btn { transition: none; }
}

.ui-relapse { display: grid; align-content: center; justify-items: start; gap: 6px; background: var(--peach-soft); }
.ui-relapse__title { font: 700 26px/1.1 var(--display); letter-spacing: -.05em; }
.ui-relapse__sub { color: var(--slate); }
.ui-relapse__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.ui-relapse__tags span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 15px; font-weight: 500; }
.ui-relapse__tags .on { background: var(--white); box-shadow: inset 0 0 0 2px var(--peach); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 15px; }
.badge::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--peach) radial-gradient(circle at 50% 50%, var(--white) 0 4px, transparent 5px); }

.ui-chat { display: grid; gap: 10px; align-content: center; }
.ui-chat__room { font: 700 15px/1 var(--display); letter-spacing: -.03em; margin-bottom: 4px; }
.msg { position: relative; justify-self: start; max-width: 86%; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--white); box-shadow: var(--shade); font-size: 15px; line-height: 1.4; }
.msg__nick { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 2px; }
.msg--me { justify-self: end; border-radius: 20px 20px 6px 20px; background: var(--mint-2); box-shadow: none; }
.msg__hold { display: table; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; background: var(--peach-soft); font-size: 13px; font-weight: 600; }

/* Ранги: пузыри стоят на ступеньках, которые растут вместе со стажем. */
.ranks { padding: 72px 0 80px; background: var(--white); }
.ranks__head { display: grid; gap: 16px; margin-bottom: 36px; }
.stairs {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 10px; align-items: end;
  margin: 0; padding: 12px var(--gutter) 6px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: thin;
}
.stairs li { display: grid; justify-items: center; text-align: center; scroll-snap-align: start; }
.stairs img { width: 132px; height: 132px; border-radius: 30px; }
.stairs b { margin-top: 8px; font: 700 16px/1.2 var(--display); letter-spacing: -.04em; }
.stairs__days { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--slate); }
.stairs p { margin: 6px 0 12px; min-height: 4.2em; font-size: 14px; line-height: 1.4; color: var(--slate); }
.stairs i { display: block; width: 100%; border-radius: 22px 22px 0 0; background: linear-gradient(var(--mint-2), var(--mint-1)); height: calc(12px + var(--step, 0) * 9px); }
.stairs li:nth-child(2) i { --step: 1; }
.stairs li:nth-child(3) i { --step: 2; }
.stairs li:nth-child(4) i { --step: 3; }
.stairs li:nth-child(5) i { --step: 4; }
.stairs li:nth-child(6) i { --step: 5; }
.stairs li:nth-child(7) i { --step: 6; }
.stairs li:nth-child(8) i { --step: 7; }
.stairs li:nth-child(9) i { --step: 8; }
.stairs li:nth-child(10) i { --step: 9; background: linear-gradient(var(--peach), var(--peach-soft)); }
.ranks__more { margin-top: 32px; color: var(--slate); max-width: 40em; }
@media (min-width: 1000px) {
  .ranks { padding: 48px 0 120px; }
  .ranks__head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; margin-bottom: 48px; }
  .stairs {
    grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; gap: 48px 14px;
    max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); overflow: visible;
  }
  .stairs img { width: 150px; height: 150px; }
  .stairs i { height: calc(12px + var(--step, 0) * 12px); }
}

/* Что бросают: карточки тем ведут на их страницы. */
.topics { padding: 80px 0 0; }
.topics h2 { margin-bottom: 32px; }
.topics__grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.topic {
  position: relative; display: grid; gap: 8px; align-content: start; height: 100%; min-height: 150px;
  padding: 24px 64px 24px 24px; border-radius: 28px; background: var(--white); box-shadow: var(--shade);
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.topic b { font: 700 1.3rem/1.15 var(--display); letter-spacing: -.04em; }
.topic span { color: var(--slate); font-size: 16px; }
.topic i { position: absolute; right: 20px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--mint-1); }
.topic i::after { content: ""; position: absolute; left: 12px; top: 13px; width: 8px; height: 8px; border: solid var(--ink); border-width: 2px 2px 0 0; transform: rotate(45deg); }
a.topic:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(44, 73, 76, .1); }
a.topic:hover i { background: var(--peach); }
.topic--kurenie { background: linear-gradient(160deg, var(--white) 55%, var(--mint-1)); }
.topic--alkogol { background: linear-gradient(160deg, var(--white) 55%, #DCE8EE); }
.topic--sladkoe { background: linear-gradient(160deg, var(--white) 55%, var(--peach-soft)); }
.topic--socseti { background: linear-gradient(160deg, var(--white) 55%, #F3EEDD); }
.topic--antifap { background: linear-gradient(160deg, var(--white) 55%, #E4EEDB); }
.topic--habit { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
@media (min-width: 640px) { .topics__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .topics { padding-top: 120px; } .topics__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .topic { transition: none; } }

/* Вопросы на главной и на страницах тем */
.ask { padding: 80px 0; }
.ask__grid { display: grid; gap: 28px; }
.ask .faq { margin: 0; }
@media (min-width: 1000px) { .ask { padding: 120px 0; } .ask__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } }

/* Анонимность */
.anon { padding: 80px 0; }
.anon__grid { display: grid; gap: 40px; align-items: center; }
.anon h2 { margin-bottom: 18px; }
.facts { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 32em; }
.facts li { position: relative; padding-left: 34px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--mint-2); }
.facts li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 6px); width: 8px; height: 5px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 340px; justify-self: center; margin: 0; padding: 0; list-style: none; }
.pet { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.pet img { width: 84%; height: 84%; }
.pet--mint { background: var(--mint-1); }
.pet--peach { background: var(--peach-soft); }
.pet--sand { background: #F3EEDD; }
.pet--sky { background: #DCE8EE; }
.pet--leaf { background: #E4EEDB; }
@media (min-width: 900px) {
  .anon { padding: 120px 0; }
  .anon__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .pets { gap: 14px; max-width: 556px; justify-self: end; }
  .pet { width: 128px; height: 128px; }
}

/* Финал */
.final { padding: 0 0 80px; }
.final__card { position: relative; overflow: hidden; border-radius: 40px; background: #31545a; color: var(--white); min-height: 440px; display: flex; align-items: flex-start; }
.final__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.final__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 51, 53, .55), rgba(29, 51, 53, .1) 70%); }
.final__text { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; padding: 36px 24px 48px; max-width: 34em; }
.final__text p { font-size: 1.1rem; opacity: .95; }
@media (min-width: 900px) {
  .final { padding-bottom: 120px; }
  .final__card { min-height: 520px; }
  .final__text { padding: 64px; }
}

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 15px; color: var(--slate); }
.foot__grid { display: grid; gap: 32px; }
.foot__about { display: grid; gap: 10px; justify-items: start; max-width: 22em; }
.logo--foot { color: var(--ink); margin-bottom: 4px; }
.foot__nav { display: grid; gap: 10px; align-content: start; }
.foot__nav a { color: var(--ink); text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; text-decoration-color: var(--mint-3); }
.foot__note { max-width: 26em; font-size: 14px; }
@media (min-width: 640px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .foot__grid { grid-template-columns: 1.3fr .7fr 1fr 1fr; } }

/* Документы и поддержка */
.doc { padding: 40px 0 88px; }
.doc__grid { display: grid; gap: 36px; }
.doc__aside { display: none; }
.doc__head { display: grid; gap: 14px; margin-bottom: 36px; }
.doc__head h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.doc__date { font-size: 15px; color: var(--slate); }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -.04em; margin: 44px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--mint-3); }
.prose ol li::marker { color: var(--slate); font-weight: 600; }
.prose .note { padding: 18px 20px; border-radius: 22px; background: var(--peach-soft); margin: 0 0 24px; }
.prose .box { padding: 22px; border-radius: 24px; background: var(--white); box-shadow: var(--shade); margin: 0 0 24px; }
.prose .box > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .doc { padding: 64px 0 120px; }
  .doc__grid { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
  .doc__aside { display: block; }
  .doc__aside nav { position: sticky; top: 100px; display: grid; gap: 4px; }
  .doc__aside a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--slate); font-weight: 500; font-size: 15px; }
  .doc__aside a:hover { background: var(--mint-1); color: var(--ink); }
  .doc__aside a[aria-current] { background: var(--mint-2); color: var(--ink); }
}

.faq { display: grid; gap: 10px; margin: 0 0 32px; }
.faq details { border-radius: 22px; background: var(--white); box-shadow: var(--shade); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--slate); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 20px; color: var(--slate); }
.faq details > div::after { content: ""; display: block; height: 20px; }
/* Ответ раскрывается и сворачивается плавно: строка сетки растёт от 0fr до 1fr.
   Без поддержки ::details-content ответ просто появляется, как раньше. */
.faq details::details-content {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease-out), content-visibility .35s allow-discrete;
}
.faq details[open]::details-content { grid-template-rows: 1fr; }
.faq details > div { min-height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .35s var(--ease-out); }
.faq details[open] > div { opacity: 1; transform: none; }
@starting-style { .faq details[open] > div { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content, .faq details > div, .faq summary::after { transition: none; }
}
.faq details > div p + p { margin-top: 10px; }

.contact { display: grid; gap: 8px; padding: 26px; border-radius: 28px; background: var(--mint-1); margin: 0 0 36px; }
.contact a { font: 700 clamp(1.1rem, 3.6vw, 1.5rem)/1.2 var(--display); letter-spacing: -.04em; word-break: break-word; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 22px; background: var(--white); box-shadow: var(--shade); margin: 0 !important; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint-2); font: 700 15px/1 var(--display); }

.lost { padding: 72px 0 120px; text-align: center; }
.lost .wrap { display: grid; gap: 18px; justify-items: center; }
.lost img { width: 160px; height: auto; border-radius: 36px; box-shadow: var(--shade); }
.lost .cta { justify-content: center; }
.nw { white-space: nowrap; }

/* Страницы тем */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: 15px; color: var(--slate); }
.crumbs a { color: var(--slate); }
.hero--topic { padding-top: 16px; }
.warn { position: relative; max-width: 34em; padding: 16px 18px 16px 52px; border-radius: 22px; background: var(--peach-soft); font-size: 16px; }
.warn::before { content: "!"; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); font: 700 14px/1 var(--display); }
.help { padding: 72px 0; background: var(--white); border-radius: 48px 48px 0 0; }
.help h2 { margin-bottom: 32px; }
.cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 28px; background: var(--paper); }
.card p { color: var(--slate); }
.ladder { display: grid; gap: 28px; margin-top: 56px; padding: 28px; border-radius: 32px; background: var(--mint-1); }
.ladder__text { display: grid; gap: 10px; max-width: 30em; }
.ladder__text p { color: var(--slate); }
.ladder__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; text-align: center; }
.ladder__row img { width: 100%; max-width: 110px; margin: 0 auto 6px; border-radius: 22px; }
.ladder__row b { display: block; font: 700 13px/1.2 var(--display); letter-spacing: -.04em; }
.ladder__row span { font-size: 12px; color: var(--slate); }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 28px; color: var(--slate); }
.more a { padding: 8px 16px; border-radius: 999px; background: var(--white); box-shadow: var(--shade); color: var(--ink); text-decoration: none; font-weight: 500; }
.more a:hover { background: var(--mint-1); }
.help + .ask { background: var(--white); padding-top: 0; }
.help + .ask + .final { padding-top: 80px; }
@media (min-width: 900px) {
  .help { padding: 110px 0 100px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ladder { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; padding: 40px 48px; margin-top: 72px; }
  .ladder__row b { font-size: 15px; }
  .ladder__row span { font-size: 13px; }
  .help + .ask { padding-bottom: 110px; }
  .help + .ask + .final { padding-top: 88px; }
}
@media (max-width: 420px) { .ladder__row b { font-size: 11px; } .ladder__row span { font-size: 11px; } }
