/* Ирина Гинали — лендинг. Журнальный монохром, вариант А2:
   текст чёрный, бордо ведёт акценты, зелёный — редкие штрихи. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-v21-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-v21-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-v21-cyrillic_latin-600italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}

:root {
  --bg: #FAF7F1;
  --ink: #111111;
  --muted: #8A8579;
  --line: #E2DDD2;
  --wine: #7A1315;
  --green: #014828;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { scroll-margin-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(38px, 8vw, 64px); letter-spacing: -0.5px; }
h2 { font-size: clamp(28px, 5vw, 42px); }
h3 { font-size: 22px; }
h1 em, h2 em { font-style: italic; }

/* ---------- вспомогательные ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.sq { width: 8px; height: 8px; background: var(--wine); display: inline-block; flex: none; }
.sq-green { background: var(--green); }

.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.sec-head .rule { height: 2px; width: 48px; background: var(--wine); flex: none; }
.sec-head .sec-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; white-space: nowrap;
}
.sec-head .hairline { height: 1px; background: var(--line); flex: 1; }
.sec-sub { color: var(--muted); max-width: 560px; margin: -12px 0 24px; font-size: 15px; }

.btn {
  display: inline-block; background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 28px; border: none; cursor: pointer; text-decoration: none;
  transition: background .2s ease;
}
.btn:hover { background: var(--wine); }
.btn-small { padding: 10px 18px; font-size: 11px; }

/* ---------- webview-бар ---------- */
.webview-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  font-size: 12.5px; line-height: 1.35; padding: 9px 14px;
  border-bottom: 2px solid var(--wine);
}
.webview-bar[hidden] { display: none; }
.webview-bar button {
  background: none; border: none; color: var(--bg); font-size: 20px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}

/* ---------- шапка ---------- */
.site-header { border-bottom: 2px solid var(--wine); position: sticky; top: 0; background: var(--bg); z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .3px; }
.site-header .phone {
  margin-left: auto; color: var(--ink); text-decoration: none; white-space: nowrap;
  font-size: 14px; letter-spacing: .5px; border-bottom: 1px solid var(--line);
}
.site-header .phone:hover { border-color: var(--wine); }
@media (max-width: 559px) {
  .site-header .btn-small { display: none; }
}

/* ---------- hero / плеер ---------- */
.hero { padding: 48px 0 64px; }
.hero h1 { margin: 10px 0 28px; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 480px; }

.player { position: relative; background: var(--ink); border-bottom: 3px solid var(--wine); }
.player video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; }
.player-big-play {
  position: absolute; inset: 0; margin: auto; width: 88px; height: 88px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.player-big-play:hover { background: var(--wine); color: var(--bg); transform: scale(1.05); }
.player-big-play.hide { display: none; }
.player-big-play svg { margin-left: 5px; }

.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: none; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.player-controls.show { display: flex; }
.player-controls button {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px;
}
.player-controls input[type=range] {
  flex: 1; accent-color: var(--wine); cursor: pointer; min-width: 0;
}
.player-controls [data-a=time] { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- доктор ---------- */
.doctor { padding: 56px 0; border-top: 1px solid var(--line); }
.doctor-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.portrait-box { position: relative; max-width: 420px; }
.portrait-box img { filter: grayscale(1) contrast(1.05); border-bottom: 3px solid var(--wine); height: auto; }
.doctor-text h2 { margin-bottom: 14px; }
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.4; margin-bottom: 20px; }
.facts { list-style: none; }
.facts li {
  padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line);
  position: relative; font-size: 15px;
}
.facts li::before {
  content: ''; position: absolute; left: 2px; top: 17px;
  width: 8px; height: 8px; background: var(--green);
}

/* ---------- этапы ---------- */
.steps { padding: 56px 0; border-top: 1px solid var(--line); }
.steps-grid { list-style: none; display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
.steps-grid li { border-top: 2px solid var(--wine); padding-top: 14px; }
.step-num {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 34px; color: var(--muted); display: block; margin-bottom: 6px;
}
.steps-grid h3 { margin-bottom: 6px; }
.steps-grid p { font-size: 14.5px; color: #333; }

/* ---------- кейсы ---------- */
.cases { padding: 56px 0; border-top: 1px solid var(--line); }
.cases-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.ba-frame {
  position: relative; aspect-ratio: 2.1 / 1; overflow: hidden;
  background: var(--ink); touch-action: pan-y; cursor: ew-resize; user-select: none;
  border-bottom: 3px solid var(--wine);
}
.ba-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: var(--bg); transform: translateX(-1px); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--wine);
}
.ba-handle span::before {
  content: '⟷'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--wine); font-size: 15px;
}
.ba-tag {
  position: absolute; bottom: 8px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; pointer-events: none;
}
.ba-tag-b { left: 8px; }
.ba-tag-a { right: 8px; }
.ba figcaption {
  font-size: 13px; letter-spacing: .5px; color: var(--muted);
  margin-top: 10px; text-transform: uppercase;
}
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 24px; }

/* ---------- отзывы ---------- */
.reviews { padding: 56px 0; border-top: 1px solid var(--line); }
.reviews-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.review {
  background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--wine);
  padding: 24px 22px;
}
.review p { font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.review cite {
  display: block; margin-top: 14px; font-style: normal;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 12px 18px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 13.5px; transition: border-color .2s ease;
}
.trust-badge:hover { border-color: var(--green); }

/* ---------- сертификаты ---------- */
.certs { padding: 56px 0; border-top: 1px solid var(--line); }
.certs-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.cert-thumb {
  border: 1px solid var(--line); background: #fff; padding: 6px; cursor: zoom-in;
  transition: border-color .2s ease;
}
.cert-thumb:hover { border-color: var(--wine); }
.cert-thumb img { width: 100%; height: 120px; object-fit: cover; }

/* ---------- запись ---------- */
.signup { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.signup-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.signup-text h2 { margin-bottom: 14px; }
.signup-text p { max-width: 420px; }
.signup-contacts { margin-top: 22px; font-size: 15px; line-height: 1.7; }
.signup-contacts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--wine); }

#leadForm { display: grid; gap: 16px; }
#leadForm label {
  display: grid; gap: 6px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
#leadForm input, #leadForm textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 13px 14px;
  border-radius: 0; -webkit-appearance: none; resize: vertical;
}
#leadForm input:focus, #leadForm textarea:focus {
  outline: none; border-color: var(--wine);
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--wine); }

/* ---------- футер ---------- */
.site-footer { border-top: 2px solid var(--wine); padding: 22px 0 34px; }
.site-footer .wrap {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: var(--muted);
}

/* ---------- лайтбокс ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 8, 6, .92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: #fff; font-size: 34px; cursor: pointer;
}

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .doctor-grid { grid-template-columns: 380px 1fr; align-items: start; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .certs-grid { grid-template-columns: repeat(5, 1fr); }
  .cert-thumb img { height: 140px; }
  .signup-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 64px; }
}
