:root {
  --bg: #ffffff;
  --text: #14171c;
  --muted: #5b6270;
  --line: rgba(20, 28, 44, .08);
  --ink: #14171c;
  --sky: #8ec0f0;
  --grass: #b3d98e;
  --peach: #f2c3a3;
  --link: #2f6db3;
  --surface: #f2f4f7;
  --tint: #e3edf8;
  --radius: 24px;
  --max: 1160px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* шкала: пять размеров на весь сайт */
  --t1: clamp(32px, 3.6vw, 50px);
  --t2: clamp(28px, 3.2vw, 40px);
  --t3: 20px;
  --t4: 17px;
  --t5: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t4)/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
h1, h2, h3 { margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: var(--t1); line-height: 1.08; font-weight: 600; }
h2 { font-size: var(--t2); line-height: 1.12; font-weight: 600; }
h3 { font-size: var(--t3); line-height: 1.3; font-weight: 600; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 640px; }
.small, .note { font-size: var(--t5); color: var(--muted); }
section { position: relative; padding: 104px 0; scroll-margin-top: 56px; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); margin: 0; }

/* хедер */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .74); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color .3s ease, border-color .3s ease;
}
body.home header.top { position: fixed; left: 0; right: 0; }
header.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; white-space: nowrap; transition: color .3s ease; }
.logo img { width: 30px; height: 30px; }
nav.menu {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px; font-size: var(--t5);
  background: rgba(20, 28, 44, .04); border: 1px solid var(--line);
  transition: background-color .3s ease, border-color .3s ease;
}
nav.menu a { padding: 7px 18px; border-radius: 999px; color: #3b4150; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
nav.menu a:hover { background: rgba(255, 255, 255, .85); color: var(--text); }
.top-cta {
  justify-self: end; padding: 9px 20px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: var(--t5); font-weight: 600; text-decoration: none; transition: background-color .3s ease, color .3s ease;
}
body.home header.top:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.home header.top:not(.scrolled) .logo { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
body.home header.top:not(.scrolled) nav.menu {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  backdrop-filter: blur(12px) saturate(1.6); -webkit-backdrop-filter: blur(12px) saturate(1.6);
}
body.home header.top:not(.scrolled) nav.menu a { color: #fff; }
body.home header.top:not(.scrolled) nav.menu a:hover { background: rgba(255, 255, 255, .22); }
body.home header.top:not(.scrolled) .top-cta { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  header.top .wrap { grid-template-columns: 1fr auto; height: 64px; }
  nav.menu { display: none; }
}

/* кнопки */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 600 var(--t5)/1.2 var(--font); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: #2c323c; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid rgba(20, 28, 44, .18); }
.btn.ghost:hover { background: var(--surface); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #e9edf2; }

/* hero: заголовок помещается в окно поезда */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 80px 0 30vh; text-align: center; overflow: hidden; background: #a9c6df;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 34% 32% at 50% 46%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 75%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-inner { max-width: min(52vw, 720px); margin: 0 auto; }
.hero h1 { margin-bottom: 18px; color: #101318; }
.hero .lead { margin: 0 auto; max-width: 520px; color: #1d2128; text-shadow: 0 1px 10px rgba(255, 255, 255, .8); }
.hero .actions {
  display: inline-flex; gap: 6px; padding: 6px; margin-top: 28px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  backdrop-filter: blur(12px) saturate(1.6); -webkit-backdrop-filter: blur(12px) saturate(1.6);
}
.hero .actions .btn.ghost { background: transparent; border: 0; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.hero .actions .btn.ghost:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 900px) { .hero-inner { max-width: 640px; } }
@media (max-width: 760px) {
  .hero { align-items: flex-start; padding: calc(18svh + 20px) 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: var(--t5); }
}
@media (max-width: 600px) {
  .hero .actions { flex-direction: column-reverse; border-radius: 26px; width: 100%; }
}

/* поверхности: заливка без теней и обводок, под курсором мягкий свет */
.glass { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .85), transparent 60%);
  transition: opacity .35s ease;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

/* кому подходит */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; align-items: end; margin-bottom: 40px; }
.split .lead { margin: 0; }
.roles { margin: 0; font-size: var(--t3); line-height: 1.5; color: #2b3140; }
.fit { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.fit .glass { padding: 32px; }
.fit .glass.fit-yes { background: #ebf3e3; }
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.marks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.marks li::before {
  content: ""; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.marks.marks-no li::before {
  background: rgba(20, 28, 44, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7' fill='none' stroke='%235b6270' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.marks.marks-no li { color: var(--muted); }
@media (max-width: 860px) { .split, .fit { grid-template-columns: 1fr; } }

/* что внутри: бенто */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 28px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 32px; align-content: start; }
.tile.wide .num { grid-column: 1 / -1; }
.tile.wide h3 { margin: 0; }
.tile p { color: var(--muted); margin: 0; }
.num { font-size: var(--t5); font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.tile.accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.accent p, .tile.accent .num { color: rgba(255, 255, 255, .68); }
.tile.accent::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), transparent 60%); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; display: flex; } .tile.wide h3 { margin-bottom: 16px; } }

/* как работает */
/* маршрут: станции на пути вместо трех одинаковых карточек */
.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.route::before {
  content: ""; position: absolute; left: 22px; right: calc((100% - 64px) / 3 - 22px); top: 21px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 18px, transparent 18px 26px);
}
.route li { position: relative; }
.route li::before {
  counter-increment: s; content: counter(s); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: var(--t5); font-weight: 600; box-shadow: 0 0 0 6px #fff;
}
.route li:last-child::before { background: #fff; color: var(--ink); box-shadow: 0 0 0 3px var(--ink), 0 0 0 9px #fff; }
.route p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .route { grid-template-columns: 1fr; gap: 28px; }
  .route::before { display: none; }
  .route li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 50px; bottom: -22px; width: 3px; background: repeating-linear-gradient(180deg, var(--ink) 0 18px, transparent 18px 26px); }
  .route li { padding-left: 68px; }
  .route li::before { position: absolute; left: 0; top: 0; margin: 0; }
}
.video {
  margin-top: 48px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; text-align: center;
  color: #3b4150; font-size: var(--t5); padding: 16px;
}
.video iframe { width: 100%; height: 100%; border: 0; }

/* сравнение */
.table-scroll { overflow-x: auto; }
table.compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.compare tr:last-child td { border-bottom: 0; }
table.compare th { font-size: var(--t5); font-weight: 600; color: var(--muted); }
table.compare td:first-child { color: #2b3140; }
table.compare .us { background: #fff; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); font-weight: 600; }
table.compare th.us { border-top: 2px solid var(--ink); border-radius: 20px 20px 0 0; color: var(--ink); background: var(--tint); }
table.compare tr:last-child .us { border-bottom: 2px solid var(--ink); border-radius: 0 0 20px 20px; }
.us-name { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t4); }
.us-name img { width: 28px; height: 28px; }
.t-yes, .t-no { display: inline-flex; align-items: center; gap: 10px; }
.t-yes::before, .t-no::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; }
.t-yes::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.t-no { color: var(--muted); font-weight: 400; }
.t-no::before { background: rgba(20, 28, 44, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 12h8' fill='none' stroke='%235b6270' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* что понадобится: формула */
.formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.formula .glass, .formula .result { padding: 24px; border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.formula h3 { margin: 0; }
.formula p { margin: 0; font-size: var(--t5); color: var(--muted); }
.formula .who { font-size: var(--t5); font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.formula .op { align-self: center; font-size: var(--t2); font-weight: 300; color: #9aa1ad; }
.formula .result { background: var(--ink); color: #fff; justify-content: flex-end; }
.formula .result p { color: rgba(255, 255, 255, .68); }
@media (max-width: 960px) {
  .formula { grid-template-columns: 1fr; }
  .formula .op { justify-self: center; line-height: 1; }
}

/* тарифы */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: 36px; display: flex; flex-direction: column; gap: 20px; border-radius: 28px; }
.plan h3 { margin: 0; }
.plan .sum { font-size: var(--t2); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; }
.plan .btn { margin-top: auto; }
.plan.main { position: relative; isolation: isolate; color: #fff; background: var(--ink); border: 0; }
.plan.main ul { color: rgba(255, 255, 255, .72); }
/* блик по кнопке покупки */
.btn.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(142, 192, 240, .55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } .plan { padding: 28px; } }

/* шортсы */
.shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.short { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.short .screen {
  aspect-ratio: 9 / 16; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  background: var(--surface);
}
.short .play { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform .25s ease; }
.short:hover .play { transform: scale(1.08); }
.short .play::before { content: ""; margin-left: 4px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.short span { font-size: var(--t5); font-weight: 600; }
@media (max-width: 760px) { .shorts { grid-template-columns: 1fr 1fr; } }

/* статьи */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.post-card .cover {
  height: 168px; margin: 8px 8px 0; border-radius: 18px; padding: 20px; display: flex; align-items: flex-end;
  font-size: var(--t3); font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.cover.c1 { background: var(--tint); }
.cover.c2 { background: var(--ink); color: #fff; }
.cover.c3 { background: #f4e7dc; }
.post-card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: var(--t5); }
.post-card .more { margin-top: auto; padding-top: 12px; font-size: var(--t5); font-weight: 600; transition: transform .2s ease; }
.post-card:hover .more { transform: translateX(4px); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }

/* об авторе */
.author { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 36px; }
.avatar { width: 112px; height: 112px; border-radius: 32px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-size: var(--t2); font-weight: 600; color: #fff; }
.author h2 { margin-bottom: 12px; }
.author p { color: #2b3140; }
@media (max-width: 600px) { .author { grid-template-columns: 1fr; padding: 28px; } }

/* вопросы */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 104px; }
.faq-side p { color: var(--muted); }
.faq-list { padding: 8px 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%2314171c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transition: transform .3s ease, background-color .3s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--tint); }
.faq-list details p { margin: 0; padding: 0 48px 20px 0; color: var(--muted); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 24px; } .faq-side { position: static; } }

footer { padding: 40px 0; color: var(--muted); font-size: var(--t5); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* статьи: страницы */
article.post { padding: 56px 0 96px; }
article.post h1 { font-size: var(--t2); }
article.post h2 { font-size: var(--t3); margin-top: 40px; }
article.post h3 { font-size: var(--t4); margin: 24px 0 8px; }
article.post .meta { color: var(--muted); font-size: var(--t5); margin-bottom: 28px; }
article.post pre { background: var(--surface); border-radius: 16px; padding: 16px; overflow-x: auto; font-size: var(--t5); white-space: pre-wrap; }
article.post code { font-size: var(--t5); }
.cta { margin-top: 48px; padding: 32px; }
.cta p { margin: 0 0 16px; }
.crumbs { font-size: var(--t5); color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn.shine::after { animation: none; }
  .btn, .short .play, .post-card .more, .glass::after { transition: none; }
}
