/* ============================================================
   Центр оскарження судових рішень — адвокат Ігор Боровик
   Тёмный премиальный дизайн: графит + золото, бумага для контента
   ============================================================ */

:root {
  --bg: #0d1320;
  --bg-2: #121a2b;
  --bg-3: #1a2438;
  --paper: #f7f4ee;
  --paper-2: #efeadf;
  --card: #ffffff;
  --ink: #141b29;
  --text: #333c4e;
  --muted: #697187;
  --muted-dark: #9aa4b8;
  --gold: #c8a15c;
  --gold-2: #e4c384;
  --gold-dim: rgba(200, 161, 92, .16);
  --line: rgba(20, 30, 50, .12);
  --line-dark: rgba(255, 255, 255, .1);
  --red: #b4463c;
  --green: #3e7c5b;
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 50px -18px rgba(15, 25, 45, .25);
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 18px; }
h3 { font-size: 22px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 20px; color: var(--text); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 19, 32, .92);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-in {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; color: #fff; }
.brand b { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #cfd6e4; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 9px 13px; border-radius: 8px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-nav a.active { color: var(--gold-2); }

.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff !important; font-weight: 600;
  border: 1px solid var(--line-dark); border-radius: 10px;
  padding: 9px 15px !important;
}
.nav-phone:hover { border-color: var(--gold); background: var(--gold-dim) !important; }
.nav-phone svg { width: 15px; height: 15px; fill: var(--gold); }

.burger { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(200,161,92,.14), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(60,90,140,.16), transparent 55%),
    var(--bg);
  color: #e9edf5;
  padding: 170px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,161,92,.5), transparent);
}
.hero .kicker { color: var(--gold-2); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-sub { font-size: 20px; color: #b9c2d4; max-width: 620px; margin: 24px 0 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 15px 28px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  font-family: var(--font-body);
}
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1d1503; box-shadow: 0 10px 30px -10px rgba(200,161,92,.55); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(200,161,92,.65); }
.btn-ghost { border-color: rgba(255,255,255,.25); color: #e9edf5; }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-dim); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 54px;
  border-top: 1px solid var(--line-dark);
}
.hero-trust div {
  padding: 22px 34px 0 0; margin-right: 34px;
  font-size: 14.5px; color: #aeb8ca;
}
.hero-trust b { display: block; color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 3px; }

/* ---------- Results marquee ---------- */

.marquee {
  background: var(--bg-2);
  border-block: 1px solid var(--line-dark);
  overflow: hidden; padding: 15px 0;
}
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 42s linear infinite; }
.marquee span { color: #c6cedd; font-size: 14.5px; white-space: nowrap; display: flex; align-items: center; gap: 14px; }
.marquee span::before { content: "◆"; color: var(--gold); font-size: 9px; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: 92px 0; }
.section-dark { background: var(--bg); color: #cfd6e4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-paper2 { background: var(--paper-2); }

.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head p { color: var(--muted); font-size: 18px; }
.section-dark .sec-head p { color: var(--muted-dark); }

/* ---------- Deadline calculator ---------- */

.deadcalc {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid rgba(200,161,92,.25);
  border-radius: 20px; padding: 40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px;
  box-shadow: var(--shadow);
}
.deadcalc h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.deadcalc p { color: var(--muted-dark); font-size: 15px; }
.dc-field { margin-bottom: 18px; }
.dc-field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 8px; }
.dc-field input, .dc-field select {
  width: 100%; padding: 13px 15px; font-size: 16px; font-family: var(--font-body);
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid var(--line-dark); border-radius: 10px; outline: none;
}
.dc-field input:focus, .dc-field select:focus { border-color: var(--gold); }
.dc-field select option { color: var(--ink); }

.dc-results { display: grid; gap: 12px; align-content: start; }
.dc-row {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.045); border: 1px solid var(--line-dark);
  border-radius: 12px; padding: 16px 18px;
}
.dc-row .num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--gold-2); min-width: 74px; }
.dc-row .num.danger { color: #e08b82; }
.dc-row .num.over { color: #8d97ab; }
.dc-row b { color: #fff; font-size: 15px; display: block; }
.dc-row small { color: var(--muted-dark); font-size: 13px; }
.dc-note { font-size: 12.5px; color: #7f8aa0; }

/* ---------- Practice cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.p-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.p-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--gold); opacity: 0; transition: opacity .25s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200,161,92,.45); }
.p-card:hover::before { opacity: 1; }
.p-card .idx { font-family: var(--font-display); font-size: 15px; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.p-card h3 { margin-bottom: 10px; }
.p-card p { font-size: 15px; color: var(--muted); flex: 1; }
.p-card .go { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.p-card:hover .go { gap: 12px; }
.p-card .go { transition: gap .2s; }

/* ---------- Case cards ---------- */

.case-card {
  background: var(--bg-2); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 28px;
  position: relative;
}
.case-card .tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-2);
  border: 1px solid rgba(200,161,92,.35); border-radius: 20px;
  padding: 4px 12px; margin-bottom: 16px;
}
.case-card h3 { font-size: 19px; font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.case-card dl { display: grid; gap: 10px; font-size: 14.5px; }
.case-card dt { color: var(--muted-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.case-card dd { color: #d8deea; margin-bottom: 6px; }
.case-card .result { color: var(--gold-2); font-weight: 600; }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 84px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--gold);
}
.step h3 { font-size: 19px; font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--muted); }

/* ---------- 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; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-size: 18px; font-weight: 600; color: var(--ink);
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-size: 26px; color: var(--gold);
  transition: transform .25s; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq .a { padding: 0 4px 24px; color: var(--muted); max-width: 780px; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(200,161,92,.18), transparent 60%),
    var(--bg);
  color: #fff; border-radius: 22px; padding: 60px 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--muted-dark); }
.cta-contacts { display: grid; gap: 12px; }
.cta-contacts a {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: 12px; padding: 15px 20px; font-weight: 600; color: #fff;
  transition: border-color .2s, background .2s;
}
.cta-contacts a:hover { border-color: var(--gold); background: var(--gold-dim); }
.cta-contacts .ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--gold-dim); display: grid; place-items: center;
  font-size: 17px;
}

/* ---------- Reviews ---------- */

.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.review .stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.review p { font-size: 15.5px; color: var(--text); flex: 1; }
.review .who { font-size: 13.5px; color: var(--muted); }
.review .who b { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(200,161,92,.13), transparent 60%),
    var(--bg);
  color: #fff; padding: 160px 0 70px;
}
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #b9c2d4; max-width: 660px; margin-top: 20px; }

.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted-dark); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span::before { content: "/"; margin-right: 8px; color: #4a5468; }

/* ---------- Deadline chips on practice pages ---------- */

.dead-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.dead-chip {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 20px; display: flex; align-items: baseline; gap: 12px;
}
.dead-chip b { font-family: var(--font-display); font-size: 26px; color: var(--red); }
.dead-chip span { font-size: 13.5px; color: var(--muted); }

.warn {
  border-left: 3px solid var(--red); background: #faf0ee;
  padding: 18px 22px; border-radius: 0 10px 10px 0; font-size: 15.5px; color: #6b3d38;
}

.note-box {
  border-left: 3px solid var(--gold); background: var(--gold-dim);
  padding: 18px 22px; border-radius: 0 10px 10px 0; font-size: 15.5px;
}

/* ---------- Prose ---------- */

.prose { max-width: 800px; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin: 34px 0 12px; }
.prose ul { margin: 0 0 1.2em 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }

.sidebar-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; position: sticky; top: 100px;
}
.sidebar-box h3 { font-size: 20px; margin-bottom: 8px; }
.sidebar-box p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.sidebar-box .price { font-family: var(--font-display); font-size: 30px; color: var(--ink); margin-bottom: 4px; }
.sidebar-box .price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); }

/* price table */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.price-table th, .price-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.price-table th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* ---------- Articles ---------- */

.art-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .25s;
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-card .date { font-size: 13px; color: var(--gold); font-weight: 700; }
.art-card h3 { margin-bottom: 8px; }
.art-card p { font-size: 15px; color: var(--muted); }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-line { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-dim); display: grid; place-items: center; flex-shrink: 0; font-size: 17px; }
.contact-line b { display: block; color: var(--ink); font-size: 15px; }
.contact-line span, .contact-line a { font-size: 15px; color: var(--muted); }
.contact-line a { text-decoration: none; }
.contact-line a:hover { color: var(--gold); }

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; font-size: 15.5px; font-family: var(--font-body);
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); outline: none;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); }
.form-field textarea { min-height: 110px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg); color: #96a0b4; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); }
.site-footer a { color: #96a0b4; text-decoration: none; display: block; padding: 5px 0; font-size: 15px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: #5f6a80; flex-wrap: wrap;
}

/* ---------- Sticky mobile call ---------- */

.sticky-call {
  display: none; position: fixed; z-index: 90;
  left: 16px; right: 16px; bottom: 16px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1d1503; text-decoration: none; font-weight: 700; text-align: center;
  padding: 15px; border-radius: 14px; box-shadow: 0 14px 40px -8px rgba(0,0,0,.45);
}

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .deadcalc { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 32px; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 130px 0 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .art-card { grid-template-columns: 1fr; gap: 10px; }

  .main-nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line-dark);
    padding: 12px 20px 20px; gap: 2px;
    transform: translateY(-130%); transition: transform .3s;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 13px 10px; font-size: 16px; }
  .nav-phone { margin-top: 8px; justify-content: center; }

  .burger {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark);
    border-radius: 10px; cursor: pointer;
  }
  .burger span, .burger span::before, .burger span::after {
    display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: .25s;
  }
  .burger span::before { content: ""; position: absolute; top: -6px; }
  .burger span::after { content: ""; position: absolute; top: 6px; }
  .burger.open span { background: transparent; }
  .burger.open span::before { transform: rotate(45deg); top: 0; }
  .burger.open span::after { transform: rotate(-45deg); top: 0; }

  .sticky-call { display: block; }
  .hero-trust { gap: 0; }
  .hero-trust div { padding-right: 20px; margin-right: 20px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step::before { font-size: 26px; }
  .deadcalc { padding: 26px 20px; }
}
