:root { color-scheme: dark; --bg: #05120C; --bg2: #0A1F15; --card: #0E2419; --line: #1F3A2B; --text: #EEF7F1; --muted: #A3BCAE; --accent: #4ADE80; --ok: #34D399; --grad: linear-gradient(100deg, #1F9D55, #4ADE80); --head: rgba(5, 18, 12, 0.88); --glass: rgba(14, 36, 25, 0.85); --edge: rgba(31, 58, 43, 0.6); --shadow: rgba(0, 0, 0, 0.35); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'Segoe UI', Roboto, -apple-system, Arial, sans-serif; overflow-x: hidden; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header { position: sticky; top: 0; z-index: 5; background: var(--head); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--edge); }
.bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 1.2px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.bar nav { margin-left: auto; display: flex; gap: 26px; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.bar nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--card); transition: transform .15s, border-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(74, 222, 128, 0.6); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3); }
.btn.sm { padding: 10px 18px; border-radius: 12px; font-size: 15px; }
.bar .btn { margin-left: 0; }

.top { position: relative; overflow: hidden; background: radial-gradient(760px 420px at 82% 0%, rgba(31, 157, 85, 0.24), transparent 70%), radial-gradient(620px 380px at 8% 100%, rgba(74, 222, 128, 0.12), transparent 70%); }
.hero { padding-top: 76px; padding-bottom: 84px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.5px; margin: 0 0 18px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 30px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

.route { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 30px 70px var(--shadow); }
.route-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.route-head img { width: 44px; height: 44px; border-radius: 12px; }
.route-head b { display: block; line-height: 1.3; }
.route-head small { color: var(--muted); font-size: 14px; }
.route ol { list-style: none; margin: 0; padding: 0; }
.route li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ''; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14); }
.route li:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 22px; bottom: -3px; width: 2px; background: var(--line); }
.route li b { display: block; font-size: 15px; line-height: 1.4; }
.route li span { color: var(--muted); font-size: 14px; }

section { padding: 72px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.3px; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 42em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.num { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }

.get { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.get .card { display: flex; flex-direction: column; gap: 10px; }
.get .card p { flex: 1; }
.get .btn { width: 100%; margin-top: 8px; }
.get .main { background: linear-gradient(160deg, rgba(31, 157, 85, 0.2), rgba(74, 222, 128, 0.07) 70%), var(--card); border-color: rgba(74, 222, 128, 0.4); }
.plat { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(74, 222, 128, 0.12); color: var(--accent); }
.plat svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { color: var(--muted); font-size: 14px; }

.price { font-size: 28px; font-weight: 800; margin: 12px 0 2px; line-height: 1.25; }
.price small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); font-weight: 600; }
.meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.links a { font-size: 14px; }
.callbtn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 14px; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: var(--text) !important; text-decoration: none; font-size: 15px !important; font-weight: 700; white-space: nowrap; }
.callbtn .ic { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#22C55E,#16A34A); }
.callbtn .ic svg { width: 17px; height: 17px; fill: #fff; }
.links.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 0; }
.contact { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text) !important; text-decoration: none; font-size: 15px !important; transition: transform .15s, border-color .15s; }
.contact:hover { transform: translateY(-2px); border-color: rgba(74, 222, 128, 0.6); }
.contact .ic { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact .ic svg { width: 22px; height: 22px; fill: #fff; }
.contact b { display: block; font-size: 15px; }
.contact small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
#contacts-hours:empty { display: none; }
#contacts-hours { margin: 0 0 18px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); white-space: pre-line; margin: 10px 0 0; }
.muted { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: -36px; position: relative; z-index: 2; }
.stat { background: linear-gradient(160deg, rgba(31, 157, 85, 0.18), rgba(74, 222, 128, 0.06) 70%), var(--card); border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 20px; padding: 22px 18px; text-align: center; box-shadow: 0 20px 50px var(--shadow); }
.stat b { display: block; white-space: nowrap; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.1; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: #FBBF24; letter-spacing: 2px; font-size: 18px; }
.review p { margin: 0; color: var(--text); flex: 1; }
.review .who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.review .av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -24px; } .stats .stat.wide { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .contact { transition: none; } .btn:hover, .contact:hover { transform: none; } }
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 44px; padding-bottom: 56px; }
  .get { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .bar { height: 60px; }
  .brand { font-size: 14px; letter-spacing: .6px; }
  .hero p { font-size: 16px; }
  .cta .btn { width: 100%; }
  section { padding: 52px 0; }
  .route { padding: 20px; }
}

/* ---- светлая тема (по настройке телефона/компьютера), цвета как в приложении ---- */
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --bg: #F2F7F4; --bg2: #E6F0EA; --card: #FFFFFF; --line: rgba(8, 30, 18, 0.12); --text: #05120C; --muted: #475E52; --accent: #1F9D55; --ok: #15803D; --head: rgba(242, 247, 244, 0.9); --glass: rgba(255, 255, 255, 0.94); --edge: rgba(8, 30, 18, 0.08); --shadow: rgba(8, 30, 18, 0.1); }
  .top { background: radial-gradient(760px 420px at 82% 0%, rgba(31, 157, 85, 0.14), transparent 70%), radial-gradient(620px 380px at 8% 100%, rgba(74, 222, 128, 0.1), transparent 70%); }
  .stat { background: linear-gradient(160deg, rgba(31, 157, 85, 0.1), rgba(74, 222, 128, 0.05) 70%), var(--card); border-color: rgba(31, 157, 85, 0.22); }
  .get .main { background: linear-gradient(160deg, rgba(31, 157, 85, 0.1), rgba(74, 222, 128, 0.05) 70%), var(--card); border-color: rgba(31, 157, 85, 0.3); }
  .plat, .why .ic { background: rgba(31, 157, 85, 0.1); }
  .review .stars { color: #B45309; }
}

/* ---- переключатель языка ---- */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); flex: none; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; border-radius: 9px; padding: 6px 9px; cursor: pointer; min-width: 36px; }
.lang button[aria-pressed="true"] { background: var(--grad); color: #fff; }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar nav + .lang, .bar .lang { margin-left: 0; }
@media (max-width: 900px) { .bar .lang { margin-left: auto; } .bar .lang + .btn { margin-left: 0; } }
@media (max-width: 420px) { .bar .btn.sm { padding: 9px 12px; } .brand span { display: none; } }

/* ---- живой счётчик ---- */
.stat[hidden] { display: none; }
.stats-note { text-align: center; color: var(--muted); font-size: 13px; margin: 12px auto 0; }

/* ---- почему MIR ---- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.why .card { display: flex; flex-direction: column; gap: 6px; }
.why .ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(74, 222, 128, 0.12); color: var(--accent); margin-bottom: 8px; }
.why .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- окно с QR-кодом (компьютер → телефон) ---- */
.qr-back { position: fixed; inset: 0; z-index: 50; background: rgba(3, 11, 7, 0.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.qr-box { width: min(380px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.qr-box h3 { margin: 0 0 6px; font-size: 20px; }
.qr-box p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.qr-img { width: 232px; max-width: 100%; margin: 0 auto 16px; border-radius: 16px; overflow: hidden; background: #fff; }
.qr-img svg { display: block; width: 100%; height: auto; }
.qr-box .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qr-box .row .btn { flex: 1 1 auto; white-space: nowrap; padding: 12px 16px; font-size: 15px; }
.qr-box .url { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ---- подсказка скачивания Android (dl.js) ---- */
.dl-help { color: var(--text); }
.cta .dl-help { flex-basis: 100%; }

/* ---- страницы Pinduoduo / Taobao / 1688 и «О компании» ---- */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.page-hero { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; letter-spacing: -0.4px; margin: 0 0 16px; }
.page-hero p { color: var(--muted); font-size: 18px; margin: 0 0 26px; max-width: 40em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.steps li::before { content: counter(s); flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.steps h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
.steps p { margin: 0; color: var(--muted); }
.tips { margin: 0; padding-left: 20px; color: var(--muted); }
.tips li { margin-bottom: 8px; }
.tips b { color: var(--text); }
.tariff-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.tariff-list[hidden] { display: none; }
.cta-band { margin-top: 8px; padding: 28px; border-radius: 24px; border: 1px solid rgba(74, 222, 128, 0.4); background: linear-gradient(160deg, rgba(31, 157, 85, 0.2), rgba(74, 222, 128, 0.07) 70%), var(--card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 28px); }
.cta-band p { margin: 0; color: var(--muted); }
.other { display: flex; flex-wrap: wrap; gap: 10px; }
.other a { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.person, .photo { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.person img, .photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg2); }
.photo img { aspect-ratio: 4 / 3; }
.person div, .photo div { padding: 14px 16px; }
.person b, .photo b { display: block; }
.person span, .photo span { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .page-hero { padding-top: 36px; padding-bottom: 40px; } .page-hero p { font-size: 16px; } .steps li { padding: 16px; gap: 12px; } .cta-band { padding: 20px; } .cta-band .btn { width: 100%; } }
