@import url(fonts.css);
:root {
  --bg: #080B09; --bg2: #0D120E; --line: #263127; --glow: #123B22;
  --lime: #C6F24E; --ink: #0A120B; --text: #F2F5F0; --muted: #9AA59B;
  --r-lg: 28px; --r-md: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: Unbounded, sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1.08;
  margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6.4vw, 84px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: 18px; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* кнопки-пилюли */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  font: 700 16px Manrope, sans-serif; text-decoration: none; border: 1.5px solid var(--line); background: transparent;
  color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap; }
.btn:hover { border-color: var(--lime); }
.btn.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn.primary:hover { background: #d6fa72; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* шапка */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 11, 9, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 15px Unbounded, sans-serif; text-decoration: none;
  letter-spacing: .02em; }
.logo img { width: 30px; height: 30px; }
header nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15px; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--text); }
header .btn { height: 44px; padding: 0 20px; font-size: 15px; }

/* первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(28, 92, 50, .55), rgba(18, 59, 34, .25) 55%, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 20px; color: #C9D2C7; max-width: 30em; margin: 26px 0 34px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 14px; color: var(--muted); }
.tv { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.6); }

/* разделы */
section.block { padding: 96px 0; border-top: 1px solid #141b15; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.head p { max-width: 30em; color: var(--muted); }

/* шаги — это последовательность, поэтому с номерами */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; list-style: none;
  padding: 0; margin: 0; }
.steps li { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px 28px; background: var(--bg2); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px;
  height: 40px; border-radius: 999px; border: 1.5px solid var(--lime); color: var(--lime);
  font: 700 16px Unbounded, sans-serif; margin-bottom: 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* что делает программа: крупная картинка слева, список справа */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.list { display: grid; gap: 0; }
.list .item { padding: 22px 0; border-bottom: 1px solid #172018; }
.list .item:first-child { padding-top: 0; }
.list .item h3 { margin-bottom: 6px; font-size: 17px; }
.list .item p { color: var(--muted); font-size: 15.5px; }

/* приложения */
.apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.apps .pill { height: 44px; padding: 0 18px; font-size: 15px; color: var(--text); }

/* цены */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prices.one { grid-template-columns: minmax(0, 520px); justify-content: center; }
/* карточка цены + счётчик «Сколько устройств дома?» (15.11) */
.prices.duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.price { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; background: var(--bg2);
  display: flex; flex-direction: column; }
.price.best { border-color: var(--lime); background: radial-gradient(120% 90% at 100% 0%, rgba(28,92,50,.45), var(--bg2) 60%); }
.price .sum { font: 700 52px/1 Unbounded, sans-serif; margin: 22px 0 6px; }
.price .sum small { font-size: 18px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.price li { padding-left: 30px; position: relative; color: #C9D2C7; }
.price li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230A120B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.price .btn { margin-top: auto; align-self: flex-start; }
.note { color: var(--muted); font-size: 14.5px; margin-top: 18px; }

/* устройства */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dev { border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.dev h3 { margin-bottom: 12px; }
.dev p { color: var(--muted); }
.dev.no { border-style: dashed; }

/* вопросы */
.faq details { border-bottom: 1px solid #172018; padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px;
  font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font: 500 26px/1 Manrope, sans-serif; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 46em; }

/* скачать */
.download { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.download::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1100px; height: 700px;
  transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(28,92,50,.5), transparent 70%); }
.download .wrap { position: relative; }
.download p { color: #C9D2C7; margin: 18px auto 34px; max-width: 32em; }
.download .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--text); font: 700 13px Unbounded, sans-serif; text-transform: uppercase; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
footer .req { line-height: 1.75; }
footer .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #141b15; font-size: 13px; line-height: 1.7; }
.ph { background: rgba(198, 242, 78, .12); color: var(--lime); border-radius: 6px; padding: 0 5px; }

/* юридические страницы */
.doc { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.doc .date { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 19px; margin: 40px 0 14px; }
.doc p, .doc li { color: #C9D2C7; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 8px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: #C9D2C7; }
.doc .draft { border: 1px dashed var(--lime); border-radius: 14px; padding: 14px 18px; color: var(--lime);
  font-size: 14.5px; margin-bottom: 32px; }

@media (max-width: 960px) {
  header nav { display: none; }
  header .btn { margin-left: auto; }
  .hero .wrap, .split, .prices, .devices, footer .cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .head { flex-direction: column; align-items: start; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
  .price { padding: 26px; }
  .btn { width: 100%; justify-content: center; }
  header .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* поиск моделей */
.devsearch input { width: 100%; height: 58px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg2); color: var(--text); font: 500 17px Manrope, sans-serif; outline: none; }
.devsearch input:focus { border-color: var(--lime); }
.devsearch .muted { margin: 14px 4px; font-size: 15px; }
.devlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.devlist .m { padding: 12px 0; border-bottom: 1px solid #172018; display: flex; flex-direction: column; gap: 2px; }
.devlist .m b { font-weight: 700; font-size: 15.5px; }
.devlist .m span { color: var(--muted); font-size: 13.5px; }
#devMore { margin-top: 20px; }
@media (max-width: 960px) { .devlist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .devlist { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* шторка «Было / Стало» на первом экране */
.compare { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0,0,0,.6); aspect-ratio: 16 / 9; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.compare .lbl-old { position: absolute; top: 14px; z-index: 2; height: 30px; padding: 0 12px; border-radius: 999px;
  display: flex; align-items: center; font: 700 13px Manrope, sans-serif; background: rgba(8,11,9,.75); backdrop-filter: blur(6px); }
.compare .lbl.l { left: 14px; }
.compare .lbl.r { right: 14px; color: var(--lime); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: var(--lime); z-index: 2;
  transform: translateX(-1px); pointer-events: none; }
.compare .handle i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px;
  border-radius: 999px; background: var(--lime); color: var(--ink); display: grid; place-items: center;
  font: 700 15px Manrope, sans-serif; font-style: normal; letter-spacing: -1px; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.compare input:focus-visible + * , .compare:focus-within .handle i { outline: 2px solid #fff; outline-offset: 2px; }

/* подписи «Было / Стало» над шторкой */
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cmp-head .tag { height: 34px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center;
  font: 700 14px Manrope, sans-serif; border: 1.5px solid var(--line); color: var(--text); }
.cmp-head .tag.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cmp-head .hint { color: var(--muted); font-size: 13px; }
.cmp-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; text-align: center; }
/* метка на тарифе */
.price { position: relative; }
.price .badge { position: absolute; top: 24px; right: 24px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font: 700 12.5px Manrope, sans-serif; display: inline-flex; align-items: center; }
/* мобильные: логотип в одну строку, длинные заголовки документов не вылезают */
.logo { white-space: nowrap; flex: none; }
.doc h1 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) {
  .doc { padding: 40px 16px 72px; }
  .doc h1 { font-size: clamp(16px, 5vw, 22px); letter-spacing: 0; hyphens: manual; }
  .logo { font-size: 13px; gap: 8px; }
  .logo img { width: 26px; height: 26px; }
  header.top .wrap { gap: 12px; }
  header .btn, header.top .btn { height: 38px; padding: 0 14px; font-size: 14px; width: auto; }
  .price .badge { top: 20px; right: 20px; }
}

.hero .wrap { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* строка систем под главным заголовком */
.h1-sub { margin: 14px 0 0; color: var(--lime); font: 700 clamp(14px, 1.6vw, 18px) Manrope, sans-serif; letter-spacing: .02em; }

/* карточка «не проверено» */
.dev.warn { border-color: rgba(255, 196, 0, .45); }
.dev.warn h3 { color: #FFC83D; }

/* карусель «как открыть программу» */
.opencar { max-width: 760px; margin: 56px auto 0; text-align: left; }
.opencar h3 { font-size: 22px; text-align: center; }
.opencar > .muted { text-align: center; margin: 10px auto 18px; }
.opencar .small { font-size: 12.5px; margin-top: 10px; text-align: center; }
.opencar .tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.opencar .tab { height: 38px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: 700 14px Manrope, sans-serif; cursor: pointer; }
.opencar .tab.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.opencar .car { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0c100d; }
.opencar .car img { display: block; width: 100%; height: auto; }
.opencar .cap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.opencar .txt { display: flex; flex-direction: column; gap: 4px; }
.opencar .n { color: var(--lime); font: 700 12px Manrope, sans-serif; letter-spacing: .08em; }
.opencar .t { font-size: 15px; }
.opencar .nav { display: flex; gap: 8px; flex: none; }
.opencar .nav button { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
.opencar .dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 14px; }
.opencar .dots i { width: 8px; height: 8px; border-radius: 9px; background: var(--line); cursor: pointer; }
.opencar .dots i.on { width: 22px; background: var(--lime); }
@media (max-width: 560px) { .opencar .cap { flex-direction: column; align-items: flex-start; } }

/* ссылки на PDF-инструкции */
.helpdl { text-align: center; font-size: 14px; margin-top: 14px; color: var(--muted); }
.helpdl a, .dlnote a { color: var(--lime); }
.dlnote { font-size: 14px; color: var(--muted); margin-top: 18px !important; }

/* счётчик «Сколько устройств дома?» рядом с ценой */
.calc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; background: var(--bg2); display: flex; flex-direction: column; gap: 14px; }
.calc > .muted { font-size: 15.5px; max-width: 30em; }
.calc-row { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.calc-btn { width: 54px; height: 54px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: 600 24px Manrope, sans-serif; cursor: pointer; transition: border-color .15s; }
.calc-btn:hover:not(:disabled) { border-color: var(--lime); }
.calc-btn:disabled { opacity: .35; cursor: default; }
.calc-n { min-width: 150px; text-align: center; }
.calc-n b { display: block; font: 700 44px/1 Unbounded, sans-serif; }
.calc-n span { color: var(--muted); font-size: 15px; }
.calc-sum { border-top: 1px solid #1a231b; padding-top: 18px; margin-top: 6px; }
.calc-sum b { display: block; font: 700 40px/1.05 Unbounded, sans-serif; color: var(--lime); }
.calc-sum span { color: var(--muted); font-size: 14.5px; }
.calc-ex { margin-top: auto; display: grid; gap: 8px; }
.calc-ex span { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: #C9D2C7; padding: 10px 14px; border-radius: 14px; background: #0a0f0b; }
.calc-ex em { font-style: normal; }
.calc-ex b { color: var(--text); margin-right: 8px; }
.calc-ex i { font-style: normal; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .prices.duo { grid-template-columns: 1fr; } .calc { padding: 26px; } .calc-n { min-width: 110px; } }
