/* Лендинг «Тайга Рядом». Палитра и шрифты — те же, что в Mini App, чтобы
   человек, пришедший с сайта, узнал приложение. Без сборщиков и внешних
   библиотек: одна страница, которую должна прочитать и модерация ЮKassa. */
:root {
  --bg: #F3EEE2;
  --card: #FBF8F1;
  --ink: #2C2A24;
  --muted: #6E6A5E;
  --green: #35543F;
  --green-soft: #6F8C6E;
  --line: #E3DCCB;
  --accent: #B5432E;
  --radius: 18px;
  --shadow: 0 2px 14px rgba(44, 42, 36, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: 'Alegreya', Georgia, serif; color: var(--green); }
h1 { font-size: 40px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 27px; margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--green); }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ─── шапка ─────────────────────────────────────────────────────────── */
header.top {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 0 10px;
}
header.top .mark {
  width: 84px; height: auto; flex: 0 0 auto; display: block;
}
header.top .name {
  font-family: 'Alegreya', Georgia, serif; font-size: 30px; line-height: 1.1;
  color: var(--green); font-weight: 700;
}
header.top .tag { color: var(--muted); font-size: 16px; margin-top: 3px; }

/* ─── первый экран ──────────────────────────────────────────────────── */
.hero { padding: 26px 0 8px; }
.hero .lead { font-size: 20px; color: var(--ink); max-width: 640px; }
.hero .sub { color: var(--muted); max-width: 640px; }

.btn {
  display: inline-block; background: var(--green); color: #fff;
  text-decoration: none; font-weight: 600;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.btn:hover { background: #2b4634; }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--line); box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 6px; }

.disclaimer {
  background: #FBF1EA; border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 0 12px 12px 0;
  margin: 26px 0; font-size: 16px;
}

section { margin: 46px 0; }

/* ─── карточки возможностей ─────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.feature .ico { font-size: 22px; }
.feature h3 { margin: 6px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* ─── блок «фича + скриншот» ────────────────────────────────────────── */
.showcase { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: center; margin: 30px 0; }
.showcase.flip { grid-template-columns: 300px 1fr; }
.showcase.flip .shot { order: -1; }
.showcase .text h3 { font-size: 22px; }
.showcase .text p { color: var(--muted); }
.shot img {
  width: 100%; display: block; border-radius: 16px;
  border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(44, 42, 36, .12);
}
.shot.doc img { border-radius: 10px; }

/* Отчёт — документ, а не экран телефона: в узкой колонке он нечитаем,
   поэтому текст сверху, а страница во всю ширину под ним. */
.doc-block { margin: 30px 0; }
.doc-block .text { max-width: 640px; margin-bottom: 18px; }
.doc-block .shot { max-width: 620px; margin: 0 auto; }
.shot .cap { text-align: center; color: var(--muted); font-size: 14px; margin-top: 8px; }


/* ─── карусель скриншотов ───────────────────────────────────────────── */
.gallery { position: relative; margin: 26px 0 10px; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail { gap: 0; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: center;
  padding: 0 2px;
}
.slide img {
  width: 100%; display: block; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(44, 42, 36, .13);
}
.slide .cap { font-size: 17px; color: var(--muted); }
.slide .cap b {
  display: block; font-family: 'Alegreya', Georgia, serif; color: var(--green);
  font-size: 22px; margin-bottom: 8px; font-weight: 700;
}

.rail-nav { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 4px; }
.rail-nav button {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--green);
  font-size: 17px; line-height: 1; transition: background .2s ease, transform .2s ease;
}
.rail-nav button:hover { background: #efe9db; transform: scale(1.06); }
.dots { display: flex; gap: 7px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line);
  transition: background .25s ease, width .25s ease;
}
.dots i.on { background: var(--green-soft); width: 20px; border-radius: 4px; }

/* ─── появление при прокрутке ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide img, .rail-nav button { transition: none; }
  .rail { scroll-behavior: auto; }
}

/* ─── тарифы ────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.plan.paid { border-color: var(--green-soft); }
.plan .kicker { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.plan .price { font-family: 'Alegreya', Georgia, serif; font-size: 34px; color: var(--green); margin: 6px 0 2px; }
.plan .price small { font-size: 16px; color: var(--muted); font-family: 'Onest', sans-serif; }
.plan .year { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.plan ul { padding-left: 20px; margin: 0; }
.plan li { font-size: 16px; }

.limits {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px; font-size: 16px; color: var(--muted);
}

/* ─── шаги ──────────────────────────────────────────────────────────── */
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li {
  counter-increment: s; position: relative; padding-left: 42px; margin-bottom: 14px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}

/* ─── реквизиты ─────────────────────────────────────────────────────── */
table.req { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.req td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
table.req tr:last-child td { border-bottom: 0; }
table.req td:first-child { color: var(--muted); width: 42%; }

footer {
  border-top: 1px solid var(--line); margin-top: 50px; padding: 22px 0 40px;
  color: var(--muted); font-size: 15px;
}
footer a { margin-right: 16px; }

@media (max-width: 720px) {
  h1 { font-size: 30px; }
  header.top { gap: 12px; }
  header.top .mark { width: 62px; }
  header.top .name { font-size: 24px; }
  header.top .tag { font-size: 14px; }
  h2 { font-size: 23px; }
  .slide { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
  .slide img { max-width: 250px; }
  .slide .cap { text-align: center; font-size: 16px; }
  .slide .cap b { font-size: 20px; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 18px; }
  .showcase.flip .shot { order: 0; }
  .shot { max-width: 300px; margin: 0 auto; }
  .plans { grid-template-columns: 1fr; }
}
