:root {
  --ink: #3f3148;
  --muted: #74677b;
  --violet: #80599a;
  --violet-dark: #654477;
  --lilac: #eee4f3;
  --paper: #fffdfb;
  --soft: #faf5f8;
  --line: #e7dce9;
  --shadow: 0 18px 50px rgba(82, 57, 91, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

a { color: var(--violet-dark); }

h1, h2, h3, .brand strong {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 { max-width: 880px; margin-bottom: 28px; font-size: clamp(2.7rem, 6vw, 5.8rem); }
h2 { margin-bottom: 24px; font-size: clamp(2.1rem, 4.2vw, 4rem); }
h3 { margin-bottom: 14px; font-size: 1.7rem; }
p { margin: 0 0 1.1em; }

.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(1080px, calc(100% - 40px)); }
.section-pad { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-accent { background: linear-gradient(135deg, #f2e7f5, #fff8f3); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 251, .96);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand img { width: 64px; aspect-ratio: 1; border-radius: 18px; box-shadow: 0 8px 24px rgba(104, 73, 117, .13); }
.brand strong { display: block; margin-bottom: 4px; font-size: 1.55rem; }
.brand small { display: block; color: var(--muted); font-size: .84rem; }
.header-phone { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; }
.site-nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 14px; }
.nav-inner a { font-weight: 650; text-decoration: none; }

.hero { background: radial-gradient(circle at 15% 10%, #f1e3f5, transparent 38%), var(--paper); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 56px; color: var(--muted); font-size: .92rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); align-items: center; gap: 70px; }
.eyebrow { margin-bottom: 18px; color: var(--violet); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 820px; color: var(--muted); font-size: clamp(1.2rem, 2vw, 1.55rem); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; padding: 0; list-style: none; }
.hero-facts li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--violet); border-radius: 999px; font-weight: 750; text-decoration: none; }
.button-primary { color: #fff; background: var(--violet); }
.button-primary:hover, .button-primary:focus-visible { background: var(--violet-dark); }
.button-secondary { background: #fff; }
.note { margin-top: 18px; color: var(--muted); font-size: .88rem; }
.hero-photo { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; object-fit: cover; object-position: center top; }
.hero-photo figcaption { padding: 16px 4px 2px; color: var(--muted); font-size: .86rem; }

.card-grid { display: grid; gap: 20px; margin-top: 42px; }
.card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-height: 250px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .82); }
.card p { color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 80px; align-items: start; }
.steps { margin: 0; padding: 0; counter-reset: step; list-style: none; }
.steps li { position: relative; padding: 22px 0 22px 70px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { position: absolute; top: 20px; left: 0; color: var(--violet); content: "0" counter(step); font-weight: 800; }
.steps strong, .steps span { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.details-card { margin: 0; padding: 30px; border: 1px solid rgba(128, 89, 154, .16); border-radius: 24px; background: rgba(255, 255, 255, .7); }
.details-card div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details-card div:last-child { border-bottom: 0; }
.details-card dt { color: var(--muted); }
.details-card dd { margin: 0; font-weight: 700; }

.expert-card { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.expert-card img { width: 280px; aspect-ratio: 4 / 5; border-radius: 20px; object-fit: cover; object-position: center top; }
.text-link { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.faq-list { display: grid; gap: 14px; margin-top: 36px; }
.faq-list details { padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.faq-list summary { cursor: pointer; font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.faq-list details p { margin: 16px 0 0; color: var(--muted); }

.cta-section { background: #fff; }
.cta-card { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; padding: 48px; border-radius: var(--radius); background: linear-gradient(135deg, #eee2f3, #fff8f5); box-shadow: var(--shadow); }
.cta-card .button-row { margin-top: 0; }

.site-footer { padding: 64px 0 24px; color: #f8f2fa; background: #4a3655; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.site-footer strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.site-footer span { display: block; margin-bottom: 12px; color: #d8c5df; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { display: block; margin: 8px 0; color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: #d8c5df; font-size: .84rem; }

:focus-visible { outline: 3px solid #bf93d1; outline-offset: 4px; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .section-pad { padding: 72px 0; }
  .hero-grid, .split, .format-grid, .cta-card { grid-template-columns: 1fr; gap: 42px; }
  .hero-photo { max-width: 560px; }
  .card-grid-three { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .expert-card { grid-template-columns: 220px 1fr; }
  .expert-card img { width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 28px, 1280px); }
  .header-inner { align-items: flex-start; }
  .brand small { display: none; }
  .brand strong { font-size: 1.25rem; }
  .brand img { width: 48px; border-radius: 14px; }
  .header-phone { padding: 9px 12px; font-size: .8rem; }
  .nav-inner { gap: 10px 18px; font-size: .9rem; }
  .breadcrumbs { margin-bottom: 36px; }
  .hero-grid { gap: 34px; }
  .button-row, .button { width: 100%; }
  .details-card { padding: 22px; }
  .details-card div { grid-template-columns: 1fr; gap: 3px; }
  .expert-card { grid-template-columns: 1fr; padding: 24px; }
  .expert-card img { width: 100%; max-height: 520px; }
  .cta-card { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* H1: controlled line breaks; keep Ростове-на-Дону indivisible. */
.group-hero-title .group-hero-line { display: block; }
.group-hero-title .group-hero-city { white-space: nowrap; }

/* Footer: keep Ростове-на-Дону indivisible on narrow screens. */
.nowrap-city { white-space: nowrap; }
