/*
 * Единая корпоративная тема Lavrinenko School × DentUp.
 * Токены извлечены из Figma A3MbWmwX0vHAyUF2Pv0LrV:
 * фон #323232, свечение #96B161, акцент #AFCA78, Affect + Mont.
 */
:root {
  --brand-bg: #323232;
  --brand-bg-deep: #1f211f;
  --brand-panel: rgba(255, 255, 255, 0.09);
  --brand-panel-strong: rgba(255, 255, 255, 0.13);
  --brand-lime: #afca78;
  --brand-glow: #96b161;
  --brand-white: #fff;
  --brand-silver: #c7c7c7;
  --brand-muted: rgba(255, 255, 255, 0.68);
  --brand-line: rgba(255, 255, 255, 0.23);
  --brand-line-soft: rgba(255, 255, 255, 0.12);
  --brand-danger: #ff9a8f;
  --brand-heading:
    Affect, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --brand-body:
    Mont, Montserrat, "Helvetica Neue", Arial, sans-serif;

  /* Совместимость со старыми именами токенов проекта. */
  --navy: var(--brand-bg-deep);
  --blue: #454b43;
  --teal: var(--brand-lime);
  --teal-dark: var(--brand-glow);
  --mint: rgba(175, 202, 120, 0.16);
  --sky: rgba(255, 255, 255, 0.07);
  --ink: var(--brand-white);
  --muted: var(--brand-muted);
  --line: var(--brand-line-soft);
  --paper: var(--brand-panel);
  --bg: var(--brand-bg);
  --danger: var(--brand-danger);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.27);
}

html {
  background: var(--brand-bg);
}

body {
  background:
    radial-gradient(
      circle at 82% 3%,
      rgba(175, 202, 120, 0.58) 0,
      rgba(150, 177, 97, 0.22) 16rem,
      transparent 38rem
    ),
    radial-gradient(
      circle at 3% 68%,
      rgba(150, 177, 97, 0.18),
      transparent 28rem
    ),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--brand-bg);
  background-size: auto, auto, 72px 72px, 72px 72px, auto;
  color: var(--brand-white);
  font-family: var(--brand-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(
      28deg,
      transparent 47%,
      rgba(255, 255, 255, 0.1) 48%,
      transparent 49%
    ),
    linear-gradient(
      154deg,
      transparent 47%,
      rgba(175, 202, 120, 0.1) 48%,
      transparent 49%
    );
  background-size: 260px 210px, 310px 250px;
}

h1,
h2,
.step-head h1,
.result-hero h2,
.stage-panel h3 {
  color: var(--brand-white);
  font-family: var(--brand-heading);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1,
.hero h1 {
  background: linear-gradient(
    90deg,
    #c7c7c7 0%,
    #fff 26%,
    #fff 78%,
    #b7b7b7 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

h3,
h4,
h5,
legend,
.card strong {
  color: var(--brand-white);
}

p,
li,
dd,
small {
  color: var(--brand-muted);
}

.eyebrow {
  color: var(--brand-lime);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.topbar,
.site-header {
  background: rgba(31, 33, 31, 0.76);
  border-bottom: 1px solid var(--brand-line-soft);
  backdrop-filter: blur(20px);
}

.brand,
.brand-lockup,
.school-wordmark,
.dentup-wordmark,
.brand > strong {
  color: var(--brand-white) !important;
}

.brand > span b,
.school-wordmark b,
.dentup-wordmark b {
  color: var(--brand-lime);
}

.brand i,
.brand-lockup i {
  color: rgba(255, 255, 255, 0.42);
}

.button {
  min-height: 48px;
  border-radius: 30px;
  font-family: var(--brand-body);
  font-weight: 700;
}

.button-primary,
.button-small,
.button-light {
  background: var(--brand-lime);
  border: 2px solid var(--brand-lime);
  color: #242821;
  box-shadow: 0 14px 38px rgba(150, 177, 97, 0.23);
}

.button-primary:hover,
.button-small:hover,
.button-light:hover {
  background: #c4dc94;
  border-color: #c4dc94;
  color: #1f211f;
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--brand-line);
  color: var(--brand-white);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(175, 202, 120, 0.12);
  border-color: var(--brand-lime);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(175, 202, 120, 0.72);
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
  gap: 6vw;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(56px, 5.25vw, 78px);
  line-height: 0.98;
}

.hero .lead,
.lead,
.lead-small {
  color: rgba(255, 255, 255, 0.72);
}

.hero-points span,
.benefits li,
.awareness-grid article,
.outcome-grid article,
.stage-panel,
.stage-owner-card,
.stage-organization-functions details,
.stage-dentistry,
.stage-maturity,
.stage-marketing,
.youtube-card,
.card,
.journey-card,
.stage-offer,
.report-section,
.manager-card,
.risk-card,
.tour-card,
.revenue-kpi,
.contact-benefits,
.question-card {
  background: var(--brand-panel);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-points span,
.benefits li {
  box-shadow: none;
}

.hero-points b,
.benefits strong,
.awareness-grid article > span,
.outcome-grid b,
.stage-panel-head > span,
.question-number,
.stage-badge span,
.revenue-kpi strong {
  color: var(--brand-lime);
}

.hero-map,
.hero-visual {
  border: 1px solid rgba(175, 202, 120, 0.5);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 70% 12%,
      rgba(175, 202, 120, 0.55),
      transparent 26rem
    ),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    rgba(25, 27, 25, 0.88);
  background-size: auto, 56px 56px, 56px 56px, auto;
}

.map-orbit,
.score-preview {
  border-color: var(--brand-lime);
  box-shadow: 0 0 100px rgba(150, 177, 97, 0.26);
}

.map-orbit strong,
.score-preview strong {
  color: var(--brand-lime);
}

.map-card {
  background: rgba(70, 70, 68, 0.84);
  border: 1px solid var(--brand-line);
  color: var(--brand-white);
  backdrop-filter: blur(10px);
}

.map-card small,
.map-card b {
  color: var(--brand-white);
}

.map-card small {
  color: var(--brand-lime);
}

.strip {
  background: var(--brand-lime);
  color: #242821;
}

.strip p {
  color: #242821;
  font-weight: 600;
}

.stages-section {
  background: rgba(22, 24, 22, 0.24);
}

.stage-list button {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--brand-line-soft);
  color: var(--brand-muted);
}

.stage-list button b,
.stage-list button span {
  color: var(--brand-white);
}

.stage-list button span {
  color: var(--brand-lime);
}

.stage-list button.active {
  background: var(--brand-lime);
  border-color: var(--brand-lime);
  color: #242821;
}

.stage-list button.active b,
.stage-list button.active span,
.stage-list button.active small {
  color: #242821;
}

.stage-video,
.video-placeholder {
  background:
    radial-gradient(
      circle at 72% 15%,
      rgba(175, 202, 120, 0.4),
      transparent 22rem
    ),
    #242624;
  border: 1px solid var(--brand-line-soft);
}

.stage-panel summary,
.stage-panel dt {
  color: var(--brand-lime);
}

.final-cta,
.result-hero,
.tour-cta {
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(175, 202, 120, 0.46),
      transparent 26rem
    ),
    rgba(31, 33, 31, 0.92);
  border: 1px solid var(--brand-line);
}

.content-screen,
.audit-screen,
.result-screen {
  background: transparent;
}

.progress-card {
  background: rgba(31, 33, 31, 0.9);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.progress-track {
  background: rgba(255, 255, 255, 0.13);
}

.progress-track span {
  background: var(--brand-lime);
}

.progress-card li,
.progress-card li button {
  color: rgba(255, 255, 255, 0.53);
}

.progress-card li.active,
.progress-card li.done,
.progress-card li.active button,
.progress-card li.done button {
  color: var(--brand-lime);
}

.progress-card li.active button {
  background: rgba(175, 202, 120, 0.12);
}

input,
select,
textarea,
.field textarea,
.load-field select,
.doctor-field input,
.manager-card textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--brand-line);
  color: var(--brand-white);
  border-radius: 14px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

select option {
  background: var(--brand-bg-deep);
  color: var(--brand-white);
}

.scale span {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--brand-line-soft);
  color: var(--brand-muted);
}

.scale input:checked + span {
  background: var(--brand-lime);
  border-color: var(--brand-lime);
  color: #242821;
  font-weight: 800;
}

.consent,
.doctor-fields,
.load-result-row,
.resume-box,
.thank-you,
.constraint {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--brand-line-soft);
}

.constraint {
  border-left-color: var(--brand-danger);
}

.topic,
.stage-badge {
  background: rgba(175, 202, 120, 0.13);
  color: var(--brand-lime);
}

.tour-cta .button-primary {
  background: var(--brand-lime);
  border-color: var(--brand-lime);
  color: #242821;
}

.text-link,
.social-links a,
.tour-school-link,
a {
  color: var(--brand-lime);
}

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

  h1,
  .hero h1 {
    font-size: clamp(40px, 8.4vw, 68px);
  }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(
        circle at 95% 4%,
        rgba(175, 202, 120, 0.42),
        transparent 18rem
      ),
      var(--brand-bg);
  }

  h1,
  .hero h1 {
    font-size: clamp(32px, 10vw, 43px);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .hero,
  .content-screen,
  .audit-screen,
  .result-screen {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    width: auto;
    max-width: 100%;
  }

  .button-primary,
  .button-small,
  .button-light {
    width: 100%;
  }

  .stage-panel,
  .card,
  .question-card,
  .contact-benefits,
  .report-section {
    border-radius: 18px;
  }
}

@media print {
  body {
    background: #fff;
    color: #18211e;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  p,
  li,
  dd,
  small,
  .result-hero h2,
  .result-hero p {
    color: #18211e;
    -webkit-text-fill-color: currentColor;
    background: none;
  }
}

/* Последний адаптивный слой анкеты: не даём теме расширять мобильный экран. */
@media screen and (max-width: 1024px) {
  #welcome.hero {
    grid-template-columns: minmax(0, 1fr);
  }

  #welcome .hero-copy,
  #welcome .hero-visual {
    width: min(100%, 650px);
    min-width: 0;
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #welcome.hero {
    min-height: auto;
    padding: 52px 18px 72px;
  }

  #welcome h1 {
    max-width: 100%;
    font-size: clamp(35px, 9.5vw, 49px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  #welcome .lead,
  #welcome .privacy-note,
  #welcome .benefits,
  #welcome .benefits li,
  #welcome .button-primary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #welcome .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  #welcome .benefits li {
    min-height: 0;
  }

  #welcome .hero-visual {
    min-height: 350px;
  }

  .form-grid,
  .contact-benefits ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .audit-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-card {
    position: static;
  }
}

@media screen and (max-width: 420px) {
  #welcome h1 {
    font-size: clamp(31px, 9vw, 38px);
  }

  #welcome .button-primary {
    padding-inline: 14px;
    font-size: 14px;
  }

  #welcome .hero-visual {
    min-height: 300px;
  }
}

/* Финальное правило экранных полей идёт после всех тёмных переопределений темы. */
@media screen {
  input,
  textarea,
  select,
  input[type="number"],
  .field input,
  .field textarea,
  .field select,
  .load-field select,
  .doctor-field input,
  .manager-card textarea {
    background: #f4f6f1 !important;
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
    caret-color: #242824;
    color-scheme: light;
  }

  input::placeholder,
  textarea::placeholder {
    color: #687060 !important;
    -webkit-text-fill-color: #687060 !important;
    opacity: 1;
  }

  select option {
    background: #fff;
    color: #242824;
  }

  input:focus,
  textarea:focus,
  select:focus,
  input:invalid,
  textarea:invalid,
  select:invalid {
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
  }

  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--brand-lime) !important;
    box-shadow: 0 0 0 3px rgba(175, 202, 120, 0.18);
  }

  input:disabled,
  textarea:disabled,
  select:disabled {
    background: #dfe3dc !important;
    color: #535b52 !important;
    -webkit-text-fill-color: #535b52 !important;
    opacity: 1;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover,
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #f4f6f1 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #f4f6f1 inset !important;
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
    caret-color: #242824;
  }
}

/* Поля намеренно светлые: значение, автозаполнение и все состояния читаются тёмным. */
@media screen {
  input,
  textarea,
  select,
  input[type="number"],
  .field input,
  .field textarea,
  .field select,
  .load-field select,
  .doctor-field input,
  .manager-card textarea {
    background: #f4f6f1 !important;
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
    caret-color: #242824;
    color-scheme: light;
  }

  input::placeholder,
  textarea::placeholder {
    color: #687060 !important;
    -webkit-text-fill-color: #687060 !important;
    opacity: 1;
  }

  select option {
    background: #fff;
    color: #242824;
  }

  input:focus,
  textarea:focus,
  select:focus {
    border-color: var(--brand-lime) !important;
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
    box-shadow: 0 0 0 3px rgba(175, 202, 120, 0.18);
  }

  input:invalid,
  textarea:invalid,
  select:invalid {
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
  }

  input:disabled,
  textarea:disabled,
  select:disabled {
    background: #dfe3dc !important;
    color: #535b52 !important;
    -webkit-text-fill-color: #535b52 !important;
    opacity: 1;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover,
  textarea:-webkit-autofill:focus,
  select:-webkit-autofill,
  select:-webkit-autofill:hover,
  select:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #f4f6f1 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #f4f6f1 inset !important;
    color: #242824 !important;
    -webkit-text-fill-color: #242824 !important;
    caret-color: #242824;
  }
}

/* Финальная контрастная нормализация.
 * Здесь намеренно нет стекла: содержимое должно читаться при любом фоне.
 */
:root {
  --brand-panel: #3c3f3b;
  --brand-panel-strong: #464a44;
  --brand-line: #62675f;
  --brand-line-soft: #50544e;
  --brand-muted: #d3d6d0;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.62fr);
  gap: clamp(36px, 5vw, 76px);
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.hero h1 {
  width: 100%;
  max-width: 760px;
  font-size: clamp(42px, 4.25vw, 66px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero .lead {
  max-width: 710px;
  color: #d7dad4;
}

.outcomes {
  background: #292b29;
}

.outcomes .section-heading h2,
.outcomes .section-heading p {
  color: var(--brand-white);
}

.outcomes .section-heading .eyebrow {
  color: var(--brand-lime);
}

.outcome-grid article,
.awareness-grid article,
.card,
.journey-card,
.stage-offer,
.report-section,
.manager-card,
.risk-card,
.tour-card,
.revenue-kpi,
.contact-benefits,
.question-card,
.thank-you,
.load-result-row,
.doctor-fields {
  background: var(--brand-panel);
  border: 1px solid var(--brand-line);
  color: var(--brand-white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
}

.stage-organization,
.stage-facts section,
.stage-columns section,
.stage-transition,
.stage-dentistry-role,
.stage-dentistry-details details,
.stage-maturity,
.stage-marketing,
.stage-organization-functions article {
  background: #363936;
  border-color: var(--brand-line);
  color: var(--brand-white);
}

.stage-organization h4,
.stage-organization h5,
.stage-columns h4,
.stage-transition h4,
.stage-dentistry-role b,
.stage-dentistry-details summary,
.stage-maturity h4,
.stage-marketing h4 {
  color: var(--brand-white);
}

.stage-organization p,
.stage-organization li,
.stage-organization dd,
.stage-facts p,
.stage-columns p,
.stage-columns li,
.stage-transition p,
.stage-dentistry-role p,
.stage-dentistry-details li,
.stage-maturity p,
.stage-marketing p {
  color: #d3d6d0;
}

.revenue-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--brand-line);
  border-radius: 20px;
  background: #242724;
}

.revenue-control-group {
  display: grid;
  gap: 9px;
}

.revenue-control-group > span {
  color: #d3d6d0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.revenue-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.revenue-switch button {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: #3c3f3b;
  color: var(--brand-white);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.revenue-switch button:hover {
  border-color: var(--brand-lime);
}

.revenue-switch button.active {
  border-color: var(--brand-lime);
  background: var(--brand-lime);
  color: #242821;
}

.revenue-market-summary {
  margin: 14px 0 0;
  color: var(--brand-lime);
  font-weight: 750;
}

.chair-revenue-curve strong {
  color: var(--brand-lime);
}

.chair-revenue-note + .chair-revenue-note {
  margin-top: 8px;
}

.outcome-grid article {
  position: relative;
  min-height: 260px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
}

.outcome-grid b {
  grid-column: 1;
  color: var(--brand-lime);
}

.outcome-grid h3,
.outcome-grid p {
  grid-column: 1 / -1;
  color: var(--brand-white);
}

.outcome-grid p {
  color: #d3d6d0;
}

.outcome-icon {
  grid-column: 2;
  grid-row: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #252725;
  border: 1px solid #68715e;
}

.outcome-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--brand-lime);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thank-you-facts div,
.revenue-kpi-facts div,
.block-score,
.action,
.constraint,
.resume-box {
  background: #292c29;
  border: 1px solid var(--brand-line);
  color: var(--brand-white);
}

.thank-you-facts dt,
.revenue-kpi-facts dt,
.thank-you-note,
.report-header p,
.report-section p,
.report-section li,
.journey-card p {
  color: #d3d6d0;
}

.thank-you-facts dd,
.revenue-kpi-facts dd,
.block-score header,
.report-section h2,
.report-section h3,
.stage-headline {
  color: var(--brand-white);
}

.final-cta,
.result-hero,
.tour-cta {
  background: #242724;
  border-color: #68715e;
}

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

  .hero-copy,
  .hero h1 {
    max-width: 880px;
  }

  .hero h1 {
    font-size: clamp(42px, 6.2vw, 68px);
  }

  .hero-map {
    max-width: 760px;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    width: 100%;
    overflow: hidden;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 39px);
    line-height: 1.03;
  }

  .hero .lead {
    max-width: 100%;
    font-size: 17px;
  }

  .outcome-grid article {
    min-height: 220px;
  }

  .revenue-controls {
    padding: 16px;
  }

  .revenue-control-group,
  .revenue-switch {
    width: 100%;
  }

  .revenue-switch button {
    flex: 1 1 auto;
  }
}

/* Полная нормализация контраста для экранной версии.
 * Селекторы находятся в конце файла, чтобы перекрыть старые светлые компоненты.
 */
.stage-panel,
.stage-owner-card,
.stage-dentistry,
.stage-maturity,
.stage-marketing,
.stage-organization-functions details,
.stage-dentistry-numbers div,
.stage-dentistry-details details,
.formula-note,
.load-field,
.doctor-fields,
.consent,
.resume-box {
  background: var(--brand-panel);
  border-color: var(--brand-line);
  color: var(--brand-white);
  backdrop-filter: none;
}

.stage-panel h3,
.stage-organization header h4,
.stage-owner-card h5,
.stage-dentistry header h4,
.stage-maturity header h4,
.stage-marketing-head h4,
.stage-marketing-grid b,
.stage-columns h4,
.stage-organization-functions summary,
.stage-dentistry-details summary,
.stage-maturity-scale article > div b,
.formula-note strong,
.doctor-fields legend,
.consent,
.load-field {
  color: var(--brand-white);
}

.stage-panel-head p,
.stage-summary,
.stage-organization header > p:last-child,
.stage-owner-card dd,
.stage-organization-functions dd,
.stage-dentistry header > p:last-child,
.stage-dentistry-note,
.stage-dentistry-numbers dd,
.stage-maturity header > p:last-child,
.stage-maturity-scale p,
.stage-marketing-grid p,
.stage-marketing-grid li,
.stage-marketing-note,
.formula-note small,
.doctor-fields > p,
.contact-note,
.privacy-note,
.microcopy {
  color: #c7cbc4;
}

.stage-owner-card dt,
.stage-organization-functions dt,
.stage-dentistry-numbers dt,
.stage-dentistry-role b,
.stage-marketing-head h4 span:first-child,
.stage-maturity-scale article > div span {
  color: var(--brand-lime);
}

.stage-maturity-scale article {
  background: #292c29;
  border-color: var(--brand-line);
  color: var(--brand-white);
}

.stage-maturity-scale progress {
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #5a5f57;
  accent-color: var(--brand-lime);
}

.stage-maturity-scale progress::-webkit-progress-bar {
  background: #5a5f57;
  border-radius: 999px;
}

.stage-maturity-scale progress::-webkit-progress-value {
  background: var(--brand-lime);
  border-radius: 999px;
}

.stage-maturity-scale progress::-moz-progress-bar {
  background: var(--brand-lime);
  border-radius: 999px;
}

.progress-card li,
.progress-card li button,
.progress-card li.incomplete,
.progress-card .nav-status {
  color: #c7cbc4;
  opacity: 1;
}

input,
select,
textarea,
.field textarea,
.load-field select,
.doctor-field input,
.manager-card textarea {
  background: #292c29;
  border-color: #6f756b;
  color: var(--brand-white);
}

input::placeholder,
textarea::placeholder {
  color: #c7cbc4;
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled,
.button:disabled {
  background: #4b4f49;
  border-color: #73796f;
  color: #d3d6d0;
  opacity: 1;
  cursor: not-allowed;
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-lime);
  outline-offset: 3px;
}

.stage-list button:hover,
.stage-list button:focus-visible,
.progress-card li button:hover,
.progress-card li button:focus-visible,
details summary:hover {
  border-color: var(--brand-lime);
  color: var(--brand-white);
}

details[open] > summary {
  color: var(--brand-lime);
}

/* Нижняя медиа-секция раньше сохраняла светлую тему из landing.css.
 * Фиксируем её в том же однотонном контрастном стиле, что и весь лендинг.
 */
.social-follow {
  background: #292b29;
  color: var(--brand-white);
}

.pillars article {
  background: #3c3f3b;
  border-color: var(--brand-lime);
  color: var(--brand-white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.pillars h3 {
  color: var(--brand-white);
}

.pillars p {
  color: #c7cbc4;
}

.social-follow h2,
.social-links b,
.youtube-card-caption b {
  color: var(--brand-white);
}

.social-follow-copy > p:not(.eyebrow),
.social-links small {
  color: #c7cbc4;
}

.social-links a,
.youtube-card {
  background: #3c3f3b;
  border-color: var(--brand-line);
  color: var(--brand-white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.social-links a > span:first-child {
  background: #242724;
  color: var(--brand-lime);
  border: 1px solid #68715e;
}

.social-links a:hover,
.social-links a:focus-visible,
.youtube-card:hover,
.youtube-card:focus-visible {
  background: #464a44;
  border-color: var(--brand-lime);
}

.youtube-card-caption small {
  color: var(--brand-lime);
}

footer {
  background: #242724;
  border-color: var(--brand-line);
  color: #c7cbc4;
}

footer a {
  color: var(--brand-lime);
}

@media (max-width: 560px) {
  .stage-panel,
  .stage-organization,
  .stage-owner-card,
  .stage-dentistry,
  .stage-maturity,
  .stage-marketing,
  .stage-facts section,
  .stage-columns section,
  .stage-transition,
  .stage-organization-functions details,
  .stage-dentistry-details details,
  .question-card,
  .report-section {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .stage-maturity-scale article {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-maturity-scale p:last-child {
    grid-column: 1;
  }

  .social-follow,
  .social-follow-copy,
  .youtube-card,
  .social-links,
  .social-links a {
    min-width: 0;
    max-width: 100%;
  }
}

/* Печать всегда остаётся светлой. Этот блок должен завершать файл темы. */
@media print {
  :root {
    --brand-white: #18211e;
    --brand-muted: #3f4944;
    --brand-lime: #526a27;
    --brand-line: #aeb7b0;
    --brand-line-soft: #cbd1cc;
  }

  html,
  body,
  .content-screen,
  .audit-screen,
  .result-screen,
  .result-hero,
  .final-cta,
  .tour-cta,
  .progress-card,
  .stage-panel,
  .stage-owner-card,
  .stage-organization,
  .stage-organization-functions article,
  .stage-organization-functions details,
  .stage-dentistry,
  .stage-dentistry-numbers div,
  .stage-dentistry-role,
  .stage-dentistry-details details,
  .stage-maturity,
  .stage-maturity-scale article,
  .stage-marketing,
  .stage-facts section,
  .stage-columns section,
  .stage-transition,
  .card,
  .journey-card,
  .stage-offer,
  .report-section,
  .manager-card,
  .risk-card,
  .tour-card,
  .revenue-kpi,
  .contact-benefits,
  .question-card,
  .thank-you,
  .thank-you-facts div,
  .revenue-kpi-facts div,
  .block-score,
  .action,
  .constraint,
  .resume-box,
  .load-result-row,
  .doctor-fields,
  .formula-note,
  .load-field,
  .consent,
  .pillars article,
  .social-follow,
  .social-links a,
  .youtube-card,
  footer {
    background: #fff;
    color: #18211e;
    border-color: #aeb7b0;
    box-shadow: none;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  legend,
  summary,
  strong,
  b,
  p,
  li,
  dt,
  dd,
  small,
  span,
  .stage-headline,
  .result-hero h2,
  .result-hero p {
    background: none;
    color: #18211e;
    -webkit-text-fill-color: currentColor;
  }

  input,
  select,
  textarea,
  .field textarea,
  .load-field select,
  .doctor-field input,
  .manager-card textarea {
    background: #fff;
    border-color: #89948c;
    color: #18211e;
  }

  input::placeholder,
  textarea::placeholder {
    color: #4d5852;
  }

  button:disabled,
  .button:disabled {
    background: #fff;
    border-color: #89948c;
    color: #18211e;
    opacity: 1;
  }
}

/* Этот screen-блок намеренно завершает каскад и не затрагивает печать. */
@media screen and (max-width: 1024px) {
  #welcome.hero {
    grid-template-columns: minmax(0, 1fr);
  }

  #welcome .hero-copy,
  #welcome .hero-visual {
    width: min(100%, 650px);
    min-width: 0;
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  #welcome.hero {
    min-height: auto;
    padding: 52px 18px 72px;
  }

  #welcome h1 {
    max-width: 100%;
    font-size: clamp(35px, 9.5vw, 49px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  #welcome .lead,
  #welcome .privacy-note,
  #welcome .benefits,
  #welcome .benefits li,
  #welcome .button-primary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #welcome .benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  #welcome .benefits li {
    min-height: 0;
  }

  #welcome .hero-visual {
    min-height: 350px;
  }

  .form-grid,
  .contact-benefits ul,
  .audit-screen {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-card {
    position: static;
  }
}

@media screen and (max-width: 420px) {
  #welcome h1 {
    font-size: clamp(31px, 9vw, 38px);
  }

  #welcome .button-primary {
    padding-inline: 14px;
    font-size: 14px;
  }

  #welcome .hero-visual {
    min-height: 300px;
  }
}
