/* Лендинг juristrutier.net. Цвета логотипа: тёмно-синий #12305E, синий #2160A8, жёлтый #F2C744.
   Интерактив без JS: вкладки, счётчик дней и шансы — на radio + :checked. Решения — docs/DECISIONS.md. */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --fg: #12305e; --text: #3a4554; --muted: #5a6472; --line: #e3e1da;
  --accent: #2160a8; --accent-hover: #12305e; --accent-fg: #ffffff; --accent-bg: #e4edf8;
  --navy: #12305e; --yellow: #f2c744; --amber: #a65f00; --amber-bg: #f3e6d3; --danger: #b3361f;
  --chip: #ffffff; --chip-line: #d8d4c8;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1626; --surface: #13223a; --fg: #eef2f8; --text: #c9d3e1; --muted: #9aa8bb; --line: #22344f;
    --accent: #5b93e0; --accent-hover: #8db0f2; --accent-fg: #0c1626; --accent-bg: #1e3550;
    --amber: #f2c744; --amber-bg: #3a3326; --danger: #f08a75;
    --chip: #13223a; --chip-line: #2c4466;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; overflow-x: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--fg); }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 24px; }
h3 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
p { margin: 0 0 14px; color: var(--text); }
.muted { color: var(--muted); }
img { max-width: 100%; }

/* ---------- шапка ---------- */
header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--serif); font-weight: 600; font-size: 21px; }
.logo img { width: 34px; height: 34px; }
header nav { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 16px; }
header nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; padding: 10px 4px; }
header nav a:not(.btn):hover { color: var(--fg); }
header .wrap { flex-wrap: nowrap; }
@media (max-width: 560px) {
  header nav { gap: 8px; }
  header nav a.btn { padding: 10px 14px; font-size: 15px; }
  header .long { display: none; }
  .logo { font-size: 19px; }
}

/* ---------- кнопки ---------- */
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); padding: 15px 24px; border-radius: 14px; text-decoration: none; font-weight: 650; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:hover { color: var(--accent-fg); background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
@media (prefers-color-scheme: dark) { .btn:hover { color: var(--accent-fg); } }
.btn:active { transform: scale(.97); }
.btn.big { font-size: 18px; padding: 17px 28px; }

/* ---------- герой ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 72px; }
.hero .copy { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero .lead { font-size: 20px; max-width: 480px; margin: 0; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero .note { font-size: 15px; color: var(--muted); }
.visual { flex: 1 1 300px; min-width: 0; max-width: 420px; position: relative; height: 460px; margin: 0 auto; }
.visual .halo { position: absolute; left: 50%; top: 20px; width: 340px; height: 340px; max-width: 100%; transform: translateX(-50%); border-radius: 999px; background: var(--accent-bg); }
.visual .phone { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); }
.float { position: absolute; background: var(--surface); color: var(--fg); border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(18, 48, 94, .14); display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; animation: bob 4s ease-in-out infinite; }
.float.f1 { left: 0; top: 96px; }
.float.f2 { right: 0; top: 210px; animation-delay: 1.3s; font-weight: 400; }
.float.f2 b { font-size: 24px; color: var(--amber); }
.float.f3 { left: 12px; bottom: 30px; background: var(--navy); color: #fff; animation-delay: 2.6s; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--yellow); }
.scanline { animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(190px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- секции ---------- */
section { padding: 72px 0; }
section.white { background: var(--surface); }
section.navy { background: var(--navy); color: #fff; }
section.navy h2 { color: #fff; }
section.navy p { color: #c3cfe2; }
.split { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.split > * { flex: 1 1 340px; min-width: 0; }

/* ---------- радио-интерактив (без JS) ---------- */
.ui { position: relative; }
.ui > input { position: absolute; opacity: 0; pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.pills label { cursor: pointer; border: 2px solid var(--chip-line); background: var(--chip); color: var(--fg); border-radius: 999px; padding: 11px 18px; min-height: 48px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; transition: background-color .25s, color .25s, border-color .25s, transform .16s cubic-bezier(.3, 1.4, .5, 1); }
.pills label:active { transform: scale(.96); }
.pills label .n { width: 26px; height: 26px; border-radius: 999px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ui > input:focus-visible + * { outline: none; }
.panel { display: none; }

/* шаги */
#s1:checked ~ * [for="s1"], #s2:checked ~ * [for="s2"], #s3:checked ~ * [for="s3"], #s4:checked ~ * [for="s4"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#s1:checked ~ * [for="s1"] .n, #s2:checked ~ * [for="s2"] .n, #s3:checked ~ * [for="s3"] .n, #s4:checked ~ * [for="s4"] .n { background: var(--yellow); color: var(--navy); }
#s1:checked ~ .stage .p1, #s2:checked ~ .stage .p2, #s3:checked ~ .stage .p3, #s4:checked ~ .stage .p4 { display: flex; }
#s1:focus-visible ~ * [for="s1"], #s2:focus-visible ~ * [for="s2"], #s3:focus-visible ~ * [for="s3"], #s4:focus-visible ~ * [for="s4"],
#d0:focus-visible ~ * [for="d0"], #d3:focus-visible ~ * [for="d3"], #d10:focus-visible ~ * [for="d10"], #d14:focus-visible ~ * [for="d14"], #d20:focus-visible ~ * [for="d20"],
#k1:focus-visible ~ * [for="k1"], #k2:focus-visible ~ * [for="k2"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.stage { background: var(--bg); border-radius: 24px; padding: 32px; }
.stage .panel { flex-wrap: wrap; align-items: center; gap: 32px 40px; animation: fade-in .45s var(--ease) both; }
.stage .panel svg { flex: 1 1 260px; max-width: 280px; height: auto; margin: 0 auto; }
.stage .panel div { flex: 1 1 280px; min-width: 0; }
.stage .panel p { font-size: 18px; margin: 0; }

/* счётчик дней */
#d0:checked ~ * [for="d0"], #d3:checked ~ * [for="d3"], #d10:checked ~ * [for="d10"], #d14:checked ~ * [for="d14"], #d20:checked ~ * [for="d20"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.counter { background: var(--surface); border-radius: 24px; padding: 32px; box-shadow: 0 1px 2px rgba(18, 48, 94, .05), 0 16px 40px rgba(18, 48, 94, .08); display: flex; flex-direction: column; gap: 14px; }
.counter .num { display: flex; align-items: baseline; gap: 12px; }
.counter .num b { font-size: 88px; line-height: .9; font-variant-numeric: tabular-nums; color: var(--amber); }
.counter .num span { font-size: 20px; font-weight: 600; }
.counter .panel { animation: fade-in .35s var(--ease) both; }
.counter .num.urgent b { color: var(--danger); }
.track { height: 10px; border-radius: 999px; background: var(--amber-bg); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: var(--yellow); width: 80%; transition: width .6s var(--ease), background-color .4s; }
#d0:checked ~ * .track i { width: 100%; } #d3:checked ~ * .track i { width: 80%; } #d10:checked ~ * .track i { width: 33%; background: var(--yellow); }
#d14:checked ~ * .track i { width: 7%; background: var(--danger); } #d20:checked ~ * .track i { width: 0%; }
#d0:checked ~ * .q0, #d3:checked ~ * .q3, #d10:checked ~ * .q10, #d14:checked ~ * .q14, #d20:checked ~ * .q20 { display: block; }

/* шансы */
#k1:checked ~ * [for="k1"], #k2:checked ~ * [for="k2"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.navy .pills label { background: transparent; border-color: #3b5c8c; color: #fff; }
.odds .pct { font-family: var(--serif); font-weight: 600; font-size: 96px; line-height: .9; color: var(--yellow); }
.odds .row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.odds .row span { font-size: 20px; color: #c3cfe2; }
.odds .track { background: #24497f; height: 12px; margin: 14px 0; }
.odds .track i { background: var(--yellow); }
#k1:checked ~ * .odds .track i { width: 65%; } #k2:checked ~ * .odds .track i { width: 27%; }
#k1:checked ~ * .o1, #k2:checked ~ * .o2 { display: block; animation: fade-in .35s var(--ease) both; }
.odds p { color: #fff; font-size: 18px; }

/* ---------- цены ---------- */
.price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price .card { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.price .card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18, 48, 94, .1); }
.price .card.hl { box-shadow: inset 0 0 0 2px var(--accent); }
.price .card.hl:hover { box-shadow: inset 0 0 0 2px var(--accent), 0 14px 34px rgba(18, 48, 94, .1); }
.price .name { font-weight: 600; color: var(--muted); }
.price .hl .name { color: var(--accent); }
.price .amount { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1; }
.price .amount small { font-size: 18px; color: var(--muted); font-family: inherit; }
.price .card p { margin: 0; }

/* ---------- вопросы ---------- */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; animation: fade-in .3s ease-out both; }

/* ---------- финал и подвал ---------- */
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 80px 20px; }
.final h2 { margin: 0; }
.final img { width: 140px; height: 154px; animation: bob 3s ease-in-out infinite; }
footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer a { color: var(--text); }
footer .row { display: flex; gap: 18px; flex-wrap: wrap; }
footer p { margin: 0; color: var(--muted); max-width: 640px; }

/* ---------- юридические страницы ---------- */
.legal { padding: 44px 20px 70px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 8px; }
.legal h2 { margin: 36px 0 10px; font-size: 24px; }
.legal p, .legal li { color: var(--text); font-size: 17px; line-height: 1.65; }
.legal ul { padding-left: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
