/* LARS — тёмная тема по макету «LARS: сайт и бот» */
:root {
  --bg: #0A0A0C; --bg2: #111114; --card: #17171B; --card2: #1E1E23; --line: #26262C;
  --fg: #F4F4F6; --fg2: #C9C9D0; --muted: #A0A0A9; --muted2: #8A8A94;
  --acc: #FF5A1F; --acc-soft: #FF8A4C; --acc-line: rgba(255, 90, 31, .45); --acc-bg: rgba(255, 90, 31, .12);
  --grad: linear-gradient(135deg, #FF8A4C 0%, #FF5A1F 55%, #F2470F 100%);
  --ok: #4ADE80; --err: #FF8A80;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
a { color: var(--muted); }
a:hover { color: var(--fg); }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 32px; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.block { padding-bottom: 88px; }

/* шапка */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.wordmark { font-family: Montserrat, Inter, sans-serif; font-weight: 300; font-size: 22px; letter-spacing: .4em; }
.wordmark.sm { font-size: 18px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--grad); color: #0A0A0C; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn:hover { color: #0A0A0C; filter: brightness(1.06); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; border-radius: 16px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; border: 1px solid var(--acc-line); color: var(--acc-soft); }
.btn-outline:hover { color: var(--fg); background: var(--acc-bg); filter: none; }
.btn-dark { background: var(--card2); border: 1px solid var(--line); color: var(--fg); }
.btn-dark:hover { color: var(--fg); border-color: var(--acc-line); filter: none; }
.glow { box-shadow: 0 0 40px rgba(255, 90, 31, .35); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 500; font-size: 15px; }
.chip svg, .facts svg, .checks svg, .kb svg { color: var(--acc); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--acc-bg); color: var(--acc-soft); font-size: 13px; font-weight: 500; }

/* hero */
.hero { background: radial-gradient(60% 55% at 70% 0%, rgba(255, 90, 31, .20), transparent 70%); }
.hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 88px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -.02em; }
.grad-text { background: linear-gradient(135deg, #FF9A5C, #FF5A1F 60%, #F2470F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 520px; font-size: 19px; color: var(--muted); }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }

/* телефон в hero */
.hero-phone { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; position: relative; }
.phone-glow { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 31, .38), transparent); filter: blur(30px); }
.phone { position: relative; width: 310px; max-width: 100%; padding: 14px; border-radius: 44px; background: var(--bg2); border: 1px solid #2A2A30; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.phone-screen { border-radius: 32px; background: #0C0C0F; padding: 14px 12px 16px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; color: #9A9AA3; line-height: 1.2; }
.chat-head b { display: block; color: var(--fg); font-size: 15px; }
.chat-head small { color: var(--muted2); font-size: 12px; }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; }
.bubble { background: var(--card); border-radius: 18px; padding: 14px; }
.bubble b { font-size: 16px; }
.bubble p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.kb { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.kb span { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--card2); font-size: 14px; font-weight: 500; }

/* карточки */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; overflow-wrap: anywhere; }
.card h3 { margin: 20px 0 8px; }
.card > h3:first-child, .card > h2:first-child { margin-top: 0; }
.card p { color: var(--muted); font-size: 15px; }
.ic { width: 48px; height: 48px; border-radius: 14px; background: var(--acc-bg); color: var(--acc); display: flex; align-items: center; justify-content: center; }
.num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--acc-line); color: var(--acc-soft); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.apps { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.sub { margin: -20px 0 40px; color: var(--muted); max-width: 560px; }

/* тариф */
.tariff { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.tariff > .card { flex: 1 1 360px; min-width: 0; padding: 36px; border-radius: 28px; }
.card-accent { border-color: var(--acc-line); box-shadow: 0 0 60px rgba(255, 90, 31, .18); }
.card-col { display: flex; flex-direction: column; }
.price { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price span { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.price small { font-size: 20px; color: var(--muted); }
.checks { list-style: none; margin: 28px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; }
.terms { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.term { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.term div { font-size: 14px; color: var(--muted); }
.term b { display: block; margin-top: 4px; font-size: 26px; }
.note { margin-top: auto !important; padding-top: 24px; font-size: 14px !important; color: var(--muted2) !important; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--acc); display: flex; transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); }

/* финальный CTA */
.cta { border: 1px solid var(--acc-line); border-radius: 32px; padding: clamp(32px, 6vw, 72px) 32px; text-align: center; background: radial-gradient(70% 120% at 50% 0%, rgba(255, 90, 31, .22), transparent 70%), var(--bg2); }
.cta h2 { margin: 0; font-size: clamp(28px, 4.5vw, 46px); letter-spacing: -.02em; }
.cta p { margin: 16px auto 32px; max-width: 480px; color: var(--muted); font-size: 18px; }

/* внутренние страницы: кабинет, оплата, документы */
.page { max-width: 720px; padding-top: 24px; padding-bottom: 88px; }
.page .card { margin-bottom: 16px; }
.page h2 { font-size: 24px; margin-bottom: 16px; }
.page .card p { margin-bottom: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(52, 199, 89, .14); color: var(--ok); font-size: 13px; font-weight: 500; }
.status.off { background: var(--acc-bg); color: var(--acc-soft); }
.rows { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; font-size: 15px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; }
.rows span { color: var(--muted); }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: var(--fg); font: inherit; margin: 0 0 12px; }
.field:focus { outline: 2px solid var(--acc-line); border-color: transparent; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); cursor: pointer; font-weight: 500; }
.opt input:checked + span { border-color: var(--acc); background: var(--acc-bg); color: var(--fg); }
.opt input:focus-visible + span { outline: 2px solid var(--acc-soft); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.err { color: var(--err) !important; }
.doc { line-height: 1.6; }
.doc p { color: var(--fg2) !important; font-size: 15px !important; margin: 0 0 14px !important; }
.doc b { color: var(--fg); }

/* подвал */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 40px; padding-bottom: 48px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-links a { text-decoration: none; }
.foot-meta { font-size: 13px; color: var(--muted2); line-height: 1.7; }

@media (max-width: 640px) {
  .nav { order: 3; width: 100%; gap: 8px 20px; }
  .hero-in { padding-top: 24px; gap: 40px; }
  .price span { font-size: 56px; }
  .tariff > .card { padding: 24px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
