﻿:root {
  --bg: #0b072f;
  --paper: #f2f4ff;
  --paper-strong: #ffffff;
  --deep: #2f58ff;
  --ink-accent: #113879;
  --deep-soft: #5b34ff;
  --accent: #2aa4ff;
  --accent-strong: #6a33ff;
  --accent-soft: rgba(69, 96, 255, 0.18);
  --accent-warm: #7d49ff;
  --ink: #111735;
  --ink-soft: #f4f6ff;
  --muted: #56617f;
  --muted-light: #aab5df;
  --line: rgba(22, 28, 73, 0.14);
  --line-light: rgba(255, 255, 255, 0.17);
  --danger: #b93f3f;
  --success: #2f8a54;
  --heading-font: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  --shadow: 0 30px 70px rgba(5, 6, 20, 0.46);
  --shadow-soft: 0 20px 45px rgba(7, 10, 32, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --wrap: min(1180px, calc(100vw - 40px));
  --dot-cluster-a: url("../img/dot-cluster-dark.svg") 10% 12% / 620px 382px no-repeat;
  --dot-cluster-b: url("../img/dot-cluster-dark.svg") 84% 16% / 700px 430px no-repeat;
  --dot-cluster-c: url("../img/dot-cluster-dark.svg") 14% 80% / 580px 356px no-repeat;
  --dot-cluster-d: url("../img/dot-cluster-dark.svg") 78% 72% / 648px 398px no-repeat;
  --dot-cluster-e: url("../img/dot-cluster-dark.svg") 46% 22% / 560px 344px no-repeat;
  --dot-cluster-f: url("../img/dot-cluster-dark.svg") 58% 84% / 520px 320px no-repeat;
  --dot-panel-a: url("../img/dot-cluster-panel.svg") 88% 24% / 400px 246px no-repeat;
  --dot-panel-b: url("../img/dot-cluster-panel.svg") 12% 66% / 360px 220px no-repeat;
  --dot-panel-c: url("../img/dot-cluster-panel.svg") 74% 80% / 430px 264px no-repeat;
  --dot-panel-d: url("../img/dot-cluster-panel.svg") 26% 24% / 340px 208px no-repeat;
  --dot-panel-e: url("../img/dot-cluster-panel.svg") 54% 56% / 380px 234px no-repeat;
  --dot-light-a: url("../img/dot-cluster-light-blue.svg") 10% 18% / 540px 332px no-repeat;
  --dot-light-b: url("../img/dot-cluster-light-violet.svg") 84% 14% / 560px 344px no-repeat;
  --dot-light-c: url("../img/dot-cluster-light-blue.svg") 18% 82% / 500px 308px no-repeat;
  --dot-light-d: url("../img/dot-cluster-light-violet.svg") 76% 76% / 520px 320px no-repeat;
  --dot-light-e: url("../img/dot-cluster-light-blue.svg") 48% 18% / 460px 284px no-repeat;
  --dot-light-f: url("../img/dot-cluster-light-violet.svg") 56% 84% / 440px 270px no-repeat;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink-soft);
  background:
    var(--dot-cluster-a),
    var(--dot-cluster-e),
    var(--dot-cluster-d),
    radial-gradient(circle at 18% 8%, rgba(42, 164, 255, 0.26), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(106, 51, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #070715 0%, #0b1f63 46%, #0a082b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.section-soft {
  color: var(--ink);
  background:
    var(--dot-light-a),
    var(--dot-light-c),
    var(--dot-light-e),
    radial-gradient(circle at 85% 12%, rgba(106, 51, 255, 0.14), transparent 24%),
    radial-gradient(circle at 14% 10%, rgba(42, 164, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #eef2ff 0%, #f7f8ff 100%);
}

.section-dark {
  color: var(--ink-soft);
  background:
    var(--dot-cluster-a),
    var(--dot-cluster-b),
    var(--dot-cluster-f),
    radial-gradient(circle at 18% 12%, rgba(42, 164, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 84%, rgba(106, 51, 255, 0.2), transparent 30%),
    linear-gradient(180deg, #0d1f61 0%, #100b36 100%);
}

.section:not(.hero):not(.section-soft):not(.section-dark) {
  color: var(--ink-soft);
  background:
    var(--dot-cluster-c),
    var(--dot-cluster-d),
    var(--dot-cluster-e),
    radial-gradient(circle at 16% 14%, rgba(42, 164, 255, 0.2), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(106, 51, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #08103a 0%, #0d1f61 48%, #090b24 100%);
}

#services {
  overflow: hidden;
  background:
    var(--dot-cluster-b),
    var(--dot-cluster-d),
    var(--dot-panel-e),
    radial-gradient(circle at 14% 18%, rgba(42, 164, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(106, 51, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #0b1033 0%, #0d1240 46%, #090b24 100%);
}

#services::before,
#services::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

#services::before {
  top: 72px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(42, 164, 255, 0.24), transparent 72%);
}

#services::after {
  right: -140px;
  bottom: 70px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(106, 51, 255, 0.22), transparent 74%);
}

#services .wrap {
  position: relative;
  z-index: 1;
}

#services .section-heading h2 {
  color: var(--ink-soft);
}

#services .section-heading p {
  color: rgba(234, 242, 247, 0.78);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background:
    var(--dot-cluster-f),
    var(--dot-panel-a),
    var(--dot-panel-d),
    linear-gradient(180deg, rgba(8, 8, 29, 0.96), rgba(13, 23, 68, 0.86));
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(4, 6, 21, 0.32);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--ink-soft);
  background: linear-gradient(135deg, rgba(87, 195, 255, 0.34), rgba(123, 86, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted-light);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  cursor: pointer;
}

.site-nav {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(8, max-content);
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted-light);
  font-family: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  min-width: 0;
}

.site-nav a {
  padding: 4px 0;
  white-space: nowrap;
}

.site-nav a.nav-services,
.site-nav a[href="#services"] {
  grid-column: 1;
  grid-row: 1;
}

.site-nav a.nav-journal,
.site-nav a[href="#journal"] {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.site-nav a.nav-quiz,
.site-nav a[href="#quiz"] {
  grid-column: 2;
  grid-row: 1;
}

.site-nav a.nav-process,
.site-nav a[href="#process"] {
  grid-column: 3;
  grid-row: 1;
}

.site-nav a.nav-trust,
.site-nav a[href="#trust"] {
  grid-column: 4;
  grid-row: 1;
}

.site-nav a.nav-cases,
.site-nav a[href="#cases"] {
  grid-column: 5;
  grid-row: 1;
}

.site-nav a.nav-acts,
.site-nav a[href="#acts"] {
  grid-column: 6;
  grid-row: 1;
}

.site-nav a.nav-faq,
.site-nav a[href="#faq"] {
  grid-column: 7;
  grid-row: 1;
}

.site-nav a.nav-contacts,
.site-nav a[href="#contacts"] {
  grid-column: 8;
  grid-row: 1;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover,
.contact-list a:hover {
  color: var(--ink-soft);
}

.header-phone {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(117, 129, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-accent);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
}

h1 {
  margin: 0;
  line-height: 1.02;
  font-size: clamp(42px, 7vw, 76px);
}

.hero-copy h1 {
  color: #f1f7ff;
  text-shadow:
    0 0 2px rgba(4, 8, 28, 0.95),
    0 0 14px rgba(4, 8, 28, 0.86),
    0 0 42px rgba(4, 10, 34, 0.74),
    0 0 96px rgba(4, 10, 34, 0.6),
    0 0 156px rgba(4, 10, 34, 0.42),
    0 0 1px rgba(255, 255, 255, 0.66);
}

h2 {
  margin: 0;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p,
.hero-text,
.consultation-text,
.faq-intro p,
.contact-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #1d86ff 0%, #2451ff 44%, #5f1fff 100%);
  border-color: rgba(103, 135, 255, 0.42);
  color: var(--ink-soft);
  text-shadow: 0 1px 1px rgba(9, 12, 34, 0.28);
  box-shadow:
    0 18px 32px rgba(31, 63, 194, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    0 24px 40px rgba(46, 57, 205, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: saturate(1.14) brightness(1.03);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-soft);
}

.button-online {
  min-height: 54px;
  background: linear-gradient(135deg, #14c9b7 0%, #1f86ff 58%, #4e36ff 100%);
  border-color: rgba(121, 230, 255, 0.52);
  color: #ffffff;
  font-weight: 800;
  box-shadow:
    0 18px 34px rgba(18, 183, 195, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button-online:hover,
.button-online:focus-visible {
  box-shadow:
    0 24px 42px rgba(18, 183, 195, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  filter: saturate(1.08) brightness(1.04);
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.messenger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 28px rgba(6, 17, 26, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.messenger-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(6, 17, 26, 0.24);
  filter: saturate(1.05);
}

.messenger-link--telegram {
  background: linear-gradient(135deg, #21b0ff, #1f4dff);
}

.messenger-link--max {
  background: linear-gradient(135deg, #7b42ff, #432eff);
}

.messenger-link--desktop-only {
  display: inline-flex;
}

.messenger-link--mobile-only {
  display: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.has-site-js:not(.site-js-fallback) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.has-site-js:not(.site-js-fallback) .reveal.is-visible,
.site-js-fallback .reveal {
  opacity: 1;
  transform: translateY(0);
}

[data-lazy-media] {
  filter: saturate(0.88);
  transition: filter 0.4s ease;
}

[data-lazy-media].is-media-ready {
  filter: saturate(1);
}

.hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  min-height: calc(100vh - 82px);
  background: url("../img/novosibirsk-family-monument-night.png") 58% center / cover no-repeat;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  gap: 24px;
  align-items: start;
  align-content: start;
}

.hero-copy,
.hero-visual {
  align-self: start;
}

.hero-copy .eyebrow {
  color: #7fd3ff;
  text-shadow: 0 1px 10px rgba(10, 24, 72, 0.28);
}

.hero-text {
  max-width: 560px;
  margin: 18px 0 0;
  color: #eef7ff;
  font-weight: 600;
  text-shadow:
    0 0 2px rgba(4, 8, 28, 0.94),
    0 0 13px rgba(4, 8, 28, 0.84),
    0 0 36px rgba(4, 10, 34, 0.7),
    0 0 82px rgba(4, 10, 34, 0.56),
    0 0 132px rgba(4, 10, 34, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-triggers,
.feature-list,
#result-points,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-triggers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: rgba(234, 242, 247, 0.86);
}

.feature-list li,
#result-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.feature-list li::before,
#result-points li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 0.52em;
  border-radius: 999px;
  background: var(--ink-accent);
  box-shadow: 0 0 0 4px rgba(17, 56, 121, 0.12);
}

.hero-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
}

.hero-triggers li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 14px 28px rgba(5, 17, 34, 0.12);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-triggers li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 0.48em;
  margin-right: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(87, 195, 255, 0.14);
}

.hero-visual {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-visual .hero-triggers {
  grid-template-columns: 1fr;
  gap: 10px;
}

.hero-visual .hero-triggers li {
  display: block;
  position: relative;
  min-height: 0;
  padding: 0 0 0 20px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.hero-visual .hero-triggers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  margin-top: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(123, 86, 255, 0.14);
}

.hero-bottom {
  display: block;
  margin-top: 6px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-chip,
.problem-card,
.quiz-card,
.quiz-result,
.checklist-card,
.step-card,
.consultation-card,
.case-card,
.lead-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.info-chip {
  min-width: 0;
  min-height: 100%;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  align-content: start;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-light);
  backdrop-filter: blur(12px);
}

.info-chip strong {
  font-size: 28px;
}

.info-chip span {
  color: var(--muted-light);
}

.portrait-card {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(18, 28, 93, 0.84), rgba(10, 9, 36, 0.94)),
    linear-gradient(135deg, rgba(42, 164, 255, 0.18), rgba(106, 51, 255, 0.16));
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
  object-fit: cover;
}

.portrait-note {
  position: absolute;
  left: -10px;
  bottom: 28px;
  z-index: 2;
  max-width: 224px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(11, 16, 59, 0.94), rgba(11, 16, 59, 0.94));
  color: var(--ink-soft);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-soft);
}

.portrait-note strong {
  display: block;
  margin-bottom: 6px;
}

.signal-strip {
  padding: 26px 0;
  background:
    var(--dot-cluster-e),
    var(--dot-panel-b),
    var(--dot-panel-e),
    linear-gradient(180deg, rgba(9, 11, 42, 0.92), rgba(9, 11, 42, 0.92));
  color: rgba(234, 242, 247, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-strip-grid,
.problem-grid,
.steps-grid,
.cases-grid {
  display: grid;
  gap: 20px;
}

.signal-strip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-strip-grid strong,
.step-card h3,
.case-card h3,
.contact-card h2 {
  display: block;
  margin-bottom: 8px;
}

.signal-strip-grid span {
  display: block;
  line-height: 1.65;
}

.problem-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 26px;
  border-radius: 36px;
  isolation: isolate;
}

.problem-grid::before,
.problem-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.problem-grid::before {
  background: linear-gradient(180deg, rgba(14, 20, 66, 0.96), rgba(8, 10, 35, 0.94));
  border: 1px solid rgba(119, 138, 255, 0.14);
  box-shadow: 0 28px 60px rgba(4, 6, 21, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.problem-grid::after {
  inset: 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(42, 164, 255, 0.1), transparent 34%, rgba(106, 51, 255, 0.1) 100%);
}

.problem-card,
.step-card,
.case-card,
.contact-card {
  padding: 26px;
}

.problem-card {
  position: relative;
  display: grid;
  gap: 13px;
  align-content: start;
  min-height: 180px;
  --problem-accent-rgb: 42, 164, 255;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 6%, rgba(var(--problem-accent-rgb), 0.24), transparent 28%),
    linear-gradient(225deg, rgba(var(--problem-accent-rgb), 0.17) 0%, rgba(95, 51, 255, 0.16) 30%, rgba(9, 8, 34, 1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-color: var(--line-light);
  isolation: isolate;
}

.problem-card::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -44px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--problem-accent-rgb), 0.3), rgba(106, 51, 255, 0.18) 48%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.problem-card-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.problem-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(var(--problem-accent-rgb), 0.22);
  border: 1px solid rgba(var(--problem-accent-rgb), 0.42);
  box-shadow:
    0 14px 30px rgba(var(--problem-accent-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  margin-top: 1px;
}

.problem-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3 {
  margin: 0;
  font-family: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.problem-card p {
  position: relative;
  z-index: 1;
  color: var(--muted-light);
  line-height: 1.65;
  margin: 0;
}

.problem-card--divorce {
  --problem-accent-rgb: 118, 133, 255;
}

.problem-card--children {
  --problem-accent-rgb: 52, 204, 181;
}

.problem-card--support {
  --problem-accent-rgb: 255, 188, 84;
}

.problem-card--property {
  --problem-accent-rgb: 74, 184, 255;
}

.problem-card--residence {
  --problem-accent-rgb: 123, 213, 124;
}

.problem-card--contract {
  --problem-accent-rgb: 199, 139, 255;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.quiz-form {
  display: grid;
  gap: 18px;
}

.quiz-card,
.quiz-lead {
  margin: 0;
  min-inline-size: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 33, 45, 0.1);
  box-shadow: 0 14px 28px rgba(17, 33, 45, 0.08);
}

.quiz-card {
  padding: 0 24px 24px;
  overflow: hidden;
}

.quiz-lead {
  padding: 24px;
}

.quiz-card legend,
.quiz-lead h3,
.price-box strong {
  font-size: 24px;
  font-weight: 700;
}

.quiz-lead h3 {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}

.quiz-lead p {
  color: #1f3342;
  line-height: 1.65;
}

.quiz-card legend {
  display: block;
  float: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 24px 0 14px;
  line-height: 1.2;
  color: var(--ink);
  white-space: normal;
}

.quiz-card > *:not(legend) {
  clear: both;
}

.quiz-card .choice:last-child {
  margin-bottom: 0;
}

.choice {
  display: block;
  margin-bottom: 10px;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice span {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 33, 45, 0.12);
  background: rgba(249, 251, 253, 0.98);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.choice span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(17, 33, 45, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 0 rgba(91, 141, 255, 0.95);
}

.choice input[type="checkbox"] + span::before {
  border-radius: 6px;
}

.choice input:checked + span {
  border-color: rgba(91, 141, 255, 0.78);
  background: rgba(111, 92, 255, 0.1);
}

.choice input:checked + span::before {
  border-color: rgba(91, 141, 255, 0.84);
  box-shadow: inset 0 0 0 5px rgba(91, 141, 255, 0.95);
}

.choice-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-result {
  padding: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 33, 45, 0.1);
  box-shadow: 0 14px 28px rgba(17, 33, 45, 0.08);
}

.result-empty h3,
.result-filled h3 {
  margin-top: 0;
  font-family: var(--heading-font);
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}

.quiz-lead {
  background: linear-gradient(135deg, rgba(123, 86, 255, 0.1), rgba(87, 195, 255, 0.08) 44%, rgba(255, 255, 255, 0.99));
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  font-size: 14px;
  color: var(--ink-accent);
  font-weight: 600;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(17, 33, 45, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

select option {
  color: var(--ink-accent);
  background: #ffffff;
}

select option[value=""] {
  color: #4e6485;
}

input:focus,
select:focus {
  outline: 2px solid rgba(123, 86, 255, 0.16);
  border-color: rgba(91, 141, 255, 0.5);
}

input.is-invalid,
select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(185, 63, 63, 0.14);
}

.field-error {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}

.quiz-prototype {
  display: grid;
  gap: 24px;
}

.quiz-prototype-intro {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.quiz-prototype-intro h2 {
  margin: 0;
}

.quiz-prototype-intro p:last-child {
  margin: 0;
  max-width: 920px;
  color: #314a61;
  line-height: 1.7;
}

.quiz-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-switch-note {
  margin: -4px 0 0;
  color: #3e5670;
  line-height: 1.6;
}

.quiz-topic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(44, 162, 255, 0.12), rgba(112, 76, 255, 0.14));
  border: 1px solid rgba(70, 102, 175, 0.16);
  color: var(--ink-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(21, 37, 64, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quiz-topic-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(21, 37, 64, 0.12);
}

.quiz-topic-pill.is-active {
  background: linear-gradient(135deg, rgba(44, 162, 255, 0.22), rgba(112, 76, 255, 0.2));
  border-color: rgba(17, 57, 121, 0.26);
  box-shadow: 0 18px 32px rgba(17, 33, 45, 0.14);
}

.quiz-branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.quiz-branch-card,
.quiz-final-card {
  border: 1px solid rgba(17, 33, 45, 0.1);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.98)),
    linear-gradient(135deg, rgba(44, 162, 255, 0.06), rgba(112, 76, 255, 0.08));
  box-shadow: 0 20px 44px rgba(17, 33, 45, 0.08);
}

.quiz-branch-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px;
}

.quiz-branch-card[hidden],
.quiz-final-card[hidden] {
  display: none !important;
}

.quiz-branch-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.quiz-branch-head .eyebrow {
  margin-bottom: 6px;
}

.quiz-branch-head h3,
.quiz-final-copy h3 {
  margin: 0;
  color: var(--ink);
}

.quiz-branch-head h3 {
  font-family: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.quiz-branch-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f88ff, #6b3cff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(39, 77, 169, 0.24);
}

.quiz-question-card,
.quiz-note-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(17, 33, 45, 0.09);
  background:
    linear-gradient(135deg, rgba(44, 162, 255, 0.08), rgba(112, 76, 255, 0.08) 54%, rgba(255, 255, 255, 0.94));
}

.quiz-question-card strong,
.quiz-note-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.38;
}

.quiz-helper-note,
.quiz-note-card p,
.quiz-note-card li,
.quiz-final-copy p {
  margin: 0;
  color: #314a61;
  line-height: 1.65;
}

.quiz-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-option-chip {
  position: relative;
  display: inline-flex;
}

.quiz-option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 33, 45, 0.1);
  box-shadow: 0 8px 20px rgba(17, 33, 45, 0.07);
  color: var(--ink-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.quiz-option-chip:hover span {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 33, 45, 0.1);
}

.quiz-option-chip input:checked + span {
  background: linear-gradient(135deg, #2f86ff, #5d39ff);
  border-color: rgba(30, 59, 132, 0.24);
  box-shadow: 0 14px 26px rgba(37, 68, 161, 0.24);
  color: #ffffff;
}

.quiz-option-chip input:focus-visible + span {
  outline: 2px solid rgba(91, 141, 255, 0.26);
  outline-offset: 2px;
}

.quiz-option-list-multi .quiz-option-chip span {
  background: linear-gradient(135deg, rgba(34, 148, 243, 0.12), rgba(112, 76, 255, 0.12));
}

.quiz-note-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.quiz-final-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  padding: 28px;
}

.quiz-final-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.quiz-final-copy h3 {
  font-family: var(--heading-font);
  font-size: clamp(40px, 4vw, 54px);
  font-weight: 700;
  line-height: 0.95;
}

.quiz-final-preview {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 28, 93, 0.94), rgba(10, 9, 36, 0.96)),
    linear-gradient(135deg, rgba(42, 164, 255, 0.12), rgba(106, 51, 255, 0.14));
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow);
}

.quiz-final-field {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quiz-final-field span {
  color: rgba(232, 240, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-final-field strong {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.4;
}

.quiz-final-preview .quiz-option-list span {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: var(--ink-soft);
}

.quiz-final-preview .button {
  width: 100%;
  justify-content: center;
}

.quiz-final-form {
  align-content: start;
}

.quiz-final-form .quiz-final-field {
  margin: 0;
}

.quiz-final-form label {
  gap: 10px;
}

.quiz-final-action {
  align-content: start;
}

.quiz-final-form input,
.quiz-final-form select {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-soft);
  font: inherit;
  box-sizing: border-box;
}

.quiz-final-form input::placeholder {
  color: rgba(232, 240, 255, 0.48);
}

.quiz-final-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(232, 240, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(232, 240, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.quiz-final-form input:focus,
.quiz-final-form select:focus {
  outline: 2px solid rgba(87, 195, 255, 0.18);
  outline-offset: 0;
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-final-form .button-secondary {
  width: 100%;
  justify-content: center;
}

.quiz-final-status {
  margin: 0;
  color: rgba(232, 240, 255, 0.78);
  line-height: 1.55;
}

.quiz-final-note {
  margin: -2px 0 0;
  color: rgba(232, 240, 255, 0.66);
  line-height: 1.6;
}

.quiz-final-form .form-message {
  margin-top: 4px;
}

.checklist-layout,
.consultation-layout,
.lead-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.lead-copy {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
  align-content: start;
  padding: 24px;
  height: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(15, 22, 78, 0.985), rgba(8, 8, 31, 0.985));
  box-shadow: var(--shadow-soft);
}

.lead-copy .eyebrow,
.lead-copy h2,
.lead-copy > p {
  margin: 0;
}

.lead-copy h2 {
  color: var(--ink-soft);
}

.lead-copy > p {
  color: rgba(234, 242, 247, 0.84);
}

.consultation-copy {
  display: grid;
  align-content: center;
}

.online-consultation-callout {
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 520px;
  margin: 18px 0 6px;
}

.online-consultation-callout > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #d8fbff;
  background: rgba(20, 201, 183, 0.13);
  border: 1px solid rgba(121, 230, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.online-consultation-callout small {
  max-width: 460px;
  margin-top: 6px;
  color: rgba(244, 248, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
}

.checklist-copy h2 {
  color: #ffffff;
}

.checklist-copy h2 + p {
  margin-top: 22px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.checklist-card,
.lead-panel {
  padding: 24px;
}

.lead-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  height: 100%;
}

.checklist-photo,
.lead-photo {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 16, 59, 0.94), rgba(8, 8, 31, 0.96));
  box-shadow: 0 24px 52px rgba(4, 6, 21, 0.34);
}

.checklist-photo img,
.lead-photo img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 8px);
}

.lead-copy .lead-photo {
  margin-top: auto;
  padding: 0;
  background: none;
  box-shadow: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.capture-form {
  display: grid;
  gap: 14px;
}

.capture-form .button {
  margin-top: 2px;
  justify-self: start;
}

.capture-form .form-note {
  margin-top: 0;
}

.form-message {
  margin: 0;
  font-size: 14px;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(111, 92, 255, 0.12);
  color: var(--ink-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-card .trust-pay-badge {
  margin: 2px 0 4px;
  background: linear-gradient(135deg, rgba(20, 201, 183, 0.14), rgba(42, 164, 255, 0.16));
  border: 1px solid rgba(31, 134, 255, 0.14);
  color: #0d4f6d;
}

.step-card h3 {
  font-family: var(--heading-font);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}

.step-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.consultation-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(87, 195, 255, 0.08), rgba(123, 86, 255, 0.1)), rgba(255, 255, 255, 0.97);
  color: var(--ink);
}

.price-box {
  display: grid;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(23, 44, 52, 0.1);
}

.price-box span {
  color: #3e4f5c;
}

.price-box strong {
  font-size: 44px;
  color: #102635;
}

.price-box small {
  color: #5f6f7b;
}

.consultation-meta {
  display: grid;
  gap: 18px;
  margin: 24px 0 28px;
}

.consultation-meta strong {
  color: #102635;
}

.consultation-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, rgba(16, 22, 78, 0.985), rgba(8, 8, 31, 0.975));
  border-color: rgba(255, 255, 255, 0.12);
}

.case-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 0%;
  margin-bottom: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(3, 7, 26, 0.28);
}

.case-card-photo--hidden-income {
  object-position: 50% 0%;
}

.case-card-photo--parent-schedule {
  object-position: 50% 0%;
}

.case-card-photo--property-split {
  object-position: 50% 0%;
}

.case-card p {
  margin: 0;
  color: rgba(234, 242, 247, 0.82);
  line-height: 1.6;
}

.case-card h3 {
  font-family: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(26px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.section.journal-section:not(.hero):not(.section-soft):not(.section-dark) {
  color: var(--ink);
  background:
    var(--dot-cluster-d),
    linear-gradient(180deg, rgba(247, 250, 255, 0.96), rgba(237, 243, 252, 0.9));
}

.journal-page {
  color: var(--ink-soft);
}

.journal-page-intro {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: end;
  padding: 92px 0 58px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 29, 0.94) 0%, rgba(8, 16, 58, 0.82) 48%, rgba(8, 16, 58, 0.45) 100%),
    url("../img/bugrinsky-bridge-sunset.jpg") center / cover no-repeat;
}

.journal-page-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(247, 250, 255, 0.96));
}

.journal-page-title {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.journal-page-title h1 {
  margin: 0;
  line-height: 0.98;
  font-size: clamp(46px, 7vw, 86px);
}

.journal-page-title p {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(234, 242, 247, 0.82);
  font-size: 18px;
  line-height: 1.75;
}

.journal-page-title .eyebrow {
  color: #90ddff;
}

.journal-page .journal-section {
  padding-top: 78px;
}

.journal-page .journal-layout {
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
}

.journal-page .journal-heading {
  position: sticky;
  top: 108px;
}

.journal-page .journal-heading p {
  color: #30415e;
}

.journal-page .journal-heading .button {
  margin-top: 22px;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: start;
}

.journal-heading {
  margin-bottom: 0;
}

.journal-feed {
  min-width: 0;
}

.journal-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.journal-category {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(17, 33, 45, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #30415e;
  cursor: pointer;
  font: 700 13px/1.25 "Manrope", "Segoe UI", sans-serif;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.journal-category:hover {
  border-color: rgba(13, 44, 94, 0.42);
  background: #fff;
}

.journal-category:focus-visible {
  outline: 3px solid rgba(42, 149, 218, 0.3);
  outline-offset: 2px;
}

.journal-category.is-active {
  border-color: #0d2c5e;
  background: #0d2c5e;
  color: #fff;
}

.journal-category-count {
  margin-left: 6px;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.journal-filter-summary {
  min-height: 20px;
  margin: 0 0 14px;
  color: #596985;
  font: 700 13px/1.4 "Manrope", "Segoe UI", sans-serif;
}

@media (max-width: 680px) {
  .journal-categories {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding: 2px 16px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .journal-category {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
.journal-list {
  display: grid;
  gap: 14px;
}

.journal-card[hidden] {
  display: none;
}

.journal-card {
  overflow: hidden;
  border: 1px solid rgba(17, 33, 45, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.journal-card summary {
  cursor: pointer;
  list-style: none;
  min-height: 82px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  font-weight: 800;
}

.journal-card summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 33, 45, 0.24);
  color: #102635;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  background: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, transform 0.2s ease;
}

.journal-card[open] summary::after {
  content: "-";
  background: rgba(111, 92, 255, 0.18);
  transform: scale(1.02);
}

.journal-card summary::-webkit-details-marker {
  display: none;
}

.journal-card summary > span {
  min-width: 0;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.18;
  font-family: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
}

.journal-card summary small {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--ink-accent);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-card summary time {
  color: #596985;
  font-style: normal;
  white-space: nowrap;
}

.journal-meta-text + time::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 12px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(89, 105, 133, 0.6);
  vertical-align: middle;
}

.journal-content {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.journal-content p {
  margin: 0;
}

.journal-content p + p {
  margin-top: 12px;
}

.faq-layout {
  display: grid;
  gap: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(17, 33, 45, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  padding: 0 20px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.faq-list summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 33, 45, 0.24);
  color: #102635;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  background: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "-";
  background: rgba(111, 92, 255, 0.18);
  transform: scale(1.02);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.lead-panel,
.contact-card {
  background:
    linear-gradient(180deg, rgba(15, 22, 78, 0.985), rgba(8, 8, 31, 0.98));
  border-color: rgba(255, 255, 255, 0.14);
}

.lead-panel label > span,
.lead-panel input,
.lead-panel select,
.contact-list,
.contact-card p {
  color: var(--ink-soft);
}

.lead-panel input,
.lead-panel select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

.lead-panel input.is-invalid,
.lead-panel select.is-invalid {
  border-color: rgba(255, 145, 145, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 145, 145, 0.16);
}

.lead-panel label {
  gap: 10px;
}

.lead-panel .consent-check {
  gap: 12px;
  margin-top: 2px;
}

.lead-intent-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: #d8fbff;
  background: rgba(20, 201, 183, 0.13);
  border: 1px solid rgba(121, 230, 255, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.lead-intent-note[hidden] {
  display: none;
}

.lead-panel .button {
  justify-self: start;
  margin-top: 2px;
}

.lead-panel .form-note {
  margin-top: -4px;
}

.lead-panel .messenger-links {
  margin-top: 6px;
}

.consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

#contacts .contact-card:first-child {
  display: grid;
  align-content: start;
  gap: 0;
}

.contact-address-block {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-address-block .eyebrow,
#contacts .contact-card:first-child > .eyebrow {
  margin-bottom: 0;
}

.contact-address-block h2,
#contacts .contact-card:first-child > h2 {
  margin: 0;
}

#contacts .contact-card:last-child {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

#contacts .contact-card:last-child > :not(img) {
  display: none;
}

#contacts .contact-card:last-child img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background:
    var(--dot-cluster-a),
    var(--dot-cluster-c),
    var(--dot-cluster-d),
    linear-gradient(180deg, rgba(7, 7, 27, 0.94), rgba(7, 7, 27, 0.94));
  color: rgba(234, 242, 247, 0.72);
}

.footer-row {
  min-height: 84px;
  display: grid;
  gap: 10px;
  padding: 18px 0;
  justify-items: center;
  text-align: center;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.footer-credit {
  font-size: 13px;
  color: rgba(234, 242, 247, 0.62);
}

.footer-credit a {
  color: #7fd3ff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(127, 211, 255, 0.9);
  text-shadow: 0 0 16px rgba(42, 164, 255, 0.22);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #bde9ff;
  text-decoration-color: rgba(189, 233, 255, 1);
}

.mobile-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(9, 9, 35, 0.95), rgba(9, 9, 35, 0.95));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 69;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 26px rgba(82, 88, 233, 0.34);
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 1120px) {
  .hero-grid,
  .quiz-layout,
  .checklist-layout,
  .consultation-layout,
  .journal-layout,
  .lead-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .steps-grid,
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .journal-page .journal-layout {
    grid-template-columns: 1fr;
  }

  .journal-page .journal-heading {
    position: static;
  }

  .hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quiz-branch-grid,
  .quiz-final-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background:
      linear-gradient(180deg, rgba(10, 10, 36, 0.97), rgba(10, 10, 36, 0.97));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
    gap: 12px;
    justify-content: flex-start;
    flex-direction: column;
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-phone {
    display: none;
  }

  .messenger-link--desktop-only {
    display: none;
  }

  .messenger-link--mobile-only {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 86px 0;
  }

  .hero {
    padding-top: 34px;
    background:
      linear-gradient(180deg, rgba(5, 8, 29, 0.78) 0%, rgba(8, 16, 58, 0.68) 42%, rgba(8, 9, 30, 0.96) 100%),
      url("../img/11.jpg") 66% 44px / auto 720px no-repeat,
      linear-gradient(180deg, #07102f 0%, #0d1f61 48%, #08091f 100%);
  }

  .signal-strip-grid,
  .problem-grid,
  .steps-grid,
  .cases-grid,
  .choice-grid-two {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    padding: 18px;
    gap: 16px;
    border-radius: 28px;
  }

  .problem-grid::after {
    inset: 12px;
    border-radius: 20px;
  }

  .quiz-branch-card,
  .quiz-final-card {
    padding: 22px;
    border-radius: 28px;
  }

  .quiz-question-card,
  .quiz-note-card,
  .quiz-final-preview {
    padding: 16px;
    border-radius: 20px;
  }

  .quiz-branch-head {
    grid-template-columns: 1fr;
  }

  .hero-triggers,
  .hero-badges {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: grid;
  }

  .journal-body {
    padding-bottom: 0;
  }

  .journal-body .mobile-bar {
    position: static;
    width: var(--wrap);
    margin: 0 auto 28px;
  }

  .journal-body .back-to-top {
    bottom: 24px;
  }

  .back-to-top {
    bottom: 126px;
  }

  body {
    padding-bottom: 112px;
  }
}

@media (max-width: 560px) {
  :root {
    --wrap: min(100vw - 24px, 1000px);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    width: 100%;
  }

  .messenger-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .messenger-link {
    width: 100%;
  }

  .header-row {
    min-height: 74px;
    gap: 8px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .brand-copy strong {
    font-size: 18px;
    white-space: nowrap;
  }

  .brand-copy small {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .menu-toggle {
    min-height: 42px;
    padding: 9px 12px;
  }

  .hero-actions,
  .hero-badges {
    flex-direction: column;
  }

  .portrait-note {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .quiz-topic-pill,
  .quiz-option-list span {
    width: 100%;
    justify-content: center;
  }

  .quiz-final-copy h3 {
    font-size: 34px;
  }

  .journal-card summary {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
  }

  .journal-card summary > span {
    font-size: 22px;
  }

  .journal-card summary small {
    gap: 5px 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .journal-content {
    padding: 0 16px 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .journal-page .journal-section {
    padding-top: 54px;
  }

  .journal-page .journal-heading {
    margin-bottom: 18px;
  }

  .journal-page-intro {
    min-height: 300px;
    padding: 72px 0 44px;
  }

  .journal-page-title h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  .journal-page-title p {
    font-size: 16px;
    line-height: 1.62;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 16px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 18px;
  }
}

html.is-mobile-client {
  --wrap: min(100% - 24px, 1000px);
}

html.is-mobile-client body {
  min-width: 0;
  overflow-x: hidden;
}

html.is-mobile-client .header-row {
  min-height: 74px;
  gap: 8px;
}

html.is-mobile-client .site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  background:
    linear-gradient(180deg, rgba(10, 10, 36, 0.97), rgba(10, 10, 36, 0.97));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html.is-mobile-client .site-nav.is-open {
  display: flex;
}

html.is-mobile-client .site-nav a {
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
}

html.is-mobile-client .menu-toggle {
  display: inline-flex;
}

html.is-mobile-client .header-phone {
  display: none;
}

html.is-mobile-client .hero-grid,
html.is-mobile-client .quiz-layout,
html.is-mobile-client .checklist-layout,
html.is-mobile-client .consultation-layout,
html.is-mobile-client .journal-layout,
html.is-mobile-client .lead-layout,
html.is-mobile-client .contact-layout {
  grid-template-columns: 1fr;
}

html.is-mobile-client .hero {
  padding-top: 34px;
  background:
    linear-gradient(180deg, rgba(5, 8, 29, 0.78) 0%, rgba(8, 16, 58, 0.68) 42%, rgba(8, 9, 30, 0.96) 100%),
    url("../img/11.jpg") 66% 44px / auto 720px no-repeat,
    linear-gradient(180deg, #07102f 0%, #0d1f61 48%, #08091f 100%);
}

html.is-mobile-client .hero-copy,
html.is-mobile-client .hero-visual,
html.is-mobile-client .hero-bottom {
  grid-column: auto;
}

html.is-mobile-client .hero-visual {
  margin-top: 22px;
}

html.is-mobile-client .hero-triggers,
html.is-mobile-client .hero-badges,
html.is-mobile-client .signal-strip-grid,
html.is-mobile-client .problem-grid,
html.is-mobile-client .steps-grid,
html.is-mobile-client .cases-grid,
html.is-mobile-client .choice-grid-two {
  grid-template-columns: 1fr;
}

html.is-mobile-client .mobile-bar {
  display: grid;
}

html.is-mobile-client .back-to-top {
  bottom: 126px;
}

@media (max-device-width: 820px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-phone {
    display: none;
  }

  .hero-grid,
  .quiz-layout,
  .checklist-layout,
  .consultation-layout,
  .journal-layout,
  .lead-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .hero-bottom {
    grid-column: auto;
  }
}


/* --- Пункт меню «Услуги и цены»: явная ячейка сетки и увеличенная зона клика.
   Без явного размещения элемент расставлялся автоматически, и в части браузеров
   видимый текст не совпадал с реальной кликабельной областью. --- */
.site-nav a.nav-uslugi {
  grid-column: 1;
  grid-row: 1;
  padding: 8px 10px;
  margin: -4px -10px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav a.nav-uslugi:hover,
.site-nav a.nav-uslugi:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

@media (max-width: 900px) {
  .site-nav a.nav-uslugi {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    padding: 8px 0;
  }
}

html.is-mobile-client .site-nav a.nav-uslugi {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  padding: 8px 0;
}

@media (max-device-width: 820px) {
  .site-nav a.nav-uslugi {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    padding: 8px 0;
  }
}
