@font-face { font-family: 'Soyuz Grotesk'; src: url('/assets/fonts/soyuz-grotesk-bold.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }

/* ==========================================================================
   Родные истории — R3 «Годовые кольца»
   Материал несёт смысл: кольцо = год жизни. Срез рисуется в canvas по
   возрасту героя, дерево приходит настоящей текстурой в одну секцию.
   Бумага — основная поверхность, тёмное оливковое — там, где показывают кино.
   Mobile-first: базовые правила это телефон, медиазапросы идут вверх.
   ========================================================================== */

:root {
  --ink:      #161A14;
  --ink-2:    #1F241C;
  --paper:    #EDE5D2;
  --paper-2:  #E3D9C1;
  --text:     #242820;
  --text-dim: #6A6D5E;
  --cream:    #E8DFC9;
  --cream-dim:#A5A392;
  --wood:     #8A5A32;
  --wood-lt:  #C08A52;
  --rule:     rgba(36, 40, 32, .16);
  --rule-dark:rgba(232, 223, 201, .15);

  --pad: clamp(18px, 5vw, 76px);
  --sec: clamp(58px, 11vw, 142px);
  --ease: cubic-bezier(.2, .8, .25, 1);

  font-family: Onest, system-ui, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.has-dialog { overflow: hidden; }
[hidden] { display: none !important; }
section[id], article[id] { scroll-margin-top: 88px; }
body { margin: 0; overflow-x: hidden; font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--wood); color: var(--paper); }
:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

.wrap { padding-inline: var(--pad); max-width: 1360px; margin-inline: auto; }

/* The seamless paper belongs to the document, so it travels with the text.
   No fixed texture over photographs, controls, or the sticky header. */
.grain { display: none; }
body, .price {
  background-image: url('tex/paper-grain.svg');
  background-repeat: repeat;
  background-size: 240px 240px;
  background-attachment: scroll;
}

/* --- Типографика ---------------------------------------------------------
   Один гротеск на весь сайт, как в шапке. Характер берём не второй
   гарнитурой, а разбросом кегля: подпись 11px против заголовка 56px.     */
h1, h2 { font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(27px, 7.4vw, 58px); }
.tag {
  font-size: 11px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--cream-dim); margin-bottom: 18px;
}
.tag--wood { color: var(--wood); }
section:not(.open):not(.strip):not(.sample):not(.start):not(.goods) .tag { color: var(--text-dim); }
.note {
  font-size: 13px; line-height: 1.55; color: var(--text-dim);
  margin-top: 22px; max-width: 58ch;
  border-left: 2px solid var(--wood); padding-left: 14px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 15px 28px; font-size: 16px; font-weight: 500;
  background: var(--wood); color: var(--paper);
  transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn--quiet { background: none; color: var(--cream); border: 1px solid var(--rule-dark); }
.btn--card { width: 100%; margin-top: 22px; }
.btn--send { width: 100%; }

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 12px var(--pad);
  background: rgba(22, 26, 20, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dark);
}
.word { font-weight: 500; font-size: 17px; letter-spacing: -.05em; color: var(--cream); }
.word i { font-style: normal; color: var(--wood-lt); }
.bar-nav { display: none; margin-left: auto; gap: 26px; }
.bar-nav a { font-size: 14px; color: var(--cream-dim); }
.bar-cta {
  margin-left: auto; font-size: 14px; color: var(--cream);
  border-bottom: 1px solid var(--wood-lt);
  min-height: 44px; display: inline-flex; align-items: center;
}

/* ==========================================================================
   01 · ОТКРЫВАЮЩИЙ КАДР
   ========================================================================== */
.open {
  position: relative; isolation: isolate; background: var(--ink);
  min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 11vw, 96px) var(--pad) 0;
}
.open-img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 62% 36%; }
.open-rings { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.open::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, rgba(22,26,20,.97) 0%, rgba(22,26,20,.88) 24%, rgba(22,26,20,.55) 52%, rgba(22,26,20,.24) 76%, rgba(22,26,20,.6) 100%);
}
.open-body { position: relative; max-width: 760px; padding-bottom: clamp(30px, 5vw, 56px); }
.open h1 {
  font-weight: 300; font-size: clamp(36px, 10.6vw, 104px);
  line-height: .98; letter-spacing: -.045em; color: var(--cream);
}
.open h1 em { font-style: normal; font-weight: 500; color: var(--wood-lt); }
.open-lead { margin-top: 22px; font-size: clamp(16px, 4.2vw, 21px); line-height: 1.55; color: var(--cream-dim); max-width: 42ch; }
.open-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.open-foot {
  position: relative; display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding: 15px 0; border-top: 1px solid var(--rule-dark);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-dim);
}

/* ==========================================================================
   02 · ГОДОВЫЕ КОЛЬЦА
   ========================================================================== */
.rings { padding-block: var(--sec); }
.rings-grid { display: grid; gap: clamp(28px, 6vw, 70px); align-items: center; }
.rings-copy h2 { margin-bottom: 18px; }
.rings-lead { color: var(--text-dim); max-width: 40ch; }

.dial { display: block; margin-top: 28px; }
.dial-cap { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.dial input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; max-width: 420px; height: 44px; background: none; cursor: grab;
}
.dial input[type=range]:active { cursor: grabbing; }
.dial input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--rule); }
.dial input[type=range]::-moz-range-track { height: 2px; background: var(--rule); }
.dial input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -14px; border-radius: 50%;
  background: var(--wood); border: 5px solid var(--paper);
  box-shadow: 0 2px 10px rgba(36,40,32,.3);
}
.dial input[type=range]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; border: 5px solid var(--paper);
  background: var(--wood); box-shadow: 0 2px 10px rgba(36,40,32,.3);
}

.rings-out { margin-top: 26px; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.5; max-width: 34ch; }
.rings-out b {
  font-weight: 500; font-size: clamp(27px, 7.4vw, 40px); letter-spacing: -.04em;
  color: var(--wood); font-variant-numeric: tabular-nums;
}
.rings-out span { display: block; margin-top: 10px; color: var(--text-dim); font-size: clamp(15px, 4vw, 18px); }

.rings-stage { display: grid; justify-items: center; gap: 16px; }
.rings-stage canvas { width: min(100%, 460px); height: auto; aspect-ratio: 1; }
.rings-stage figcaption { color: var(--text-dim); margin: 0; }

/* ==========================================================================
   03 · МОМЕНТЫ — лента с перетаскиванием
   ========================================================================== */
.strip { background: var(--ink); color: var(--cream); padding-block: var(--sec); overflow: hidden; }
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.strip-head h2 { color: var(--cream); }
.strip-nav { display: none; gap: 8px; flex: 0 0 auto; }
.strip-nav button {
  width: 48px; height: 48px; border: 1px solid var(--rule-dark); border-radius: 50%;
  color: var(--cream); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.strip-nav button:hover { background: var(--cream); color: var(--ink); }

.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--pad); padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail li { flex: 0 0 76vw; scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rail p { margin-top: 14px; padding-inline: 20px; font-size: 15px; color: var(--cream-dim); }

/* ==========================================================================
   04 · РАЗГОВОР — нить истории
   ========================================================================== */
.talk { padding-block: var(--sec); }
.talk .ri-conversation {
  --ri-muted: #595c4c;
  --ri-rule: #c6bba1;
  --ri-panel: #dcd6c0;
  --ri-active: #283421;
  --ri-active-text: #f1ead9;
  max-width: 960px;
  margin-inline: auto;
  font-family: Onest, system-ui, sans-serif;
}
.talk .talk-title { margin-bottom: 20px; font-family: 'Soyuz Grotesk', Onest, sans-serif; font-weight: 700; }
.talk .ri-intro > p:not(.tag) { max-width: 590px; color: var(--ri-muted); font-size: 18px; line-height: 1.55; }
.talk .ri-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 26px; }
.talk .ri-topics button {
  min-height: 44px; padding: 10px 15px; border: 1px solid var(--ri-rule); border-radius: 100px;
  background: transparent; font-size: 14px; font-weight: 500;
}
.talk .ri-topics button[aria-pressed="true"] { background: var(--ri-active); color: var(--ri-active-text); border-color: var(--ri-active); }
.talk .ri-route { position: relative; padding: 8px 22px 12px; margin-top: 28px; isolation: isolate; }
.talk .ri-thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: var(--wood); overflow: visible; }
.talk .ri-thread-base { stroke: var(--ri-rule); stroke-width: 1.5; }
.talk .ri-thread-selected { stroke: var(--wood); stroke-width: 1.8; transition: stroke-dashoffset .65s ease; }
.talk .ri-questions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 38px; }
.talk .ri-questions li { min-width: 0; }
.talk .ri-questions li:nth-child(3) { grid-column: 2; grid-row: 2; }
.talk .ri-questions li:nth-child(4) { grid-column: 1; grid-row: 2; }
.talk .ri-question { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 143px; padding: 0 0 8px; text-align: left; }
.talk .ri-question:disabled { cursor: default; opacity: 1; }
.talk .ri-point {
  display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
  margin-bottom: 12px; border: 1px solid var(--ri-rule); border-radius: 50%; background: var(--paper); font-size: 13px;
}
.talk .ri-question[aria-pressed="true"] .ri-point { background: var(--ri-active); color: var(--ri-active-text); border-color: var(--ri-active); }
.talk .ri-question-text { max-width: 340px; font-size: clamp(20px, 2.3vw, 25px); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.talk .ri-step-kind { display: block; margin-top: 8px; color: var(--ri-muted); font-size: 13px; line-height: 1.4; }
.talk .ri-question[aria-pressed="true"] .ri-step-kind { color: var(--wood); }
.talk .ri-detail { margin-top: 10px; padding: 24px 26px; min-height: 181px; background: var(--ri-panel); border-radius: 2px; }
.talk .ri-detail-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--ri-muted); font-size: 12px; line-height: 1.4; }
.talk .ri-followup { margin: 13px 0 10px; font-size: 20px; font-weight: 500; line-height: 1.5; letter-spacing: -.02em; }
.talk .ri-meaning { color: var(--ri-muted); font-size: 15px; line-height: 1.5; }
.talk .ri-footnote { max-width: 650px; margin-top: 14px; color: var(--ri-muted); font-size: 13px; line-height: 1.55; }
.talk .ri-close { margin-top: 28px; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; }
.talk .ri-cta { margin-top: 24px; max-width: 100%; text-align: center; }
@media (max-width: 520px) {
  .talk .talk-title { font-size: 32px; }
  .talk .talk-title br { display: none; }
  .talk .ri-intro > p:not(.tag) { font-size: 16px; }
  .talk .ri-topics { gap: 7px; margin: 24px 0; }
  .talk .ri-topics button { padding: 9px 12px; font-size: 13px; }
  .talk .ri-route { padding: 0 0 4px; margin-top: 24px; }
  .talk .ri-questions { display: flex; flex-direction: column; gap: 22px; }
  .talk .ri-question { position: relative; min-height: 74px; padding: 0 0 0 46px; }
  .talk .ri-point { position: absolute; left: 0; top: 0; margin: 0; }
  .talk .ri-question-text { max-width: none; font-size: 19px; }
  .talk .ri-step-kind { margin-top: 6px; font-size: 12px; }
  .talk .ri-detail { min-height: 0; margin-top: 22px; padding: 18px; }
  .talk .ri-followup { font-size: 17px; }
  .talk .ri-meaning { font-size: 14px; }
  .talk .ri-close { font-size: 16px; }
  .talk .ri-cta { padding-inline: 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .talk .ri-thread-selected { transition: none !important; }
}

/* ==========================================================================
   05 · ОТРЫВОК
   ========================================================================== */
.sample { background: var(--ink); color: var(--cream); padding-block: var(--sec); }
.sample h2 { color: var(--cream); margin-bottom: 28px; }
.sample .note { color: var(--cream-dim); }
.player { position: relative; overflow: hidden; }
.player img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
  border-radius: 50%; background: rgba(237, 229, 210, .93);
  display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.play span { width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--ink); }
.play:active { transform: scale(.94); }
.player figcaption {
  position: absolute; left: 14px; bottom: 12px; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cream);
  background: rgba(22,26,20,.75); padding: 7px 11px;
}

/* ==========================================================================
   06 · КАК СНИМАЕМ
   ========================================================================== */
.how { padding-block: var(--sec); }
.how h2 { margin-bottom: 34px; }
.steps { border-top: 1px solid var(--rule); }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.step-n { font-size: 12px; letter-spacing: .12em; color: var(--wood); padding-top: 6px; }
.steps h3 { font-weight: 500; font-size: clamp(19px, 5.2vw, 26px); letter-spacing: -.02em; }
.steps p { margin-top: 8px; font-size: 16px; color: var(--text-dim); max-width: 56ch; }
.step-t { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--rule); padding: 5px 10px; }

/* ==========================================================================
   07 · ЧТО ОСТАЁТСЯ — единственная секция на дереве
   ========================================================================== */
.goods {
  position: relative; isolation: isolate; color: var(--cream);
  padding-block: var(--sec);
  background-color: #2A1F14;
  background-size: cover; background-position: center;
}
.goods.is-texture-ready { background-image: image-set(url('tex/wood-900.webp') 1x, url('tex/wood-1600.webp') 2x); }
.goods::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(22,16,10,.82), rgba(22,16,10,.9));
}
.goods h2 { color: var(--cream); margin-bottom: 30px; }
.goods .tag { color: var(--wood-lt); }
.goods-list { display: grid; gap: 1px; background: rgba(232,223,201,.14); border-block: 1px solid rgba(232,223,201,.14); }
.goods-list li { background: rgba(22,16,10,.55); padding: 24px 20px; display: grid; gap: 8px; }
.goods-n { font-size: 11px; letter-spacing: .16em; color: var(--wood-lt); }
.goods-list h3 { font-weight: 500; font-size: clamp(19px, 5.2vw, 25px); letter-spacing: -.02em; }
.goods-list p { font-size: 16px; color: var(--cream-dim); max-width: 48ch; }
.goods .note { color: var(--cream-dim); border-left-color: var(--wood-lt); }

/* ==========================================================================
   08 · ФОРМАТЫ
   ========================================================================== */
.price { background-color: var(--paper-2); padding-block: var(--sec); }
.price-lead { margin-top: 16px; font-size: clamp(16px, 4.2vw, 19px); color: var(--text-dim); max-width: 58ch; }
.cards { display: grid; gap: 14px; margin-top: 34px; }
.card { background: var(--paper); border: 1px solid var(--rule); padding: 26px 22px 24px; position: relative; }
.card--pick { border-color: var(--wood); border-width: 1.5px; }
.card-flag { position: absolute; top: -11px; left: 20px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--wood); color: var(--paper); padding: 4px 10px; }
.card h3 { font-weight: 500; font-size: clamp(22px, 6vw, 28px); letter-spacing: -.03em; }
.card-for { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.card-sum { margin-top: 16px; font-size: clamp(28px, 7.4vw, 38px); font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.card-sum i { font-style: normal; font-size: .58em; color: var(--text-dim); margin-left: 6px; }
.card ul { margin-top: 20px; display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 18px; }
.card li { font-size: 15px; color: var(--text-dim); }
.card li b { font-weight: 500; color: var(--text); }

/* ==========================================================================
   09 · ВОПРОСЫ
   ========================================================================== */
.faq { padding-block: var(--sec); }
.faq h2 { margin-bottom: 26px; }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  font-size: clamp(16px, 4.4vw, 19px); padding: 18px 36px 18px 0;
  position: relative; cursor: pointer; list-style: none;
  min-height: 56px; display: flex; align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--wood); transition: transform .35s var(--ease); }
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 0 20px; font-size: 16px; color: var(--text-dim); max-width: 62ch; }

/* ==========================================================================
   10 · ЗАЯВКА
   ========================================================================== */
.start { background: var(--ink); color: var(--cream); padding-block: var(--sec); }
.start h2 { color: var(--cream); margin-bottom: 4px; }
.start-lead { margin-top: 16px; font-size: clamp(16px, 4.2vw, 19px); color: var(--cream-dim); }
.start-grid { display: grid; gap: clamp(28px, 6vw, 70px); }
.start-marks { margin-top: 22px; display: grid; gap: 10px; }
.start-marks li { font-size: 15px; color: var(--cream-dim); padding-left: 20px; position: relative; }
.start-marks li::before { content: '—'; position: absolute; left: 0; color: var(--wood-lt); }

.form { background: var(--paper); padding: 22px 20px 24px; display: grid; gap: 18px; }
.chips { border: 0; display: grid; gap: 10px; }
.chips legend { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: flex; align-items: center; min-height: 48px; padding: 10px 16px; font-size: 15px; border: 1px solid var(--rule); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chips input:focus-visible + span { outline: 2px solid var(--wood); outline-offset: 2px; }

.field { display: grid; gap: 7px; }
.field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field textarea {
  font: inherit; font-size: 16px;          /* 16px обязателен: меньше — iOS зумит форму */
  color: var(--text); background: var(--paper-2);
  border: 1px solid var(--rule); padding: 13px 14px; min-height: 50px; resize: vertical;
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wood); }
.field.is-bad input, .field.is-bad textarea { border-color: #A33; }
.field.is-bad > span { color: #A33; }
.form-small { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.form-note { font-size: 14px; color: var(--text); }
.form-note.is-bad { color: #A33; }

/* ==========================================================================
   ПОДВАЛ И ЛИПКАЯ КНОПКА
   ========================================================================== */
.foot { background: var(--ink); color: var(--cream-dim); padding-block: clamp(34px, 7vw, 62px); border-top: 1px solid var(--rule-dark); }
.foot-grid { display: grid; gap: 18px; font-size: 14px; }
.word--foot { color: var(--cream); font-size: 19px; }
.foot a { color: var(--cream); }
.foot-small { font-size: 12px; opacity: .75; }

/* Всегда доступный контакт */
.contact-float {
  position: fixed; right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom)); z-index: 85;
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: var(--wood); border: 1px solid var(--wood-lt); color: var(--paper);
  font-size: 12px; line-height: 1.2; font-weight: 500;
  box-shadow: 0 4px 22px rgba(22,26,20,.25);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.contact-float:hover { background: #704725; transform: translateY(-2px); }
.contact-float > span:last-child { font-size: 18px; line-height: 1; }
.foot { padding-bottom: 126px; }

/* Полезные разделы */
.story-grid { display: grid; gap: 34px; align-items: center; }
.story-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story-photo figcaption { margin-top: 10px; font-size: 12px; color: var(--cream-dim); }
.story-copy > p:not(.tag) { margin-top: 18px; color: var(--cream-dim); max-width: 55ch; }
.text-link { display: inline-block; margin-top: 22px; font-size: 15px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--wood-lt); }
.text-link span { margin-left: 8px; }
.prepare { padding-block: var(--sec); border-bottom: 1px solid var(--rule); }
.prepare-grid { display: grid; gap: 42px; margin-top: 36px; }
.prepare article { border-top: 1px solid var(--rule); padding-top: 24px; }
.prepare h3 { font-size: clamp(23px, 4vw, 31px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; margin-top: 14px; }
.prepare p { margin-top: 18px; color: var(--text-dim); }
.archive-steps { list-style: decimal; padding-left: 22px; margin-top: 18px; font-size: 16px; }
.archive-steps li + li { margin-top: 9px; }

/* Подробный прайс: прокручивается только таблица, не страница */
.price-detail { margin-top: clamp(46px, 7vw, 82px); min-width: 0; }
.price-detail > h3 { font-size: clamp(25px, 5vw, 38px); font-weight: 500; letter-spacing: -.025em; }
.table-scroll-hint { margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.table-scroll { max-width: 100%; overflow-x: auto; margin-top: 24px; overscroll-behavior-x: contain; border: 1px solid var(--rule); }
.comparison-table { border-collapse: collapse; width: 100%; min-width: 840px; table-layout: fixed; font-size: 14px; line-height: 1.55; background: var(--paper); }
.comparison-table caption { text-align: left; padding: 15px 20px; font-size: 13px; background: var(--paper); }
.comparison-table th, .comparison-table td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); overflow-wrap: break-word; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table th { font-weight: 500; }
.comparison-table thead th { background: var(--ink); color: var(--cream); }
.comparison-table thead th:first-child { width: 25%; }
.package-name, .package-price { display: block; }
.package-name { font-size: 17px; line-height: 1.2; min-height: 42px; }
.package-price { font-size: 21px; margin-top: 12px; white-space: nowrap; }
.package-price small { font-size: 13px; font-weight: 400; }
.comparison-table .table-group th, .comparison-table .table-group td { padding-block: 10px; background: #d5c6a8; }
.comparison-table .table-group th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.comparison-table tfoot .text-link { margin-top: 0; font-size: 14px; }
.comparison-table tfoot th, .comparison-table tfoot td { border-bottom: 0; }

/* Формы и согласие */
.consent { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 10px; align-items: start; color: var(--text-dim); font-size: 12px; line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wood); cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent.is-bad { color: #9d3225; }
.consent.is-bad input { outline: 2px solid #9d3225; outline-offset: 2px; }
.form-note { overflow-wrap: anywhere; }
.form-note a { text-decoration: underline; }
.btn:disabled { cursor: wait; opacity: .65; }
.contact-dialog, .privacy-dialog { color: var(--text); background: var(--paper); width: min(590px, calc(100% - 24px)); max-height: calc(100svh - 32px); margin: auto; border: 1px solid var(--wood); padding: clamp(24px, 5vw, 40px); overflow: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop, .privacy-dialog::backdrop { background: rgba(11,15,10,.82); backdrop-filter: blur(5px); }
.contact-dialog h2, .privacy-dialog h2 { font-size: clamp(29px, 7vw, 43px); padding-right: 18px; }
.contact-dialog #contact-description { color: var(--text-dim); font-size: 15px; margin-top: 16px; }
.dialog-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; font-size: 29px; line-height: 1; color: var(--text-dim); }
.contact-dialog .form--dialog { padding: 0; margin-top: 24px; gap: 16px; }
.form--dialog textarea { min-height: 76px; }
.dialog-phone { font-size: 13px; color: var(--text-dim); margin-top: 20px; }
.dialog-phone a, .privacy-dialog a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy-dialog p:not(.tag) { font-size: 15px; margin-top: 20px; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 90px); }
  .prepare-grid { grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 96px); }
  .contact-float { width: 98px; height: 98px; right: 28px; bottom: 28px; font-size: 13px; }
}
@media (max-width: 420px) {
  .contact-float { width: 76px; height: 76px; font-size: 11px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .bar { gap: 10px; }
  .word { font-size: 16px; }
  .bar-cta { font-size: 13px; }
  .contact-dialog, .privacy-dialog { padding: 26px 20px; }
  .dialog-close { right: 2px; top: 2px; }
}

/* --- Проявка снимков ----------------------------------------------------- */
[data-develop] {
  filter: saturate(.3) contrast(.92) brightness(1.05) blur(5px);
  opacity: .55; transform: scale(1.03);
  transition: filter 1.3s var(--ease), opacity .9s var(--ease), transform 1.5s var(--ease);
}
[data-develop].is-in { filter: none; opacity: 1; transform: none; }

/* ==========================================================================
   ПЛАНШЕТ И ДЕСКТОП
   ========================================================================== */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .bar-nav { display: flex; }
  .bar-cta { margin-left: 0; }
  .open-cta { flex-direction: row; gap: 14px; }
  .rings-grid { grid-template-columns: 1fr 1fr; }
  .strip-nav { display: flex; }
  .rail li { flex-basis: 420px; }
  .steps li { grid-template-columns: 72px 1fr; gap: 24px; padding: 30px 0; }
  .goods-list { grid-template-columns: 1fr 1fr; }
  .goods-list li { padding: 30px 28px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .start-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .form { padding: 30px 28px 32px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .foot-small { grid-column: 1 / -1; }

}

@media (min-width: 1100px) {
  .open { min-height: 94svh; }
  .player img { aspect-ratio: 16 / 9; }
  .goods-list { grid-template-columns: repeat(4, 1fr); }
  .rail li { flex-basis: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  [data-develop] { opacity: 1; filter: none; transform: none; }
}

/* Антиспам-поле: посетители не заполняют его. */
.form-trap { display: none !important; }

/* Заголовки исходного макета: тот же Soyuz Grotesk, отдельным WOFF2. */
h1, h2, h3 { font-family: 'Soyuz Grotesk', Onest, sans-serif; }
.open h1, .open h1 em, .rings-copy h2, .talk-copy h2, .steps h3, .goods-list h3, .card h3, .prepare h3, .price-detail > h3, dialog h2 { font-weight: 700; }
h2 { font-weight: 700; }
.word { font-family: 'Soyuz Grotesk', Onest, sans-serif; font-weight: 700; font-size: 23px; letter-spacing: -.035em; }

/* Analytics inserts its settings button directly into footer, outside .wrap. */
.foot > .analytics-settings {
  margin: 20px max(var(--pad), env(safe-area-inset-left, 0px)) 0;
  width: fit-content; max-width: calc(100% - 2 * var(--pad)); min-height: 44px;
  padding: 8px 0; line-height: 1.5;
}

/* Mobile reading edition: Soyuz headings, Georgia for the story itself.
   Compact controls retain their existing type and familiar pill shapes. */
@media (max-width: 759px) {
  .open-lead, .rings-lead, .rings-out, .rings-out span, .rail p,
  .talk .ri-intro > p:not(.tag), .talk .ri-question-text, .talk .ri-followup,
  .talk .ri-meaning, .talk .ri-close, .story-copy > p:not(.tag),
  .steps p, .goods-list p, .price-lead, .card-for, .card li,
  .prepare p, .archive-steps, .qa summary, .qa p {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400; letter-spacing: 0;
  }
  .open-lead, .rings-lead, .story-copy > p:not(.tag), .price-lead,
  .prepare p, .qa p { font-size: 19px; line-height: 1.55; }
  .open-lead { color: #c8c5b7; }
  .open-foot { padding-right: 90px; line-height: 1.7; }
  .rings-out { font-size: 21px; }
  .rings-out b { font-family: Georgia, 'Times New Roman', serif; }
  .rings-out span, .steps p, .goods-list p, .card li, .archive-steps {
    font-size: 18px; line-height: 1.55;
  }
  .card-for { font-size: 17px; line-height: 1.5; }
  .card li b { font-weight: 700; }
  .rail p { font-size: 18px; line-height: 1.45; padding-inline: 20px; }

  .open-cta { align-items: flex-start; gap: 3px; }
  .open-cta .btn {
    max-width: 100%; min-height: 56px; padding: 16px 24px;
    font: 400 18px/1.3 Georgia, 'Times New Roman', serif;
    border-radius: 100px; text-align: center;
  }
  .open-cta .btn--quiet {
    min-height: 48px; padding: 12px 3px; border: 0; border-radius: 0;
    background: none; text-decoration: underline; text-underline-offset: 6px;
    text-decoration-thickness: 1px; text-decoration-color: var(--wood-lt);
  }
  .open-cta .btn--quiet::after { content: '↗'; margin-left: 12px; font-size: 20px; }

  .talk .ri-intro > p:not(.tag) { font-size: 19px; line-height: 1.55; }
  .talk .ri-question-text { font-size: 22px; line-height: 1.25; }
  .talk .ri-question { min-height: 84px; }
  .talk .ri-detail {
    position: relative; margin-top: 30px; padding: 4px 0 4px 22px;
    background: none; border: 0; border-left: 1px solid var(--wood-lt);
    border-radius: 0; min-height: 0;
  }
  .talk .ri-detail-heading { justify-content: flex-start; gap: 5px 16px; }
  .talk .ri-followup { margin: 16px 0 12px; font-size: 21px; line-height: 1.4; }
  .talk .ri-meaning { font-size: 18px; line-height: 1.5; }
  .talk .ri-close { font-size: 20px; line-height: 1.5; }
  .step-t {
    border: 0; border-top: 1px solid var(--rule); padding: 10px 0 0;
    font-size: 13px; line-height: 1.65; letter-spacing: 0; text-transform: none;
  }
}

/* RI only. Append after the shared Onest font-face declarations.
   Same local Onest glyph and metrics; only U+20BD is overridden. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('data:font/woff2;base64,d09GMgABAAAAAAJsAA8AAAAABNAAAAIXAAIAQgAAAAAAAAAAAAAAAAAAAAAAAAAAGyAcMAZgP1NUQVQuADQRCApkfgE2AiQDCAsGAAQgBYMeByAMBxveAwiuCmxjdGgPcSMJkdKUi7it4rjxn4mH/1/73z5n7rd5XyyZRLH4SWpNrEGIVNVkEiLR02s0PNJYhEJljtba3L93s40vJtEU4qnvIaVDI2RCJiVKc8TB7XQAjtMAtKTaes74MKb8ry38v5t617ACyaZJoomORb1wahwtbZsm0LbAws8HElFuUzrWXkE2EAmvXhWoTcggtu9cnyGgQAMQqC2qcGvfhfbZUiBzJNYg4zyDktvigQ7yVh4F9vGSOK3hH/CpdHiOJ/iY+XSIrT7/n/IxDgIBOZBtzAgKoVtgFIEJrvPnBExAqpAyHpAfQaLCKLd97TEDFEUw8w0C/r0dAUI0DIAEBYkFYBGAAsixuhV19H7Vuv3jyw8Xvn+vay21T/7rV1z82UQ9P/mOPJB78vFrs9j3rNFuweLa6uWIQ072urI/Vd7a3e3nxzcgkLb22s32mYEt/7rd1V/483R+hqMNw7Wv2uiUIFgxyA8Sqhu2AA1kTgiVERotDMyCu25nuUXpwUNeaqg9VFO/12pl1btajPnEHewv6uQyDBL0xqIlneGZRcQTYEhDTUMdciZgITsali3B7Fl0EhYNQ+YcmEBnsSE5Agwz2AaqqniiuO+gVNB0qiqbyGsGksJWpafG+ewfj1g8h4Jkaaioqakb2rt3dDK05srXFrQg8Ypl+WJ+hAJtR7Mbdq3QDfSarSu+jaY35S4=') format('woff2');
  unicode-range: U+20BD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('data:font/woff2;base64,d09GMgABAAAAAAJ0AA8AAAAABNQAAAIcAAIAQgAAAAAAAAAAAAAAAAAAAAAAAAAAGyAcMAZgP1NUQVQqADQRCApkfgE2AiQDCAsGAAQgBYMmByAMBxviAyCeBc7pi0a8SOVIEZ4UJaX5y8fD82vfzr3z1uavGWLWXKN4oos1qCsRSsKTp9/IFmnWl8r879r+wPvle4u4JB7tHFHfkFAIUVPWViEUQxzcjnTjOA1A6//C59p/O1/rPLEeQcSJdnkXSFib7a+fr/GAdj7L98N4NhrRQN3Ew31CoWrKYLcK1BZiocNHhTQYFGgAArWNHNTId8w+Wo6BvZtkCizuByVPxpwOciovAKfskrjG408kVc5PMgVP/Hm/qvry/5RPcRYIyIFsYymjELoFRiEspHpwq08QpIAYiTmQqDBKLTBKYylQFMHSb5jAPw9DIETDAEhQkFgJbASgAHJ+3Yo6ylSt6W9a8/jr17rWUnuzP9rx5Hs96umFarHKVSvV4SdamTi4a2Vmz/lDHeo8OXXyVfybv7jfeHTe821HT0VOzwCBdLDn3264PrD7n0Fd/YFflxVLre8OCIKczTY6JQiGp/IDgOwiOKE4cyUGKCOkleEWbfW4TS1KD55xhTDpAKnfS6hsdp0WDDrM96adJlNyQW8sXHjk7rXiZuZ2lgZ6+gjMw8XDDUvr68BkUx0rIIxiaWaoo4XAYiiib2ZpBTPpI4i5lQgnp54BtJdqcmiZmXBaGZiYaxhbcZq1mZtb/l3U0TZATSR19FBjDUseDi4ublGKgqSUaJy142y8tDJoNsGnWwjl5GDqX1pNvGa2S76LptdlFgAAAA==') format('woff2');
  unicode-range: U+20BD;
}
