/* Строгий монохромный стиль в духе coach_info.html:
   белый фон, чёрный текст, серые акценты (#444/#666/#888), тонкие линии #ddd. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #000000;
  --text-2: #444444;
  --muted: #888888;
  --line: #dddddd;
  --chip: #d3d3d3;
  --chip-soft: #ededed;
  --danger: #8c302d;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text-2); }
button, input, textarea, select { font: inherit; }
img { display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px;
}

/* Шапка и навигация */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 14px;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.site-nav-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  scrollbar-width: none;
}
.site-nav-wrap::-webkit-scrollbar { display: none; }
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  padding: 2px 4px 6px;
  min-width: min-content;
}
.site-nav a {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); font-weight: 600; }

@media (min-width: 900px) {
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .site-nav-wrap { margin: 0; overflow: visible; }
  .site-nav { flex-wrap: wrap; gap: 22px; padding: 0; }
  .site-nav a { font-size: 15px; }
}

/* Кнопки-ссылки */
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: #fff;
  color: var(--text);
}
.button:hover { color: #fff; background: var(--text); }
.button.primary { background: var(--text); color: #fff; }
.button.primary:hover { background: var(--text-2); border-color: var(--text-2); }
.button.secondary { border-color: var(--line); color: var(--text); }
.button.secondary:hover { background: var(--chip-soft); color: var(--text); }
.button.danger { border-color: #e3c7c5; color: var(--danger); background: #fff; }
.button.danger:hover { background: #fbeceb; color: var(--danger); }
.button:disabled { opacity: .45; cursor: not-allowed; }

/* Заголовки секций */
.section-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 44px 0 20px 0;
}
h1 { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 18px; font-weight: 700; }
.prose { white-space: pre-line; }
.muted { color: var(--muted); }
.empty-note { color: var(--muted); font-size: 15px; margin-top: 10px; }
.page-lead { color: var(--text-2); margin-top: 10px; max-width: 820px; font-size: 18px; }
.section-copy { max-width: 820px; color: var(--text-2); font-size: 17px; }
.section-lead { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.text-link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; }
.text-link:hover { color: var(--text-2); }
.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Главная — две колонки: слева фото, справа текст; образование — на всю ширину ниже */
.home-layout {
  display: grid;
  grid-template-columns: minmax(320px, 46%) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: start;
  padding: 8px 0 28px;
}
.home-layout-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.home-layout-right {
  min-width: 0;
  align-self: start;
}
.home-layout-right .eyebrow { margin-bottom: 6px; }
.home-layout-right h1 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.8vw, 40px);
  line-height: 1.15;
  white-space: nowrap;
}
.home-layout-right .headline {
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 14px;
}
.home-layout-right .intro {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 36em;
}
.home-about-inline { margin-bottom: 22px; }
.home-about-title {
  margin-top: 28px;
  margin-bottom: 14px;
}
.home-about-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 36em;
  margin: 0 0 10px;
}
.home-about-text:last-child { margin-bottom: 0; }
.hero-cta { margin: 8px 0 20px; }
.hero-cta-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.button-wide { min-width: 240px; text-align: center; }

.home-hero-photo .photo-wrap,
.photo-wrap-hero {
  width: 100%;
  height: auto;
  min-height: 0;
  background: #f7f7f7;
}
.photo-wrap-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
}
.home-education-block .section-title-first { margin-top: 0; }
.home-education-wide {
  width: 100%;
  padding: 4px 0 36px;
  border-bottom: 1px solid var(--line);
}
.home-education-wide .section-title-first {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Образование — на всю ширину: текст слева, файл справа в свободной зоне */
.edu-block {
  display: grid;
  gap: 0;
  width: 100%;
}
.home-education-block {
  width: 100%;
  min-width: 0;
}
.edu-degree {
  font-size: 16px;
  font-weight: 400;
  color: #444;
  margin: 0 0 10px;
}
.edu-degree + .edu-row-coach {
  border-top: 0;
}
.edu-subsection-title {
  margin-top: 28px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.edu-row-coach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, 12%);
  gap: 0;
  align-items: stretch;
  margin-bottom: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.edu-row-coach:first-of-type {
  border-top: 1px solid var(--line);
}
.edu-row-body {
  min-width: 0;
  padding: 22px clamp(20px, 4vw, 40px) 22px 0;
  border-right: 1px solid var(--line);
}
.edu-year {
  font-size: 16px;
  color: #888;
  line-height: 1.55;
  margin: 0 0 8px;
}
.edu-row-texts { min-width: 0; }
.edu-institution {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}
.edu-institution-sub {
  font-size: 15px;
  font-weight: 400;
  color: #666;
  margin: 6px 0 0;
  line-height: 1.55;
}
.edu-file-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 88px;
  padding: 16px clamp(12px, 2vw, 24px);
}
.edu-file-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 96px;
  padding: 8px;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease;
}
.edu-file-preview:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.edu-file-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid var(--line);
}
.edu-file-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.edu-file-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: var(--text);
  background: #fff;
}
.edu-file-doc svg {
  width: 28px;
  height: 28px;
}
.edu-file-ext {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.edu-file-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.edu-file-preview:hover .edu-file-label {
  text-decoration-thickness: 2px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(360px, 46%) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: start;
  padding: 8px 0 40px;
  border-bottom: 1px solid var(--line);
}
.home-hero-photo { order: -1; }
.home-hero-copy { min-width: 0; align-self: start; }
.home-hero-copy .eyebrow { margin-bottom: 6px; }
.home-hero-copy h1,
.home-hero-copy .name-oneline {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.15;
}
.home-hero-copy .headline { font-size: 19px; color: var(--text-2); margin-bottom: 14px; }
.home-hero-copy .intro { margin-bottom: 22px; font-size: 17px; line-height: 1.65; max-width: 36em; }
.home-hero-cta { min-width: 240px; text-align: center; }
.home-section-tight { padding-top: 0; }
.home-section-tight .section-title-first { margin-top: 28px; }

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.contact-chip:hover {
  background: var(--chip-soft);
  color: var(--text);
}

.home-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}

.home-hero-actions { max-width: 460px; }
.section-title-inline { margin-top: 0; border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; }

.home-section {
  padding: 4px 0 32px;
  border-bottom: 1px solid var(--line);
}
.home-section .section-title-first { margin-top: 0; }
.home-section:last-child { border-bottom: 0; padding-bottom: 12px; }
.home-results-section .text-link { margin-top: 14px; }
.home-subjects-section .chips { margin-top: 6px; }
.section-title-first { margin-top: 36px; }
.diploma-list-wide { max-width: 820px; }
.diploma-link-wrap { padding: 0 14px 12px; }
.home-contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.home-contact .contact-links { margin-top: 6px; }

/* Результаты — линейная сетка */
.home-results-section .section-title-first,
.about-results-section .section-title-first { margin-top: 0; }
.results-linear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  width: 100%;
}
.results-linear-cell {
  padding: 22px clamp(16px, 3vw, 28px);
  border-right: 1px solid var(--line);
  text-align: center;
}
.results-linear-cell:last-child { border-right: 0; }
.results-linear-cell .stat-icon {
  display: block;
  margin: 0 auto 14px;
}
.results-linear-value {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 4px;
}
.results-linear-value-main {
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.results-linear-value:last-of-type {
  margin-bottom: 8px;
}
.results-linear-label {
  font-size: 16px;
  line-height: 1.55;
  color: #888;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  max-width: 900px;
}
.stat-cell {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: 0; }
.stat-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 2px solid var(--text);
  border-radius: 2px;
}
.stat-icon-medal { border-radius: 50%; }
.stat-icon-chart {
  border-radius: 0;
  border-bottom-width: 4px;
}
.stat-icon-person {
  border-radius: 50% 50% 4px 4px;
  height: 32px;
}
.stat-value {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.1;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.review-featured {
  position: relative;
  max-width: 820px;
  margin: 0;
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.review-quote-mark {
  display: block;
  font-size: 48px;
  line-height: 1;
  color: var(--chip);
  font-weight: 700;
  margin-bottom: 8px;
}
.review-featured-text {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 16px;
  white-space: pre-line;
}
.review-featured-footer {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Контакты — кликабельные ссылки */
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
.contact-item-body { min-width: 0; }
.contact-label {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 17px;
  font-weight: 600;
  word-break: break-word;
}
.contact-value:hover { text-decoration: underline; }
.contact-action {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 14px;
}

/* Лендинг (legacy / внутренние блоки) */
.landing {
  display: grid;
  grid-template-columns: 300px minmax(0, 1.6fr) 260px;
  gap: 40px 56px;
  align-items: start;
  padding: 28px 0 16px;
}
.landing .photo-wrap { width: 100%; height: 425px; }
.landing-side { min-width: 0; padding-top: 100px; }
.landing-copy { flex: 1; min-width: 0; max-width: 640px; }
.landing-copy .eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.landing-copy h1 { margin-bottom: 10px; }
.landing-copy .headline { font-size: 19px; color: var(--text-2); margin-bottom: 20px; }
.landing-copy .intro { margin-bottom: 28px; font-size: 18px; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-actions-stack {
  flex-direction: column;
  align-items: stretch;
  max-width: 420px;
}
.landing-actions-stack .button { width: 100%; text-align: center; justify-content: center; }
.results-actions { margin-top: 32px; max-width: 320px; }
.results-actions .button { width: 100%; text-align: center; }
.consultation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  max-width: 420px;
}
.consultation-section {
  padding: 0 0 28px;
}
.consultation-section .section-title-first,
.consultation-price-section .section-title-first,
.consultation-book-cta .section-title-first {
  margin-bottom: 20px;
  padding-bottom: 14px;
}
.consultation-price-section,
.consultation-book-cta {
  padding: 8px 0 28px;
}
.consultation-price-section {
  text-align: center;
}
.consultation-price-value {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.consultation-price-blurb {
  margin: 0 auto;
  max-width: 36em;
  text-align: center;
}
.consultation-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-2);
}
.consultation-list li {
  padding-left: 14px;
  position: relative;
}
.consultation-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.consultation-contact {
  padding-top: 0;
  padding-bottom: 22px;
}
.consultation-contact .section-title-first {
  margin-top: 4px;
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.consultation-contact .section-lead {
  margin-bottom: 14px;
}
.consultation-page .page-lead {
  margin-top: 8px;
  margin-bottom: 28px;
}
.consultation-cta {
  margin-top: 8px;
}
.pricing-section {
  padding-bottom: 28px;
}
.pricing-section .section-title-first {
  margin-bottom: 22px;
  padding-bottom: 14px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  width: 100%;
}
.pricing-cell {
  padding: 28px clamp(16px, 3vw, 28px);
  border-right: 1px solid var(--line);
  text-align: center;
}
.pricing-cell:last-child { border-right: 0; }
.pricing-value {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.pricing-label {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #888;
}
.pricing-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.pricing-discount {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}
.pricing-extra {
  margin: 10px 0 0;
  font-size: 15px;
  color: #888;
  line-height: 1.5;
  text-align: center;
}
.schedule-price-hint {
  margin: 14px 0 0;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 52em;
}
.schedule-price-link .text-link { margin-top: 10px; }
.consultation-book-section .form-consultation {
  max-width: none;
  width: 100%;
  margin-top: 6px;
}
.consultation-book-section .button.primary {
  margin-top: 4px;
}
.consultation-results-link {
  display: inline-block;
  margin: 4px 0 12px;
}
.consultation-flash {
  margin: 0 0 16px;
}
.consultation-modal {
  border: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  background: transparent;
}
.consultation-modal::backdrop {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}
.consultation-modal-inner {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  margin: 10vh auto;
  padding: 28px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.consultation-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.consultation-modal-close:hover { color: var(--text); }
.consultation-modal-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.consultation-modal-lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}
.consultation-modal .form-consultation {
  max-width: none;
  width: 100%;
  margin-top: 0;
}
.consultation-modal-submit {
  width: 100%;
  margin-top: 6px;
  text-align: center;
}
.form-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Резюме (about) — как в coach_info.html */
.top-block { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 20px; }
.photo-wrap {
  width: 240px; height: 300px; flex-shrink: 0;
  overflow: hidden; background: #e8e8e8; border: 1px solid var(--line);
}
.photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.photo-wrap-hero {
  width: 100%;
  height: auto;
  overflow: visible;
  background: #f7f7f7;
}
.photo-wrap-hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}
.photo-fallback {
  width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 64px;
}
.top-info { flex: 1; min-width: 0; }
.top-info .name { font-size: 34px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.02em; }
.info-line { margin-bottom: 5px; }
.info-line.gap { margin-top: 18px; }
.info-muted { color: var(--muted); }

/* Двухколоночный макет About: слева контент, справа блок дипломов */
.about-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.about-side { position: sticky; top: 24px; }
.diploma-list { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.diploma-list li { border: 1px solid var(--line); border-radius: 4px; }
.diploma-list details summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  list-style: none;
}
.diploma-list details summary::-webkit-details-marker { display: none; }
.diploma-list details[open] summary { border-bottom: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.chip {
  display: inline-block; padding: 6px 13px; font-size: 14px;
  font-weight: 700; border-radius: 3px; background: var(--chip); color: var(--text);
}
.sub-title { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.bullet-list { list-style: none; padding-left: 0; }
.bullet-list li { position: relative; padding-left: 18px; margin-bottom: 5px; color: var(--text-2); }
.bullet-list li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }

/* Расписание */
.schedule-note { color: var(--muted); font-size: 15px; margin: 10px 0 16px; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.schedule-table th, .schedule-table td {
  border: 1px solid var(--line); padding: 8px 10px; text-align: center; vertical-align: middle;
}
.schedule-table thead th { background: var(--chip-soft); font-weight: 600; }
.schedule-table td.time-col, .schedule-table th.time-col {
  text-align: left; white-space: nowrap; color: var(--text-2); font-weight: 600;
}
.slot-free a { display: inline-block; color: var(--text); font-weight: 600; }
.slot-free { background: #fff; }
.slot-busy { color: var(--muted); background: var(--chip-soft); }
.slot-empty { color: var(--line); }
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 16px;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 1px solid var(--line);
  vertical-align: middle;
}
.legend-dot.free { background: #fff; }
.legend-dot.busy { background: var(--chip-soft); }
.admin-schedule-wrap { overflow-x: auto; margin-top: 16px; }
.admin-schedule-table { font-size: 13px; }
.admin-schedule-table th,
.admin-schedule-table td { padding: 6px 8px; }
.admin-schedule-actions-col { min-width: 110px; white-space: nowrap; }
.admin-schedule-times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 8px;
}
.admin-schedule-days {
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.admin-schedule-days legend {
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.admin-slot-free,
.admin-slot-booked {
  font-size: 12px;
  line-height: 1.35;
}
.admin-slot-free .admin-inline-form,
.admin-slot-booked .admin-inline-form { margin-top: 6px; }
.admin-free-btn {
  padding: 4px 8px;
  font-size: 12px;
  width: 100%;
}

/* Результаты */
.result-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.result-item:last-child { border-bottom: 0; }
.result-meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.result-item h3 { margin-bottom: 6px; }
.result-item p { margin-bottom: 4px; color: var(--text-2); }
.result-value { color: var(--text); font-weight: 700; }

/* Отзывы */
.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.review-tabs a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.review-tabs a:hover { color: var(--text); background: var(--chip-soft); }
.review-tabs a.active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}
.reviews-list { margin-bottom: 36px; }
.review-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 10px;
  font-size: 15px;
}
.review-author-name { font-weight: 700; font-size: 17px; }
.review-year-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  padding: 0;
}
.review-result-bar {
  margin: 0;
  padding: 0 18px 4px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.45;
}
.review-item .review-text {
  color: var(--text-2);
  white-space: pre-line;
  font-size: 16px;
  padding: 12px 18px 18px;
  margin: 0;
}
.review-form-block { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }

/* Формы */
.form { max-width: 640px; margin-top: 18px; }
.form-wide { max-width: 820px; }
.form-panel { border-top: 0; padding-top: 0; margin-top: 24px; }
label { display: block; margin-bottom: 14px; font-weight: 600; }
label .req { color: var(--danger); }
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
input, textarea, select {
  width: 100%; margin-top: 6px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--text);
}
textarea { resize: vertical; }
label.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.checkbox input { width: auto; margin-top: 0; }
.form-error { color: var(--danger); margin-bottom: 12px; }
.form-success { color: #22613e; font-weight: 600; margin-bottom: 12px; }
.form-hint { color: var(--muted); font-size: 12px; margin-bottom: 12px; }

/* Подвал */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 12px;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--muted); font-size: 12px; padding-top: 20px; padding-bottom: 28px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-2); font-weight: 600; }
.footer-links a:hover { color: var(--text); }

/* Админка */
.admin-body { background: #fafafa; }
.admin-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; padding-bottom: 16px;
}
.admin-actions { display: flex; gap: 10px; }
.admin-nav { border-bottom: 1px solid var(--line); background: #fff; }
.admin-nav .wrap { display: flex; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.admin-nav a { color: var(--muted); font-size: 13px; }
.admin-nav a:hover { color: var(--text); }
.admin-section {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 24px; margin: 18px 0; scroll-margin-top: 70px;
}
.admin-section > h2 { margin-bottom: 4px; }
.admin-section > .muted { display: block; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.admin-grid .form { max-width: 720px; }
.photo-admin {
  max-width: 420px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.photo-admin img { width: 100%; max-height: 420px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 14px; }
.create-panel { border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; margin-bottom: 18px; background: #fafafa; }
.create-panel summary { cursor: pointer; font-weight: 700; }
.create-panel .form { margin-top: 16px; }
.admin-list { display: grid; gap: 12px; }
.admin-list article {
  border: 1px solid var(--line); border-radius: 4px; padding: 18px;
  display: flex; justify-content: space-between; gap: 24px;
}
.admin-list article > div:first-child { flex: 1; min-width: 0; }
.admin-list .actions { display: flex; flex-direction: column; gap: 8px; }
.admin-education-item { display: block; }
.admin-education-main { width: 100%; }
.admin-education-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.admin-education-head h3 { margin: 0; }
.admin-education-edit {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: none;
}
.admin-education-edit-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}
.status {
  display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--chip-soft); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.status.published { background: #e2f1e7; color: #22613e; }
.status.pending { background: #fff2d5; color: #7b5511; }
.status.rejected { background: #f4e1df; color: #853936; }
.login-panel {
  width: min(420px, calc(100% - 40px)); margin: 12vh auto; padding: 30px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.login-panel h1 { margin-bottom: 18px; }
.login-panel .button { width: 100%; margin-top: 6px; }

@media (max-width: 900px) {
  .home-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .home-layout-left { display: contents; }
  .home-hero-photo { order: 1; }
  .home-layout-right { order: 2; }
  .home-layout-right h1 {
    font-size: clamp(16px, 4.8vw, 32px);
    white-space: nowrap;
  }
  .home-layout-right .intro,
  .home-about-text { max-width: 100%; }
  .button-wide { width: 100%; min-width: 0; }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-hero-photo { order: 0; }
  .home-hero-photo .photo-wrap,
  .photo-wrap-hero {
    height: auto;
    min-height: 0;
  }
  .home-hero-copy .name-oneline {
    font-size: clamp(18px, 5.4vw, 28px);
  }
  .home-hero-actions { max-width: none; }
  .home-hero-cta { width: 100%; min-width: 0; }
  .edu-row-coach {
    grid-template-columns: minmax(0, 1fr) minmax(80px, 22%);
  }
  .edu-row-body {
    padding-right: 16px;
  }
  .edu-file-zone {
    min-width: 80px;
    padding: 12px 10px;
  }
  .edu-file-preview { max-width: 88px; padding: 6px; }
  .home-actions-bar .button { flex: 1 1 calc(50% - 10px); text-align: center; min-width: 140px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: 0; }
  .landing { grid-template-columns: 1fr; }
  .landing-side { padding-top: 0; }
  .landing-actions-stack { max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 20px 16px; }
  h1 { font-size: 32px; }
  .page-lead { font-size: 16px; }
  .home-contact-row { flex-direction: column; align-items: stretch; }
  .home-contact-row .button { align-self: flex-start; }
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-links { flex-wrap: wrap; gap: 12px 16px; }
  .landing, .top-block { flex-direction: column; }
  .landing .photo-wrap, .photo-wrap { width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-list article { flex-direction: column; }
  .contact-item { flex-direction: column; align-items: stretch; }
  .contact-action { width: 100%; text-align: center; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 6px; }
  .review-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .results-linear-grid { grid-template-columns: 1fr; }
  .results-linear-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .results-linear-cell:last-child { border-bottom: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pricing-cell:last-child { border-bottom: 0; }
  .edu-row-coach {
    grid-template-columns: 1fr;
  }
  .edu-row-body {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
  }
  .edu-file-zone {
    justify-content: flex-start;
    min-width: 0;
    padding: 14px 0 18px;
  }
  .edu-file-preview { max-width: 96px; }
}
