/* ttmod1.buzz — мобильная версия, светлая тема */
:root {
  --bg: #f4f5f9;
  --paper: #ffffff;
  --ink: #0e1014;
  --text: #2b303b;
  --muted: #5f6676;
  --line: #e1e4eb;
  --brand: #fe2c55;
  --brand-deep: #d3123d;
  --aqua: #25f4ee;
  --aqua-deep: #067370;
  --ok: #12804a;
  --ok-bg: #e9f7ef;
  --bad: #c0262d;
  --warn: #8a5300;
  --warn-bg: #fff5e3;
  --radius: 16px;
  --app: 480px;
  --shadow: 0 1px 2px rgba(14, 16, 20, .04), 0 8px 24px rgba(14, 16, 20, .06);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%;
  background: #dde1e8;
}
body {
  max-width: var(--app); min-height: 100vh; margin: 0 auto; padding-bottom: 80px;
  font-family: var(--font); font-size: 16px; line-height: 1.68;
  color: var(--text); background: var(--bg);
  box-shadow: 0 0 0 1px rgba(14, 16, 20, .05), 0 24px 80px rgba(14, 16, 20, .14);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.22; letter-spacing: -.02em; }
h1 { margin: 0 0 .85rem; font-size: clamp(1.7rem, 7.2vw, 2.05rem); font-weight: 800; }
h2 { margin: 0 0 .9rem; font-size: clamp(1.35rem, 5.6vw, 1.6rem); font-weight: 800; }
h3 { margin: 1.3rem 0 .4rem; font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--brand); }
strong, b { color: var(--ink); font-weight: 700; }

.container { width: calc(100% - 2rem); margin-inline: auto; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--ink); color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: 0;
  text-shadow: -1.5px -1px 0 var(--aqua), 1.5px 1px 0 var(--brand);
}
.brand b { color: var(--brand); font-weight: 800; }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  color: var(--ink); font-size: 1.25rem; cursor: pointer;
}
.menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
  padding: .5rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 30px rgba(14, 16, 20, .08);
}
.menu.is-open { display: flex; }
.menu a { padding: .75rem .25rem; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--brand-deep); }
.menu .menu__cta {
  margin-top: .75rem; padding: .8rem 1rem; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; text-align: center; font-weight: 700;
}
.menu .menu__cta:hover { background: var(--brand-deep); color: #fff; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 50px; padding: .8rem 1.35rem; border: 1px solid transparent; border-radius: 14px;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn--main { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(254, 44, 85, .28); }
.btn--main:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--block { width: 100%; }
.actions { display: grid; gap: .6rem; margin: 1.3rem 0; }

/* Первый экран */
.hero {
  padding: 1.5rem 0 2rem;
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(37, 244, 238, .18), transparent 65%),
    radial-gradient(420px 260px at 100% 12%, rgba(254, 44, 85, .13), transparent 65%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; gap: 1.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; padding: .32rem .75rem;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--aqua); box-shadow: 0 0 0 3px rgba(37, 244, 238, .25);
}
.lead { margin: 0 0 1rem; color: var(--text); font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.facts li { margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.facts span { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts b { font-size: .98rem; }

.phone {
  width: min(78%, 250px); margin: 0 auto; padding: 8px; border-radius: 28px; background: var(--ink);
  box-shadow: 0 24px 50px rgba(14, 16, 20, .22), 0 0 0 1px rgba(14, 16, 20, .08);
}
.phone img { width: 100%; border-radius: 21px; background: #fff; }
.phone figcaption { padding: .55rem .35rem .15rem; color: #c9ced8; font-size: .8rem; line-height: 1.45; text-align: center; }

/* Блоки */
.block { padding: 2.4rem 0; }
.block--tight { padding: 1.5rem 0 0; }
.block--white { background: var(--paper); border-block: 1px solid var(--line); }
.block__head { margin-bottom: 1.3rem; }
.block__head p { color: var(--muted); }
.block__head p:last-child { margin-bottom: 0; }
.article > :last-child { margin-bottom: 0; }

/* Содержание */
.toc { padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.toc__title { margin: 0 0 .6rem; color: var(--ink); font-weight: 800; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand-deep); text-decoration: underline; }
details.toc { margin: 0 0 1.6rem; padding: 0; box-shadow: none; }
details.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0; padding: .85rem 1.15rem; list-style: none; cursor: pointer;
}
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after { content: "▾"; color: var(--brand); transition: transform .2s; }
details.toc[open] summary::after { transform: rotate(180deg); }
details.toc nav { padding: 0 1.15rem 1rem; }

/* Выноски */
.callout { margin: 1.3rem 0; padding: .95rem 1.05rem; border-left: 4px solid var(--aqua-deep); border-radius: 0 12px 12px 0; background: #eafcfb; }
.callout--warn { border-color: #e59a00; background: var(--warn-bg); }
.callout--ok { border-color: var(--ok); background: var(--ok-bg); }
.callout > :last-child { margin-bottom: 0; }

/* Причины */
.reasons { display: grid; gap: .85rem; }
.reason { padding: 1.2rem 1.15rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.reason__num { display: inline-block; margin-bottom: .55rem; padding: .2rem .6rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; }
.reason h3 { margin-top: 0; }
.reason p { margin: 0; }

/* Шаги */
.steps { counter-reset: s; display: grid; gap: .75rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.steps > li {
  counter-increment: s; position: relative; margin: 0;
  padding: 1rem 1rem 1rem 3.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.steps > li::before {
  content: counter(s); position: absolute; left: .95rem; top: .95rem;
  display: grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
}
.steps h3 { margin: 0 0 .25rem; font-size: 1.02rem; }
.steps p { margin: 0; }

/* Таблицы */
.table-wrap { margin: 1.3rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.table-wrap th, .table-wrap td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap thead th { background: #f7f8fb; color: var(--ink); font-size: .82rem; font-weight: 700; }
.table-wrap tbody th { color: var(--ink); font-weight: 600; }
.table-wrap tr:last-child > * { border-bottom: 0; }
.table-wrap .hl { background: #fff4f6; }
.table-wrap--small table { min-width: 0; }
.yes { color: var(--ok); font-weight: 600; }
.no { color: var(--bad); font-weight: 600; }
.mid { color: var(--warn); font-weight: 600; }

/* Функции */
.fgrid { display: grid; gap: .85rem; }
.fcard { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.fcard h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .65rem; }
.fcard__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eafcfb; color: var(--aqua-deep); font-size: 1rem; }
.fcard ul { margin: 0; padding-left: 1.1rem; }

/* Список функций с пояснениями */
.opts { margin: 0 0 1.3rem; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.opts li { margin: 0; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.opts li:last-child { border-bottom: 0; }
.opts b { display: block; }

/* Галерея */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: .8rem;
  margin: 1.4rem 0 0; padding-bottom: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery figure { margin: 0; padding: 6px; border-radius: 20px; background: var(--ink); scroll-snap-align: start; }
.gallery img { width: 100%; border-radius: 15px; background: #fff; }
.gallery figcaption { padding: .5rem .35rem .2rem; color: #d3d7df; font-size: .8rem; line-height: 1.45; text-align: center; }
.shot { max-width: 260px; margin: 1.4rem auto; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq summary { position: relative; padding: .95rem 2.8rem .95rem 1.05rem; color: var(--ink); font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 1.4rem; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq__a { padding: 0 1.05rem 1rem; }
.faq__a p:last-child { margin-bottom: 0; }

/* Внутренние страницы */
.page-head { padding: 1.3rem 0 1.6rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; color: var(--muted); font-size: .85rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-deep); }
.meta { margin: 0; color: var(--muted); font-size: .86rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 1.6rem 0 2.4rem; }
.layout .article h2 { margin-top: 2.2rem; }
.layout .article h2:first-child, .layout .article .toc + h2 { margin-top: 0; }
.side { display: grid; gap: 1rem; align-content: start; }

/* Карточка файла */
.filebox { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.filebox__title { margin: 0 0 .7rem; color: var(--ink); font-size: 1.08rem; font-weight: 800; }
.spec { margin: 0 0 1rem; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* Проблемы и решения */
.issue { margin: 0 0 1.1rem; padding: 1.15rem 1.1rem .35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.issue h2 { margin-top: 0 !important; font-size: clamp(1.18rem, 5vw, 1.35rem); }
.issue__why { padding: .7rem .9rem; border-radius: 10px; background: #f6f7fa; }

/* Ссылки на разделы */
.links { display: grid; gap: .7rem; }
.links a {
  display: block; padding: .95rem 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .15s;
}
.links a:hover { border-color: var(--brand); color: var(--ink); }
.links span { display: block; margin-top: .2rem; color: var(--muted); font-size: .86rem; font-weight: 400; }

/* Призыв скачать */
.cta-band { padding: 2.2rem 0; background: var(--ink); color: #d6dae2; }
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band__in { display: grid; gap: 1.1rem; }
.cta-band p { margin: 0; }

/* Подвал */
.footer { padding: 2.2rem 0 1.4rem; background: #0b0d11; color: #a8afbd; font-size: .92rem; }
.footer a { color: #d9dde5; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; margin-bottom: .8rem; }
.footer__grid { display: grid; gap: 1.5rem; margin-bottom: 1.6rem; }
.footer__h { margin: 0 0 .55rem; color: #fff; font-weight: 700; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: .4rem; }
.footer__legal { margin: 0; padding-top: 1.1rem; border-top: 1px solid #1f232b; font-size: .8rem; line-height: 1.55; }

/* Нижняя панель */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--app); margin-inline: auto;
  padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(14, 16, 20, .07);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__in { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.sticky-cta__txt { font-size: .86rem; line-height: 1.35; }
.sticky-cta .btn { flex-shrink: 0; min-height: 44px; padding: .6rem 1.1rem; }
