/* Визуальный язык — по мотивам onefinestay (Refero): тёплая персиковая палитра,
   лёгкая антиква с курсивными акцентами, коралловые CTA, глубокий зелёный и графитовый футер. */
:root {
  --bg: #ffffff;
  --peach: #fbf1ec;
  --peach-2: #f6e3da;
  --coral: #e0705a;          /* акцент в заголовках (крупный текст) */
  --coral-strong: #c4543d;   /* кнопки: белый текст ≥ 4.5:1 */
  --coral-ink: #b04a35;      /* мелкий акцентный текст */
  --ink: #2b2b2e;
  --ink-2: #55555b;
  --ink-3: #85858c;
  --line: #e9dfd9;
  --green: #1f3d36;
  --green-2: #2b5048;
  --charcoal: #2f2f33;
  --good: #3f7d5c;
  --bad: #b04a35;
  --q0: #f3ece8;
  --q1: #f4c6b6;
  --q2: #e58a70;
  --q3: #b9472f;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --wrap: 1200px;
  --shadow: 0 18px 40px -18px rgba(60, 30, 20, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--coral-strong); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section { padding: 112px 0; }
.section--peach { background: var(--peach); }
.section--green { background: var(--green); color: #f3efe9; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; }
.h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; color: var(--coral); text-align: center; }
.section--green .h2 { color: #f3efe9; }
.lead { max-width: 680px; margin: 20px auto 0; text-align: center; color: var(--ink-2); font-size: 17px; }
.section--green .lead { color: #c9d4cf; }
.eyebrow {
  display: block; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral-ink); font-weight: 600; margin-bottom: 14px;
}
.section--green .eyebrow { color: #f0b8a6; }

/* ───────── Кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--coral { background: var(--coral-strong); color: #fff; }
.btn--coral:hover { background: #a94530; }
.btn--ghost { border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent;
  display: grid; place-items: center; transition: background .2s, color .2s;
}
.round-btn:hover { background: var(--ink); color: #fff; }
.round-btn svg { width: 20px; height: 20px; }

/* ───────── Шапка ───────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.header.is-solid { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.logo { font-family: var(--serif); font-size: 26px; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.logo em { font-style: italic; color: var(--coral); }
.header:not(.is-solid) .logo em { color: #ffd2c4; }
.header__cta { justify-self: end; }
.header .btn--ghost { border-color: currentColor; min-height: 40px; padding: 0 18px; font-size: 14px; }
.header:not(.is-solid) .btn--ghost:hover { background: #fff; color: var(--ink); }
.burger { display: none; background: none; border: 0; padding: 8px; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 55%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,25,.5) 0%, rgba(20,20,25,.28) 45%, rgba(20,20,25,.6) 100%); }
.hero__content { position: relative; z-index: 1; text-align: center; padding: 120px 24px 140px; width: 100%; max-width: 980px; }
.hero h1 { max-width: 860px; margin: 0 auto; text-wrap: balance; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.05; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p { font-size: clamp(16px, 1.6vw, 19px); max-width: 640px; margin: 22px auto 0; color: rgba(255,255,255,.92); }
.searchbar {
  margin: 40px auto 0; max-width: 760px; background: #fff; color: var(--ink); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr auto; box-shadow: var(--shadow); text-align: left;
}
.searchbar label { display: block; padding: 14px 20px; border-right: 1px solid var(--line); }
.searchbar span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 600; }
.searchbar select { width: 100%; border: 0; background: transparent; font: 500 16px var(--sans); color: var(--ink); padding: 2px 0 0; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2355555b' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; }
.searchbar select:focus-visible { outline-offset: 6px; }
.searchbar .btn { margin: 8px; min-height: 56px; }
.hero__credit { position: absolute; z-index: 1; right: 20px; bottom: 16px; font-size: 11px; color: rgba(255,255,255,.75); }
.hero__credit a { color: inherit; }
.hero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); text-decoration: none; }

/* ───────── Сезонная карусель ───────── */
.season-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.season-head .h2 { text-align: left; }
.season-head p { color: var(--ink-2); margin: 12px 0 0; max-width: 520px; }
.arrows { display: flex; gap: 12px; flex: none; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.tile { scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.tile__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--peach-2); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__name { font-family: var(--serif); font-size: 20px; margin-top: 14px; line-height: 1.3; }
.tile__meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ───────── О системе ───────── */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.stat { padding: 36px 24px 0; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; color: var(--coral); }
.stat span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.trio__card { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--radius); overflow: hidden; color: #fff; }
.trio__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trio__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.trio__text { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.trio__text b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.trio__text span { display: block; margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.9); }

/* ───────── Мастер подбора ───────── */
.wizard { margin-top: 56px; display: grid; gap: 20px; }
.step { background: #fff; border-radius: 6px; padding: 32px 36px; border: 1px solid var(--line); }
.step__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.step__num { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 28px; line-height: 1; }
.step__title { font-family: var(--serif); font-size: 24px; }
.step__hint { color: var(--ink-3); font-size: 14px; margin-left: auto; }
.step__error { color: var(--bad); font-size: 14px; font-weight: 600; margin-top: 14px; display: none; }
.step.has-error { border-color: var(--bad); }
.step.has-error .step__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius); min-height: 48px; padding: 8px 16px;
  font-weight: 500; font-size: 15px; transition: border-color .15s, background .15s, color .15s; text-transform: capitalize;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { display: block; font-size: 11px; opacity: .7; text-transform: none; font-weight: 500; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.option {
  position: relative; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 18px 18px 16px;
  text-align: left; display: grid; gap: 10px; align-content: start; min-height: 120px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.option:hover { border-color: var(--ink-2); }
.option svg { width: 28px; height: 28px; color: var(--coral-strong); }
.option b { font-weight: 600; font-size: 15px; line-height: 1.35; }
.option span { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.option[aria-pressed="true"], .option[aria-checked="true"] { border-color: var(--coral-strong); background: #fff7f4; box-shadow: inset 0 0 0 1px var(--coral-strong); }
.option[aria-pressed="true"]::after, .option[aria-checked="true"]::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/20px no-repeat;
}

.wizard__submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 8px 4px 0; }
.wizard__summary { color: var(--ink-2); font-size: 15px; }
.wizard__submit .btn { min-width: 260px; min-height: 56px; font-size: 16px; }

/* ───────── Результаты ───────── */
.results[hidden] { display: none; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.fact { background: var(--peach); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); }
.fact b { color: var(--ink); font-weight: 600; }
.reco-list { display: grid; gap: 40px; margin-top: 56px; }
.reco { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.reco:nth-child(even) .reco__media { order: 2; }
.reco__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--peach-2); }
.reco__media img { width: 100%; height: 100%; object-fit: cover; }
.reco__rank { position: absolute; left: 20px; top: 16px; font-family: var(--serif); font-style: italic; font-size: 54px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); line-height: 1; }
.reco__region { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); font-weight: 600; }
.reco__name { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin-top: 8px; }
.reco__note { color: var(--ink-2); margin: 14px 0 0; }
.meter { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.meter__val { font-family: var(--serif); font-size: 44px; line-height: 1; grid-row: span 2; }
.meter__label { font-weight: 600; font-size: 15px; }
.meter__bar { height: 6px; background: var(--peach-2); border-radius: 3px; overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--coral-strong); border-radius: 3px; transform-origin: left; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.reasons { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.reasons li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.reasons li::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; font-size: 14px; background: #e3efe7; color: var(--good); }
.reasons li.neg::before { content: "−"; background: #f8e1da; color: var(--bad); }
.reco__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trace { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.trace[hidden] { display: none; }
.trace table { width: 100%; border-collapse: collapse; font-size: 14px; }
.trace td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.trace td:first-child { width: 52px; font-weight: 700; color: var(--ink-3); }
.trace td.cf { width: 64px; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; padding-left: 12px; }
.trace .pos { color: var(--good); }
.trace .neg { color: var(--bad); }
.trace__sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.trace__sum b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

.empty { text-align: center; padding: 48px 24px; background: var(--peach); border-radius: 6px; margin-top: 48px; }
.empty h3 { font-size: 28px; color: var(--coral); }
.empty p { color: var(--ink-2); }

.ranking { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 32px; }
.ranking summary { cursor: pointer; font-family: var(--serif); font-size: 24px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.ranking summary::-webkit-details-marker { display: none; }
.ranking summary::after { content: "+"; font-family: var(--sans); font-size: 28px; font-weight: 300; }
.ranking[open] summary::after { content: "−"; }
.rank-rows { margin-top: 24px; display: grid; gap: 2px; }
.rank-row { display: grid; grid-template-columns: 36px minmax(160px, 1.2fr) 2fr 56px; gap: 16px; align-items: center; padding: 10px 8px; border-radius: 4px; background: none; border: 0; text-align: left; width: 100%; }
.rank-row:hover { background: var(--peach); }
.rank-row__n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rank-row__bar { height: 8px; border-radius: 0 4px 4px 0; background: var(--peach-2); position: relative; overflow: hidden; }
.rank-row__bar i { position: absolute; inset: 0 auto 0 0; background: var(--coral); border-radius: 0 4px 4px 0; }
.rank-row__bar.is-neg i { background: var(--ink-3); }
.rank-row__v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.excluded { margin-top: 28px; color: var(--ink-2); font-size: 14px; }
.excluded b { display: block; color: var(--ink); margin-bottom: 8px; font-size: 15px; }

/* ───────── Каталог ───────── */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.filter { border: 1px solid rgba(243,239,233,.35); background: transparent; color: #f3efe9; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; }
.filter:hover { border-color: #f3efe9; }
.filter[aria-pressed="true"] { background: #f3efe9; color: var(--green); border-color: #f3efe9; }
.catalog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; margin-top: 48px; }
.card { background: none; border: 0; padding: 0; color: inherit; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; }
.card__img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--green-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__name { font-family: var(--serif); font-size: 19px; margin-top: 14px; line-height: 1.3; }
.card__meta { font-size: 13px; color: #b5c4be; margin-top: 4px; }
.catalog__count { text-align: center; color: #b5c4be; font-size: 14px; margin-top: 16px; }

/* ───────── Календарь сезонов ───────── */
.heat-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.heat { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.heat th { font-weight: 600; color: var(--ink-3); padding: 10px 4px; text-transform: capitalize; }
.heat th.cur { color: var(--coral-ink); }
.heat td.name { white-space: nowrap; padding: 4px 16px 4px 12px; text-align: left; }
.heat td.name button { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; }
.heat td.name button:hover { text-decoration: underline; text-underline-offset: 4px; }
.heat td.c { height: 30px; border-radius: 3px; position: relative; }
.heat td.c.cur { box-shadow: inset 0 0 0 2px var(--ink); }
.q0 { background: var(--q0); } .q1 { background: var(--q1); } .q2 { background: var(--q2); } .q3 { background: var(--q3); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 12px; border-radius: 2px; display: inline-block; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 4px; max-width: 260px; box-shadow: var(--shadow); opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.tip b { display: block; font-weight: 600; }

/* ───────── Как это работает ───────── */
.arch { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.arch__item { padding: 28px 22px 0; }
.arch__item + .arch__item { border-left: 1px solid var(--line); }
.arch__item b { font-family: var(--serif); font-style: italic; color: var(--coral); font-size: 32px; font-weight: 400; display: block; line-height: 1; }
.arch__item h3 { font-size: 20px; margin-top: 16px; }
.arch__item p { color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }

.rules { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.rule { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rule__id { font-weight: 700; color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.rule__t { font-weight: 600; }
.rule__d { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.rule__d i { font-style: normal; font-weight: 600; color: var(--ink); }

.mycin { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--peach); border-radius: 6px; padding: 48px; }
.mycin h3 { font-size: 32px; color: var(--coral); line-height: 1.2; }
.mycin p { color: var(--ink-2); }
.formula { font-family: var(--serif); font-size: 18px; line-height: 2; background: #fff; border-radius: 6px; padding: 24px 28px; }
.formula small { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-3); line-height: 1.5; margin-top: 8px; }

/* ───────── CTA и футер ───────── */
.cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); }
.cta .eyebrow { margin-bottom: 10px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); font-style: italic; }
.cta .btn { margin-top: 28px; }
.footer { background: var(--charcoal); color: #cfcfd4; padding: 72px 0 40px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .logo { color: #fff; font-size: 28px; }
.footer .logo em { color: #f0a893; }
.footer p { margin: 14px 0 0; max-width: 380px; color: #a9a9b0; }
.footer h4 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #fff; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: #cfcfd4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer button.linkish { background: none; border: 0; padding: 0; color: #cfcfd4; text-align: left; }
.footer button.linkish:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #45454b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8e8e95; font-size: 13px; }

/* ───────── Модальное окно ───────── */
.modal { border: 0; padding: 0; max-width: min(1040px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 48px); border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0,0,0,.45); overflow: hidden; }
.modal::backdrop { background: rgba(25, 22, 22, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .28s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
.modal__scroll { max-height: calc(100vh - 48px); overflow-y: auto; }
.modal__close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__hero { position: relative; aspect-ratio: 21 / 9; background: var(--peach-2); }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.modal__hero figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,.85); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.modal__hero figcaption a { color: inherit; }
.modal__body { padding: 40px 48px 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.modal__body h2 { font-size: 40px; line-height: 1.1; margin-top: 8px; }
.modal__about { color: var(--ink-2); margin-top: 18px; }
.hl { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hl li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.hl li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-top: 9px; }
.facts-side h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); font-weight: 600; }
.facts-side section + section { margin-top: 28px; }
.mini-cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.mini-cal div { height: 28px; border-radius: 3px; }
.mini-cal-l { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-top: 6px; font-size: 11px; color: var(--ink-3); text-align: center; }
.season-line { font-size: 14px; color: var(--ink-2); margin-top: 12px; display: grid; gap: 4px; }
.season-line b { color: var(--ink); font-weight: 600; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 1fr 120px 28px; gap: 12px; align-items: center; font-size: 14px; }
.bar__t { height: 6px; border-radius: 0 3px 3px 0; background: var(--peach-2); overflow: hidden; }
.bar__t i { display: block; height: 100%; background: var(--coral-strong); border-radius: 0 3px 3px 0; }
.bar__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ───────── Появление при прокрутке ───────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Адаптив ───────── */
@media (max-width: 1080px) {
  .rail { grid-auto-columns: calc((100% - 48px) / 3); }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .arch { grid-template-columns: repeat(3, 1fr); }
  .arch__item:nth-child(4) { border-left: 0; }
  .arch__item { padding-bottom: 28px; }
  .modal__body { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .header__in { grid-template-columns: auto 1fr auto; height: 64px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; color: var(--ink); flex-direction: column; gap: 0; padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; order: -1; }
  .logo { font-size: 22px; justify-self: center; }
  .header__cta .btn { padding: 0 12px; }
  .header__cta .btn span { display: none; }
  .searchbar { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .searchbar label { border-right: 0; border-bottom: 1px solid var(--line); }
  .rail { grid-auto-columns: 72%; gap: 16px; }
  .season-head { flex-direction: column; align-items: stretch; }
  .season-head .arrows { display: none; }
  .about-grid, .trio { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .trio__card { aspect-ratio: 4 / 3; }
  .step { padding: 24px 18px; }
  .step__hint { margin-left: 0; width: 100%; }
  .months { grid-template-columns: repeat(4, 1fr); }
  .options { grid-template-columns: 1fr 1fr; }
  .option { min-height: 0; }
  .reco { grid-template-columns: 1fr; gap: 24px; }
  .reco:nth-child(even) .reco__media { order: 0; }
  .rank-row { grid-template-columns: 28px 1fr 52px; }
  .rank-row__bar { grid-column: 2 / 4; grid-row: 2; }
  .catalog { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .card__name { font-size: 17px; }
  .arch { grid-template-columns: 1fr; }
  .arch__item + .arch__item { border-left: 0; border-top: 1px solid var(--line); }
  .rules { grid-template-columns: 1fr; }
  .mycin { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .modal { max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
  .modal__scroll { max-height: 100vh; }
  .modal__hero { aspect-ratio: 4 / 3; }
  .modal__body { padding: 28px 20px 40px; }
  .modal__body h2 { font-size: 30px; }
  .bar { grid-template-columns: 1fr 90px 24px; }
}
@media (max-width: 420px) {
  .months { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: 1fr; }
}
