/* nomadpdd.com — в стиле Mini App «Nomad PDD Glass» (miniapp/static/style.css):
   системный шрифт (SF на iPhone), светлый фон со свечением, полупрозрачные карточки,
   синяя главная кнопка, золото — только бейдж тарифа и звёзды. Без JS. */
:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --card-bg: rgba(255, 255, 255, 0.66);
  --text: #0c111c;
  --hint: #4a5263;
  --faint: #6b7385;
  --link: #144dde;
  --button: #1a56f0;
  --button-text: #ffffff;
  --separator: rgba(12, 17, 28, 0.09);
  --fill: rgba(12, 17, 28, 0.06);
  --gold: #b5841f;
  --star: #d99a1e;
  --aurora: #d6e1ff;
  --aurora-opacity: 1;
  --glass: rgba(255, 255, 255, 0.66);
  --shadow-card: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(12, 17, 28, 0.07), 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-accent: 0 8px 22px rgba(26, 86, 240, 0.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #070a12;
    --card-bg: rgba(255, 255, 255, 0.07);
    --text: #f4f6fb;
    --hint: #a9b1c2;
    --faint: #7f889b;
    --link: #7aa7ff;
    --button: #2a64f2;
    --separator: rgba(255, 255, 255, 0.09);
    --fill: rgba(255, 255, 255, 0.07);
    --gold: #e2b75a;
    --star: #f2c14e;
    --aurora: #173a9e;
    --aurora-opacity: 0.75;
    --glass: rgba(28, 34, 48, 0.66);
    --shadow-card: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 8px 26px rgba(42, 100, 242, 0.38);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Свечение фона — как в приложении: неподвижный слой под контентом. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--aurora-opacity);
  background:
    radial-gradient(85% 45% at 12% -6%, var(--aurora), rgba(0, 0, 0, 0) 72%),
    radial-gradient(60% 35% at 100% 6%, var(--aurora), rgba(0, 0, 0, 0) 70%),
    radial-gradient(70% 30% at 0% 100%, var(--aurora), rgba(0, 0, 0, 0) 72%);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; z-index: 20; background: var(--button); color: #fff; padding: 8px 12px; border-radius: 10px; }

/* Шапка — стеклянная полоса, как панели в приложении */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--separator);
}
.top-in { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--hint); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.lang { color: var(--text); font-size: 13px; font-weight: 600; background: var(--fill); border-radius: 999px; padding: 5px 11px; }
.lang:hover { text-decoration: none; }

/* Кнопки — как .btn-primary в приложении */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 14px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--button); color: var(--button-text); box-shadow: var(--shadow-accent); }
.btn-primary:hover { opacity: .92; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 14px; border-radius: 999px; box-shadow: none; }
.btn .short { display: none; }
.more { font-size: 17px; font-weight: 500; }
.more::after { content: " ›"; }

/* Главный экран */
.hero { padding: 72px 0 24px; text-align: center; }
.hero .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 12px 30px rgba(1, 51, 166, .28); }
.hero h1 { max-width: 820px; margin: 0 auto; }
.hero .lead { max-width: 640px; margin: 18px auto 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--hint); line-height: 1.45; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 30px; }
.hero .fine { margin-top: 18px; color: var(--faint); font-size: 14px; }

/* Шапка статьи */
.page-head { padding: 44px 0 8px; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--faint); }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); }
.page-head .lead { margin-top: 16px; font-size: clamp(18px, 2vw, 20px); color: var(--hint); line-height: 1.5; }
.meta { margin-top: 12px; font-size: 14px; color: var(--faint); }

/* Секции и стекло */
main { padding-bottom: 64px; }
.sec { margin-top: 56px; }
.sec-head { text-align: center; margin-bottom: 22px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head p { color: var(--hint); margin: 0; }
.glass { background: var(--card-bg); border-radius: 24px; box-shadow: var(--shadow-card); }
.note { color: var(--faint); font-size: 14px; margin: 14px 4px 0; line-height: 1.5; }
.center { text-align: center; }

/* Цифры экзамена — одна карточка с тремя колонками */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > div { padding: 26px 18px; text-align: center; }
.stats > div + div { border-left: 0.5px solid var(--separator); }
.stats b { display: block; font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; color: var(--hint); font-size: 15px; }

/* Списки как в настройках iPhone */
.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.rows > li { display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px; position: relative; }
.rows > li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 64px; border-top: 0.5px solid var(--separator); }
.rows.plain > li + li::before { left: 18px; }
.rows b { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.rows span { display: block; color: var(--hint); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.ic svg { width: 19px; height: 19px; }
.ic-blue { background: #1a56f0; } .ic-orange { background: #f08a00; } .ic-red { background: #e5484d; }
.ic-purple { background: #8e4ff0; } .ic-teal { background: #0f9dad; } .ic-gray { background: #6b7385; }
.rows a.row { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-weight: 500; margin: -15px -18px; padding: 15px 18px; }
.rows a.row:hover { text-decoration: none; background: var(--fill); }
.rows a.row::after { content: "›"; color: var(--faint); font-size: 22px; line-height: 1; }

/* Тарифы — как выбор тарифа в приложении */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tier { position: relative; padding: 20px 16px 18px; border: 2px solid transparent; text-align: center; }
.tier.sel { border-color: var(--button); }
.tier .m { display: block; font-size: 14px; font-weight: 600; color: var(--hint); }
.tier b { display: block; margin: 6px 0 4px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier .s { display: block; font-size: 13px; color: var(--faint); }
.badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--gold); color: #1a1406; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* Оценка */
.rating { display: flex; flex-direction: column; align-items: center; padding: 28px 20px; text-align: center; }
.rating .score { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.stars { color: var(--star); font-size: 22px; letter-spacing: 3px; margin: 10px 0 6px; }
.rating p { margin: 0; color: var(--hint); font-size: 15px; }

/* Статья */
.summary { padding: 20px 22px; margin-top: 26px; }
.summary h2 { font-size: 15px; font-weight: 600; color: var(--hint); letter-spacing: 0; margin: 0 0 8px; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 6px 0; }
.prose { margin-top: 8px; }
.prose h2 { margin-top: 44px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 8px 0; }
.prose .steps { padding-left: 0; list-style: none; counter-reset: s; }
.prose .steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 16px 0; }
.prose .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 10px;
  background: var(--fill); color: var(--text); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card-bg); border-radius: 20px;
  box-shadow: var(--shadow-card); overflow: hidden; font-size: 16px; margin: 4px 0 14px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 13px 16px; }
.table tr + tr th, .table tr + tr td { border-top: 0.5px solid var(--separator); }
.table th { width: 38%; font-weight: 500; color: var(--hint); }
.table td { font-weight: 500; }
.cmp th { width: 30%; }
.cmp tr:first-child th { font-size: 13px; color: var(--faint); font-weight: 600; }
.sources ol { padding-left: 20px; font-size: 15px; color: var(--hint); }
.sources li { margin: 6px 0; }

/* Частые вопросы — список с раскрытием */
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; border-top: 0.5px solid var(--separator); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 44px 15px 18px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(90deg);
  color: var(--faint); font-size: 22px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(-90deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--hint); font-size: 16px; }

/* Призыв */
.cta { margin-top: 56px; padding: 34px 24px; text-align: center; }
.cta img { width: 64px; height: 64px; border-radius: 15px; margin: 0 auto 16px; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--hint); margin: 0 auto 22px; max-width: 520px; }

/* Подвал */
.foot { border-top: 0.5px solid var(--separator); padding: 30px 0 34px; font-size: 13px; color: var(--faint); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; }
.foot p { margin: 0 0 6px; line-height: 1.5; }
.foot b { color: var(--text); font-weight: 600; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: var(--hint); }
.copy { margin-top: 22px; padding-top: 16px; border-top: 0.5px solid var(--separator); }

@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .top-in { gap: 10px; }
  .btn .long { display: none; }
  .btn .short { display: inline; }
  .hero { padding: 44px 0 8px; }
  .hero .app-icon { width: 80px; height: 80px; border-radius: 18px; margin-bottom: 22px; }
  .hero .actions .btn-primary { width: 100%; }
  .sec { margin-top: 44px; }
  .stats > div { padding: 20px 8px; }
  .stats b { font-size: 40px; }
  .stats span { font-size: 13px; }
  .table th, .table td { padding: 11px 13px; font-size: 15px; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr:first-child { display: none; }
  .cmp tr + tr { border-top: 0.5px solid var(--separator); }
  .cmp tr + tr th, .cmp tr + tr td { border-top: 0; }
  .cmp th { padding-bottom: 2px; color: var(--text); font-weight: 600; }
  .cmp td { padding-top: 2px; padding-bottom: 2px; }
  .cmp td:nth-child(2) { color: var(--faint); text-decoration: line-through; }
  .cmp td:last-child { padding-bottom: 13px; }
}
@media (max-width: 380px) {
  .tiers { grid-template-columns: 1fr; }
}
