/* «Идеал»: единая жемчужно-шалфейная тема без каскада экспериментальных блоков. */
:root {
  --sage: #7e9b8d;
  --sage-deep: #36574c;
  --sage-dark: #2e4a42;
  --sage-mint: #b7cec3;
  --accent-mist: #d7e7e1;
  --sage-pale: #edf3ee;
  --pearl: #f6f3ea;
  --pearl-light: #fffdf7;
  --pearl-warm: #f1eadc;
  --champagne: #d9c9a7;
  --champagne-deep: #a98750;
  --ink: #2e4a42;
  --muted: #6b7f78;
  --line: rgba(169, 135, 80, .28);
  --line-sage: rgba(54, 87, 76, .15);
  --shadow-soft: 0 14px 36px rgba(47, 76, 63, .09);
  --shadow-card: 0 9px 24px rgba(47, 76, 63, .085);
  --gold-surface: linear-gradient(180deg, #fff2d4 0%, #e8d29f 52%, #cfae69 100%);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", "PT Sans", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% 0%, rgba(255,255,255,.9), transparent 34%),
    linear-gradient(120deg, #fbfaf6 0%, var(--pearl) 52%, #eff4ef 100%);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(169, 135, 80, .65);
  outline-offset: 3px;
}
h1, h2, h3 {
  margin: 0;
  color: var(--sage-dark);
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}
.w { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
svg.i {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.gi { color: var(--champagne); }

/* Световые и растительные слои — только декоративные, без влияния на геометрию. */
header, .hero, .pr, .ct, .lg, footer { position: relative; overflow: hidden; }
header > .w, .hero > .w, .pr > .w, .ct > .w, .lg > *, footer > * { position: relative; z-index: 1; }
header::before, .hero::before, .hero::after, .pr::before, .pr::after,
.ct::before, .ct::after, .lg::before, footer::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 320px;
  height: 390px;
  pointer-events: none;
  background: currentColor;
  -webkit-mask: url("./leaf-shadow.svg") center / contain no-repeat;
  mask: url("./leaf-shadow.svg") center / contain no-repeat;
}

/* Шапка */
header {
  color: #fffdf7;
  background:
    radial-gradient(ellipse at 86% -20%, rgba(215, 231, 225, .58), transparent 52%),
    radial-gradient(ellipse at 16% 130%, rgba(54, 87, 76, .19), transparent 48%),
    linear-gradient(118deg, #36574c 0%, #64877a 42%, #7e9b8d 72%, #9db5aa 100%);
  box-shadow: 0 5px 20px rgba(28, 57, 47, .14);
}
header::before { left: -74px; top: -178px; color: rgba(255,255,255,.20); transform: rotate(22deg); }
header .w {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 14px; color: #fffdf7; line-height: 1; text-decoration: none; }
.logo img { display: block; width: 62px; height: 62px; border: 2px solid rgba(238,218,173,.78); border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(20,47,38,.18); }
.logo span { display: flex; flex-direction: column; }
.logo b { color: #fffdf7; font-family: var(--display); font-size: 40px; font-style: italic; font-weight: 600; }
.logo small { margin-top: 2px; font-size: 10.5px; letter-spacing: .32em; }
nav { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 16px; }
nav a { font-weight: 600; text-decoration: none; transition: color .2s ease; }
nav a:hover { color: #ffefc8; }
.tel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  color: var(--ink);
  background: var(--gold-surface);
  border: 1px solid rgba(181,145,82,.52);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,.82), 0 7px 18px rgba(30,54,45,.18);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tel:hover { transform: translateY(-1px); box-shadow: inset 0 1px rgba(255,255,255,.9), 0 10px 22px rgba(30,54,45,.21); }
.tel svg { color: var(--ink); font-size: 20px; }

/* Главный экран */
.hero {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 7% 10%, rgba(255,255,255,.96) 0%, transparent 48%),
    radial-gradient(ellipse at 87% 89%, rgba(126,155,141,.30), transparent 55%),
    linear-gradient(116deg, #f6f3ea 0%, #fffdf8 46%, #d7e7e1 100%);
}
.hero::before { left: -112px; bottom: -90px; color: rgba(54,87,76,.10); transform: scaleX(-1) rotate(-13deg); }
.hero::after { right: -94px; top: -112px; color: rgba(255,255,255,.28); transform: rotate(198deg); }
.hero .w { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 1240px; padding: 0; }
.hero-t { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 24px 64px 48px; }
.hero h1 { color: var(--sage-dark); font-size: clamp(46px, 6vw, 76px); font-weight: 500; line-height: 1.04; text-shadow: 0 1px rgba(255,255,255,.8); }
.rule { width: 76px; height: 2px; background: linear-gradient(90deg, var(--champagne-deep), #eadbb9); }
.hero p { max-width: 390px; margin: 0; color: #6f624d; font-size: 20px; font-style: normal; font-weight: 600; }
.hero-p { position: relative; min-height: 460px; overflow: hidden; background: rgba(183,206,195,.24); }
.hero-p::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(248,245,235,.32), transparent 27%); }
.hero-p img { display: block; width: 100%; height: 100%; min-height: 460px; object-fit: cover; object-position: 30% 25%; }

.btn, .zp button.btn {
  display: inline-block;
  align-self: flex-start;
  padding: 15px 34px;
  color: var(--ink);
  background: var(--gold-surface);
  border: 1px solid rgba(181,145,82,.50);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,.85), 0 8px 19px rgba(112,89,49,.17);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover, .zp button.btn:hover { color: var(--ink); background: linear-gradient(180deg,#fff0ce,#d9bd83); box-shadow: inset 0 1px rgba(255,255,255,.9), 0 11px 24px rgba(112,89,49,.21); transform: translateY(-1px); }
.btn.o { padding: 12px 26px; color: var(--sage-dark); background: rgba(255,255,255,.42); border: 1px solid rgba(169,135,80,.58); box-shadow: inset 0 1px rgba(255,255,255,.7); }
.btn.o:hover { color: var(--sage-dark); background: #eee4cf; }

/* Преимущества */
.perks { background: linear-gradient(105deg, #fbf9f2, #eef4ef); border-bottom: 1px solid rgba(54,87,76,.07); }
.perks .w { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding-top: 22px; padding-bottom: 22px; }
.perk { display: flex; flex: 1 1 240px; align-items: center; gap: 14px; font-size: 18px; }
.perk svg { color: var(--champagne-deep); font-size: 38px; }
.perk + .perk { padding-left: 24px; border-left: 1px solid rgba(169,135,80,.26); }

/* О враче */
.doc { padding: 1px 0 18px; }
.doc .w {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  max-width: 1112px;
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 28px 36px;
  background:
    radial-gradient(ellipse at 14% 0%, rgba(255,255,255,.87), transparent 61%),
    linear-gradient(120deg, #f6f2e8, #e1ece3);
  border: 1px solid rgba(169,135,80,.14);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.doc img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; border-radius: 18px; box-shadow: 0 8px 24px rgba(39,67,55,.11); }
.doc h2 { color: var(--sage-dark); font-size: clamp(36px, 4.4vw, 54px); font-weight: 500; line-height: 1.05; }
.doc p { margin: 18px 0 22px; font-size: 19px; }
.lnk { padding-bottom: 3px; color: var(--sage-dark); border-bottom: 1px solid var(--champagne); font-size: 18px; text-decoration: none; }
.lnk:hover { color: var(--champagne-deep); }

/* Заголовки */
.hl { display: flex; align-items: center; gap: 28px; }
.hl h2 { color: var(--sage-dark); font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; line-height: 1.05; }
.hl::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: linear-gradient(90deg, var(--champagne-deep), transparent); }

/* Сертификаты */
.cert { padding: 44px 0 52px; background: linear-gradient(125deg, #fcfaf4, #f3f1e7); }
.cert-lead { max-width: 760px; margin: 18px 0 28px; font-size: 19px; }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; margin: 0; padding: 0; list-style: none; }
.sc { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; cursor: pointer; }
.sci { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(145deg,#fffefa,#f8f3e8); border: 1px solid rgba(169,135,80,.30); border-radius: 12px; box-shadow: 0 5px 16px rgba(47,77,61,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sc:hover .sci { border-color: rgba(169,135,80,.50); box-shadow: 0 12px 26px rgba(47,77,61,.13); transform: translateY(-3px); }
.sci img { position: absolute; left: 10px; top: 10px; display: block; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.scy { margin-top: 8px; color: var(--champagne-deep); font-family: var(--display); font-size: 30px; line-height: 1; }
.sct { color: var(--ink); font-size: 17px; line-height: 1.3; }
.scs { color: var(--muted); font-size: 15px; line-height: 1.35; }
#lb { width: 100%; max-width: min(96vw,1100px); max-height: 96vh; padding: 0; overflow: visible; color: #fff; background: transparent; border: 0; }
#lb::backdrop { background: rgba(17,31,26,.90); backdrop-filter: blur(4px); }
#lb figure { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
#lb img { display: block; max-width: 100%; max-height: 82vh; object-fit: contain; background: #fff; }
#lb figcaption { max-width: 820px; padding: 8px 56px; background: rgba(20,38,31,.9); font-size: 17px; line-height: 1.4; text-align: center; }
.lbx, .lbn { all: unset; box-sizing: border-box; position: absolute; width: 48px; height: 48px; color: var(--sage-dark); background: var(--pearl); border-radius: 50%; cursor: pointer; font-size: 34px; line-height: 46px; text-align: center; }
.lbx { z-index: 2; top: -6px; right: -6px; }
.lbn { top: 42%; }
.lbp { left: -6px; }
.lbf { right: -6px; }
.lbx:hover, .lbn:hover { color: #fff; background: var(--sage-deep); }

/* Услуги */
.svc { padding: 36px 0 40px; color: var(--ink); background: radial-gradient(ellipse at 88% 0%, rgba(255,255,255,.58), transparent 59%), linear-gradient(125deg,var(--pearl),var(--accent-mist)); }
.svc .grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 24px; }
.s { display: flex; align-items: center; gap: 22px; padding: 22px 24px; color: var(--ink); background: linear-gradient(140deg,#fffefa,#f5f0e5); border: 1px solid rgba(169,135,80,.22); border-radius: 20px; box-shadow: var(--shadow-card); }
.s svg { box-sizing: content-box; height: 60px; padding-right: 0; color: var(--sage); font-size: 52px; }
.s h3 { font-size: 28px; font-weight: 500; line-height: 1.1; }
.s p { margin: 4px 0 0; color: var(--muted); font-size: 17px; }

/* Этапы */
.steps { padding: 44px 0 36px; background: linear-gradient(125deg,#faf8f2,#f3f4ec); }
.st { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 28px; }
.st div { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: linear-gradient(130deg,#fffefa,#eef4ef); border: 1px solid var(--line-sage); border-radius: 18px; box-shadow: 0 6px 17px rgba(40,70,56,.065); font-size: 20px; line-height: 1.3; }
.st i { display: flex; flex: none; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; color: var(--sage-dark); background: linear-gradient(145deg,#d8e7dc,#9fbba9); border: 1px solid rgba(255,255,255,.62); border-radius: 50%; font-family: var(--display); font-size: 30px; font-style: normal; line-height: 1; }
.note { display: flex; align-items: center; gap: 20px; margin: 22px 0 0; color: var(--muted); font-style: italic; text-align: center; }
.note::before, .note::after { content: ""; flex: 1; height: 1px; background: var(--champagne); }

/* Цены */
.pr { padding: 36px 0 40px; color: var(--ink); background: radial-gradient(ellipse at 92% 5%,rgba(255,255,255,.72),transparent 48%), radial-gradient(ellipse at 8% 90%,rgba(255,255,255,.48),transparent 50%), linear-gradient(125deg,rgba(126,155,141,.90),var(--accent-mist) 52%,var(--sage-mint)); }
.pr::before { right: -92px; top: -54px; color: rgba(255,255,255,.34); transform: rotate(190deg); }
.pr::after { left: -100px; bottom: -72px; color: rgba(255,255,255,.28); transform: rotate(-17deg); }
.pr .w { max-width: 900px; }
.pr .hl { justify-content: center; }
.pr .hl::before { content: ""; flex: 1; min-width: 40px; max-width: 200px; height: 1px; background: linear-gradient(270deg,var(--champagne-deep),transparent); }
.pr .hl::after { max-width: 200px; }
.pr .sub { margin: 8px 0 18px; color: var(--ink); font-size: 18px; font-style: normal; font-weight: 500; text-align: center; }
.row { display: flex; align-items: center; gap: 20px; margin: 0; padding: 13px 28px; color: var(--ink); background: rgba(255,253,247,.92); border: 0; border-bottom: 1px solid rgba(54,87,76,.12); border-radius: 0; box-shadow: none; font-size: 17px; text-decoration: none; }
.pr .sub + .row { border-radius: 16px 16px 0 0; }
.row:last-of-type { border-bottom: 0; border-radius: 0 0 16px 16px; }
.row svg { display: none; }
.row em { min-width: 130px; margin-left: auto; padding-left: 24px; color: var(--ink); border-left: 1px solid rgba(54,87,76,.12); font-size: 17px; font-style: normal; font-weight: 700; text-align: right; }
.pnote { margin: 16px 0 0; color: var(--ink); font-size: 16px; font-style: normal; text-align: center; }
.pbtn { display: table; margin: 20px auto 0; }

/* Отзывы, вопросы, документы */
.rv { padding: 36px 0 8px; }
.rv .w { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.q { height: 70px; padding-top: 26px; padding-right: 20px; color: var(--champagne-deep); border-right: 1px solid var(--champagne); font-family: var(--display); font-size: 100px; line-height: .7; }
.rv h2 { font-size: clamp(32px,4vw,46px); font-weight: 500; }
.rv p { margin: 4px 0 0; font-size: 19px; font-style: italic; }
.faq { padding: 28px 0 12px; }
details { margin: 8px 0; padding: 14px 20px; background: linear-gradient(140deg,#fffefa,#f7f3ea); border: 1px solid rgba(169,135,80,.22); border-radius: 14px; box-shadow: 0 5px 18px rgba(42,75,57,.055); font-size: 20px; }
details[open] { margin: 8px 0; padding: 14px 20px; border-color: rgba(169,135,80,.48); }
summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--champagne-deep); font-size: 30px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 8px 0 2px; color: var(--muted); font-size: 18px; font-style: normal; }
.docs { padding: 28px 0 40px; }
.dg { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 0 28px; margin-top: 20px; }
.dg details { font-size: 19px; }
.dg details a { display: block; margin-top: 10px; color: var(--sage-deep); font-size: 16px; line-height: 1.4; }

/* Запись */
.zp { padding: 72px 0 80px; background: radial-gradient(ellipse at 20% 15%,rgba(183,206,195,.18),transparent 36%); }
.zp .w { max-width: 760px; padding: 36px 40px; background: linear-gradient(140deg,#fffefa,#f8f4eb); border: 1px solid rgba(169,135,80,.22); border-radius: 24px; box-shadow: var(--shadow-soft); }
.zp h2 { color: var(--sage-dark); font-size: clamp(34px,4.4vw,52px); font-weight: 500; }
.zp .lead { margin: 14px 0 30px; color: var(--muted); }
.zp form { display: grid; gap: 18px; }
.zp .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.zp label { display: flex; flex-direction: column; gap: 6px; color: var(--sage-dark); font-size: 16px; }
.zp input, .zp select, .zp textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: rgba(255,255,252,.92); border: 1px solid rgba(126,155,141,.43); border-radius: 12px; font: inherit; font-size: 17px; box-shadow: inset 0 1px 2px rgba(45,70,60,.035); }
.zp textarea { min-height: 110px; resize: vertical; }
.zp .agree { flex-direction: row; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 15px; }
.zp .agree input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--sage); }
.zp .agree a { color: var(--sage-deep); }
.zp .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zp button.btn { justify-self: start; cursor: pointer; font: inherit; font-size: 17px; }
.zp button.btn[disabled] { cursor: wait; opacity: .6; }
.zp .zst { min-height: 1.6em; font-size: 17px; }
.zp .zst.ok { color: #1f5e3a; }
.zp .zst.err { color: #9b2c2c; }

/* Контакты */
.ct { padding: 36px 0 40px; color: var(--ink); background: radial-gradient(ellipse at 20% 10%,rgba(255,255,255,.74),transparent 50%), linear-gradient(115deg,var(--accent-mist),var(--pearl) 55%,var(--sage-mint)); }
.ct::before { left: 34%; top: -92px; color: rgba(255,255,255,.26); transform: rotate(152deg); }
.ct::after { right: -72px; bottom: -94px; color: rgba(54,87,76,.10); transform: rotate(-30deg); }
.ct .w { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ct h2 { font-size: clamp(34px,4.4vw,52px); font-weight: 500; }
.ln { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 24px; }
.ln svg { color: var(--sage); font-size: 30px; }
.ln.big { color: var(--sage-dark); font-family: var(--display); font-size: clamp(34px,4.6vw,52px); font-weight: 500; text-decoration: none; }
.ln.big svg { color: var(--sage-deep); font-size: 36px; }
.ct .btn { margin-top: 26px; }
.fr { position: relative; padding: 14px; }
.fr::before, .fr::after { content: ""; position: absolute; width: 42px; height: 42px; border: 2px solid var(--champagne-deep); }
.fr::before { top: 0; right: 0; border-bottom: 0; border-left: 0; }
.fr::after { bottom: 0; left: 0; border-top: 0; border-right: 0; }
.fr img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 100% 30%; border-radius: 18px; box-shadow: 0 10px 28px rgba(39,67,55,.12); }

/* Подвал */
.lg, footer, .dis { color: #fffdf7; background: radial-gradient(ellipse at 90% 0%,rgba(215,231,225,.18),transparent 57%), linear-gradient(125deg,var(--sage-deep),#527568); }
.lg { padding: 36px 24px 8px; text-align: center; }
.lg::before { left: -80px; top: -60px; color: rgba(255,255,255,.17); transform: rotate(-20deg); }
.lg img { display: block; width: min(260px,70%); aspect-ratio: 1 / 1; margin: 0 auto; object-fit: cover; border: 1px solid rgba(255,255,255,.20); border-radius: 24px; box-shadow: 0 12px 32px rgba(20,44,36,.18); }
footer::before { right: -76px; top: -80px; color: rgba(255,255,255,.14); transform: rotate(198deg); }
footer .w { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 18px; padding-bottom: 12px; }
footer b { color: #fffdf7; font-family: var(--display); font-size: 32px; font-weight: 600; }
footer .m { display: flex; align-items: center; gap: 10px; }
footer .m span { color: #fffdf7 !important; }
.dis { padding: 12px 24px 20px; color: #e4ece5; border-top: 1px solid rgba(217,201,167,.34); font-size: 15px; font-style: italic; text-align: center; }

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

@media (max-width: 900px) {
  .hero .w, .doc .w, .ct .w { grid-template-columns: 1fr; }
  .hero-t { padding: 44px 24px; }
  .hero-p, .hero-p img { min-height: 320px; }
  .hero-p::after { background: linear-gradient(180deg,rgba(248,245,235,.16),transparent 30%); }
  .perk + .perk { padding-left: 0; border-left: 0; }
  .doc .w { gap: 28px; margin-right: 12px; margin-left: 12px; padding: 22px 20px; }
  .svc .grid { grid-template-columns: 1fr; }
  .s { padding: 18px; }
  .st { grid-template-columns: 1fr; }
  .row { font-size: 17px; }
  .row em { font-size: 15px; }
  .tel { padding: 10px 18px; }
  .zp .w { padding: 26px 20px; }
}

@media (max-width: 640px) {
  .w { padding-right: 18px; padding-left: 18px; }
  header .w { justify-content: center; gap: 12px 18px; }
  .logo img { width: 54px; height: 54px; }
  .logo b { font-size: 36px; }
  nav { width: 100%; justify-content: center; gap: 8px 24px; }
  .tel { font-size: 16px; }
  .hero h1 { font-size: clamp(42px,13vw,56px); }
  .hero-t { padding: 38px 20px 42px; }
  .hero-p, .hero-p img { min-height: 300px; }
  .perk { font-size: 17px; }
  .doc h2 { font-size: 38px; }
  .hl { gap: 16px; }
  .cgrid { grid-template-columns: repeat(2,1fr); gap: 20px 14px; }
  .sct { font-size: 16px; }
  .scs { font-size: 14px; }
  #lb figcaption { padding: 10px 12px 62px; }
  .lbn { top: auto; bottom: -4px; }
  .lbp { left: 8px; }
  .lbf { right: 8px; }
  .row { align-items: flex-start; gap: 10px; padding: 13px 16px; }
  .row em { min-width: 96px; padding-left: 12px; }
  .rv .btn { margin-left: 0 !important; }
  .zp .two { grid-template-columns: 1fr; }
  .ln { font-size: 20px; }
  footer .w { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 18.11.2026: сертификаты — на компьютере сначала 4 и кнопка «Посмотреть все остальное»; на телефоне лента листается вбок */
.cgrid:not(.open) li.more { display: none; }
.cmore { display: table; margin: 28px auto 0; cursor: pointer; }
@media (max-width: 640px) {
  .cgrid { display: flex; gap: 14px; margin-right: -20px; padding: 0 20px 14px 0; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .cgrid li, .cgrid:not(.open) li.more { display: block; flex: 0 0 64%; scroll-snap-align: start; }
  .cmore { display: none; }
}
