/* Референс блоков: doctoravel.ru — светлая клиническая сетка, карточки, секции */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");
@import url("dental-infographic.css");

:root {
  --color-bg: #f4f6f9;
  --color-bg-alt: #eef1f6;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft: rgba(37, 99, 235, 0.08);
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
  --transition: 0.2s ease;
  --max-width: 720px;
  --max-width-wide: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Шапка и навигация (как у референса: белая плашка, лёгкая тень) === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 1.5rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.site-header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--color-accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
}

.nav a:hover {
  color: var(--color-accent);
}

.nav a[aria-current="page"] {
  color: var(--color-text);
}

/* === Контейнеры === */
.wrap {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.wrap--narrow {
  max-width: var(--max-width);
}

/* === Типографика === */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero .lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-muted);
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

p strong {
  color: var(--color-text);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--color-muted);
}

li {
  margin-bottom: 0.35rem;
}

/* === Карточки и блоки === */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.card h2:first-child,
.card h3:first-child {
  margin-top: 0;
}

.placeholder {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* === Кнопки === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* === Посадочная страница: секции (паттерн референса) === */
.section {
  padding: 3rem 0;
}

.section:first-of-type {
  padding-top: 1rem;
}

.section--alt {
  background: var(--color-bg-alt);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.section-intro h2 {
  margin: 0 0 0.75rem;
}

.hero-block {
  text-align: center;
  padding: 2.5rem 0 1rem;
}

.hero-block .section-eyebrow {
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-block h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

.hero-subtitle {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  padding: 0.65rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.hero-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.hero-stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.tile-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.tile-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.tile-card__text {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.tile-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: auto;
}

.tile-card__link:hover {
  color: var(--color-accent-hover);
}

.steps-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .steps-grid--2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card {
  display: flex;
  gap: 1.15rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-card__num {
  flex-shrink: 0;
  width: 2.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.step-card__body {
  flex: 1;
  min-width: 0;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.step-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.landing-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.landing-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.landing-hero .lead {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 1.15rem;
}

.section-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .section-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: left;
}

.feature-card h3 {
  margin-top: 0;
  color: var(--color-text);
}

/* === Подвал === */
.site-footer {
  margin-top: auto;
  padding: 2.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* === Анимации появления (JS добавляет .is-visible) === */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Главная: карточки-ссылки (2×2, одинаковая высота строк) === */
.home-layout {
  max-width: 56rem;
}

.home-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.home-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-pipeline__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  width: 100%;
  text-align: center;
  margin-bottom: 0.25rem;
}

.home-pipeline__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.home-pipeline__step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
}

.home-pipeline__dot {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-pipeline__arrow {
  color: var(--color-border);
  font-weight: 300;
  font-size: 1rem;
  user-select: none;
}

.link-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 560px) {
  .link-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(17.5rem, auto);
  }
}

a.link-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a.link-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.link-card__art {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  margin: -0.25rem -0.35rem 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--color-accent-soft) 0%, rgba(37, 99, 235, 0.03) 55%, transparent 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.link-card__art svg {
  width: 100%;
  max-width: 10.5rem;
  height: auto;
  max-height: 5.25rem;
}

.link-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.link-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
}

.link-card__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.link-card__cta {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

a.link-card:hover .link-card__cta {
  color: var(--color-accent-hover);
}

/* === Страница отчёта (SPCL, иерархия проблем) === */
.wrap--report {
  max-width: 52rem;
}

.report-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.report-subtitle {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.spcl-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.spcl-card h2 .spcl-score {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
}

.spcl-card h3,
.tier-block h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.spcl-card p,
.tier-block p,
.score-block p {
  color: var(--color-muted);
}

.spcl-card .lead-in {
  color: var(--color-text);
  font-weight: 500;
}

.tier-block {
  margin-top: 1.75rem;
}

.tier-block:first-of-type {
  margin-top: 0;
}

.tier-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.tier-block--critical .tier-title {
  color: #f87171;
}

.tier-block--important .tier-title {
  color: #fbbf24;
}

.tier-block--cosmetic .tier-title {
  color: #94a3b8;
}

.score-block {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.score-block h2 {
  margin-top: 0;
}

.score-block .big-score {
  margin: 0.5rem 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.report-list li {
  margin-bottom: 0.5rem;
}

.divider-label {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* === Стадия 2: спецификация блоков === */
.block-spec h2 {
  margin-top: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.block-spec__label {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.block-spec h2 + .block-spec__label {
  margin-top: 0;
}

.block-spec p:not(.block-spec__label) {
  color: var(--color-muted);
}

.spec-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  -webkit-overflow-scrolling: touch;
}

.spec-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-border);
}

.spec-table th {
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-weight: 600;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

.spec-table td {
  color: var(--color-muted);
}

.spec-table td:first-child {
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}

/* === Стадия 3: готовые тексты === */
.texts-doc-head {
  margin-bottom: 2rem;
}

.texts-doc-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.texts-site-ref {
  margin: 0 0 1.25rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.texts-site-ref strong {
  color: var(--color-text);
  font-size: 1.05rem;
}

.texts-instruction {
  margin-top: 1rem;
  padding: 1.25rem !important;
}

.texts-instruction p {
  margin: 0;
  color: var(--color-muted);
}

.texts-block h2 {
  margin-top: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.texts-meta {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.texts-meta:last-of-type {
  margin-bottom: 1rem;
}

.texts-subhead {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.data-needed {
  display: inline;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-weight: 500;
}

.data-needed--inline {
  display: inline;
}

.data-needed--soft {
  background: rgba(100, 116, 139, 0.1);
  color: var(--color-muted);
  font-weight: 400;
}

.block-status {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: #047857;
}

.copy-sample {
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.copy-sample--h1 {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.copy-sample--block-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.situation-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.case-attribution {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-muted);
}

.template-gap {
  padding: 0.75rem 1rem;
  border-left: 3px solid rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-muted);
}

.signature-block {
  margin-top: 1.25rem;
  color: var(--color-text);
}

.test-questions {
  color: var(--color-muted);
}

.test-questions li {
  margin-bottom: 0.4rem;
}

.doctor-copy p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.service-cards-copy {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-cards-copy {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card-item {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.service-card-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-card-item p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.price-placeholders {
  color: var(--color-muted);
}

.price-blank {
  display: inline-block;
  min-width: 3.5rem;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-muted);
  text-align: center;
}

.texts-summary .summary-list,
.forecast-list {
  color: var(--color-muted);
}

.summary-list li,
.forecast-list li {
  margin-bottom: 0.65rem;
}

.forecast-total {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 1.05rem;
  color: var(--color-text);
}

/* Отзывы и цитата (как на doctoravel.ru) */
.review-card {
  padding: 1.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-card__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.55;
}

.review-card__meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}

.review-card__source {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
}

.ref-note {
  margin: 2rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.ref-note a {
  font-weight: 600;
}
