/* ============================================================
   VY osteopati — стили
   Палитра из логотипа: бирюза + золото на молочном фоне
   ============================================================ */

:root {
  color-scheme: light;
  --teal: #1C6B74;
  --teal-dark: #124A52;
  --teal-deep: #0E3E46;
  --teal-tint: #E4EEEC;
  --gold: #C9A24B;
  --gold-light: #E3C06C;
  --gold-dark: #A9853B;
  --bg: #F7F5F0;
  --page: #E7E3DA;
  --card: #FFFFFF;
  --ink: #1E3A3F;
  --muted: #5A7276;
  --line: #E3E0D7;
  --shadow: 0 10px 30px rgba(18, 74, 82, .10);
  --shadow-lg: 0 18px 50px rgba(18, 74, 82, .16);
  --radius: 18px;
  --grad-gold: linear-gradient(135deg, #E3C06C 0%, #C9A24B 55%, #A9853B 100%);
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-head); color: var(--teal-dark); line-height: 1.15; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: var(--teal); }

button { font-family: inherit; }

.container { max-width: 1500px; margin-inline: auto; padding-inline: 32px; }
.container-narrow { max-width: 900px; }

.svg-defs { position: absolute; }

body.no-scroll { overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-dark); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- секции и заголовки ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-alt { background: var(--card); }

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.section h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 68px; height: 4px; border-radius: 4px;
  background: var(--grad-gold);
}

.section-sub { color: var(--muted); margin-top: -14px; margin-bottom: 34px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--grad-gold);
  color: #16333A;
  box-shadow: 0 8px 22px rgba(169, 133, 59, .35);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(169, 133, 59, .45); }

.btn-ghost {
  background: transparent;
  color: #F2EFE7;
  box-shadow: inset 0 0 0 1.6px rgba(242, 239, 231, .8);
}
.btn-ghost:hover { background: rgba(242, 239, 231, .12); }

/* тёмная бирюзовая кнопка — для светлого фона */
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(18, 74, 82, .28);
}
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 12px 28px rgba(18, 74, 82, .36); }

/* бирюзовая кнопка-контур — вторичная, для светлого фона */
.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1.8px rgba(28, 107, 116, .55);
}
.btn-outline:hover { background: var(--teal-tint); box-shadow: inset 0 0 0 1.8px var(--teal); }

.btn-ico { width: 18px; height: 18px; flex: none; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(247, 245, 240, .95);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(18, 74, 82, .12); }

.header-in { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
/* маленький «submark» — только символ, без круга/текста (полный логотип живёт в hero-баннере) */
.brand-mark { width: 38px; height: 38px; flex: none; object-fit: contain; }
.brand-text {
  font-family: var(--font-body); font-weight: 700; font-size: 19px;
  letter-spacing: .04em; color: var(--teal-dark); white-space: nowrap;
}
.brand-text em {
  font-style: normal; font-weight: 400; font-size: 13px;
  letter-spacing: .22em; color: var(--gold-dark);
}

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink);
  position: relative; transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover { color: var(--teal); }
.nav a:hover::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.header-sep { width: 1px; height: 22px; background: var(--line); transition: background-color .3s ease; }
@media (max-width: 900px) { .header-sep { display: none; } }

/* переключатель языков */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border: 1.4px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--teal-dark);
  font-weight: 600; font-size: 13px; letter-spacing: .06em; cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.lang-btn:hover { border-color: var(--gold); }
.lang-caret { width: 13px; height: 13px; transform: rotate(90deg); transition: transform .25s ease; }
.lang.open .lang-caret { transform: rotate(-90deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }

.lang-menu button {
  display: block; width: 100%; padding: 10px 14px;
  border: 0; border-radius: 9px; background: none; text-align: left;
  font-size: 14px; color: var(--ink); cursor: pointer;
  transition: background-color .2s ease;
}
.lang-menu button:hover { background: var(--teal-tint); }
.lang-menu button.active { font-weight: 700; color: var(--teal); }
.lang-menu button.active::after { content: " ✓"; color: var(--gold-dark); }

/* бургер */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  border: 0; border-radius: 10px; background: none; cursor: pointer;
}
.burger span {
  display: block; height: 2.4px; border-radius: 2px; background: var(--teal-dark);
  transition: transform .3s ease, opacity .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ---------- hero: фото на ВСЮ ширину + зелёное диагональное затемнение + текст поверх
   (дизайн 1a). Секция всегда «тёмно-зелёная» независимо от светлой/тёмной темы страницы. */
.hero {
  position: relative;
  padding-top: 68px;
  background: var(--teal-deep);
  color: #F2EFE7;
}
.hero-inner {
  position: relative;
  width: 100%;
  /* повыше на широких мониторах, чтобы в кадр попадали ОБЕ — и остеопат, и пациентка
     (её лицо ниже центра): вертикальная «полоса» видимого фото должна покрыть их обеих */
  height: clamp(580px, 58vw, 980px);
  overflow: hidden;
}
/* фото на весь блок */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 46%; display: block;
}
/* зелёное диагональное затемнение слева (плотное под текстом → прозрачное к правой части) */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(98deg, rgba(9, 38, 38, .9) 0%, rgba(9, 38, 38, .62) 34%, rgba(9, 38, 38, .2) 58%, rgba(9, 38, 38, 0) 74%),
    linear-gradient(0deg, rgba(9, 38, 38, .5) 0%, transparent 34%);
}
/* текст поверх фото, слева, по вертикали центрирован */
.hero-in {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center;
  max-width: none; margin-inline: 0;
  padding-inline: clamp(24px, 5vw, 76px);
}
.hero-copy {
  max-width: 620px;
  animation: hero-in .9s cubic-bezier(.22, .61, .36, 1) both;
}
/* одноразовое плавное появление — без непрерывных анимаций (см. заметку в истории) */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
/* большой круглый логотип в hero */
.hero-logo {
  display: block;
  width: 164px; height: 164px; margin-bottom: 22px;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .35));
}

/* золотая линия перед надписью-киккером */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.kicker::before {
  content: ""; width: 44px; height: 1px; background: var(--gold-light); flex: none;
}

.hero h1 {
  color: #FDFCF8;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700; line-height: 1.14;
  margin-bottom: 14px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
}

.hero-slogan {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 500; font-style: italic;
  color: var(--gold-light);
  letter-spacing: .05em;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(30px, 5vw, 70px); z-index: 2; }

/* ---------- шапка-«стекло» поверх зелёного hero (десктоп): полупрозрачный тёмный слой,
   светлый текст; при скролле ниже hero → обычная (тема страницы). ---------- */
@media (min-width: 901px) {
  .hero { padding-top: 0; }

  .site-header:not(.scrolled) {
    background: rgba(12, 42, 42, .28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }
  .site-header:not(.scrolled) .brand-text,
  .site-header:not(.scrolled) .nav a,
  .site-header:not(.scrolled) .lang-btn { color: #F2EFE7; }
  .site-header:not(.scrolled) .brand-text em { color: var(--gold-light); }
  .site-header:not(.scrolled) .brand-mark { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
  .site-header:not(.scrolled) .nav a:hover { color: var(--gold-light); }
  .site-header:not(.scrolled) .lang-btn { background: transparent; border-color: rgba(255, 255, 255, .4); }
  .site-header:not(.scrolled) .lang-btn:hover { border-color: var(--gold-light); }
  .site-header:not(.scrolled) .header-sep { background: rgba(255, 255, 255, .3); }
}

/* ---------- обо мне ---------- */
.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 68px); align-items: start; }

.about-photo {
  position: sticky; top: 96px;
  width: 340px; max-width: 100%; aspect-ratio: 1;
  margin-inline: auto;
}
.about-hello {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 8px;
}
.about-photo img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow-lg);
}
/* золотое кольцо вокруг круглого портрета */
.about-photo::after {
  content: ""; position: absolute; inset: -12px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 75, .6);
  pointer-events: none;
}

.about-name { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 2px; }
.about-role {
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 22px;
}

.about-quote {
  margin-top: 6px; padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-head); font-size: 19px; font-style: italic; color: var(--teal-dark);
}

/* ---------- дипломы ---------- */
.diplomas-layout {
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
.diplomas-photo { position: relative; }
.diplomas-photo-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  position: relative; cursor: zoom-in; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.diplomas-photo-btn img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.diplomas-photo-btn:hover { transform: translateY(-4px); }
.diplomas-photo-btn:hover img { transform: scale(1.03); }
.diplomas-zoom {
  position: absolute; right: 14px; bottom: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11, 54, 61, .78); color: #F2EFE7;
  transition: background-color .25s ease;
}
.diplomas-photo-btn:hover .diplomas-zoom { background: var(--teal); }
.diplomas-zoom svg { width: 22px; height: 22px; }

.diploma-list {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: clamp(24px, 4vw, 44px);
}
.diploma-list li {
  position: relative; padding: 11px 0 11px 28px;
  font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--teal-dark);
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.diploma-list li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--grad-gold);
}

/* ---------- отзывы ---------- */
.reviews { display: flex; align-items: center; gap: 10px; }

.rev-track {
  display: flex; gap: 20px; flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 10px;
}
.rev-track::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 min(460px, 86%);
  scroll-snap-align: center;
  margin: 0; padding: 30px 30px 26px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative;
}
.review::before {
  content: "“";
  position: absolute; top: 2px; left: 20px;
  font-family: var(--font-head); font-size: 74px; line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.review blockquote { margin: 26px 0 14px; font-size: 15.5px; color: var(--ink); }
.review figcaption { font-weight: 600; color: var(--teal); }
.review figcaption::before { content: "— "; color: var(--gold-dark); }

.rev-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.4px solid var(--line); background: var(--card); color: var(--teal);
  cursor: pointer; transition: border-color .25s ease, background-color .25s ease;
}
.rev-arrow:hover { border-color: var(--gold); background: var(--teal-tint); }
.rev-arrow svg { width: 20px; height: 20px; }
.rev-prev svg { transform: rotate(180deg); }

.rev-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.rev-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: background-color .25s ease, transform .25s ease;
}
.rev-dots button.active { background: var(--gold); transform: scale(1.25); }

/* ---------- FAQ ---------- */
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.faq-list summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; cursor: pointer;
  font-weight: 600; font-size: 16.5px; color: var(--teal-dark);
  transition: color .25s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal);
  font-size: 20px; font-weight: 400;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.faq-list summary:hover { color: var(--teal); }
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--grad-gold); color: #16333A;
}
.faq-list details p { padding: 0 4px 20px; color: var(--muted); max-width: 700px; }

/* ---------- контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }

.contact-list { display: grid; gap: 12px; align-content: start; }

.contact-card {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.contact-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--gold); }

.cc-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal);
}
.cc-icon svg { width: 21px; height: 21px; }

.cc-body { display: flex; flex-direction: column; min-width: 0; }
.cc-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cc-value { font-weight: 600; color: var(--teal-dark); overflow-wrap: anywhere; }

.map-wrap { display: flex; flex-direction: column; gap: 10px; }
.map-box {
  flex: 1; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
  background:
    radial-gradient(420px 260px at 70% 20%, rgba(201, 162, 75, .14), transparent 60%),
    var(--teal-tint);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-box .map-pin { width: 44px; height: 44px; color: var(--teal); }
.map-note { font-size: 12.5px; color: var(--muted); max-width: 320px; margin: 0; }
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }
.map-box.loaded { padding: 0; display: block; }
.map-link { font-size: 13.5px; color: var(--teal); text-align: center; }

/* ---------- футер ---------- */
.site-footer {
  background: var(--teal-deep); color: rgba(242, 239, 231, .75);
  padding-block: 44px;
  text-align: center;
}
.footer-in { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-text { color: #F2EFE7; }
.footer-brand .brand-text em { color: var(--gold-light); }
.footer-tag { font-family: var(--font-head); font-style: italic; font-size: 17px; color: var(--gold-light); margin: 0; }
.footer-copy { font-size: 13px; margin: 6px 0 0; }

/* ---------- лайтбокс ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 30, 34, .93);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox.on { opacity: 1; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.lb-btn {
  position: absolute; z-index: 151;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(242, 239, 231, .12); color: #F2EFE7;
  font-size: 20px; cursor: pointer;
  transition: background-color .25s ease;
}
.lb-btn:hover { background: rgba(242, 239, 231, .28); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  /* на телефоне: фото сверху целиком + текст ниже на сплошном зелёном
     (при 900px+ шапка накрывает фото; на телефоне высоты под текст поверх не хватает) */
  .hero-inner { height: auto; overflow: visible; }
  .hero-bg { position: relative; inset: auto; width: 100%; aspect-ratio: 1920 / 1280; }
  /* фото сверху целиком — диагональное затемнение не нужно */
  .hero-bg::after { display: none; }
  .hero-bg img { object-position: 50% 30%; }
  .hero-in { height: auto; display: block; padding: 28px 20px 40px; margin-inline: auto; }
  .hero-copy { max-width: 100%; text-align: center; margin-inline: auto; }
  .hero-logo { margin-inline: auto; width: 116px; height: 116px; }
  /* на мобильном киккер — обычный текст с переносом (без золотой линии),
     иначе inline-flex не переносится и вылезает за край */
  .kicker { display: block; }
  .kicker::before { display: none; }
  .hero-cta { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  /* relative (не static): портрет не липнет при скролле, но остаётся контекстом
     позиционирования для золотого кольца ::after — иначе кольцо «отрывается» и
     растягивается в огромный овал по всей странице. top: auto сбрасывает липкий
     сдвиг с десктопа (иначе relative + top:96px наезжает на текст ниже). */
  .about-photo { position: relative; top: auto; width: min(300px, 76vw); }

  .diplomas-layout { grid-template-columns: 1fr; }
  .diplomas-photo { max-width: 460px; margin-inline: auto; }
  .diploma-list { columns: 1; }

  .contacts-grid { grid-template-columns: 1fr; }

  .nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    flex-direction: column; gap: 2px;
    padding: 12px 16px 22px;
    background: rgba(247, 245, 240, .98);
    box-shadow: 0 24px 40px rgba(18, 74, 82, .18);
    transform: translateY(-130%);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 10px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .burger { display: flex; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .brand-text em { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
  .btn { justify-content: center; }
  .rev-arrow { display: none; }
  .review { flex-basis: 92%; padding: 24px 20px 20px; }
}

/* ---------- уважение к reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .emblem { animation: none; }
}
