﻿: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;
}

/* Make the services intro copy fully readable on the dark blue background. */
#services .section-heading .eyebrow,
#services .section-heading h2,
#services .section-heading p {
  color: #ffffff;
}

/* Bring the quiz intro card into the site's strict blue palette. */
.quiz-prototype-intro {
  color: #f4f8fc;
  background:
    radial-gradient(circle at 18% 18%, rgba(122, 166, 218, 0.28), transparent 34%),
    linear-gradient(180deg, #234a78 0%, #17365e 100%);
  border: 1px solid rgba(173, 197, 228, 0.24);
  box-shadow: 0 26px 56px rgba(10, 22, 39, 0.28);
}

.quiz-prototype-intro .eyebrow {
  color: #9fc2ea;
}

.quiz-prototype-intro h2 {
  color: #ffffff;
}

.quiz-prototype-intro p:last-child {
  color: rgba(244, 248, 252, 0.84);
}

/* Bring the lead form block into the blue palette and restore visible field labels. */
#lead-form .lead-layout {
  border-color: rgba(49, 96, 148, 0.3);
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 22px 54px rgba(15, 31, 54, 0.12);
}

#lead-form .lead-copy {
  background:
    radial-gradient(circle at 18% 18%, rgba(122, 166, 218, 0.24), transparent 32%),
    linear-gradient(180deg, #234a78 0%, #17365e 100%);
  border-right-color: rgba(76, 126, 181, 0.34);
}

#lead-form .lead-copy .eyebrow {
  color: #9fc2ea;
}

#lead-form .lead-copy h2 {
  color: #ffffff;
}

#lead-form .lead-copy > p {
  color: rgba(244, 248, 252, 0.86);
}

#lead-form .lead-panel label > span {
  color: #234a78;
}

#lead-form .lead-panel .consent-check span,
#lead-form .lead-panel .form-note {
  color: #61748c;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  :root {
    --wrap: min(calc(100vw - 28px), 1000px);
  }

  .section {
    padding: 56px 0;
  }

  .header-row {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 16px;
    line-height: 1.02;
    white-space: normal;
  }

  .brand-copy small {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.03em;
    white-space: normal;
  }

  .menu-toggle {
    grid-column: 2;
    min-height: 42px;
    padding: 8px 12px;
  }

  .site-nav {
    top: calc(100% + 1px);
    padding: 14px;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-nav a,
  .site-nav a.nav-services,
  .site-nav a.nav-journal,
  .site-nav a.nav-quiz,
  .site-nav a.nav-process,
  .site-nav a.nav-trust,
  .site-nav a.nav-cases,
  .site-nav a.nav-acts,
  .site-nav a.nav-faq,
  .site-nav a.nav-contacts {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    padding: 12px 0;
    white-space: normal;
    border-bottom: 1px solid rgba(173, 197, 228, 0.12);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero .wrap {
    min-height: auto;
    padding: 16px 0 24px;
    align-content: start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .hero-visual,
  .portrait-card {
    min-height: 240px;
  }

  .hero-visual .hero-triggers {
    display: none;
  }

  .portrait-card {
    border-radius: 14px 14px 0 0;
    box-shadow: none;
  }

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

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 20px 16px 22px;
    border-left-width: 4px;
    box-shadow: none;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 0.96;
  }

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

  .hero-court-note {
    margin-top: 16px;
    padding: 14px 15px;
    line-height: 1.55;
  }

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

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-bottom {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(35, 74, 120, 0.12);
    border-top: 0;
  }

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

  .signal-strip {
    padding: 0 0 24px;
  }

  .signal-strip-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .signal-strip-grid > div {
    padding: 16px 18px;
    border-right: 0;
  }

  .signal-strip-extra span {
    font-size: 14px;
    line-height: 1.5;
  }

  #services .wrap,
  #process .wrap,
  #trust .wrap,
  #faq .wrap,
  .quiz-prototype,
  #lead-form .lead-layout,
  #contacts .contact-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro,
  .lead-copy,
  .lead-panel,
  .contact-card,
  .consultation-card,
  .services-sidecard,
  .quiz-topic-shell,
  .quiz-empty-state,
  .quiz-branch-card,
  .quiz-final-card,
  .quiz-question-card,
  .quiz-note-card {
    padding: 20px 16px;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro,
  .services-sidecard {
    position: static;
    top: auto;
  }

  .problem-grid,
  .steps-grid,
  .cases-grid,
  .quiz-empty-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .problem-card,
  .step-card,
  .case-card {
    min-height: 0;
  }

  .problem-card h3,
  .step-card h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }

  .step-card::before {
    grid-row: auto;
    margin-bottom: 4px;
  }

  #quiz {
    padding-top: 56px;
  }

  .quiz-prototype {
    gap: 18px;
  }

  .quiz-prototype-intro h2,
  .quiz-empty-copy h3 {
    max-width: none;
    font-size: clamp(32px, 10vw, 42px);
  }

  .quiz-prototype-intro p:last-child,
  .quiz-switch-note,
  .quiz-empty-copy p:last-child {
    max-width: none;
  }

  .quiz-stage {
    grid-column: auto;
    gap: 16px;
    min-width: 0;
  }

  .quiz-topic-strip,
  .quiz-option-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-topic-pill,
  .quiz-option-chip,
  .quiz-option-chip span {
    width: 100%;
  }

  .quiz-topic-pill,
  .quiz-option-chip span {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    border-radius: 14px;
  }

  #lead-form .lead-layout,
  #contacts .contact-layout {
    gap: 0;
  }

  .lead-photo {
    margin-top: 18px;
  }

  .lead-photo img,
  #contacts .contact-card:last-child img {
    width: 100%;
    height: auto;
  }

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

  .lead-panel input,
  .lead-panel select,
  .quiz-final-form input,
  .quiz-final-form select {
    min-height: 52px;
  }

  .lead-panel .button {
    width: 100%;
    justify-content: center;
  }

  .contact-list li {
    overflow-wrap: anywhere;
  }

  #contacts .contact-card:last-child {
    padding: 12px;
  }

  #contacts .contact-card:last-child img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .footer-row {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero-bottom,
  .lead-copy,
  .lead-panel,
  .contact-card,
  .consultation-card,
  .services-sidecard,
  .problem-card,
  .step-card,
  .quiz-prototype-intro,
  .quiz-topic-shell,
  .quiz-empty-state,
  .quiz-branch-card,
  .quiz-final-card,
  .quiz-question-card,
  .quiz-note-card {
    padding: 18px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .brand-copy small {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 11.5vw, 40px);
  }

  .hero-text,
  .hero-court-note {
    font-size: 15px;
  }

  .portrait-note {
    margin: 12px 14px 0;
    padding: 14px 16px;
    color: #f4f8fc;
    background: rgba(18, 34, 57, 0.88);
    border: 1px solid rgba(173, 197, 228, 0.22);
    border-left: 4px solid #8faacc;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(7, 16, 29, 0.2);
  }

  .hero-visual,
  .portrait-card {
    min-height: 0;
  }

  .portrait-card {
    overflow: visible;
  }

  .portrait-note strong {
    color: #ffffff;
  }

  .portrait-note span {
    color: rgba(244, 248, 252, 0.82);
  }

  .signal-strip-grid > div {
    padding: 15px 14px;
  }
}

/* Final mobile-only cleanup for the top of the site. */
@media (min-width: 901px) {
  #lead-form .lead-layout {
    background: linear-gradient(180deg, rgba(216, 229, 244, 0.68), rgba(205, 221, 239, 0.68)) !important;
    border-color: rgba(93, 140, 198, 0.26) !important;
    overflow: hidden !important;
  }

  #lead-form .lead-copy {
    border-right-color: rgba(93, 140, 198, 0.18) !important;
  }

  #lead-form .lead-panel {
    background: linear-gradient(180deg, rgba(242, 247, 252, 0.98), rgba(231, 239, 248, 0.98)) !important;
  }
}

@media (max-width: 900px) {
  .site-nav {
    background: rgba(244, 248, 252, 0.99);
    border: 1px solid rgba(35, 74, 120, 0.14);
    box-shadow: 0 20px 40px rgba(15, 31, 54, 0.16);
    z-index: 130;
  }

  .site-nav a,
  .site-nav a.nav-services,
  .site-nav a.nav-journal,
  .site-nav a.nav-quiz,
  .site-nav a.nav-process,
  .site-nav a.nav-trust,
  .site-nav a.nav-cases,
  .site-nav a.nav-acts,
  .site-nav a.nav-faq,
  .site-nav a.nav-contacts {
    color: #17365e;
    font-weight: 700;
  }

  .site-nav a::after {
    background: rgba(63, 110, 167, 0.18);
  }

  .hero-visual {
    display: block;
    min-height: 0;
  }

  .portrait-card {
    display: block;
    min-height: 0;
    background: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .portrait-card::before {
    content: none;
    display: none;
  }

  .portrait-note {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px;
    background: rgba(248, 251, 255, 0.99);
    border: 0;
    border-top: 1px solid rgba(35, 74, 120, 0.12);
    box-shadow: none;
  }

  .portrait-note strong {
    color: #17365e;
  }

  .portrait-note span {
    color: #314a61;
  }
}

@media (max-width: 560px) {
  .portrait-card {
    border-radius: 14px 14px 0 0;
  }
}

.hero-court-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(173, 197, 228, 0.26);
  border-left: 4px solid #3f6ea7;
  background: rgba(244, 248, 252, 0.92);
  color: #314a61;
  line-height: 1.65;
  box-shadow: 0 14px 28px rgba(15, 31, 54, 0.08);
}

.hero-court-note strong {
  display: block;
  margin-bottom: 6px;
  color: #17365e;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  :root {
    --wrap: min(calc(100vw - 28px), 1000px);
  }

  .section {
    padding: 56px 0;
  }

  .header-row {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 16px;
    line-height: 1.02;
    white-space: normal;
  }

  .brand-copy small {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.03em;
    white-space: normal;
  }

  .menu-toggle {
    grid-column: 2;
    min-height: 42px;
    padding: 8px 12px;
  }

  .site-nav {
    top: calc(100% + 1px);
    padding: 14px;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-nav a,
  .site-nav a.nav-services,
  .site-nav a.nav-journal,
  .site-nav a.nav-quiz,
  .site-nav a.nav-process,
  .site-nav a.nav-trust,
  .site-nav a.nav-cases,
  .site-nav a.nav-acts,
  .site-nav a.nav-faq,
  .site-nav a.nav-contacts {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    padding: 12px 0;
    white-space: normal;
    border-bottom: 1px solid rgba(173, 197, 228, 0.12);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero .wrap {
    min-height: auto;
    padding: 16px 0 24px;
    align-content: start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .hero-visual,
  .portrait-card {
    min-height: 240px;
  }

  .hero-visual .hero-triggers {
    display: none;
  }

  .portrait-card {
    border-radius: 14px 14px 0 0;
    box-shadow: none;
  }

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

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 20px 16px 22px;
    border-left-width: 4px;
    box-shadow: none;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 0.96;
  }

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

  .hero-court-note {
    margin-top: 16px;
    padding: 14px 15px;
    line-height: 1.55;
  }

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

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-bottom {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(35, 74, 120, 0.12);
    border-top: 0;
  }

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

  .signal-strip {
    padding: 0 0 24px;
  }

  .signal-strip-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .signal-strip-grid > div {
    padding: 16px 18px;
    border-right: 0;
  }

  .signal-strip-extra span {
    font-size: 14px;
    line-height: 1.5;
  }

  #services .wrap,
  #process .wrap,
  #trust .wrap,
  #faq .wrap,
  .quiz-prototype,
  #lead-form .lead-layout,
  #contacts .contact-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro,
  .lead-copy,
  .lead-panel,
  .contact-card,
  .consultation-card,
  .services-sidecard,
  .quiz-topic-shell,
  .quiz-empty-state,
  .quiz-branch-card,
  .quiz-final-card,
  .quiz-question-card,
  .quiz-note-card {
    padding: 20px 16px;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro,
  .services-sidecard {
    position: static;
    top: auto;
  }

  .problem-grid,
  .steps-grid,
  .cases-grid,
  .quiz-empty-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .problem-card,
  .step-card,
  .case-card {
    min-height: 0;
  }

  .problem-card h3,
  .step-card h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }

  .step-card::before {
    grid-row: auto;
    margin-bottom: 4px;
  }

  #quiz {
    padding-top: 56px;
  }

  .quiz-prototype {
    gap: 18px;
  }

  .quiz-prototype-intro h2,
  .quiz-empty-copy h3 {
    max-width: none;
    font-size: clamp(32px, 10vw, 42px);
  }

  .quiz-prototype-intro p:last-child,
  .quiz-switch-note,
  .quiz-empty-copy p:last-child {
    max-width: none;
  }

  .quiz-stage {
    grid-column: auto;
    gap: 16px;
    min-width: 0;
  }

  .quiz-topic-strip,
  .quiz-option-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-topic-pill,
  .quiz-option-chip,
  .quiz-option-chip span {
    width: 100%;
  }

  .quiz-topic-pill,
  .quiz-option-chip span {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    border-radius: 14px;
  }

  #lead-form .lead-layout,
  #contacts .contact-layout {
    gap: 0;
  }

  #lead-form .lead-copy {
    padding-bottom: 18px;
  }

  .lead-photo {
    margin-top: 18px;
  }

  .lead-photo img,
  #contacts .contact-card:last-child img {
    width: 100%;
    height: auto;
  }

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

  .lead-panel input,
  .lead-panel select,
  .quiz-final-form input,
  .quiz-final-form select {
    min-height: 52px;
  }

  .lead-panel .button {
    width: 100%;
    justify-content: center;
  }

  .contact-list li {
    overflow-wrap: anywhere;
  }

  #contacts .contact-card:last-child {
    padding: 12px;
  }

  #contacts .contact-card:last-child img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .footer-row {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero-bottom,
  .lead-copy,
  .lead-panel,
  .contact-card,
  .consultation-card,
  .services-sidecard,
  .problem-card,
  .step-card,
  .quiz-prototype-intro,
  .quiz-topic-shell,
  .quiz-empty-state,
  .quiz-branch-card,
  .quiz-final-card,
  .quiz-question-card,
  .quiz-note-card {
    padding: 18px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .brand-copy small {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 11.5vw, 40px);
  }

  .hero-text,
  .hero-court-note {
    font-size: 15px;
  }

  .portrait-note {
    padding: 12px 14px;
  }

  .hero-visual,
  .portrait-card {
    min-height: 220px;
  }

  .signal-strip-grid > div {
    padding: 15px 14px;
  }
}

*,
*::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;
  box-sizing: border-box;
  overflow: hidden;
  padding: 4px;
  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-monogram {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-monogram__frame {
  fill: none;
  stroke: rgba(255, 247, 230, 0.42);
  stroke-width: 1;
}

.brand-monogram__flourish {
  fill: none;
  stroke: url(#brand-monogram-gold);
  stroke-width: 1.45;
  stroke-linecap: round;
  opacity: 0.75;
}

.brand-monogram__dot {
  fill: #f7e8be;
  opacity: 0.92;
}

.brand-monogram__letter {
  fill: url(#brand-monogram-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 0;
  paint-order: stroke fill;
  stroke: rgba(73, 48, 23, 0.42);
  stroke-width: 0.55;
  filter: url(#brand-monogram-glow);
}

.brand-monogram__letter--s,
.brand-monogram__letter--p {
  font-size: 34px;
}

.brand-monogram__letter--a {
  font-size: 28px;
  opacity: 0.94;
}

.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(6, 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: 5;
  grid-row: 1;
}

.site-nav a.nav-contacts,
.site-nav a[href="#contacts"] {
  grid-column: 6;
  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: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  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-list {
  display: grid;
  gap: 14px;
}

.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;
  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-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 {
    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;
  }
}

/* Strict legal theme overrides. */
:root {
  --bg: #211811;
  --paper: #f4eddf;
  --paper-strong: #fffaf1;
  --deep: #5f4329;
  --ink-accent: #8a642e;
  --deep-soft: #a57942;
  --accent: #b89146;
  --accent-strong: #8a642e;
  --accent-soft: rgba(138, 100, 46, 0.14);
  --accent-warm: #d0a654;
  --ink: #1d1a17;
  --ink-soft: #fff8ea;
  --muted: #665d52;
  --muted-light: #d8ccb4;
  --line: rgba(48, 38, 27, 0.14);
  --line-light: rgba(255, 245, 228, 0.2);
  --shadow: 0 30px 70px rgba(20, 14, 10, 0.42);
  --shadow-soft: 0 18px 42px rgba(31, 22, 15, 0.22);
  --dot-cluster-a: none;
  --dot-cluster-b: none;
  --dot-cluster-c: none;
  --dot-cluster-d: none;
  --dot-cluster-e: none;
  --dot-cluster-f: none;
  --dot-panel-a: none;
  --dot-panel-b: none;
  --dot-panel-c: none;
  --dot-panel-d: none;
  --dot-panel-e: none;
  --dot-light-a: none;
  --dot-light-b: none;
  --dot-light-c: none;
  --dot-light-d: none;
  --dot-light-e: none;
  --dot-light-f: none;
}

body {
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 16% 10%, rgba(184, 145, 70, 0.13), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(138, 100, 46, 0.18), transparent 30%),
    linear-gradient(180deg, #211811 0%, #3a2a1e 46%, #17100b 100%);
}

.section-soft {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(244, 237, 223, 0.98)),
    linear-gradient(135deg, rgba(184, 145, 70, 0.08), rgba(138, 100, 46, 0.06));
}

.section-dark,
.section:not(.hero):not(.section-soft):not(.section-dark),
#services {
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(58, 42, 30, 0.96), rgba(27, 19, 13, 0.98)),
    linear-gradient(135deg, rgba(138, 100, 46, 0.18), rgba(184, 145, 70, 0.09));
}

#services::before,
#services::after {
  background: radial-gradient(circle, rgba(184, 145, 70, 0.15), transparent 72%);
}

.site-header {
  background:
    linear-gradient(180deg, rgba(33, 24, 17, 0.97), rgba(33, 24, 17, 0.9));
  border-bottom-color: rgba(184, 145, 70, 0.2);
  box-shadow: 0 10px 30px rgba(23, 16, 11, 0.32);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(184, 145, 70, 0.36);
}

.brand-mark {
  color: var(--ink-soft);
  background: linear-gradient(135deg, #8a642e 0%, #8a682d 100%);
  border-color: rgba(184, 145, 70, 0.48);
}

.brand-copy small,
.site-nav,
.info-chip span {
  color: var(--muted-light);
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover,
.contact-list a:hover {
  color: #fffaf2;
}

.menu-toggle,
.header-phone {
  border-color: rgba(184, 145, 70, 0.36);
  background: rgba(255, 245, 228, 0.07);
  color: var(--ink-soft);
}

.eyebrow,
label > span,
.journal-card summary small {
  color: var(--accent-strong);
}

.section-dark .eyebrow,
#services .eyebrow,
.lead-copy .eyebrow,
.hero-copy .eyebrow,
.journal-page-title .eyebrow {
  color: var(--accent-warm);
  text-shadow: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(33, 24, 17, 0.96) 0%, rgba(58, 42, 30, 0.78) 48%, rgba(111, 91, 53, 0.36) 100%),
    url("../img/novosibirsk-family-monument-night.png") 58% center / cover no-repeat;
}

.hero-copy h1,
.hero-text {
  color: #fff8ea;
  text-shadow:
    0 1px 2px rgba(23, 16, 11, 0.92),
    0 8px 30px rgba(23, 16, 11, 0.72);
}

.hero-text,
#services .section-heading p,
.case-card p,
.lead-copy > p,
.journal-page-title p {
  color: rgba(255, 248, 234, 0.84);
}

.button-primary,
.button-online,
.messenger-link--telegram,
.messenger-link--max,
.back-to-top {
  background: linear-gradient(135deg, #8a642e 0%, #5f4329 54%, #8a682d 100%);
  border-color: rgba(184, 145, 70, 0.54);
  color: #fff8ea;
  box-shadow:
    0 18px 32px rgba(102, 72, 38, 0.28),
    inset 0 1px 0 rgba(255, 245, 228, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-online:hover,
.button-online:focus-visible,
.messenger-link:hover {
  box-shadow:
    0 24px 40px rgba(102, 72, 38, 0.34),
    inset 0 1px 0 rgba(255, 245, 228, 0.2);
  filter: saturate(1.03) brightness(1.03);
}

.button-secondary {
  border-color: rgba(184, 145, 70, 0.36);
  background: rgba(255, 245, 228, 0.08);
  color: var(--ink-soft);
}

.feature-list li::before,
#result-points li::before,
.hero-triggers li::before,
.hero-visual .hero-triggers li::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184, 145, 70, 0.16);
}

.hero-triggers li,
.info-chip,
.portrait-card,
.portrait-note,
.lead-copy,
.checklist-photo,
.lead-photo,
.case-card,
.lead-panel,
.contact-card,
.mobile-bar {
  background:
    linear-gradient(180deg, rgba(58, 42, 30, 0.94), rgba(27, 19, 13, 0.96));
  border-color: rgba(255, 245, 228, 0.15);
  box-shadow: var(--shadow-soft);
}

.portrait-card {
  background:
    linear-gradient(180deg, rgba(75, 54, 37, 0.92), rgba(27, 19, 13, 0.96)),
    linear-gradient(135deg, rgba(184, 145, 70, 0.16), rgba(138, 100, 46, 0.16));
}

.signal-strip,
.site-footer {
  background: linear-gradient(180deg, rgba(33, 24, 17, 0.97), rgba(25, 18, 12, 0.98));
  border-color: rgba(184, 145, 70, 0.2);
  color: rgba(255, 248, 234, 0.74);
}

.problem-grid::before {
  background: linear-gradient(180deg, rgba(58, 42, 30, 0.96), rgba(27, 19, 13, 0.96));
  border-color: rgba(184, 145, 70, 0.18);
  box-shadow: 0 28px 60px rgba(23, 16, 11, 0.28), inset 0 1px 0 rgba(255, 245, 228, 0.08);
}

.problem-grid::after {
  background: linear-gradient(135deg, rgba(184, 145, 70, 0.09), transparent 40%, rgba(138, 100, 46, 0.14));
}

.problem-card {
  --problem-accent-rgb: 184, 145, 70;
  background:
    linear-gradient(180deg, rgba(75, 54, 37, 0.94), rgba(33, 24, 17, 0.98));
  border-color: rgba(255, 245, 228, 0.15);
}

.problem-card::after {
  background: radial-gradient(circle, rgba(184, 145, 70, 0.18), rgba(138, 100, 46, 0.14) 48%, transparent 72%);
}

.problem-card--divorce,
.problem-card--support {
  --problem-accent-rgb: 184, 145, 70;
}

.problem-card--children,
.problem-card--residence {
  --problem-accent-rgb: 138, 100, 46;
}

.problem-card--property {
  --problem-accent-rgb: 142, 105, 60;
}

.problem-card--contract {
  --problem-accent-rgb: 111, 91, 53;
}

.problem-icon,
.quiz-branch-mark {
  color: #fff8ea;
  background:
    linear-gradient(135deg, rgba(184, 145, 70, 0.3), rgba(138, 100, 46, 0.28));
  border-color: rgba(184, 145, 70, 0.4);
  box-shadow:
    0 14px 30px rgba(102, 72, 38, 0.2),
    inset 0 1px 0 rgba(255, 245, 228, 0.18);
}

.quiz-card,
.quiz-lead,
.quiz-result,
.checklist-card,
.step-card,
.consultation-card,
.journal-card,
.faq-list details {
  background: rgba(255, 250, 241, 0.98);
  border-color: rgba(48, 38, 27, 0.13);
  box-shadow: 0 14px 28px rgba(31, 22, 15, 0.08);
}

.quiz-lead,
.consultation-card,
.quiz-branch-card,
.quiz-final-card,
.quiz-question-card,
.quiz-note-card {
  background:
    linear-gradient(135deg, rgba(184, 145, 70, 0.08), rgba(138, 100, 46, 0.06)),
    rgba(255, 250, 241, 0.98);
}

.choice span,
.quiz-option-chip span,
input,
select {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(48, 38, 27, 0.16);
  color: var(--ink);
}

.choice span::before,
.quiz-option-chip span::before {
  border-color: rgba(48, 38, 27, 0.34);
  box-shadow: inset 0 0 0 0 rgba(138, 100, 46, 0.92);
}

.choice input:checked + span,
.quiz-option-chip input:checked + span,
.quiz-topic-pill.is-active {
  border-color: rgba(138, 100, 46, 0.54);
  background: rgba(138, 100, 46, 0.09);
}

.quiz-topic-pill:hover,
.quiz-option-chip:hover span {
  border-color: rgba(184, 145, 70, 0.34);
  background: rgba(184, 145, 70, 0.12);
}

.choice input:checked + span::before,
.quiz-option-chip input:checked + span::before {
  border-color: rgba(138, 100, 46, 0.82);
  box-shadow: inset 0 0 0 5px rgba(138, 100, 46, 0.9);
}

input:focus,
select:focus,
.quiz-option-chip input:focus-visible + span {
  outline-color: rgba(184, 145, 70, 0.28);
  border-color: rgba(138, 100, 46, 0.42);
}

.lead-panel input,
.lead-panel select,
.quiz-final-form input,
.quiz-final-form select {
  background: rgba(255, 245, 228, 0.1);
  border-color: rgba(255, 245, 228, 0.16);
  color: var(--ink-soft);
}

.lead-panel input::placeholder,
.quiz-final-form input::placeholder {
  color: rgba(255, 248, 234, 0.48);
}

.online-consultation-callout > span,
.lead-intent-note,
.step-card span,
.step-card .trust-pay-badge {
  color: #5f4329;
  background: rgba(184, 145, 70, 0.16);
  border-color: rgba(184, 145, 70, 0.3);
}

.case-card h3,
.lead-copy h2,
.checklist-copy h2,
.problem-card h3 {
  color: var(--ink-soft);
}

.journal-page-intro {
  background:
    linear-gradient(90deg, rgba(33, 24, 17, 0.94) 0%, rgba(58, 42, 30, 0.82) 48%, rgba(111, 91, 53, 0.48) 100%),
    url("../img/bugrinsky-bridge-sunset.jpg") center / cover no-repeat;
}

.journal-page-intro::after {
  background: linear-gradient(180deg, transparent, rgba(244, 237, 223, 0.98));
}

.section.journal-section:not(.hero):not(.section-soft):not(.section-dark) {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(244, 237, 223, 0.98), rgba(255, 250, 241, 0.98));
}

.journal-card summary::after,
.faq-list summary::after {
  color: #5f4329;
  border-color: rgba(48, 38, 27, 0.24);
}

.journal-card[open] summary::after,
.faq-list details[open] summary::after {
  background: rgba(184, 145, 70, 0.18);
}

.footer-credit a {
  color: #d6aa55;
  text-decoration-color: rgba(217, 180, 100, 0.88);
  text-shadow: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #fff1c9;
  text-decoration-color: rgba(255, 241, 201, 0.95);
}

@media (max-width: 920px) {
  .site-nav {
    background:
      linear-gradient(180deg, rgba(33, 24, 17, 0.98), rgba(33, 24, 17, 0.98));
    border-bottom-color: rgba(184, 145, 70, 0.22);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(33, 24, 17, 0.86) 0%, rgba(58, 42, 30, 0.72) 42%, rgba(33, 24, 17, 0.96) 100%),
      url("../img/novosibirsk-family-monument-night.png") center / cover no-repeat;
  }
}

/* Variant 01 warm legal layout. */
:root {
  --bg: #211811;
  --paper: #f3ead7;
  --paper-strong: #fffaf0;
  --deep: #5f4329;
  --ink-accent: #8a642e;
  --deep-soft: #8a642e;
  --accent: #b8842f;
  --accent-strong: #8a642e;
  --accent-soft: rgba(184, 132, 47, 0.16);
  --accent-warm: #d7aa55;
  --ink: #241c15;
  --ink-soft: #fff7e6;
  --muted: #6a5845;
  --muted-light: #ddccb1;
  --line: rgba(79, 57, 35, 0.16);
  --line-light: rgba(255, 245, 228, 0.22);
  --shadow: 0 28px 62px rgba(39, 25, 13, 0.28);
  --shadow-soft: 0 14px 34px rgba(67, 45, 24, 0.13);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(184, 132, 47, 0.05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #f4ecdd 0%, #eadcc3 46%, #f8f2e8 100%);
}

.section {
  padding: 96px 0;
}

.section,
.section-soft,
.section-dark,
.section:not(.hero):not(.section-soft):not(.section-dark),
#services,
.section.journal-section:not(.hero):not(.section-soft):not(.section-dark) {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.97), rgba(244, 234, 215, 0.97));
}

.section:nth-of-type(even),
.section-soft {
  background:
    linear-gradient(180deg, rgba(237, 224, 199, 0.98), rgba(255, 250, 240, 0.98));
}

.site-header {
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(95, 67, 41, 0.18);
  box-shadow: 0 8px 24px rgba(67, 45, 24, 0.1);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(95, 67, 41, 0.28);
}

.header-row {
  min-height: 78px;
}

.brand-mark {
  border-radius: 6px;
  color: #fff7e6;
  background: linear-gradient(135deg, #5f4329 0%, #b8842f 100%);
  border-color: rgba(95, 67, 41, 0.22);
  box-shadow: 0 10px 24px rgba(67, 45, 24, 0.16);
}

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

.brand-copy small {
  color: #8d7358;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: transparent;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.menu-toggle,
.header-phone {
  border-color: rgba(95, 67, 41, 0.22);
  background: #fffaf0;
  color: var(--deep);
  box-shadow: none;
}

.hero {
  min-height: auto;
  padding: 82px 0 62px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.94) 46%, rgba(235, 219, 190, 0.78) 100%),
    url("../img/novosibirsk-family-monument-night.png") 74% center / cover no-repeat;
  border-bottom: 1px solid rgba(95, 67, 41, 0.14);
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 42px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 820px;
  color: var(--ink);
  text-shadow: none;
  letter-spacing: 0;
}

.hero-copy .eyebrow {
  color: var(--accent-strong);
  text-shadow: none;
}

.hero-text {
  max-width: 650px;
  color: #4f3c2b;
  text-shadow: none;
  font-weight: 500;
}

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

.button {
  border-radius: 8px;
}

.button-primary,
.button-online,
.messenger-link--telegram,
.messenger-link--max,
.back-to-top {
  color: #fff7e6;
  background: linear-gradient(135deg, #5f4329 0%, #8a642e 54%, #b8842f 100%);
  border-color: rgba(95, 67, 41, 0.28);
  box-shadow: 0 16px 28px rgba(95, 67, 41, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-online:hover,
.button-online:focus-visible,
.messenger-link:hover {
  box-shadow: 0 20px 34px rgba(95, 67, 41, 0.26);
}

.button-secondary {
  color: var(--deep);
  background: #fffaf0;
  border-color: rgba(95, 67, 41, 0.22);
}

.messenger-link {
  border-radius: 8px;
}

.portrait-card {
  padding: 10px;
  border-radius: 14px;
  background: #fffaf0;
  border: 1px solid rgba(95, 67, 41, 0.16);
  box-shadow: 0 24px 54px rgba(67, 45, 24, 0.16);
}

.portrait-card img {
  border-radius: 9px;
}

.portrait-note {
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: none;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.94);
  border-color: rgba(95, 67, 41, 0.18);
  box-shadow: 0 14px 28px rgba(67, 45, 24, 0.14);
}

.hero-visual .hero-triggers {
  margin-top: 6px;
  padding: 18px;
  border: 1px solid rgba(95, 67, 41, 0.16);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.9);
}

.hero-visual .hero-triggers li {
  color: var(--ink);
  font-size: 16px;
}

.hero-visual .hero-triggers li::before,
.feature-list li::before,
#result-points li::before {
  background: var(--accent);
  box-shadow: none;
}

.hero-bottom {
  margin-top: 22px;
}

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

.info-chip,
.problem-card,
.quiz-card,
.quiz-result,
.checklist-card,
.step-card,
.consultation-card,
.case-card,
.lead-panel,
.contact-card,
.journal-card,
.faq-list details,
.quiz-branch-card,
.quiz-final-card,
.quiz-question-card,
.quiz-note-card {
  color: var(--ink);
  background: rgba(255, 250, 240, 0.98);
  border: 1px solid rgba(95, 67, 41, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(67, 45, 24, 0.1);
}

.info-chip {
  padding: 18px;
  border-left: 4px solid var(--accent);
}

.info-chip strong,
.info-chip span {
  color: var(--ink);
}

.signal-strip {
  background: #5f4329;
  border: 0;
  color: rgba(255, 247, 230, 0.86);
}

.signal-strip-grid {
  gap: 0;
  border-left: 1px solid rgba(255, 247, 230, 0.16);
}

.signal-strip-grid > div {
  padding: 6px 26px;
  border-right: 1px solid rgba(255, 247, 230, 0.16);
}

#services .section-heading h2,
#services .section-heading p,
.section-heading p,
.hero-text,
.consultation-text,
.faq-intro p,
.contact-card p {
  color: var(--muted);
}

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

.problem-grid::before,
.problem-grid::after,
.problem-card::after,
#services::before,
#services::after {
  display: none;
}

.problem-card {
  min-height: 210px;
  padding: 24px;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 236, 218, 0.98));
  border-top: 4px solid rgba(var(--problem-accent-rgb), 0.72);
}

.problem-card,
.problem-card--divorce,
.problem-card--children,
.problem-card--support,
.problem-card--property,
.problem-card--residence,
.problem-card--contract {
  --problem-accent-rgb: 184, 132, 47;
}

.problem-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  color: #5f4329;
  background: rgba(184, 132, 47, 0.13);
  border-color: rgba(184, 132, 47, 0.28);
  box-shadow: none;
}

.problem-card h3,
.case-card h3,
.lead-copy h2,
.checklist-copy h2 {
  color: var(--ink);
}

.problem-card p,
.case-card p,
.lead-copy > p,
.journal-page-title p {
  color: var(--muted);
}

.quiz-layout,
.lead-layout,
.checklist-layout,
.consultation-layout,
.contact-layout,
.journal-layout {
  gap: 28px;
}

.quiz-lead,
.consultation-card,
.quiz-branch-card,
.quiz-final-card,
.quiz-question-card,
.quiz-note-card {
  background:
    linear-gradient(135deg, rgba(184, 132, 47, 0.08), rgba(111, 91, 53, 0.05)),
    rgba(255, 250, 240, 0.98);
}

.choice span,
.quiz-option-chip span,
input,
select {
  border-radius: 8px;
  background: #fffdf8;
  border-color: rgba(95, 67, 41, 0.17);
}

.choice input:checked + span,
.quiz-option-chip input:checked + span,
.quiz-topic-pill.is-active {
  border-color: rgba(184, 132, 47, 0.58);
  background: rgba(184, 132, 47, 0.11);
}

.choice input:checked + span::before,
.quiz-option-chip input:checked + span::before {
  border-color: rgba(184, 132, 47, 0.85);
  box-shadow: inset 0 0 0 5px rgba(184, 132, 47, 0.92);
}

input:focus,
select:focus,
.quiz-option-chip input:focus-visible + span {
  outline-color: rgba(184, 132, 47, 0.26);
  border-color: rgba(184, 132, 47, 0.55);
}

.lead-copy,
.lead-panel,
.contact-card {
  background: rgba(255, 250, 240, 0.98);
  color: var(--ink);
}

.lead-copy {
  border-left: 6px solid var(--accent);
}

.lead-panel input,
.lead-panel select,
.quiz-final-form input,
.quiz-final-form select {
  color: var(--ink);
  background: #fffdf8;
  border-color: rgba(95, 67, 41, 0.17);
}

.lead-panel input::placeholder,
.quiz-final-form input::placeholder {
  color: rgba(106, 88, 69, 0.56);
}

.online-consultation-callout > span,
.lead-intent-note,
.step-card span,
.step-card .trust-pay-badge {
  color: #5f4329;
  background: rgba(184, 132, 47, 0.14);
  border-color: rgba(184, 132, 47, 0.3);
}

.steps-grid {
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-top: 52px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(95, 67, 41, 0.28);
  font: 800 24px/1 var(--heading-font);
}

.case-card {
  gap: 14px;
  background: #fffaf0;
}

.case-card-photo {
  border-radius: 8px;
  border-color: rgba(95, 67, 41, 0.14);
  box-shadow: none;
}

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

.journal-page-intro {
  background:
    linear-gradient(90deg, rgba(95, 67, 41, 0.94) 0%, rgba(95, 67, 41, 0.78) 44%, rgba(184, 132, 47, 0.3) 100%),
    url("../img/bugrinsky-bridge-sunset.jpg") center / cover no-repeat;
}

.journal-page-intro::after {
  background: linear-gradient(180deg, transparent, rgba(244, 234, 215, 0.98));
}

.journal-page-title h1,
.journal-page-title p {
  color: #fff7e6;
}

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

.journal-card summary::after,
.faq-list summary::after {
  color: #5f4329;
}

.site-footer,
.mobile-bar {
  background: #211811;
  color: rgba(255, 247, 230, 0.72);
}

.footer-credit a {
  color: #d7aa55;
  text-decoration-color: rgba(215, 170, 85, 0.9);
}

@media (max-width: 920px) {
  .site-nav {
    background: rgba(255, 250, 240, 0.98);
    border-bottom-color: rgba(95, 67, 41, 0.18);
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.96) 0%, rgba(255, 250, 240, 0.9) 50%, rgba(235, 219, 190, 0.96) 100%),
      url("../img/novosibirsk-family-monument-night.png") center / cover no-repeat;
  }

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

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

  .signal-strip-grid > div {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 247, 230, 0.16);
  }

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

/* Full redesign correction: layout, not only colors. */
@media (min-width: 1101px) {
  :root {
    --wrap: min(1120px, calc(100vw - 360px));
  }

  body {
    padding-left: 292px;
  }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: 292px;
    height: 100vh;
    overflow-y: auto;
    background:
      linear-gradient(180deg, rgba(33, 24, 17, 0.98), rgba(72, 50, 30, 0.98));
    border-right: 1px solid rgba(215, 170, 85, 0.22);
    border-bottom: 0;
    box-shadow: 18px 0 44px rgba(39, 25, 13, 0.18);
  }

  .header-row {
    width: auto;
    min-height: 100%;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }

  .brand {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 247, 230, 0.16);
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .brand-copy strong {
    color: #fff7e6;
    font-size: 22px;
    line-height: 1.06;
    white-space: normal;
  }

  .brand-copy small {
    color: rgba(255, 247, 230, 0.64);
    line-height: 1.35;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: rgba(255, 247, 230, 0.74);
    font-size: 17px;
  }

  .site-nav a,
  .site-nav a.nav-services,
  .site-nav a.nav-journal,
  .site-nav a.nav-quiz,
  .site-nav a.nav-process,
  .site-nav a.nav-trust,
  .site-nav a.nav-cases,
  .site-nav a.nav-acts,
  .site-nav a.nav-faq,
  .site-nav a.nav-contacts {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    padding: 14px 0 14px 18px;
    border-bottom: 1px solid rgba(255, 247, 230, 0.1);
    white-space: normal;
  }

  .site-nav a::after {
    inset: 13px auto 13px 0;
    width: 3px;
    height: auto;
    background: transparent;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: #fff7e6;
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after {
    background: #d7aa55;
  }

  .header-phone {
    margin-top: auto;
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
    color: #fff7e6;
    background: rgba(255, 247, 230, 0.08);
    border-color: rgba(255, 247, 230, 0.16);
  }

  .mobile-bar,
  .back-to-top {
    left: auto;
  }
}

.hero {
  padding: 0;
  min-height: calc(100vh - 0px);
  display: grid;
  align-items: stretch;
  background: #f3ead7;
  border-bottom: 0;
}

.hero::before {
  content: "CASE FILE";
  position: absolute;
  top: 42px;
  right: 38px;
  z-index: 0;
  color: rgba(95, 67, 41, 0.08);
  font: 800 clamp(64px, 10vw, 132px)/1 var(--heading-font);
  letter-spacing: 0.08em;
  pointer-events: none;
}

.hero .wrap {
  width: min(100%, var(--wrap));
  padding: 48px 0;
  display: grid;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  grid-template-rows: auto auto;
  gap: 0;
  align-items: stretch;
  background: #fffaf0;
  border: 1px solid rgba(95, 67, 41, 0.16);
  box-shadow: 0 32px 80px rgba(67, 45, 24, 0.16);
}

.hero-copy {
  padding: clamp(34px, 5vw, 72px);
  border-right: 1px solid rgba(95, 67, 41, 0.14);
}

.hero-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 12px;
  color: #5f4329;
  background: rgba(184, 132, 47, 0.13);
  border: 1px solid rgba(184, 132, 47, 0.24);
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  max-width: 860px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.94;
}

.hero-text {
  max-width: 700px;
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions,
.messenger-links {
  max-width: 680px;
}

.hero-visual {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(95, 67, 41, 0.9), rgba(33, 24, 17, 0.94));
}

.portrait-card {
  height: 100%;
  min-height: 420px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 0;
  object-fit: cover;
}

.portrait-note {
  left: 22px;
  right: 22px;
  bottom: 22px;
  border-radius: 0;
  border-left: 5px solid #d7aa55;
}

.hero-visual .hero-triggers {
  margin: 0;
  padding: 26px;
  border: 0;
  border-top: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 0;
  background: transparent;
}

.hero-visual .hero-triggers li {
  color: rgba(255, 247, 230, 0.84);
}

.hero-bottom {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(95, 67, 41, 0.14);
}

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

.info-chip {
  border: 0;
  border-right: 1px solid rgba(95, 67, 41, 0.14);
  border-left: 0;
  border-radius: 0;
  background: #f8f0e0;
  box-shadow: none;
}

.info-chip:last-child {
  border-right: 0;
}

.signal-strip {
  padding: 0;
  background: #211811;
}

.signal-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
  border-left: 1px solid rgba(255, 247, 230, 0.12);
}

.signal-strip-grid > div {
  min-height: 156px;
  display: grid;
  align-content: center;
  padding: 26px;
}

#services .wrap,
#process .wrap,
#trust .wrap,
#acts .wrap,
#faq .wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

#services .section-heading,
#process .section-heading,
#trust .section-heading,
#acts .section-heading,
#faq .section-heading {
  position: sticky;
  top: 32px;
  margin: 0;
  padding-top: 12px;
  border-top: 4px solid #b8842f;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.problem-card {
  min-height: 244px;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr;
  border-top: 0;
  border-left: 5px solid #b8842f;
}

.problem-card:nth-child(2n) {
  transform: none;
}

.problem-card-heading {
  grid-template-columns: 1fr;
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

#quiz {
  background:
    linear-gradient(90deg, #211811 0%, #211811 34%, #f3ead7 34%, #f3ead7 100%);
}

.quiz-prototype {
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  align-items: start;
}

.quiz-prototype-intro {
  position: sticky;
  top: 32px;
  color: #fff7e6;
  padding: 32px;
  background: #5f4329;
  border: 1px solid rgba(255, 247, 230, 0.16);
}

.quiz-prototype-intro p:last-child,
.quiz-switch-note {
  color: rgba(255, 247, 230, 0.76);
}

.quiz-topic-strip {
  align-content: start;
}

.quiz-branch-grid {
  align-items: start;
}

.quiz-branch-card,
.quiz-final-card {
  border-radius: 0;
}

#checklist .checklist-layout,
#consultation .consultation-layout,
#lead-form .lead-layout,
#contacts .contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 0;
  border: 1px solid rgba(95, 67, 41, 0.14);
  background: #fffaf0;
  box-shadow: 0 22px 54px rgba(67, 45, 24, 0.11);
}

#checklist .checklist-layout > *,
#consultation .consultation-layout > *,
#lead-form .lead-layout > *,
#contacts .contact-layout > * {
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.lead-copy,
.checklist-copy,
.consultation-copy {
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid rgba(95, 67, 41, 0.14);
}

.lead-panel,
.checklist-card,
.consultation-card,
.contact-card {
  padding: clamp(28px, 4vw, 46px);
}

.lead-copy {
  border-left: 0;
  background: #5f4329;
}

.lead-copy .eyebrow,
.lead-copy h2,
.lead-copy > p {
  color: #fff7e6;
}

.lead-copy > p {
  color: rgba(255, 247, 230, 0.76);
}

.steps-grid {
  grid-column: 2;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(95, 67, 41, 0.14);
}

.step-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  min-height: 148px;
  padding: 28px;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(95, 67, 41, 0.14);
  box-shadow: none;
}

.step-card::before {
  position: static;
  grid-row: 1 / span 3;
  align-self: start;
  font-size: 44px;
}

.cases-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 18px;
}

.case-card {
  border-radius: 0;
}

.case-card:first-child {
  grid-row: span 2;
}

.case-card:first-child .case-card-photo {
  aspect-ratio: 4 / 5;
}

.case-card-photo {
  border-radius: 0;
}

.journal-layout {
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
}

.journal-heading {
  padding: 32px;
  color: #fff7e6;
  background: #5f4329;
}

.journal-heading p {
  color: rgba(255, 247, 230, 0.76);
}

.journal-card,
.faq-list details {
  border-radius: 0;
}

#contacts .contact-card:last-child {
  padding: 0;
}

#contacts .contact-card:last-child img {
  border-radius: 0;
}

@media (max-width: 1100px) {
  body {
    padding-left: 0;
  }

  .hero-grid,
  .quiz-prototype,
  #services .wrap,
  #process .wrap,
  #trust .wrap,
  #acts .wrap,
  #faq .wrap,
  #checklist .checklist-layout,
  #consultation .consultation-layout,
  #lead-form .lead-layout,
  #contacts .contact-layout {
    grid-template-columns: 1fr;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #acts .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro {
    position: static;
  }

  #quiz {
    background: #f3ead7;
  }

  .quiz-prototype-intro,
  .journal-heading {
    color: var(--ink);
    background: #fffaf0;
  }

  .quiz-prototype-intro p:last-child,
  .quiz-switch-note,
  .journal-heading p {
    color: var(--muted);
  }

  .lead-copy,
  .checklist-copy,
  .consultation-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(95, 67, 41, 0.14);
  }

  .problem-card:nth-child(2n) {
    transform: none;
  }

  .steps-grid {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .hero .wrap {
    padding: 24px 0;
  }

  .hero-grid {
    border-left: 0;
    border-right: 0;
  }

  .hero-copy {
    padding: 28px 20px;
    border-right: 0;
  }

  .hero-badges,
  .problem-grid,
  .cases-grid,
  .signal-strip-grid,
  .step-card {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .step-card {
    min-height: 0;
  }
}

/* Hero image from project root. */
.hero {
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(33, 24, 17, 0.12), rgba(33, 24, 17, 0.46)),
    url("../img/koltsovo-hero.png") center / cover no-repeat;
}

.hero::before {
  color: rgba(255, 247, 230, 0.16);
}

.hero .wrap {
  min-height: clamp(720px, 86vh, 920px);
  padding: clamp(28px, 5vw, 58px) 0 68px;
  align-content: end;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-visual {
  order: -1;
  min-height: clamp(360px, 42vw, 560px);
  background: transparent;
}

.portrait-card {
  min-height: clamp(360px, 42vw, 560px);
  border: 1px solid rgba(255, 247, 230, 0.26);
  background:
    linear-gradient(180deg, rgba(33, 24, 17, 0.08), rgba(33, 24, 17, 0.18)),
    url("../img/koltsovo-hero.png") center / cover no-repeat;
  box-shadow: 0 34px 90px rgba(33, 24, 17, 0.28);
}

.portrait-card img {
  display: none;
}

.portrait-note {
  left: 28px;
  right: auto;
  bottom: 28px;
  max-width: 390px;
  background: rgba(255, 250, 240, 0.94);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 48px));
  margin: -96px 0 0 34px;
  padding: clamp(28px, 4vw, 54px);
  background: rgba(255, 250, 240, 0.96);
  border: 1px solid rgba(95, 67, 41, 0.18);
  border-left: 7px solid #b8842f;
  box-shadow: 0 28px 70px rgba(33, 24, 17, 0.2);
}

.hero-copy h1 {
  font-size: clamp(42px, 5.6vw, 78px);
}

.hero-bottom {
  width: min(940px, calc(100% - 48px));
  margin: 0 0 0 34px;
  border: 1px solid rgba(95, 67, 41, 0.14);
  border-top: 0;
}

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

.hero-visual .hero-triggers {
  width: min(420px, calc(100% - 56px));
  margin: 28px 28px 0 auto;
  padding: 22px;
  background: rgba(33, 24, 17, 0.78);
  border: 1px solid rgba(255, 247, 230, 0.18);
}

@media (max-width: 900px) {
  .hero .wrap {
    min-height: auto;
    padding: 24px 0 44px;
  }

  .hero-copy,
  .hero-bottom {
    width: auto;
    margin-left: 0;
  }

  .hero-copy {
    margin-top: -48px;
  }

  .hero-visual .hero-triggers {
    width: auto;
    margin: 18px 18px 0;
  }
}

@media (max-width: 620px) {
  .portrait-card,
  .hero-visual {
    min-height: 300px;
  }

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

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

/* Keep the hero note, remove the duplicate inner image card. */
.hero-visual {
  min-height: 0;
  align-content: start;
}

.portrait-card {
  min-height: 0;
  display: grid;
  justify-items: start;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portrait-note {
  position: static;
  max-width: 390px;
  margin: 0 0 0 34px;
  border-radius: 0;
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid rgba(95, 67, 41, 0.16);
  border-left: 5px solid #b8842f;
  box-shadow: 0 18px 44px rgba(33, 24, 17, 0.16);
}

@media (max-width: 900px) {
  .portrait-note {
    margin-left: 0;
  }
}

.hero::before {
  content: none;
}

@media (min-width: 901px) {
  .hero .wrap {
    position: relative;
    width: 100%;
    max-width: none;
  }

  .hero-copy {
    width: min(760px, calc(100% - 48px));
    margin: -34px clamp(84px, 9vw, 170px) 0 auto;
  }

  .hero-visual {
    display: contents;
  }

  .portrait-card {
    display: contents;
  }

  .portrait-note {
    position: absolute;
    z-index: 5;
    left: clamp(92px, 7vw, 160px);
    right: auto;
    bottom: calc(clamp(118px, 15vh, 168px) + 176px);
    max-width: none;
    width: min(410px, 31vw);
    margin: 0;
  }

  .hero-visual .hero-triggers {
    position: absolute;
    z-index: 5;
    left: clamp(92px, 7vw, 160px);
    right: auto;
    bottom: clamp(118px, 15vh, 168px);
    width: min(410px, 31vw);
    margin: 0;
  }

  .hero-bottom {
    width: min(760px, calc(100% - 48px));
    margin: 0 clamp(84px, 9vw, 170px) 0 auto;
  }
}

@media (min-width: 901px) {
  .hero {
    overflow: visible;
    z-index: 2;
  }

  .signal-strip {
    position: relative;
    z-index: 1;
    overflow: visible;
  }

  .signal-strip-grid {
    padding-left: clamp(690px, 45vw, 850px);
  }

  .signal-strip-grid > div {
    min-height: 178px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .portrait-note {
    left: clamp(46px, 5vw, 96px);
    bottom: -132px;
    width: clamp(320px, 23vw, 400px);
    padding: 18px 22px;
    background:
      linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(239, 213, 164, 0.95));
    border: 1px solid rgba(215, 170, 85, 0.42);
    border-left: 6px solid #d7aa55;
    box-shadow: 0 18px 42px rgba(33, 24, 17, 0.3);
  }

  .hero-visual .hero-triggers {
    left: clamp(398px, 29vw, 540px);
    bottom: -132px;
    width: clamp(300px, 22vw, 360px);
    padding: 18px 22px;
    background:
      linear-gradient(135deg, rgba(95, 67, 41, 0.96), rgba(33, 24, 17, 0.94));
    border: 1px solid rgba(215, 170, 85, 0.34);
    box-shadow: 0 18px 42px rgba(33, 24, 17, 0.34);
  }

  .hero-visual .hero-triggers li {
    font-size: 15px;
    line-height: 1.42;
  }
}

@media (min-width: 901px) {
  .signal-strip-grid {
    min-height: 178px;
    padding-left: 0;
    transform: translateX(clamp(360px, 25vw, 520px));
  }

  .portrait-note,
  .hero-visual .hero-triggers {
    top: calc(100% + 28px);
    bottom: auto;
    box-sizing: border-box;
  }

  .portrait-note {
    left: clamp(42px, 4vw, 76px);
    width: clamp(360px, 22vw, 430px);
    padding: 16px 20px;
  }

  .portrait-note strong {
    margin-bottom: 7px;
    line-height: 1.2;
  }

  .portrait-note span {
    line-height: 1.38;
  }

  .hero-visual .hero-triggers {
    left: clamp(430px, 26vw, 560px);
    width: clamp(360px, 23vw, 440px);
    padding: 16px 22px;
    display: grid;
    gap: 7px;
  }

  .hero-visual .hero-triggers li {
    font-size: 14px;
    line-height: 1.28;
  }
}

@media (min-width: 901px) {
  .signal-strip {
    --strip-col-a: clamp(300px, 22vw, 420px);
    --strip-col-b: clamp(330px, 24vw, 460px);
  }

  .signal-strip-grid {
    width: calc(100% - (var(--strip-col-a) + var(--strip-col-b)));
    margin-left: calc(var(--strip-col-a) + var(--strip-col-b));
    margin-right: 0;
    padding-left: 0;
    transform: none;
  }

  .portrait-note,
  .hero-visual .hero-triggers {
    top: 100%;
    bottom: auto;
    height: 178px;
    display: grid;
    align-content: center;
    padding: 24px 26px;
    color: rgba(255, 247, 230, 0.88);
    background: transparent;
    border: 0;
    border-right: 1px solid rgba(255, 247, 230, 0.16);
    box-shadow: none;
  }

  .portrait-note {
    left: 0;
    width: var(--strip-col-a);
  }

  .hero-visual .hero-triggers {
    left: var(--strip-col-a);
    width: var(--strip-col-b);
  }

  .portrait-note strong,
  .hero-visual .hero-triggers li {
    color: #fff7e6;
  }

  .portrait-note strong {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
  }

  .portrait-note span {
    color: rgba(255, 247, 230, 0.82);
    line-height: 1.55;
  }

  .hero-visual .hero-triggers {
    gap: 10px;
  }

  .hero-visual .hero-triggers li {
    font-size: 16px;
    line-height: 1.45;
  }
}

/* Final desktop layout for the brown signal strip: one grid, five matching columns. */
@media (min-width: 901px) {
  .hero .portrait-note,
  .hero .hero-visual .hero-triggers {
    display: none;
  }

  .signal-strip {
    overflow: hidden;
  }

  .signal-strip-grid {
    width: min(1500px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    padding-left: 0;
    transform: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .signal-strip-grid > div {
    min-height: 178px;
    align-content: start;
    padding: 24px 24px;
  }

  .signal-strip-extra span {
    display: block;
    color: rgba(255, 247, 230, 0.82);
    line-height: 1.55;
  }

  .signal-strip-extra--facts span {
    position: relative;
    padding-left: 16px;
  }

  .signal-strip-extra--facts span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d7aa55;
  }
}

@media (max-width: 900px) {
  .signal-strip-extra {
    display: none;
  }
}

/* Focused design pass for the services block without changing the palette. */
#services .wrap {
  grid-template-rows: auto auto;
}

#services .problem-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  counter-reset: service-card;
}

.services-sidecard {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: 230px;
  display: grid;
  gap: 14px;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 236, 218, 0.98));
  border: 1px solid rgba(95, 67, 41, 0.14);
  box-shadow: 0 22px 48px rgba(67, 45, 24, 0.12);
}

.services-sidecard h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 0.95;
  color: var(--ink);
}

.services-sidecard p:last-of-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.services-sidecard .button {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  white-space: normal;
  line-height: 1.35;
}

.problem-card {
  counter-increment: service-card;
  position: relative;
  overflow: hidden;
}

.problem-card::after {
  content: counter(service-card, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(95, 67, 41, 0.08);
  font: 700 clamp(32px, 3vw, 50px)/1 "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  pointer-events: none;
}

.problem-card p {
  max-width: 29ch;
}

@media (max-width: 1120px) {
  #services .problem-grid,
  .services-sidecard {
    grid-column: auto;
    grid-row: auto;
  }

  .services-sidecard {
    position: static;
    top: auto;
    margin-top: 6px;
  }
}

/* Quiz redesign: remove the unfinished split-screen feeling and give the idle state purpose. */
#quiz {
  background:
    radial-gradient(circle at 18% 24%, rgba(184, 132, 47, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(243, 234, 215, 0.98));
}

.quiz-prototype {
  grid-template-columns: minmax(300px, 0.4fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.quiz-prototype-intro {
  min-height: 100%;
  padding: 34px 30px;
  border: 1px solid rgba(255, 247, 230, 0.14);
  box-shadow: 0 26px 56px rgba(33, 24, 17, 0.24);
}

.quiz-prototype-intro h2 {
  max-width: 10ch;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 0.96;
}

.quiz-prototype-intro p:last-child {
  max-width: 24ch;
}

.quiz-stage {
  grid-column: 2;
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
}

.quiz-topic-shell {
  display: grid;
  gap: 14px;
  padding: 24px 26px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(95, 67, 41, 0.14);
  box-shadow: 0 18px 42px rgba(67, 45, 24, 0.1);
}

.quiz-topic-shell .eyebrow,
.quiz-empty-copy .eyebrow {
  margin: 0;
}

.quiz-topic-strip {
  gap: 10px;
}

.quiz-switch-note {
  margin: 0;
  color: var(--muted);
}

.quiz-empty-state {
  display: grid;
  gap: 22px;
  padding: 28px 28px 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(246, 236, 218, 0.98)),
    linear-gradient(180deg, rgba(184, 132, 47, 0.06), rgba(95, 67, 41, 0.02));
  border: 1px solid rgba(95, 67, 41, 0.14);
  box-shadow: 0 24px 52px rgba(67, 45, 24, 0.12);
}

.quiz-empty-state[hidden] {
  display: none !important;
}

.quiz-empty-copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.quiz-empty-copy h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 0.96;
  color: var(--ink);
}

.quiz-empty-copy p:last-child {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.75;
}

.quiz-empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quiz-empty-step {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 170px;
  padding: 20px 18px;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(95, 67, 41, 0.12);
}

.quiz-empty-step strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  font: 700 15px/1 "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  color: #5f4329;
  background: rgba(184, 132, 47, 0.12);
}

.quiz-empty-step span {
  color: var(--ink);
  line-height: 1.68;
}

.quiz-branch-grid {
  gap: 20px;
}

.quiz-branch-card,
.quiz-final-card {
  border-radius: 12px;
  border-color: rgba(95, 67, 41, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(246, 236, 218, 0.98));
  box-shadow: 0 18px 44px rgba(67, 45, 24, 0.12);
}

.quiz-question-card,
.quiz-note-card {
  border-radius: 12px;
  border-color: rgba(95, 67, 41, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 238, 223, 0.98));
}

.quiz-topic-pill {
  background: rgba(255, 250, 240, 0.94);
  border-color: rgba(95, 67, 41, 0.14);
  box-shadow: none;
  color: #7a5a31;
}

.quiz-topic-pill.is-active {
  background: linear-gradient(135deg, rgba(184, 132, 47, 0.16), rgba(95, 67, 41, 0.1));
  border-color: rgba(95, 67, 41, 0.22);
  box-shadow: 0 14px 28px rgba(67, 45, 24, 0.1);
}

.quiz-option-chip span {
  box-shadow: none;
}

.quiz-option-chip input:checked + span {
  background: linear-gradient(135deg, #8a642e, #5f4329);
  border-color: rgba(95, 67, 41, 0.24);
  box-shadow: 0 14px 26px rgba(67, 45, 24, 0.2);
}

@media (max-width: 1120px) {
  .quiz-stage {
    grid-column: auto;
  }

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

  .quiz-empty-step {
    min-height: 0;
  }

  .quiz-prototype-intro h2,
  .quiz-empty-copy h3 {
    max-width: none;
  }
}

/* Final palette pass: strict midnight-blue legal theme. */
:root {
  --paper: #edf3fa;
  --paper-strong: #f8fbff;
  --deep: #17365e;
  --ink-accent: #2f5a8e;
  --deep-soft: #244a76;
  --accent: #3f6ea7;
  --accent-strong: #234a78;
  --accent-soft: rgba(47, 90, 142, 0.14);
  --accent-warm: #8faacc;
  --ink: #182438;
  --ink-soft: #f4f8fc;
  --muted: #61748c;
  --muted-light: #b9c7d8;
  --line: rgba(26, 48, 78, 0.14);
  --line-light: rgba(244, 248, 252, 0.18);
  --shadow: 0 30px 70px rgba(10, 22, 39, 0.2);
  --shadow-soft: 0 16px 34px rgba(15, 31, 54, 0.12);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 90, 142, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #f1f5fb 0%, #e4ecf6 46%, #f8fbfe 100%);
}

.section,
.section-soft,
.section:not(.hero):not(.section-soft):not(.section-dark),
.section.journal-section:not(.hero):not(.section-soft):not(.section-dark) {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(232, 239, 247, 0.98));
}

.section:nth-of-type(even),
.section-soft {
  background:
    linear-gradient(180deg, rgba(228, 237, 247, 0.98), rgba(247, 250, 254, 0.98));
}

.section-dark,
#services,
#lead-form,
.signal-strip,
.site-footer,
.mobile-bar {
  color: var(--ink-soft);
  background:
    linear-gradient(180deg, rgba(18, 34, 57, 0.98), rgba(9, 21, 38, 0.98)),
    linear-gradient(135deg, rgba(63, 110, 167, 0.14), rgba(27, 55, 92, 0.08));
}

.site-header {
  background: linear-gradient(180deg, rgba(18, 34, 57, 0.96), rgba(14, 28, 47, 0.94));
  border-bottom: 1px solid rgba(142, 169, 206, 0.18);
  box-shadow: 0 8px 24px rgba(7, 16, 29, 0.18);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(142, 169, 206, 0.28);
}

.brand-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #112744 0%, #284a75 100%);
  border-color: rgba(173, 197, 228, 0.28);
  box-shadow: 0 10px 24px rgba(10, 22, 39, 0.24);
}

.brand-copy strong {
  color: var(--ink-soft);
}

.brand-copy small,
.site-nav,
.info-chip span {
  color: var(--muted-light);
}

.brand-copy small {
  color: #adc0d8;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover,
.contact-list a:hover {
  color: #ffffff;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  background: var(--accent);
}

.menu-toggle,
.header-phone {
  border-color: rgba(173, 197, 228, 0.24);
  background: rgba(244, 248, 252, 0.08);
  color: var(--ink-soft);
  box-shadow: none;
}

.eyebrow,
label > span,
.journal-card summary small {
  color: var(--accent-strong);
}

.section-dark .eyebrow,
#services .eyebrow,
.lead-copy .eyebrow,
.hero-copy .eyebrow,
.journal-page-title .eyebrow {
  color: #8faacc;
}

.hero {
  background:
    linear-gradient(90deg, rgba(15, 31, 54, 0.92) 0%, rgba(16, 36, 61, 0.72) 48%, rgba(32, 68, 113, 0.28) 100%),
    url("../img/koltsovo-hero.png") 74% center / cover no-repeat;
  border-bottom: 1px solid rgba(30, 58, 92, 0.12);
}

.hero::before {
  color: rgba(173, 197, 228, 0.08);
}

.hero-grid {
  background: rgba(248, 251, 255, 0.98);
  border-color: rgba(35, 74, 120, 0.12);
  box-shadow: 0 32px 80px rgba(15, 31, 54, 0.12);
}

.hero-copy {
  border-right-color: rgba(35, 74, 120, 0.12);
}

.hero-copy .eyebrow {
  color: #234a78;
  background: rgba(63, 110, 167, 0.1);
  border-color: rgba(63, 110, 167, 0.18);
}

.hero-copy h1 {
  color: var(--ink);
}

.hero-text {
  color: #4a617c;
}

.hero-visual {
  background:
    linear-gradient(180deg, rgba(20, 38, 64, 0.9), rgba(10, 21, 39, 0.94));
}

.portrait-card,
.portrait-note,
.hero-visual .hero-triggers,
.info-chip,
.problem-card,
.quiz-card,
.quiz-result,
.checklist-card,
.step-card,
.consultation-card,
.case-card,
.lead-panel,
.contact-card,
.journal-card,
.faq-list details,
.quiz-branch-card,
.quiz-final-card,
.quiz-question-card,
.quiz-note-card,
.services-sidecard,
.quiz-topic-shell,
.quiz-empty-state,
.quiz-empty-step {
  color: var(--ink);
  background: rgba(248, 251, 255, 0.98);
  border-color: rgba(35, 74, 120, 0.12);
  box-shadow: 0 18px 38px rgba(15, 31, 54, 0.1);
}

.portrait-note {
  border-left-color: #3f6ea7;
}

.hero-visual .hero-triggers {
  border-top-color: rgba(173, 197, 228, 0.16);
}

.hero-visual .hero-triggers li {
  color: rgba(244, 248, 252, 0.84);
}

.hero-bottom,
.info-chip,
.signal-strip-grid,
.signal-strip-grid > div {
  border-color: rgba(35, 74, 120, 0.12);
}

.signal-strip-grid > div {
  color: rgba(244, 248, 252, 0.78);
}

.signal-strip-grid strong {
  color: #f4f8fc;
}

.button-primary,
.button-online,
.messenger-link--telegram,
.messenger-link--max,
.back-to-top {
  color: #f4f8fc;
  background: linear-gradient(135deg, #183a63 0%, #2a568a 54%, #3f6ea7 100%);
  border-color: rgba(35, 74, 120, 0.24);
  box-shadow: 0 16px 28px rgba(17, 39, 67, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-online:hover,
.button-online:focus-visible,
.messenger-link:hover {
  box-shadow: 0 20px 34px rgba(17, 39, 67, 0.28);
}

.button-secondary {
  color: var(--deep);
  background: #f8fbff;
  border-color: rgba(35, 74, 120, 0.16);
}

.problem-grid::before {
  background: linear-gradient(180deg, rgba(20, 38, 64, 0.94), rgba(11, 21, 38, 0.95));
  border-color: rgba(173, 197, 228, 0.14);
  box-shadow: 0 28px 60px rgba(10, 22, 39, 0.26);
}

.problem-grid::after {
  background: linear-gradient(135deg, rgba(63, 110, 167, 0.1), transparent 40%, rgba(35, 74, 120, 0.12));
}

.problem-card {
  --problem-accent-rgb: 63, 110, 167;
}

.problem-card--children,
.problem-card--residence {
  --problem-accent-rgb: 50, 90, 138;
}

.problem-card--property,
.problem-card--contract {
  --problem-accent-rgb: 83, 121, 172;
}

.problem-icon,
.quiz-branch-mark {
  color: #f6faff;
  background: linear-gradient(135deg, rgba(63, 110, 167, 0.18), rgba(23, 54, 94, 0.12));
  border-color: rgba(63, 110, 167, 0.24);
  box-shadow:
    0 14px 30px rgba(17, 39, 67, 0.14),
    inset 0 1px 0 rgba(244, 248, 252, 0.12);
}

.choice span,
.quiz-option-chip span,
input,
select,
.quiz-topic-pill {
  background: rgba(248, 251, 255, 0.96);
  border-color: rgba(35, 74, 120, 0.16);
  color: var(--ink);
  box-shadow: none;
}

.choice span::before,
.quiz-option-chip span::before {
  border-color: rgba(35, 74, 120, 0.28);
  box-shadow: inset 0 0 0 0 rgba(47, 90, 142, 0.88);
}

.choice input:checked + span,
.quiz-option-chip input:checked + span,
.quiz-topic-pill.is-active {
  border-color: rgba(47, 90, 142, 0.46);
  background: rgba(47, 90, 142, 0.08);
}

.quiz-topic-pill:hover,
.quiz-option-chip:hover span {
  border-color: rgba(63, 110, 167, 0.28);
  background: rgba(63, 110, 167, 0.1);
}

.choice input:checked + span::before,
.quiz-option-chip input:checked + span::before {
  border-color: rgba(47, 90, 142, 0.82);
  box-shadow: inset 0 0 0 5px rgba(47, 90, 142, 0.9);
}

.quiz-option-chip input:checked + span {
  color: #f4f8fc;
  background: linear-gradient(135deg, #183a63, #315f93);
  border-color: rgba(35, 74, 120, 0.24);
  box-shadow: 0 14px 26px rgba(17, 39, 67, 0.18);
}

input:focus,
select:focus,
.quiz-option-chip input:focus-visible + span {
  outline-color: rgba(63, 110, 167, 0.24);
  border-color: rgba(47, 90, 142, 0.42);
}

.lead-panel input,
.lead-panel select,
.quiz-final-form input,
.quiz-final-form select {
  background: rgba(248, 251, 255, 0.98);
  border-color: rgba(35, 74, 120, 0.16);
  color: var(--ink);
}

.lead-panel input::placeholder,
.quiz-final-form input::placeholder {
  color: rgba(97, 116, 140, 0.72);
}

.online-consultation-callout > span,
.lead-intent-note,
.step-card span,
.step-card .trust-pay-badge,
.quiz-empty-step strong {
  color: var(--deep);
  background: rgba(63, 110, 167, 0.12);
  border-color: rgba(63, 110, 167, 0.24);
}

.journal-card summary::after,
.faq-list summary::after {
  color: var(--deep);
  border-color: rgba(35, 74, 120, 0.18);
}

.journal-card[open] summary::after,
.faq-list details[open] summary::after {
  background: rgba(63, 110, 167, 0.12);
}

.footer-credit a {
  color: #c1d4ee;
  text-decoration-color: rgba(193, 212, 238, 0.76);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.92);
}

#quiz {
  background:
    radial-gradient(circle at 18% 24%, rgba(47, 90, 142, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(233, 240, 248, 0.98));
}

.quiz-empty-step strong {
  color: #234a78;
}

.quiz-topic-pill {
  color: #35557f;
}

@media (max-width: 920px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(15, 31, 54, 0.9) 0%, rgba(16, 36, 61, 0.76) 42%, rgba(15, 31, 54, 0.96) 100%),
      url("../img/koltsovo-hero.png") center / cover no-repeat;
  }
}

/* Restore the original image-first hero layout after the palette swap. */
.hero {
  padding: 0;
  min-height: auto;
  display: block;
  align-items: initial;
  background:
    linear-gradient(180deg, rgba(15, 31, 54, 0.14), rgba(15, 31, 54, 0.44)),
    url("../img/koltsovo-hero.png") center / cover no-repeat;
  border-bottom: 0;
}

.hero::before {
  content: none;
}

.hero .wrap {
  width: min(100%, var(--wrap));
  min-height: clamp(560px, 68vh, 720px);
  padding: clamp(20px, 3.4vw, 40px) 0 54px;
  display: grid;
  align-content: end;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0;
  align-items: stretch;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-visual {
  order: -1;
  min-height: clamp(280px, 34vw, 440px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  background: transparent;
}

.portrait-card {
  height: auto;
  min-height: clamp(280px, 34vw, 440px);
  padding: 0;
  border: 1px solid rgba(228, 236, 247, 0.24);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(15, 31, 54, 0.08), rgba(15, 31, 54, 0.18)),
    url("../img/koltsovo-hero.png") center / cover no-repeat;
  box-shadow: 0 34px 90px rgba(10, 22, 39, 0.28);
}

.portrait-card img {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 48px));
  margin: -34px clamp(84px, 9vw, 170px) 0 auto;
  padding: clamp(28px, 4vw, 54px);
  border-right: 0;
  background: rgba(248, 251, 255, 0.95);
  border: 1px solid rgba(35, 74, 120, 0.16);
  border-left: 7px solid #3f6ea7;
  box-shadow: 0 28px 70px rgba(10, 22, 39, 0.18);
}

.hero-copy h1 {
  max-width: 860px;
  font-size: clamp(40px, 5.1vw, 70px);
  line-height: 0.94;
}

.hero-bottom {
  grid-column: auto;
  width: min(700px, calc(100% - 48px));
  margin: 0 clamp(84px, 9vw, 170px) 0 auto;
  border: 1px solid rgba(35, 74, 120, 0.12);
  border-top: 0;
}

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

@media (max-width: 900px) {
  .hero .wrap {
    min-height: auto;
    padding: 24px 0 44px;
  }

  .hero-copy,
  .hero-bottom {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-copy {
    margin-top: -48px;
  }

  .portrait-card,
  .hero-visual {
    min-height: 300px;
  }

  .hero-visual .hero-triggers {
    width: auto;
    margin: 18px 18px 0;
  }
}

@media (max-width: 620px) {
  .hero-badges {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .hero .wrap {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: clamp(560px, 68vh, 720px);
    padding: 24px clamp(46px, 4vw, 72px) 44px;
    align-content: start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(560px, 700px);
    grid-template-rows: auto auto;
    align-content: start;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    width: min(700px, 100%);
    margin: 16px 0 0;
  }

  .hero-bottom {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    width: min(700px, 100%);
    margin: 0;
  }
}

/* Sharper blue service icons with higher contrast. */
.problem-icon {
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 24%, rgba(202, 228, 255, 0.72), transparent 34%),
    linear-gradient(145deg, #7aa6da 0%, #4f7fb7 30%, #2b5a8f 68%, #17365e 100%);
  border-color: rgba(122, 166, 218, 0.56);
  box-shadow:
    0 16px 28px rgba(14, 33, 58, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -12px 18px rgba(10, 28, 52, 0.2);
}

.problem-icon svg {
  stroke-width: 1.95;
  filter: drop-shadow(0 1px 1px rgba(11, 28, 49, 0.18));
}

.header-bio {
  display: none;
}

@media (min-width: 1101px) {
  .header-bio {
    display: grid;
    gap: 10px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(173, 197, 228, 0.16);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(244, 248, 252, 0.06), rgba(244, 248, 252, 0.03)),
      linear-gradient(180deg, rgba(18, 34, 57, 0.64), rgba(11, 24, 42, 0.72));
    box-shadow: inset 0 1px 0 rgba(244, 248, 252, 0.06);
  }

  .header-bio__eyebrow,
  .header-bio__name,
  .header-bio__line {
    margin: 0;
  }

  .header-bio__eyebrow {
    font: 800 11px/1.2 "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8faacc;
  }

  .header-bio__name {
    font-family: "Roboto Condensed", "Manrope", "Segoe UI", sans-serif;
    font-size: 24px;
    line-height: 1.04;
    color: #f4f8fc;
  }

  .header-bio__line {
    color: rgba(226, 235, 246, 0.84);
    line-height: 1.5;
    font-size: 14px;
  }
}

/* Final visual corrections requested by the user. Keep these at the very end. */
#services .section-heading .eyebrow,
#services .section-heading h2,
#services .section-heading p {
  color: #ffffff;
}

.quiz-prototype-intro {
  color: #f4f8fc;
  background:
    radial-gradient(circle at 18% 18%, rgba(122, 166, 218, 0.28), transparent 34%),
    linear-gradient(180deg, #234a78 0%, #17365e 100%);
  border: 1px solid rgba(173, 197, 228, 0.24);
  box-shadow: 0 26px 56px rgba(10, 22, 39, 0.28);
}

.quiz-prototype-intro .eyebrow {
  color: #9fc2ea;
}

.quiz-prototype-intro h2 {
  color: #ffffff;
}

.quiz-prototype-intro p:last-child {
  color: rgba(244, 248, 252, 0.84);
}

#lead-form .lead-layout {
  border-color: rgba(63, 107, 161, 0.24);
  background: linear-gradient(180deg, rgba(216, 229, 244, 0.68), rgba(205, 221, 239, 0.68));
  box-shadow: 0 22px 54px rgba(15, 31, 54, 0.12);
  overflow: hidden;
}

#lead-form .lead-copy {
  background:
    radial-gradient(circle at 18% 18%, rgba(122, 166, 218, 0.24), transparent 32%),
    linear-gradient(180deg, #234a78 0%, #17365e 100%);
  border-right-color: rgba(93, 140, 198, 0.18);
}

#lead-form .lead-copy .eyebrow {
  color: #9fc2ea;
}

#lead-form .lead-copy h2 {
  color: #ffffff;
}

#lead-form .lead-copy > p {
  color: rgba(244, 248, 252, 0.86);
}

#lead-form .lead-panel label > span {
  color: #234a78;
}

#lead-form .lead-panel {
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.98), rgba(231, 239, 248, 0.98));
}

#lead-form .lead-panel .consent-check span,
#lead-form .lead-panel .form-note {
  color: #61748c;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  :root {
    --wrap: min(calc(100vw - 28px), 1000px);
  }

  .section {
    padding: 56px 0;
  }

  .header-row {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 16px;
    line-height: 1.02;
    white-space: normal;
  }

  .brand-copy small {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.03em;
    white-space: normal;
  }

  .menu-toggle {
    grid-column: 2;
    min-height: 42px;
    padding: 8px 12px;
  }

  .site-nav {
    top: calc(100% + 1px);
    padding: 14px;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-nav a,
  .site-nav a.nav-services,
  .site-nav a.nav-journal,
  .site-nav a.nav-quiz,
  .site-nav a.nav-process,
  .site-nav a.nav-trust,
  .site-nav a.nav-cases,
  .site-nav a.nav-acts,
  .site-nav a.nav-faq,
  .site-nav a.nav-contacts {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    padding: 12px 0;
    white-space: normal;
    border-bottom: 1px solid rgba(173, 197, 228, 0.12);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero .wrap {
    min-height: auto;
    padding: 16px 0 24px;
    align-content: start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
  }

  .hero-visual,
  .portrait-card {
    min-height: 240px;
  }

  .hero-visual .hero-triggers {
    display: none;
  }

  .portrait-card {
    border-radius: 14px 14px 0 0;
    box-shadow: none;
  }

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

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 20px 16px 22px;
    border-left-width: 4px;
    box-shadow: none;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 0.96;
  }

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

  .hero-court-note {
    margin-top: 16px;
    padding: 14px 15px;
    line-height: 1.55;
  }

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

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-bottom {
    width: 100%;
    margin: 0;
    border: 1px solid rgba(35, 74, 120, 0.12);
    border-top: 0;
  }

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

  .signal-strip {
    padding: 0 0 24px;
  }

  .signal-strip-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .signal-strip-grid > div {
    padding: 16px 18px;
    border-right: 0;
  }

  .signal-strip-extra span {
    font-size: 14px;
    line-height: 1.5;
  }

  #services .wrap,
  #process .wrap,
  #trust .wrap,
  #faq .wrap,
  .quiz-prototype,
  #lead-form .lead-layout,
  #contacts .contact-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro,
  .lead-copy,
  .lead-panel,
  .contact-card,
  .consultation-card,
  .services-sidecard,
  .quiz-topic-shell,
  .quiz-empty-state,
  .quiz-branch-card,
  .quiz-final-card,
  .quiz-question-card,
  .quiz-note-card {
    padding: 20px 16px;
  }

  #services .section-heading,
  #process .section-heading,
  #trust .section-heading,
  #faq .section-heading,
  .quiz-prototype-intro,
  .services-sidecard {
    position: static;
    top: auto;
  }

  .problem-grid,
  .steps-grid,
  .cases-grid,
  .quiz-empty-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .problem-card,
  .step-card,
  .case-card {
    min-height: 0;
  }

  .problem-card h3,
  .step-card h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }

  .step-card::before {
    grid-row: auto;
    margin-bottom: 4px;
  }

  #quiz {
    padding-top: 56px;
  }

  .quiz-prototype {
    gap: 18px;
  }

  .quiz-prototype-intro h2,
  .quiz-empty-copy h3 {
    max-width: none;
    font-size: clamp(32px, 10vw, 42px);
  }

  .quiz-prototype-intro p:last-child,
  .quiz-switch-note,
  .quiz-empty-copy p:last-child {
    max-width: none;
  }

  .quiz-stage {
    grid-column: auto;
    gap: 16px;
    min-width: 0;
  }

  .quiz-topic-strip,
  .quiz-option-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-topic-pill,
  .quiz-option-chip,
  .quiz-option-chip span {
    width: 100%;
  }

  .quiz-topic-pill,
  .quiz-option-chip span {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    border-radius: 14px;
  }

  #lead-form .lead-layout,
  #contacts .contact-layout {
    gap: 0;
  }

  #lead-form .lead-copy {
    padding-bottom: 18px;
  }

  .lead-photo {
    margin-top: 18px;
  }

  .lead-photo img,
  #contacts .contact-card:last-child img {
    width: 100%;
    height: auto;
  }

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

  .lead-panel input,
  .lead-panel select,
  .quiz-final-form input,
  .quiz-final-form select {
    min-height: 52px;
  }

  .lead-panel .button {
    width: 100%;
    justify-content: center;
  }

  .contact-list li {
    overflow-wrap: anywhere;
  }

  #contacts .contact-card:last-child {
    padding: 12px;
  }

  #contacts .contact-card:last-child img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .footer-row {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-copy,
  .hero-bottom,
  .lead-copy,
  .lead-panel,
  .contact-card,
  .consultation-card,
  .services-sidecard,
  .problem-card,
  .step-card,
  .quiz-prototype-intro,
  .quiz-topic-shell,
  .quiz-empty-state,
  .quiz-branch-card,
  .quiz-final-card,
  .quiz-question-card,
  .quiz-note-card {
    padding: 18px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

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

  .brand-copy small {
    font-size: 9px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 11.5vw, 40px);
  }

  .hero-text,
  .hero-court-note {
    font-size: 15px;
  }

  .portrait-note {
    padding: 12px 14px;
  }

  .hero-visual,
  .portrait-card {
    min-height: 220px;
  }

  .signal-strip-grid > div {
    padding: 15px 14px;
  }
}

@media (max-width: 900px) {
  .hero-visual {
    display: none;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .portrait-card {
    display: none;
    min-height: 0;
    height: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  .portrait-note {
    display: none;
  }

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

.checklist-photo {
  background: linear-gradient(180deg, rgba(35, 74, 120, 0.96), rgba(14, 34, 59, 0.98));
  border: 1px solid rgba(142, 169, 206, 0.32);
  box-shadow: 0 24px 52px rgba(15, 31, 54, 0.24);
}

#contacts .contact-card:last-child.contact-map-card {
  padding: 0;
}

#contacts .contact-card:last-child > .contact-map {
  display: block;
}

.contact-map {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(180deg, #dce7f4, #edf3f9);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
}

.contact-map-link {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #234a78, #3f6ea7);
  box-shadow: 0 16px 34px rgba(15, 31, 54, 0.22);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .contact-map iframe {
    min-height: 360px;
  }

  .contact-map-link {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }
}
