/* meridianet.ru — «Меридиан», прокси с выбором страны (27.11.2026). */
:root {
  --ink: #1c1633;
  --muted: #5e5873;
  --paper: #ffffff;
  --tint: #f5f3fc;
  --line: #e4dff5;
  --violet: #2b1670;
  --violet-2: #3a1f8f;
  --mint: #34d399;
  --mint-dark: #0f7a55;
  --on-mint: #052e20;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--violet-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; margin: 0 0 10px; }
h3 { font-size: 19px; font-weight: 750; margin: 0; }
code { font: 500 13px/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace; }

/* верхняя полоса */
.md-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: var(--violet); color: #fff;
}
.md-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; }
.md-nav { display: flex; gap: 22px; }
.md-nav a { color: #d9d2ff; text-decoration: none; font-weight: 600; font-size: 15px; }
.md-nav a:hover { color: #fff; }

/* первый экран */
.md-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 5vw, 64px) clamp(36px, 7vw, 84px);
  background: radial-gradient(120% 90% at 85% 20%, #4a2bb3 0%, var(--violet) 55%, #1d0f4f 100%);
  color: #fff;
}
.md-kicker { margin: 0 0 12px; color: var(--mint); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.md-hero h1 { margin: 0 0 16px; font-size: clamp(34px, 6.4vw, 64px); font-weight: 850; }
.md-lead { margin: 0 0 26px; max-width: 36em; color: #e7e2ff; font-size: clamp(17px, 2.1vw, 20px); }
.md-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.md-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px;
  border-radius: 999px; background: var(--mint); color: var(--on-mint); text-decoration: none; font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 28px rgba(52, 211, 153, .32); transition: transform .15s ease, box-shadow .15s ease;
}
.md-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(52, 211, 153, .42); }
.md-link { color: #fff; font-weight: 650; text-underline-offset: 4px; }
.md-file { min-height: 1.4em; margin: 12px 0 0; color: #b9aef0; font: 500 13px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.md-free { margin: 6px 0 0; color: #d9d2ff; font-size: 15px; }
.md-ios { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; }
.md-globe { width: 100%; max-width: 380px; justify-self: center; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }

/* секции */
.md-sec { padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 64px); }
.md-sec--tint { background: var(--tint); }
.md-sub { margin: 0 0 28px; color: var(--muted); }
.md-note { margin: 22px 0 0; color: var(--muted); font-size: 15px; }

/* выбор страны */
.md-pick { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.md-flags { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.md-flag {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 6px 14px;
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.2; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.md-flag svg { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.md-flag:hover { transform: translateY(-2px); }
.md-flag[aria-checked="true"] { border-color: var(--mint); box-shadow: 0 8px 22px rgba(52, 211, 153, .22); }
.md-flag[aria-checked="true"] svg { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mint); }
.md-flag:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; }
.md-app { border-radius: 22px; background: var(--violet); color: #fff; overflow: hidden; box-shadow: 0 24px 50px rgba(43, 22, 112, .28); }
.md-app__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(0, 0, 0, .25); font-size: 14px; }
.md-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.md-app__bar b { margin-left: 8px; font-weight: 700; }
.md-app__body { padding: 26px 22px 24px; }
.md-app__dot { display: block; width: 18px; height: 18px; margin-bottom: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgba(52, 211, 153, .25); }
.md-app__state { margin: 0; font-size: 24px; font-weight: 800; }
.md-app__where { margin: 6px 0 12px; color: #e7e2ff; }
.md-app__where b { color: var(--mint); }
.md-app__hint { margin: 0; color: #b9aef0; font-size: 14px; }

/* шаги */
.md-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: none; }
.md-steps li { position: relative; padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.md-steps em { display: block; margin-bottom: 10px; color: var(--mint-dark); font: 800 30px/1 ui-monospace, Consolas, monospace; font-style: normal; }
.md-steps p { margin: 8px 0 0; color: var(--muted); }

/* системы */
.md-os { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.md-os li {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 18px;
  padding: 16px 12px; border-bottom: 1px solid var(--line);
}
.md-os li.is-you { background: #ecfdf5; border-radius: 12px; border-bottom-color: transparent; box-shadow: inset 0 0 0 2px var(--mint); }
.md-os__name { font-weight: 700; }
.md-os__name small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.md-os code { color: var(--muted); word-break: break-all; }
.md-os__get {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--violet-2); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap;
}
.md-os li.is-you .md-os__get { background: var(--mint); color: var(--on-mint); }

/* вопросы */
.md-faq { max-width: 820px; }
.md-faq h3 { margin: 0; border-bottom: 1px solid var(--line); }
.md-faq button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px;
  border: 0; background: none; color: var(--ink); text-align: left; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.md-faq button::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--violet-2); color: #fff; font-size: 22px; line-height: 32px; text-align: center; transition: transform .2s; }
.md-faq button[aria-expanded="true"]::after { transform: rotate(45deg); background: var(--mint); color: var(--on-mint); }
.md-faq button:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.md-faq__a { padding: 0 4px 6px; color: var(--muted); }
.md-faq__a p { margin: 12px 0 14px; }

/* подвал и служебные страницы */
.md-foot { padding: 28px clamp(16px, 5vw, 64px) 36px; background: #140b38; color: #b9aef0; font-size: 14px; }
.md-foot p { margin: 4px 0; }
.md-foot a { color: #fff; }
.md-doc { max-width: 820px; padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 64px); }
.md-doc h1 { font-size: clamp(28px, 4.6vw, 40px); margin: 0 0 12px; }
.md-doc h2 { font-size: 20px; margin: 26px 0 6px; }
.md-doc p { margin: 0 0 10px; }
.md-lost { display: grid; place-items: center; gap: 14px; min-height: 70vh; padding: 24px 16px; text-align: center; }
.md-lost strong { font-size: 86px; line-height: 1; color: var(--violet-2); }

@media (max-width: 860px) {
  .md-hero { grid-template-columns: 1fr; }
  .md-globe { max-width: 240px; order: -1; }
  .md-pick { grid-template-columns: 1fr; }
  .md-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .md-nav { display: none; }
  .md-flags { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md-os li { grid-template-columns: 1fr auto; }
  .md-os code { grid-column: 1 / -1; grid-row: 2; }
  .md-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .md-btn, .md-flag, .md-faq button::after { transition: none; }
}
