/* Стиль сайта. Акцентный цвет задаётся в site.config.json (ACCENT) и попадает в --accent. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #18161b;
  --muted: #5e5966;
  --line: #e7e1d8;
  --dark: #17151a;
  --radius: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
mark.ph { background: #ffe14d; color: #1a1a1a; padding: 0 3px; border-radius: 4px; }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-weight: 800; text-decoration: none; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); font-weight: 700; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { box-shadow: none; }
.btn--disabled { background: #d9d4cc; color: #6d6875; cursor: not-allowed; }
.btn--disabled:hover { transform: none; box-shadow: none; }

/* первый экран */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 28px; }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* телефоны, нарисованные CSS */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 16px; }
.phone { width: 150px; aspect-ratio: 9 / 18.5; border-radius: 28px; background: var(--dark); padding: 8px; box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .45); flex: none; }
.phone:nth-child(2) { width: 176px; }
.phone:nth-child(1), .phone:nth-child(3) { transform: translateY(-18px); }
.screen { height: 100%; border-radius: 21px; position: relative; overflow: hidden; background: linear-gradient(160deg, #3b3550, #1f1b29); }
.phone:nth-child(1) .screen { background: linear-gradient(160deg, #ffb37a, #ff4f5e); }
.phone:nth-child(3) .screen { background: linear-gradient(160deg, #7ad1ff, #5864ff); }
.screen .play { position: absolute; left: 50%; top: 38%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .9); }
.screen .play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid var(--dark); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.screen .caption { position: absolute; left: 12px; right: 12px; top: 58%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .85); }
.screen .caption::after { content: ""; position: absolute; left: 15%; right: 15%; top: 16px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .6); }
.screen .timeline { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 34px; border-radius: 8px; background: rgba(0, 0, 0, .55); display: flex; gap: 3px; padding: 6px; }
.screen .timeline i { flex: 1; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.screen .timeline i:nth-child(2) { flex: 2; background: var(--accent); }
.screen .timeline i:nth-child(4) { flex: 1.5; }

/* секции */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--dark); color: #f4f1ec; }
.section--dark .muted, .section--dark p { color: #bdb6c4; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.section--alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.icon { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }

.results { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.results li { padding-left: 34px; position: relative; }
.results li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.results li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

.program { list-style: none; counter-reset: m; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.program li { counter-increment: m; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 76px; position: relative; }
.program li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font-weight: 800; font-size: 24px; color: var(--accent); }
.program p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--accent); padding-top: 16px; }
.steps li::before { content: "Шаг " counter(s); display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #bdb6c4; margin-bottom: 6px; }

/* тарифы */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tariff { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.tariff--featured { border: 2px solid var(--accent); box-shadow: 0 24px 40px -28px var(--accent); }
.tariff .price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; }
.tariff .lead-s { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tariff li { padding: 7px 0 7px 26px; border-top: 1px dashed var(--line); position: relative; font-size: 15px; }
.tariff li::before { content: "+"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.tariff .btn { width: 100%; }
.legal-note { margin: 22px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

/* вопросы */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contacts a { text-decoration: none; font-weight: 700; }

/* документы */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); }
.doc h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: 0; }
.doc p, .doc li { color: #2d2a31; }
.doc ol, .doc ul { padding-left: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; }
.req { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.req th, .req td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 38%; color: var(--muted); font-weight: 600; }
.status { text-align: center; padding: 96px 0; }
.status .wrap { max-width: 640px; }

/* подвал */
.site-footer { background: var(--dark); color: #cfc8d6; font-size: 14px; padding: 44px 0 36px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.site-footer a { color: #f4f1ec; }
.site-footer p { margin: 0 0 6px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #2f2b36; padding-top: 18px; color: #8f8899; }

/* планшет */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { order: -1; }
  .tariffs, .grid-3, .contacts { grid-template-columns: 1fr 1fr; }
  .tariff--featured { grid-column: 1 / -1; order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav a:not(.nav-cta) { display: none; }
}
/* телефон */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 40px; }
  .section { padding: 52px 0; }
  .phones { order: 0; margin-top: 8px; }
  .phone { width: 92px; border-radius: 20px; padding: 5px; }
  .phone:nth-child(2) { width: 112px; }
  .screen { border-radius: 16px; }
  .screen .play { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .screen .play::after { left: 12px; top: 9px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
  .screen .timeline { height: 22px; padding: 4px; }
  .tariffs, .grid-3, .grid-2, .contacts, .results, .program, .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .req th, .req td { display: block; width: auto; }
  .req th { padding-bottom: 0; border-bottom: 0; }
}
