@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  --bg: #eee6dd;
  --surface: #fbf6ee;
  --surface-alt: #d8cfc2;
  --text: #15201e;
  --muted: #645d5b;
  --accent: #960028;
  --accent-dark: #0b211f;
  --accent-cool: #243f3a;
  --gold: #b58a52;
  --line: #d2c5b9;
  --radius: 8px;
  --max: 1160px;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Manrope", Arial, sans-serif;
  --font-hero-body: "Montserrat", "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 230, 221, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  order: 2;
  font-family: var(--font-heading);
  flex-shrink: 0;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 600;
  line-height: 0.96;
  color: var(--accent-dark);
}

.nav-links {
  position: absolute;
  top: calc(100% + 10px);
  left: 24px;
  z-index: 60;
  width: min(360px, calc(100vw - 48px));
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(181, 138, 82, 0.36);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.98);
  box-shadow: 0 18px 50px rgba(11, 33, 31, 0.16);
  color: var(--muted);
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-open .nav-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav-links a:hover {
  background: rgba(181, 138, 82, 0.12);
  color: var(--accent-dark);
}

.nav-links a.active {
  background: rgba(181, 138, 82, 0.16);
  color: var(--accent-dark);
  font-weight: 700;
  border-bottom: 0;
}

.nav-toggle {
  order: 1;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-toggle::before {
  content: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle:hover {
  background: rgba(181, 138, 82, 0.12);
  transform: translateY(-1px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-social {
  position: relative;
  z-index: 2;
  order: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(181, 138, 82, 0.44);
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.76);
  color: var(--accent-dark);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.nav-social-link-channel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-social-link img {
  display: block;
  width: 21px;
  height: 21px;
}

.nav-social-link-max {
  background: rgba(251, 246, 238, 0.76);
}

.nav-social-link:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: #071a18;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--gold);
  background: var(--accent-dark);
  color: #f6eee4;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  border-color: rgba(181, 138, 82, 0.62);
  color: var(--accent-dark);
}

.button.secondary:hover {
  border-color: var(--accent-cool);
  color: var(--accent-cool);
}

.hero .button.secondary {
  border-color: var(--accent-cool);
  background: var(--accent-cool);
  color: #f6eee4;
}

.hero .button.secondary:hover {
  border-color: var(--gold);
  background: var(--accent-dark);
  color: #f6eee4;
}

.hero,
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 48px;
  padding: 40px 24px 72px;
}

.section + .section {
  padding-top: 48px;
}

.hero + .section {
  padding-top: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.08;
  color: var(--accent-dark);
  overflow-wrap: break-word;
}

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

h2 {
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.lead-secondary {
  margin-top: 10px;
}

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

.hero-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 16px;
  width: min(100%, 720px);
  margin-top: 28px;
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  color: rgba(246, 238, 228, 0.88);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hero-contact-item:hover {
  color: var(--gold);
}

.hero-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--gold);
}

.hero-contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-contact-icon .mail-mark {
  width: 28px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
}

.hero-contact-icon svg path:first-child:last-child,
.hero-contact-item:nth-child(2) .hero-contact-icon svg {
  fill: currentColor;
  stroke: none;
}

.hero-contact-item:nth-child(2) .hero-contact-icon .mail-mark {
  fill: none;
  stroke: var(--gold);
}

.hero-contact-icon-max img {
  width: 24px;
  height: 24px;
  display: block;
}

.hero-contact-item-wide {
  grid-column: 1 / -1;
}

.portrait-placeholder {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(38, 63, 48, 0.14), rgba(38, 63, 48, 0.02)),
    var(--surface-alt);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.portrait-frame {
  position: relative;
  min-height: 560px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  overflow: hidden;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(94, 0, 25, 0) 62%, rgba(94, 0, 25, 0.18) 100%);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.portrait-frame-about img {
  object-position: center 16%;
}


.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-header .eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

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

.about-services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.card-link {
  display: block;
  height: 100%;
}

.card-link:hover {
  border-color: rgba(63, 95, 74, 0.46);
  transform: translateY(-2px);
  transition: border-color 180ms ease, transform 180ms ease;
}

.specialists-grid {
  display: grid;
  gap: 28px;
}

.specialists-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.specialist-summary-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(181, 138, 82, 0.28);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.96);
  display: flex;
  flex-direction: column;
}

.specialist-summary-card .specialist-photo-placeholder {
  min-height: 230px;
  margin-bottom: 20px;
}

.specialist-summary-card .specialist-photo {
  height: 230px;
  min-height: 230px;
  margin-bottom: 20px;
}

.specialist-summary-card .specialist-role {
  min-height: 48px;
  font-size: 15px;
  line-height: 1.35;
}

.specialist-summary-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.4vw, 34px);
}

.specialist-summary-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.specialist-compact-details {
  display: grid;
  gap: 10px;
  margin: auto 0 18px;
  padding-top: 8px;
}

.specialist-compact-details div {
  padding-top: 10px;
  border-top: 1px solid rgba(181, 138, 82, 0.28);
}

.specialist-compact-details dt {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.specialist-compact-details dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.specialist-compact-details a {
  color: var(--accent-dark);
  font-weight: 700;
}

.specialist-more {
  width: 100%;
  margin-top: auto;
  background: var(--accent-cool);
  border-color: var(--accent-cool);
  color: #f6eee4;
}

.specialist-more:hover {
  border-color: var(--gold);
  background: var(--accent-dark);
  color: #f6eee4;
}

.specialist-card {
  scroll-margin-top: 104px;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.specialist-photo-placeholder {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(94, 0, 25, 0.04), rgba(94, 0, 25, 0.04)),
    var(--surface-alt);
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.specialist-photo {
  width: 100%;
  height: 320px;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  object-position: center top;
}

.specialist-body h2 {
  margin: 4px 0 14px;
  font-size: clamp(30px, 3vw, 42px);
}

.specialist-body h3 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.specialist-body p {
  margin-bottom: 16px;
}

.specialist-body ul {
  margin-bottom: 22px;
}

.specialist-role {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.specialist-tags,
.specialist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.specialist-tags span,
.specialist-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.specialist-links a:hover {
  border-color: var(--accent);
}

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

.specialist-details div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.specialist-details dt {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-weight: 700;
}

.specialist-details dd {
  margin: 0;
  color: var(--muted);
}

.specialist-details a {
  color: var(--accent-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px 44px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero .lead {
  max-width: 780px;
}

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.content.wide {
  max-width: var(--max);
}

.content h2 {
  margin: 44px 0 16px;
  font-size: clamp(30px, 3.5vw, 44px);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin: 28px 0 10px;
}

.content p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
}

.content ul,
.content ol {
  margin: 0 0 28px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
}

.content li {
  margin: 8px 0;
}

.process-list,
.rules-list {
  padding-left: 0;
  list-style: none;
}

.process-list {
  display: grid;
  gap: 22px;
  counter-reset: process;
}

.process-list > li {
  position: relative;
  padding: 28px 28px 28px 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: process;
}

.process-list > li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}

.process-list h3 {
  margin-top: 0;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.prep-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.prep-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.prep-card span {
  color: var(--muted);
}

.prep-timeline {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.prep-timeline li {
  position: relative;
  padding: 0 0 26px 52px;
}

.prep-timeline li:last-child {
  padding-bottom: 0;
}

.prep-timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 4px, transparent 5px),
    #fffdf8;
}

.prep-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 12px;
  bottom: 10px;
  width: 1px;
  background: rgba(181, 138, 82, 0.42);
}

.prep-timeline h4 {
  margin: 0 0 6px;
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 700;
}

.prep-timeline p {
  margin: 0;
}

.rules-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-reset: rules;
}

.rules-list li {
  position: relative;
  margin: 0;
  min-height: 68px;
  padding: 18px 0 18px 58px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  counter-increment: rules;
}

.rules-list li:last-child {
  border-bottom: 0;
}

.rules-list li::before {
  content: counter(rules);
  position: absolute;
  top: 16px;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  background: #fffdf8;
}

.callout {
  margin: 34px 0;
  padding: 28px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 34px 0;
}

.fact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 18px;
}

.fact span {
  color: var(--muted);
}

.about-credentials {
  max-width: none;
  margin: 0;
  padding: 40px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: var(--accent-cool);
}

.about-credentials-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-credentials p {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(181, 138, 82, 0.58);
  color: #f6eee4;
  font-size: 18px;
  font-weight: 700;
}

.service-stack {
  display: grid;
  gap: 18px;
}

.service-panel,
.price-card {
  padding: 28px;
  border: 1px solid rgba(181, 138, 82, 0.28);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.96);
}

.service-panel h2 {
  margin-top: 0;
}

.price-section {
  padding-top: 20px;
}

.supervision-schedule-section {
  overflow: hidden;
}

.schedule-programs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.schedule-program {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(181, 138, 82, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(251, 246, 238, 0.98), rgba(241, 232, 218, 0.86)),
    radial-gradient(circle at 100% 0, rgba(88, 121, 97, 0.2), transparent 32%);
  box-shadow: 0 22px 60px rgba(32, 20, 10, 0.08);
}

.schedule-program[open] {
  border-color: rgba(181, 138, 82, 0.48);
}

.schedule-program-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  color: var(--accent-dark);
  cursor: pointer;
  list-style: none;
}

.schedule-program-summary::-webkit-details-marker {
  display: none;
}

.schedule-program-summary:hover .schedule-program-action {
  border-color: var(--gold);
  background: var(--accent-dark);
  color: #f6eee4;
}

.schedule-program-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1;
}

.schedule-program-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(181, 138, 82, 0.54);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.schedule-program-action::before {
  content: "показать расписание";
}

.schedule-program[open] .schedule-program-action {
  background: var(--accent-dark);
  color: #f6eee4;
}

.schedule-program[open] .schedule-program-action::before {
  content: "скрыть расписание";
}

.schedule-program-content {
  display: grid;
  gap: 22px;
  padding: 0 28px 28px;
}

.schedule-weekday {
  margin: 0;
  color: var(--accent-cool);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.schedule-year {
  border: 1px solid rgba(181, 138, 82, 0.24);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 252, 246, 0.72);
  overflow: hidden;
}

.schedule-year h4 {
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent-cool), #6f8f78);
  color: #f6eee4;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.schedule-dates {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 12px 18px 16px;
  list-style: none;
}

.schedule-dates li {
  position: relative;
  min-height: 42px;
  padding: 9px 0 8px 38px;
  border-bottom: 1px dotted rgba(88, 121, 97, 0.26);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
}

.schedule-dates li:last-child {
  border-bottom: 0;
}

.schedule-dates li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-cool), var(--accent-cool)) center 8px / 12px 2px no-repeat,
    linear-gradient(var(--accent-cool), var(--accent-cool)) center 13px / 12px 2px no-repeat,
    linear-gradient(var(--accent-cool), var(--accent-cool)) center 18px / 12px 2px no-repeat,
    rgba(88, 121, 97, 0.13);
  border: 1px solid rgba(88, 121, 97, 0.48);
}

.schedule-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(181, 138, 82, 0.34);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 252, 246, 0.76);
}

.schedule-time span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-time strong {
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  white-space: nowrap;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.price-card {
  min-height: 190px;
}

.price-card h3 {
  margin: 0 0 14px;
}

.price-card p {
  margin: 0;
}

.price-value {
  margin: 0 0 12px !important;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(34px, 4vw, 48px) !important;
  font-weight: 700;
  line-height: 1;
}

.accent-price-section .price-card {
  border-color: rgba(181, 138, 82, 0.38);
  background: linear-gradient(135deg, #330012, #681127);
  color: #f6eee4;
}

.accent-price-section .price-card h3 {
  color: #f6eee4;
}

.accent-price-section .price-card p {
  color: rgba(246, 238, 228, 0.82);
}

.accent-price-section .price-value {
  color: var(--gold);
}

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

.price-note {
  font-size: 14px;
  line-height: 1.4;
}

.price-frequency {
  padding-top: 16px;
  border-top: 1px solid rgba(181, 138, 82, 0.32);
  font-size: 15px;
  font-weight: 700;
}

.quote {
  margin: 0 0 34px;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(251, 246, 238, 0.96);
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.7vw, 21px);
  font-style: italic;
  line-height: 1.5;
}

.quote cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
}

.material-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.material-feature-media {
  margin: 0;
  border: 1px solid rgba(181, 138, 82, 0.36);
  border-radius: var(--radius);
  background: var(--surface-alt);
  overflow: hidden;
}

.material-feature-media img {
  width: 100%;
  max-height: 360px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.material-feature-body {
  padding: 30px 0;
  border-top: 1px solid rgba(181, 138, 82, 0.36);
  border-bottom: 1px solid rgba(181, 138, 82, 0.36);
}

.material-feature-body h2 {
  margin: 0;
}

.material-feature-body p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.material-feature-body p:last-child {
  margin-bottom: 0;
}

.material-feature-body .button {
  margin-top: 10px;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}

.journal-cover {
  margin: 0;
  border: 1px solid rgba(181, 138, 82, 0.36);
  border-radius: var(--radius);
  background: var(--surface-alt);
  overflow: hidden;
}

.journal-cover img {
  width: 100%;
  max-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: var(--accent-dark);
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.notice {
  color: var(--muted);
  font-size: 14px;
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 15px;
}

.form-status.is-success {
  color: var(--accent-dark);
  font-weight: 700;
}

.form-status.is-error {
  color: #9d3b2f;
  font-weight: 700;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.text-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.text-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.text-block p:last-child {
  margin-bottom: 0;
}

.approach-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.approach-list li {
  color: var(--muted);
  font-size: 18px;
}

.approach-list strong {
  color: var(--accent-dark);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.for-whom-list {
  margin: 0;
  padding: 28px 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.for-whom-list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
}

.for-whom-list li:last-child {
  border-bottom: 0;
}

.for-whom-list li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: start;
}

.certificate-slider {
  position: relative;
  min-width: 0;
}

.certificate-viewport {
  position: relative;
}

.certificate-slide {
  display: none;
  margin: 0;
}

.certificate-slide.is-active {
  display: block;
}

.certificate-link {
  display: grid;
  gap: 14px;
}

.certificate-media {
  height: clamp(360px, 48vw, 620px);
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 180ms ease;
}

.certificate-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.certificate-link:hover .certificate-media {
  transform: translateY(-2px);
}

.certificate-slide figcaption {
  min-height: 44px;
  padding: 0 4px;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.certificate-sample {
  max-width: min(760px, 100%);
  margin: 0;
}

.certificate-sample-media {
  height: clamp(360px, 52vw, 620px);
}

.certificate-sample figcaption {
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.certificate-nav {
  position: absolute;
  top: clamp(180px, 24vw, 310px);
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(181, 138, 82, 0.48);
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.88);
  color: var(--accent-dark);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.certificate-nav:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--accent-dark);
  transform: translateY(calc(-50% - 1px));
}

.certificate-nav span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

.certificate-nav-prev {
  left: 14px;
}

.certificate-nav-next {
  right: 14px;
}

.certificate-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.certificate-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(181, 138, 82, 0.62);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.certificate-dot:hover,
.certificate-dot.is-active {
  border-color: var(--gold);
  background: var(--gold);
}

.certificate-dot.is-active {
  transform: scale(1.25);
}

.education-list-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-list-block h3 {
  margin-bottom: 18px;
}

.status-list {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.status-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 17px;
}

.status-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.education-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.education-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.education-year {
  color: var(--accent-dark);
  font-weight: 700;
}

.document-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.document-list a {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(181, 138, 82, 0.34);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--accent-dark);
  font-weight: 700;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.document-list a:hover {
  border-color: var(--gold);
  background: rgba(181, 138, 82, 0.12);
  transform: translateY(-1px);
}

.document-list a span:last-child {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #f6eee4;
  font-size: 11px;
  letter-spacing: 0;
}

.cta {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 48px 24px 72px;
}

.cta-inner {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
}

.cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.cta .button {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--accent-dark);
  flex: 0 0 auto;
}

.modal-open {
  overflow: hidden;
}

.messenger-modal[hidden] {
  display: none;
}

.messenger-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.messenger-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 33, 31, 0.5);
  backdrop-filter: blur(8px);
}

.messenger-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid rgba(181, 138, 82, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 246, 238, 0.98), rgba(251, 246, 238, 1));
  box-shadow: 0 24px 70px rgba(11, 33, 31, 0.22);
}

.messenger-title {
  display: block;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.08;
  color: var(--accent-dark);
  font-size: clamp(32px, 4vw, 46px);
}

.messenger-dialog p:not(.eyebrow):not(.messenger-title) {
  margin: 16px 0 0;
  color: var(--muted);
}

.messenger-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.messenger-close:hover {
  border-color: var(--gold);
}

.messenger-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.messenger-actions .button {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: var(--muted);
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-social {
  align-items: center;
  gap: 10px;
}

.footer-social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(181, 138, 82, 0.45);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--accent-dark);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-social-link img {
  display: block;
  width: 22px;
  height: 22px;
}

.footer-social-link-max {
  background: rgba(251, 246, 238, 0.76);
}

.footer-social-link:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.requisites-layout,
.requisites-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.requisites-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.96);
}

.requisites-note-card {
  display: grid;
  gap: 16px;
}

.requisites-note-card h2 {
  font-size: clamp(30px, 3vw, 42px);
}

.requisites-note-card p {
  margin: 0;
  color: var(--muted);
}

.requisites-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.requisites-bank-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
}

.requisites-list div {
  padding: 14px 0;
  border-top: 1px solid rgba(181, 138, 82, 0.28);
}

.requisites-list dt {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.requisites-list dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.requisites-list a {
  color: var(--accent-dark);
  font-weight: 700;
}

.requisites-text-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.requisites-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Shared visual system from the Canva-style home preview. */
.hero {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 640px;
  padding: 76px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 86px;
  align-items: start;
  background: linear-gradient(110deg, rgba(11, 33, 31, 0.98), rgba(28, 66, 58, 0.92));
  overflow: hidden;
}

.hero-home,
.hero-about {
  padding-left: max(33px, calc((100vw - var(--max)) / 2 + 33px));
  padding-right: max(33px, calc((100vw - var(--max)) / 2 + 33px));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 24%, rgba(181, 138, 82, 0.22), transparent 24%),
    linear-gradient(90deg, transparent 0 62%, rgba(150, 0, 40, 0.12) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 34px max(18px, calc((100vw - var(--max)) / 2 + 18px));
  z-index: -1;
  border: 1px solid rgba(181, 138, 82, 0.26);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 72px rgba(11, 33, 31, 0.08),
    inset 72px 72px 0 -71px rgba(181, 138, 82, 0.2),
    inset -72px -72px 0 -71px rgba(181, 138, 82, 0.15);
  pointer-events: none;
}

.hero-home::after,
.hero-about::after {
  content: none;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 780px;
  color: #f6eee4;
}

.hero .lead {
  color: rgba(246, 238, 228, 0.72);
}

.hero-home > div:first-child,
.hero-about > div:first-child {
  min-height: 562px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-home .hero-actions {
  margin-top: auto;
}

.hero-profile-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.hero-profile-copy p {
  margin: 0;
  color: rgba(246, 238, 228, 0.84);
  font-size: clamp(20px, 2vw, 27px);
  font-family: var(--font-hero-body);
  font-weight: 400;
  line-height: 1.48;
}

.hero-profile-copy .hero-name {
  color: #f6eee4;
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 600;
  line-height: 0.96;
}

.hero-profile-copy p:last-child {
  color: rgba(246, 238, 228, 0.84);
  font-weight: 400;
}

.hero-credentials {
  display: grid;
  gap: 0;
  width: min(100%, 620px);
  margin-top: 22px;
  border-top: 1px solid rgba(181, 138, 82, 0.48);
  border-bottom: 1px solid rgba(181, 138, 82, 0.48);
}

.hero-credentials p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(181, 138, 82, 0.24);
  color: rgba(246, 238, 228, 0.88);
  font-size: 17px;
  font-weight: 700;
}

.hero-credentials p:last-child {
  border-bottom: 0;
}

.hero .portrait-frame {
  min-height: 560px;
  border-color: rgba(181, 138, 82, 0.42);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero-home .portrait-frame,
.hero-about .portrait-frame {
  border-color: transparent;
}

.hero .portrait-frame::after {
  background:
    linear-gradient(180deg, rgba(7, 26, 24, 0) 54%, rgba(7, 26, 24, 0.42) 100%),
    linear-gradient(90deg, rgba(150, 0, 40, 0.2), transparent 48%);
}

.section,
.page-hero,
.content,
.cta {
  position: relative;
  isolation: isolate;
  background: var(--bg);
}

#directions {
  max-width: none;
  background: var(--bg);
  padding-inline: max(24px, calc((100vw - var(--max)) / 2 + 24px));
}

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

#directions .card {
  border-color: rgba(181, 138, 82, 0.52);
  background: linear-gradient(135deg, #102522, #243f3a);
  color: #f6eee4;
  box-shadow: 0 18px 38px rgba(11, 33, 31, 0.16);
}

#directions .card:nth-child(even) {
  background: linear-gradient(135deg, #330012, #681127);
}

#directions .card h3 {
  color: #f6eee4;
}

#directions .card p {
  color: rgba(246, 238, 228, 0.78);
}

#directions .direction-icon {
  border-color: rgba(181, 138, 82, 0.62);
  background: rgba(251, 246, 238, 0.08);
}

#directions .card:hover {
  border-color: rgba(181, 138, 82, 0.9);
  box-shadow: 0 22px 44px rgba(11, 33, 31, 0.22);
}

section.about-credentials {
  max-width: none;
  margin: 0;
  padding: 40px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: var(--accent-cool);
}

section.about-credentials .about-credentials-inner {
  max-width: var(--max);
  margin: 0 auto;
}

section.about-credentials p {
  color: #f6eee4;
}

.card,
.specialist-card,
.form-card,
.fact,
.prep-card,
.specialist-details div,
.specialist-tags span,
.specialist-links a {
  border-color: rgba(181, 138, 82, 0.28);
  background: rgba(251, 246, 238, 0.96);
}

.direction-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(181, 138, 82, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 33, 31, 0.96), rgba(36, 63, 58, 0.9));
}

.direction-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--gold);
}

.card-link:hover {
  border-color: rgba(181, 138, 82, 0.78);
}

.text-block {
  position: relative;
  padding: 34px 0 34px 28px;
  border-top-color: rgba(181, 138, 82, 0.32);
  border-bottom-color: rgba(181, 138, 82, 0.32);
}

.text-block::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 0;
  width: 1px;
  background: var(--gold);
}

#groups .text-block .button,
.section .section-button {
  border-color: var(--accent-cool);
  background: var(--accent-cool);
  color: #f6eee4;
}

#groups .text-block .button:hover,
.section .section-button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #f6eee4;
}

.section-actions {
  margin-top: 28px;
}

.cta-inner {
  border: 1px solid rgba(181, 138, 82, 0.34);
  background: linear-gradient(90deg, rgba(11, 33, 31, 0.98), rgba(36, 63, 58, 0.94));
  color: #f6eee4;
}

.cta h2 {
  color: #f6eee4;
}

.cta p {
  color: rgba(246, 238, 228, 0.76);
}

.site-footer {
  background: var(--accent-dark);
  color: #f6eee4;
}

@media (max-width: 880px) {
  .nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 12px 14px;
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(18px, 4.8vw, 22px);
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: flex-basis 180ms ease, max-width 180ms ease, opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  body.mobile-hero-brand:not(.mobile-brand-visible) .brand {
    flex: 0 0 0;
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    visibility: hidden;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: auto;
    width: min(340px, calc(100vw - 40px));
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(181, 138, 82, 0.36);
    border-radius: var(--radius);
    background: rgba(251, 246, 238, 0.98);
    box-shadow: 0 18px 50px rgba(11, 33, 31, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .nav-links a:hover {
    background: rgba(181, 138, 82, 0.12);
  }

  .nav-links a.active {
    border-bottom: 0;
    background: rgba(181, 138, 82, 0.16);
  }

  .nav-toggle {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-grid;
  }

  .nav-social {
    gap: 6px;
    margin-left: 0;
  }

  .nav-social-link {
    width: 34px;
    height: 34px;
  }

  .nav-social-link svg {
    width: 17px;
    height: 17px;
  }

  .nav-social-link img {
    width: 19px;
    height: 19px;
  }

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

  .hero {
    padding: 58px 20px 64px;
  }

  .hero-home,
  .hero-about {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .hero-home > div:first-child,
  .hero-about > div:first-child {
    position: absolute;
    left: clamp(14px, 4vw, 22px);
    right: clamp(14px, 4vw, 22px);
    bottom: clamp(14px, 4vw, 22px);
    z-index: 2;
    min-height: 0;
    pointer-events: none;
  }

  .hero-home .portrait-frame,
  .hero-about .portrait-frame {
    width: 100%;
    min-height: 660px;
    height: clamp(660px, 148vw, 820px);
    border-radius: 0;
    box-shadow: none;
  }

  .hero-home .portrait-frame img,
  .hero-about .portrait-frame img {
    min-height: 100%;
    object-position: center top;
  }

  .hero-profile-copy {
    width: 100%;
    max-width: none;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(181, 138, 82, 0.32);
    border-radius: var(--radius);
    background: rgba(11, 33, 31, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .hero-profile-copy p {
    font-size: clamp(14px, 3.75vw, 16px);
    line-height: 1.36;
  }

  .hero-profile-copy .hero-mobile-hidden {
    display: none;
  }

  .hero-profile-copy .hero-name {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 0.98;
  }

  .hero-home .hero-actions {
    margin-top: 34px;
  }

  .hero::after {
    inset: 18px;
  }

  #directions .grid {
    grid-template-columns: 1fr;
  }

  .hero .button.secondary {
    color: #f6eee4;
  }

  .portrait-placeholder,
  .portrait-frame {
    min-height: 360px;
  }

  .grid,
  .grid.three,
  .fact-grid,
  .prep-grid,
  .material-feature,
  .education-layout,
  .specialist-card,
  .specialist-details,
  .about-credentials-inner,
  .journal-layout {
    grid-template-columns: 1fr;
  }

  .specialist-card {
    padding: 22px;
  }

  .specialist-summary-card .specialist-photo-placeholder,
  .specialist-summary-card .specialist-photo {
    min-height: 320px;
    height: 320px;
  }

  .specialist-photo-placeholder,
  .specialist-photo {
    min-height: 320px;
    height: 320px;
  }

  .process-list > li {
    padding: 76px 22px 24px;
  }

  .process-list > li::before {
    top: 24px;
    left: 22px;
  }

  .certificate-media {
    height: clamp(300px, 82vw, 460px);
  }

  .certificate-nav {
    top: clamp(150px, 41vw, 230px);
    width: 38px;
    height: 38px;
  }

  .certificate-nav-prev {
    left: 10px;
  }

  .certificate-nav-next {
    right: 10px;
  }

  .cta-inner,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .messenger-dialog {
    padding: 28px 22px 22px;
  }

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

  .price-options {
    grid-template-columns: 1fr;
  }

  .schedule-years {
    grid-template-columns: 1fr;
  }

  .schedule-program-summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .schedule-program-name {
    font-size: clamp(28px, 9vw, 38px);
  }

  .schedule-program-content {
    padding: 0 22px 22px;
  }

  .schedule-time {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-contact-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .requisites-layout,
  .requisites-columns,
  .requisites-bank-list {
    grid-template-columns: 1fr;
  }

  .requisites-card {
    padding: 22px;
  }
}
