:root {
  --paper: #f6efe5;
  --paper-alt: #f0e6d8;
  --paper-soft: #e9dfd0;
  --ink: #282a1b;
  --muted: #5d594d;
  --rust: #a44725;
  --rust-hover: #84371b;
  --line: #d5b9a2;
  --water: #d7e5e2;
  --water-ink: #274440;
  --radius: 16px;
  --container: 1440px;
  --gutter: 24px;
}

@media (min-width: 1500px) {
  :root {
    --gutter: 0px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  font-size: clamp(38px, 4.1vw, 58px);
  letter-spacing: -1.6px;
}

h2 {
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.9px;
}

h3 {
  font-size: 23px;
  letter-spacing: -0.4px;
}

/* Unified section heading rule */
.rule {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.rule::after {
  content: '';
  width: 96px;
  height: 1px;
  background: var(--rust);
  flex-shrink: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 0;
  border-radius: 40px;
  color: #fff;
  background: var(--rust);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.button:hover {
  background: var(--rust-hover);
}

.button--sm {
  padding: 11px 22px;
  font-size: 14px;
}

.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--rust);
  border-radius: 40px;
  color: var(--rust);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.outline:hover {
  background: var(--rust);
  color: #fff;
}

.text-link {
  color: var(--rust);
  border-bottom: 1px solid rgba(164, 71, 37, 0.35);
  transition: border-color 0.18s ease;
}

.text-link:hover {
  border-color: var(--rust);
}

/* Header (single-row top bar before Hero) */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 239, 229, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(213, 185, 162, 0.45);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  font: 20px/1.1 Georgia, serif;
}

.brand small {
  display: block;
  margin-top: 3px;
  font: 9px/1.2 'Segoe UI', sans-serif;
  letter-spacing: 2.1px;
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.header-nav > a,
.dropdown-trigger {
  padding: 6px 0;
  color: var(--ink);
  transition: color 0.15s ease;
}

.header-nav > a:hover,
.dropdown-trigger:hover {
  color: var(--rust);
}

/* Dropdown menu for Programs */
.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
}

.dropdown-caret {
  width: 10px;
  height: 10px;
  transition: transform 0.18s ease;
}

.nav-dropdown.open .dropdown-caret,
.nav-dropdown:hover .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 245px;
  margin-top: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #fbf7f1;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(40, 42, 27, 0.12);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
}

.dropdown-menu a:hover {
  background: var(--paper-alt);
  color: var(--rust);
}

.dropdown-menu .dropdown-all {
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(213, 185, 162, 0.55);
  font-weight: 600;
}

/* Header contacts: address, messengers, phone */
.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.header-address:hover {
  color: var(--rust);
}

.header-address svg {
  width: 15px;
  height: 15px;
  color: var(--rust);
  flex-shrink: 0;
}

.header-messengers {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.msg-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-alt);
  color: var(--ink);
  border: 1px solid rgba(213, 185, 162, 0.7);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.msg-icon:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

.msg-icon svg {
  width: 15px;
  height: 15px;
}

.msg-icon--text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-phone {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}

.header-phone:hover {
  color: var(--rust);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 6px;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Sections container */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px var(--gutter);
}

/* Hero */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: 88px 56px 92px;
  background: var(--paper-soft);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: -5%;
  width: 110%;
  height: 44px;
  border-radius: 50% 50% 0 0;
  background: var(--paper);
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background: #dfd8cc;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper-soft), transparent 34%);
}

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

.hero-copy h1 em {
  font-style: normal;
  position: relative;
}

.hero-copy h1 em::after {
  content: '';
  position: absolute;
  height: 5px;
  bottom: -7px;
  left: -4%;
  width: 110%;
  border-top: 3px solid var(--rust);
  border-radius: 50%;
  transform: rotate(-3deg);
}

.hero-copy > p {
  font-size: 18px;
  line-height: 1.55;
  margin-top: 26px;
  max-width: 470px;
  color: #3a392d;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 2. Services (С чем я работаю) with inline expandable details */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.service-card {
  border-radius: var(--radius);
  background: #f2e9dc;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(103, 76, 41, 0.06);
  border: 1px solid rgba(213, 185, 162, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(103, 76, 41, 0.1);
}

.service-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.service-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 20px 20px;
  cursor: pointer;
  display: block;
  color: var(--ink);
}

.service-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.service-head h3 {
  font-size: 22px;
  line-height: 1.15;
}

.service-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rust);
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.service-card.is-open .service-plus {
  background: var(--rust);
  color: #fff;
}

.service-short {
  font-size: 14px;
  line-height: 1.48;
  color: var(--muted);
  margin-top: 10px;
}

.service-body {
  display: none;
  padding: 0 20px 22px;
  border-top: 1px solid rgba(213, 185, 162, 0.55);
}

.service-card.is-open .service-body {
  display: block;
}

.service-body p {
  font-size: 14px;
  line-height: 1.55;
  color: #3f3d32;
  margin-top: 12px;
}

.service-body .button {
  margin-top: 16px;
  width: 100%;
}

/* 3. About (Обо мне) */
.about-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 52px;
  align-items: center;
}

.about-image {
  height: 410px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfd8cc;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.about-lead {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-copy p + p {
  margin-top: 12px;
}

.about-copy > p {
  max-width: 600px;
  color: #3c3a2f;
}

.about-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* 4. Formats & Prices (Формат работы) */
.formats-intro {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.58;
  color: #3b392e;
}

.formats-intro p + p {
  margin-top: 10px;
  font-weight: 500;
  color: var(--ink);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--paper-alt);
  border: 1px solid rgba(213, 185, 162, 0.55);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.price-card--featured {
  background: #ebe0cf;
  border-color: rgba(164, 71, 37, 0.35);
}

.price-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.price-card h3 {
  font-size: 23px;
  line-height: 1.2;
}

.price-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--rust);
  white-space: nowrap;
}

.price-desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.52;
  color: var(--muted);
}

.price-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(213, 185, 162, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-values {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-main {
  font-family: Georgia, serif;
  font-size: 22px;
  color: var(--ink);
}

.price-pack {
  font-size: 13px;
  color: var(--muted);
}

.formats-after {
  margin-top: 28px;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
  max-width: 780px;
  color: var(--ink);
}

.reschedule-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--rust);
  background: rgba(240, 230, 216, 0.65);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 780px;
}

.reschedule-note strong {
  color: var(--ink);
}

/* Values strip moved after prices (no card suits!) */
.values-strip {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(213, 185, 162, 0.65);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-item {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(240, 230, 216, 0.55);
}

.value-item strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 4px;
}

.value-item span {
  font-size: 14px;
  color: var(--muted);
}

/* 5. FAQ (Перед первой встречей) */
.faq-list details {
  border-bottom: 1px solid #d8ccbb;
  padding: 18px 0;
}

.faq-list details:first-of-type {
  border-top: 1px solid #d8ccbb;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  color: var(--rust);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  max-width: 760px;
  padding: 12px 0 4px;
  font-size: 15px;
  line-height: 1.6;
  color: #4f4b40;
}

.inline-action {
  background: none;
  border: 0;
  padding: 0;
  color: var(--rust);
  border-bottom: 1px solid rgba(164, 71, 37, 0.45);
  cursor: pointer;
}

.inline-action:hover {
  border-color: var(--rust);
}

/* 6. Combined block: Рядом с мамой + Курсы и практики */
.mama-card {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  background: var(--paper-alt);
  border: 1px solid rgba(213, 185, 162, 0.55);
  border-radius: 20px;
  overflow: hidden;
}

.mama-content {
  padding: 36px 40px;
}

.mama-content p {
  font-size: 16px;
  line-height: 1.55;
  color: #3f3c31;
}

.mama-list {
  margin: 18px 0 22px;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  font-size: 15px;
  color: var(--muted);
}

.mama-list li::marker {
  color: var(--rust);
}

.mama-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.mama-media {
  position: relative;
  min-height: 300px;
  background: #d7ccb8;
}

.mama-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 7. Compact block: Грудничковое плавание */
.swim-card {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: #f2ebe0;
  border: 1px solid rgba(213, 185, 162, 0.55);
  border-radius: 20px;
  padding: 30px 34px;
}

.swim-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: #3f3c31;
}

.swim-copy p + p {
  margin-top: 10px;
}

.swim-points {
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swim-points li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(213, 185, 162, 0.65);
  font-size: 13px;
  color: var(--muted);
}

.swim-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swim-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d5e2df;
}

.swim-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swim-badge {
  background: var(--water);
  color: var(--water-ink);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
}

.swim-badge strong {
  display: block;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
}

.swim-badge span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.85;
}

/* 8. Final CTA block */
.contact-band {
  margin-top: 16px;
  padding: 38px max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(110deg, #e2cfb5, #eddfcb, #d0c7ac);
}

.contact-band h2 {
  font-size: 32px;
  margin-bottom: 6px;
}

.contact-band p {
  font-size: 15px;
  color: #3f3c31;
}

.contact-phone {
  border-left: 1px solid #b69274;
  padding-left: 24px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
}

.contact-phone small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

/* 9. Footer */
.site-footer {
  background: #ebe2d5;
  border-top: 1px solid rgba(213, 185, 162, 0.6);
  padding: 40px 0 28px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr 0.9fr;
  gap: 28px;
}

.footer-col h4 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-legal {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}

.footer-docs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.footer-docs a:hover {
  color: var(--rust);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid rgba(213, 185, 162, 0.8);
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-circle:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
  transform: translateY(-2px);
}

.social-circle svg {
  width: 18px;
  height: 18px;
}

.social-circle--text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.footer-contacts {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.footer-contacts a:hover {
  color: var(--rust);
}

.footer-bottom {
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid rgba(213, 185, 162, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Modal: Запись на консультацию */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 21, 0.62);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: 92vh;
  overflow-y: auto;
  background: #fbf7f1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 30px 28px;
  box-shadow: 0 28px 70px rgba(24, 21, 15, 0.28);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(213, 185, 162, 0.7);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}

.modal-title {
  font-size: 28px;
  margin-bottom: 8px;
  padding-right: 32px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(164, 71, 37, 0.35);
  border-color: var(--rust);
}

.form-field input[aria-invalid='true'] {
  border-color: #b42318;
  background: #fff7f6;
}

.field-error {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #b42318;
}

.field-error:empty {
  display: none;
}

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

.form-consents {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent-row input[type='checkbox'] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--rust);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-row a {
  color: var(--rust);
  font-weight: 600;
  border-bottom: 1px solid rgba(164, 71, 37, 0.35);
}

.modal-submit {
  width: 100%;
}

.modal-status {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}

.modal-status.is-ok {
  color: #266041;
}

.modal-status.is-err {
  color: #a42525;
}

.modal-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Subpages (about.html, programs.html) */
.page-hero {
  background: var(--paper-soft);
  padding: 48px 0 42px;
  border-bottom: 1px solid rgba(213, 185, 162, 0.45);
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--rust);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.program-card {
  background: var(--paper-alt);
  border: 1px solid rgba(213, 185, 162, 0.55);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.program-card p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
}

.diploma-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* About page enhancements */
.about-quote {
  margin: 24px 0 0;
  padding: 20px 26px;
  border-left: 3px solid var(--rust);
  background: var(--paper-alt);
  border-radius: 0 14px 14px 0;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.about-stat {
  background: var(--paper-alt);
  border: 1px solid rgba(213, 185, 162, 0.55);
  border-radius: 14px;
  padding: 20px 22px;
}

.about-stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--rust);
  line-height: 1.1;
}

.about-stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.story-copy {
  max-width: 780px;
  display: grid;
  gap: 14px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #3a382d;
}

.diploma-subheading {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin: 26px 0 16px;
  color: var(--ink);
}

.diploma-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.diploma-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-alt);
  border: 1px solid rgba(213, 185, 162, 0.55);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.diploma-card:hover {
  transform: translateY(-3px);
  border-color: var(--rust);
  box-shadow: 0 12px 24px rgba(103, 76, 41, 0.1);
}

.diploma-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e7ddd0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diploma-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.diploma-pdf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rust);
  color: var(--rust);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.diploma-caption {
  padding: 12px 14px 14px;
  font-size: 13.5px;
  line-height: 1.38;
  color: #3f3c31;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 19, 15, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(94vw, 1040px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #fff;
}

.lightbox-caption {
  color: #f6efe5;
  font-size: 15px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: 1px solid rgba(246, 239, 229, 0.35);
  background: rgba(29, 27, 21, 0.72);
  color: #f6efe5;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--rust);
  border-color: var(--rust);
}

@media (max-width: 1024px) {
  .diploma-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .diploma-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.diploma-placeholder {
  background: var(--paper-alt);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 26px 20px;
  font-size: 14px;
  color: var(--muted);
}

.diploma-placeholder strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #92673e;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1180px) {
  .header-address {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy {
    max-width: 490px;
  }

  .hero-copy > p {
    max-width: 410px;
  }

  .hero-photo {
    width: 48%;
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(213, 185, 162, 0.5);
  }

  .header-nav.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 14px;
    margin-top: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  .hero {
    padding: 0 0 44px;
    min-height: 0;
    background: var(--paper);
  }

  .hero::after {
    display: none;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: 380px;
  }

  .hero-photo img {
    object-position: 50% 18%;
  }

  .hero-photo::after {
    background: linear-gradient(0deg, var(--paper), transparent 24%);
  }

  .hero-copy {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 24px 0;
  }

  .hero-copy > p {
    max-width: 560px;
  }

  .about-grid,
  .mama-card,
  .swim-card {
    grid-template-columns: 1fr;
  }

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

  .values-strip,
  .diploma-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-phone {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .header-messengers {
    display: none;
  }

  .header-phone {
    font-size: 13.5px;
  }

  .hero {
    padding: 0 0 36px;
    min-height: 0;
    background: var(--paper);
  }

  .hero::after {
    display: none;
  }

  .hero-photo {
    position: relative;
    width: 100%;
    height: 320px;
  }

  .hero-photo::after {
    background: linear-gradient(0deg, var(--paper), transparent 24%);
  }

  .hero-copy {
    padding: 12px 20px 0;
  }

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

  .section {
    padding: 30px 20px;
  }

  .rule::after {
    width: 48px;
  }

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

  .about-image {
    height: 300px;
  }

  .mama-content,
  .swim-card {
    padding: 24px 20px;
  }

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

  .modal-dialog {
    padding: 26px 20px 22px;
  }
}

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

  * {
    transition: none !important;
  }
}
