/* ===== Base ===== */
:root {
  --accent: #0066e0;
  --accent-dark: #0052b4;
  --ink: #14181f;
  --ink-soft: #4a5261;
  --bg: #ffffff;
  --bg-gray: #f4f6f9;
  --bg-dark: #101623;
  --line: #e3e7ee;
  --radius: 14px;
  --font-head: 'Commissioner', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

.accent { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-size: 16px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.header__logo { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--ink); white-space: nowrap; }
.header__nav { display: flex; gap: 20px; margin-left: auto; }
.header__nav a { color: var(--ink-soft); font-size: 15px; }
.header__nav a:hover, .header__nav a.active { color: var(--accent); }
.header__cta { white-space: nowrap; }
.header__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.header__burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ===== Hero ===== */
.hero { padding: 90px 0 70px; background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%); }
.hero__kicker { color: var(--accent); font-weight: 600; margin-bottom: 16px; font-size: 15px; }
.hero__title { font-size: 46px; font-weight: 800; max-width: 800px; margin-bottom: 20px; }
.hero__subtitle { font-size: 19px; color: var(--ink-soft); max-width: 680px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 860px; }
.hero__stats li { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.hero__stats span { color: var(--ink-soft); font-size: 14px; }

/* Page hero (inner pages) */
.page-hero { padding: 60px 0 40px; background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%); }
.page-hero h1 { font-size: 38px; font-weight: 800; max-width: 800px; margin-bottom: 14px; }
.page-hero p { font-size: 18px; color: var(--ink-soft); max-width: 700px; }
.breadcrumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--accent); }

/* ===== Sections ===== */
.section { padding: 76px 0; }
.section--gray { background: var(--bg-gray); }
.section--dark { background: var(--bg-dark); color: #dfe5ef; }
.section--dark .section__title { color: #fff; }
.section__kicker { color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.section__title { font-size: 32px; font-weight: 800; margin-bottom: 36px; max-width: 760px; }

/* ===== Grid & Cards ===== */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card__icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.card--line { border-top: 3px solid var(--accent); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--accent); }
.step h3 { font-size: 18px; margin: 10px 0 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ===== Services ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; background: #fff;
}
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.service__price { margin-top: 16px; font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.service__link { margin-top: 8px; font-size: 15px; font-weight: 600; }

/* Service detail blocks */
.service-detail { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 26px; background: #fff; }
.service-detail h2 { font-size: 24px; margin-bottom: 6px; }
.service-detail .service__price { margin: 0 0 14px; display: block; }
.service-detail ul { margin: 10px 0 0 20px; color: var(--ink-soft); }
.service-detail li { margin-bottom: 6px; }
.service-detail h4 { margin-top: 16px; font-size: 16px; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }
.about__text p { margin-bottom: 14px; color: var(--ink-soft); }
.about__list { margin: 18px 0 0 20px; color: var(--ink-soft); }
.about__list li { margin-bottom: 8px; }
.about__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about__card h3 { margin-bottom: 14px; }
.about__card ul { margin-left: 20px; color: var(--ink-soft); }
.about__card li { margin-bottom: 10px; font-size: 15px; }

/* ===== Cases ===== */
.case {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; background: #fff; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
a.case:hover { box-shadow: 0 10px 30px rgba(16,22,35,.09); transform: translateY(-2px); color: inherit; }
.case__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 12px;
}
.case h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; flex: 1; }
.case p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.case__metrics { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.case__m b {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 24px; line-height: 1.15; color: var(--accent);
}
.case__m small { font-size: 12px; color: var(--ink-soft); }
.cases__note { margin-top: 28px; color: var(--ink-soft); }

/* Case article */
.article { padding: 50px 0 76px; }
.article__body { max-width: 820px; }
.article__body h2 { font-size: 26px; margin: 36px 0 14px; }
.article__body h3 { font-size: 20px; margin: 26px 0 10px; }
.article__body p { margin-bottom: 14px; color: var(--ink-soft); }
.article__body ul, .article__body ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.article__body li { margin-bottom: 8px; }
.article__body blockquote {
  border-left: 3px solid var(--accent); padding: 10px 18px; background: var(--bg-gray);
  border-radius: 0 10px 10px 0; margin-bottom: 16px; color: var(--ink-soft);
}
.article__body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 15px; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article__body th { background: var(--bg-gray); font-family: var(--font-head); }
.article__body td strong { color: var(--ink); }
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
.table-scroll table { margin-bottom: 0; }

.result-strip { display: flex; gap: 30px; flex-wrap: wrap; background: var(--bg-gray); border-radius: var(--radius); padding: 24px 28px; margin: 26px 0; }
.result-strip div strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--accent); }
.result-strip div span { font-size: 14px; color: var(--ink-soft); }

.meta-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }
.meta-row strong { color: var(--ink); }

/* ===== Blog ===== */
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; color: inherit; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
a.post-card:hover { box-shadow: 0 10px 30px rgba(16,22,35,.09); transform: translateY(-2px); color: inherit; }
.post-card__tag { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.post-card__more { margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--accent); }

/* ===== Reviews ===== */
.review { margin: 0; height: 100%; }
.review__bubble {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px 20px 52px;
  box-shadow: 0 4px 14px rgba(16,22,35,.05);
}
.review__bubble::before {
  content: "\201C";
  position: absolute; left: 18px; top: 8px;
  font-family: Georgia, serif;
  font-size: 44px; line-height: 1;
  color: var(--accent);
}
.review__bubble p { font-size: 15px; font-style: italic; color: var(--ink); flex: 1; }
.review footer {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.review__avatar {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.review footer strong { display: block; font-family: var(--font-head); line-height: 1.3; }
.review footer span { font-size: 13px; color: var(--ink-soft); }

/* ===== Principles strip ===== */
.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 40px; }
.principle {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  border-top: 3px solid var(--accent);
  padding: 18px; font-size: 14px; color: var(--ink-soft);
}
.principle strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); margin-bottom: 6px; }

/* ===== Consent checkbox ===== */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.consent span { flex: 1; line-height: 1.5; }

/* ===== Cookie banner ===== */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin: 0 auto;
  background: var(--bg-dark); color: #dfe5ef;
  border-radius: 14px; padding: 16px 20px;
  display: flex; gap: 16px; align-items: center;
  box-shadow: 0 10px 30px rgba(16,22,35,.35);
  font-size: 14px;
}
.cookiebar a { color: #7db4ff; }
.cookiebar .btn { flex: none; }

/* ===== FAQ ===== */
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-head); font-weight: 600;
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 22px; color: var(--accent); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 22px 18px; color: var(--ink-soft); }

/* ===== Quiz ===== */
.quiz__wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.quiz__intro p { color: #aab4c5; }
.quiz { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px; }
.quiz__q { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.quiz label { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; font-size: 15px; }
.quiz label:has(input:checked) { border-color: var(--accent); background: #f0f6ff; }
.quiz input[type="radio"] { margin-right: 8px; accent-color: var(--accent); }
.quiz input[type="text"], .quiz input[type="tel"] {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; margin-bottom: 10px;
}
.quiz__footer { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.quiz__progress { color: var(--ink-soft); font-size: 14px; margin-left: auto; }
#quizNext, #quizSubmit { margin-left: 0; }
.quiz__done { margin-top: 16px; color: #1a7f37; font-weight: 500; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact__text p { color: #aab4c5; margin-bottom: 22px; }
.contact__links { list-style: none; }
.contact__links li { margin-bottom: 12px; }
.contact__links a { color: #fff; font-weight: 500; }
.contact__links a:hover { color: #7db4ff; }
.contact__form { background: #fff; border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact__form input, .contact__form textarea {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; resize: vertical;
}
.form__done { color: #1a7f37; font-weight: 500; }
.form__policy { font-size: 13px; color: var(--ink-soft); }

/* CTA band */
.cta-band { background: var(--bg-dark); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; max-width: 560px; }
.cta-band p { color: #aab4c5; margin-top: 6px; }

/* ===== Footer ===== */
.footer { background: #0b101a; color: #8b94a5; padding: 34px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__name { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.footer a { color: #8b94a5; }
.footer a:hover { color: #fff; }
.footer__nav { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--3, .steps, .services { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 36px; }
  .about, .contact, .quiz__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header__nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 18px 20px; gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .header__nav.open { display: flex; }
  .header__cta { display: none; }
  .header__burger { display: block; }
  .grid--3, .grid--2, .steps, .services { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 46px; }
  .hero__title { font-size: 30px; }
  .page-hero h1 { font-size: 28px; }
  .section { padding: 52px 0; }
  .section__title { font-size: 25px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 14px; }
}
