/* Lesya.haircolor — основной стиль */
:root {
  --milk: #f8f4ee;
  --milk-2: #f2ece4;
  --beige: #e9dccb;
  --beige-d: #c9b399;
  --grey: #e7e4e0;
  --grey-d: #b9b4ae;
  --graphite: #3a3a3c;
  --muted: #7b746c;
  --black: #141414;
  --olive: #5e6240;
  --olive-d: #3f422b;
  --olive-l: #a9ab8c;
  --olive-bg: #e9e8da;
  --white: #fffdfa;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--beige); color: var(--black); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--black); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6.4vw, 88px); }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: clamp(23px, 2.3vw, 30px); }
h4 { font-size: 21px; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--olive); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--olive); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: var(--graphite); max-width: 640px; }
.muted { color: var(--muted); }
.serif-quote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 40px); line-height: 1.3; color: var(--black); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--olive); border-radius: 0;
  background: var(--olive); color: var(--white); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--olive); }
.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: var(--olive); color: var(--white); }
.btn--light { background: var(--white); color: var(--olive-d); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--black);
  border-bottom: 1px solid var(--olive-l); padding-bottom: 4px;
  transition: gap .3s var(--ease), border-color .3s;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 16px; border-color: var(--olive); color: var(--olive); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 238, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--grey); }
.site-header .wrap { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; color: var(--black); }
.logo b { font-family: var(--serif); font-weight: 500; font-size: 29px; letter-spacing: .02em; }
.logo span { font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-size: 13px; letter-spacing: .04em; color: var(--graphite); position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--olive); transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--black); }
.header-cta { min-height: 44px; padding: 0 22px; font-size: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1px; background: var(--black); transition: transform .35s var(--ease), opacity .2s; }
.burger::before { top: 16px; } .burger span { top: 22px; } .burger::after { top: 28px; }
.menu-open .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--head-h) 0 0 0; z-index: 49;
  background: var(--milk); padding: 32px var(--gut) 48px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 30px; text-decoration: none; color: var(--black); padding: 6px 0; border-bottom: 1px solid var(--grey); }
.mobile-menu .btn { margin-top: 24px; }
.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--beige { background: var(--milk-2); }
.section--dark { background: var(--olive-d); color: #dcdccb; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--olive-l); }
.section--dark .eyebrow::before { background: var(--olive-l); }
.section--dark em { color: var(--olive-l); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }
.divider { height: 1px; background: var(--grey); border: 0; margin: 0; }

/* ---------- Первый экран ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-name { font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.hero-media { position: relative; }
.hero-media .ph { aspect-ratio: 4 / 5; }
.hero-badge {
  position: absolute; left: -32px; bottom: 40px; background: var(--white); padding: 20px 24px;
  font-size: 13px; line-height: 1.5; max-width: 230px; box-shadow: 0 20px 50px -30px rgba(20, 20, 20, .35);
}
.hero-badge b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--black); margin-bottom: 4px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .ph { aspect-ratio: 4 / 4.2; }
  .hero-badge { left: 16px; bottom: 16px; }
}

.page-hero { padding: clamp(48px, 7vw, 100px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--grey); }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 76px); max-width: 900px; }
.page-hero .lead { margin-top: 8px; }
.crumbs { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--black); }

/* ---------- Фото-заглушки ---------- */
.ph {
  position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(255, 253, 250, .7), transparent 60%),
    linear-gradient(160deg, var(--beige) 0%, #d8c6b0 55%, #bfa78c 100%);
  display: flex; align-items: flex-end;
}
.ph--grey { background: radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.6), transparent 60%), linear-gradient(160deg, #ebe8e4, #cfcac4); }
.ph--dark { background: radial-gradient(120% 80% at 30% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(160deg, #57524d, #2a2827); }
.ph--copper { background: radial-gradient(120% 80% at 20% 10%, rgba(255,240,225,.6), transparent 60%), linear-gradient(160deg, #e2bfa0, #b9764e); }
.ph--blond { background: radial-gradient(120% 80% at 20% 10%, rgba(255,255,255,.8), transparent 60%), linear-gradient(160deg, #f3ead9, #dcc9a6); }
.ph--brown { background: radial-gradient(120% 80% at 20% 10%, rgba(255,245,235,.4), transparent 60%), linear-gradient(160deg, #b7a089, #6f5a47); }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-cap {
  position: relative; margin: 14px; padding: 6px 10px; background: rgba(255, 253, 250, .82);
  font-size: 11px; letter-spacing: .06em; color: var(--muted); line-height: 1.4;
}
.ph > img + .ph-cap { display: none; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--white); padding: clamp(26px, 3vw, 40px); border: 1px solid var(--grey); transition: border-color .35s var(--ease), transform .35s var(--ease); }
.card:hover { border-color: var(--beige-d); }
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card-num { font-family: var(--serif); font-size: 15px; color: var(--olive); letter-spacing: .1em; margin-bottom: 18px; display: block; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { transform: translateY(-4px); }
.card .link-arrow { margin-top: 18px; }

.teaser { text-decoration: none; color: inherit; display: block; border-top: 1px solid var(--grey-d); padding-top: 24px; }
.teaser h3 { transition: color .3s; }
.teaser:hover h3 { color: var(--muted); }
.teaser .num { font-size: 12px; letter-spacing: .18em; color: var(--olive); display: block; margin-bottom: 14px; }

.brands { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.brand-chip { border: 1px solid var(--olive-l); color: var(--olive) !important; padding: 10px 22px; font-family: var(--serif); font-size: 22px; letter-spacing: .12em; color: var(--black); }

/* ---------- Длинные статьи с оглавлением ---------- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 9vw, 130px); }
.toc { position: sticky; top: calc(var(--head-h) + 32px); align-self: start; font-size: 14px; }
.toc-title { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--grey); }
.toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.4; transition: color .25s, border-color .25s; }
.toc a:hover { color: var(--black); }
.toc a.is-active { color: var(--olive); border-color: var(--olive); }
.doc-body { min-width: 0; max-width: 760px; }
.doc-body section { padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--grey); }
.doc-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body h2 { font-size: clamp(30px, 3.4vw, 44px); }
.doc-body h3 { font-size: 24px; margin-top: 1.4em; }
.doc-body ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.doc-body ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.doc-body ul li::before { content: ""; position: absolute; left: 0; top: .82em; width: 12px; height: 1px; background: var(--olive); }
.sec-num { font-family: var(--serif); font-size: 15px; color: var(--olive); letter-spacing: .14em; display: block; margin-bottom: 10px; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--white); border: 1px solid var(--grey); padding: 20px 22px; }
}

.note {
  background: var(--white); border-left: 2px solid var(--olive);
  padding: 24px 28px; margin: 28px 0; font-size: 15.5px;
}
.note b:first-child { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--black); margin-bottom: 6px; }
.note p:last-child { margin: 0; }
.note--beige { background: var(--olive-bg); border-color: var(--olive-l); }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--grey); border: 1px solid var(--grey); margin: 20px 0 28px; }
.mini-grid > div { background: var(--white); padding: 20px 22px; }
.mini-grid b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--black); margin-bottom: 4px; }
.mini-grid p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- Шаги диагностики ---------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--grey-d); }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--grey-d); }
.step-n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--olive); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 8px; } .step-n { font-size: 40px; } }

/* ---------- Чек-лист ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--grey); border: 1px solid var(--grey); }
.checklist li { background: var(--white); display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 28px; align-items: start; }
.checklist .ico { width: 44px; height: 44px; border: 1px solid var(--olive-l); border-radius: 50%; display: grid; place-items: center; }
.checklist .ico svg { width: 20px; height: 20px; stroke: var(--olive); fill: none; stroke-width: 1.4; }
.checklist b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--black); line-height: 1.25; margin-bottom: 4px; }
.checklist p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Аккордеон ---------- */
.faq { border-top: 1px solid var(--grey-d); }
.faq details { border-bottom: 1px solid var(--grey-d); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 27px); color: var(--black); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 14px; height: 14px;
  background: linear-gradient(var(--olive), var(--olive)) center / 14px 1px no-repeat, linear-gradient(var(--olive), var(--olive)) center / 1px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 28px; max-width: 720px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq details[open] .answer { animation: fadeDown .45s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Прайс ---------- */
.price-list { border-top: 1px solid var(--grey-d); }
.price-item { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--grey-d); align-items: baseline; }
.price-item h3 { font-size: 26px; margin: 0; }
.price-item p { margin: 0; color: var(--muted); font-size: 15px; }
.price-meta { text-align: right; white-space: nowrap; }
.price-meta b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--black); }
.price-meta span { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) {
  .price-item { grid-template-columns: 1fr; gap: 8px; }
  .price-meta { text-align: left; display: flex; gap: 16px; align-items: baseline; }
}

/* ---------- Портфолио ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { border: 1px solid var(--grey-d); background: transparent; padding: 10px 18px; font: 13px var(--sans); letter-spacing: .04em; color: var(--graphite); cursor: pointer; transition: all .25s; }
.filter:hover { border-color: var(--black); }
.filter.is-active { background: var(--olive); color: var(--white); border-color: var(--olive); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.work { cursor: zoom-in; }
.work .ph { transition: transform .8s var(--ease); }
.work-media { overflow: hidden; }
.work:hover .ph { transform: scale(1.03); }
.work-info { padding: 14px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.work-info b { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--black); }
.work-info span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.work.is-hidden { display: none; }

.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 1px; background: var(--white); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 13px; color: var(--black); pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.ba-tag { position: absolute; top: 14px; padding: 4px 10px; background: rgba(255,253,250,.88); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--black); pointer-events: none; }
.ba-tag--l { left: 14px; } .ba-tag--r { right: 14px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 20, .92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; animation: fade .3s var(--ease); }
.lightbox-inner { width: min(560px, 100%); }
.lightbox-inner .ph, .lightbox-inner .ba { max-height: 78vh; }
.lightbox-cap { color: #d9d4cd; margin-top: 14px; font-size: 14px; }
.lightbox-cap b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--white); display: block; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; background: none; color: var(--white); font-size: 30px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Формы ---------- */
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field > label, .field legend { font-size: 13px; letter-spacing: .06em; color: var(--black); font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); margin: -2px 0 2px; }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--grey-d); background: transparent; padding: 12px 0;
  font: 16px var(--sans); color: var(--black); border-radius: 0; transition: border-color .25s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border: 1px solid var(--grey-d); font-size: 14px; cursor: pointer; transition: all .25s; }
.choice input:checked + span { background: var(--olive); color: var(--white); border-color: var(--olive); }
.choice input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.form-card { background: var(--white); border: 1px solid var(--grey); padding: clamp(24px, 4vw, 56px); }
.form-step { border-top: 1px solid var(--grey); padding-top: 28px; }
.form-step:first-child { border-top: 0; padding-top: 0; }
.form-step h3 { font-size: 26px; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Контакты ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--grey-d); }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--grey-d); }
.contact-list span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 500px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }
.map { aspect-ratio: 4 / 3; width: 100%; border: 0; filter: grayscale(1) contrast(.95); background: var(--grey); }
.qr-box { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.qr-box canvas, .qr-box img, #qr > * { width: 160px; height: 160px; background: var(--white); padding: 10px; }

/* ---------- CTA блок ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 820px; margin: 0 auto 20px; }
.cta p { max-width: 560px; margin: 0 auto 36px; }
.cta .btn-row { justify-content: center; }

/* ---------- Подвал ---------- */
.site-footer { background: #1d1e16; color: #a59d93; padding: clamp(64px, 8vw, 100px) 0 32px; font-size: 14px; }
.site-footer .logo { color: var(--white); }
.site-footer a { text-decoration: none; color: #d9d4cd; }
.site-footer a:hover { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid #2e2c2a; }
.foot-grid h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #7b746c; font-weight: 500; margin-bottom: 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 12px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Плавающая кнопка ---------- */
.float-book {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.float-book.is-visible { transform: none; }
.float-book .btn { width: 100%; box-shadow: 0 16px 40px -16px rgba(0,0,0,.45); }
@media (max-width: 760px) { .float-book { display: block; } body { padding-bottom: 0; } .site-footer { padding-bottom: 100px; } }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Главная-визитка ---------- */
.landing { background: #1d1e16; color: #ecebe0; min-height: 100vh; }
.hero-photo { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: #1d1e16; color: #ecebe0; }
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 30%; z-index: 0; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(29,30,22,.78) 0%, rgba(29,30,22,.45) 38%, rgba(29,30,22,0) 62%),
    linear-gradient(180deg, rgba(29,30,22,.35) 0%, rgba(29,30,22,0) 18%, rgba(29,30,22,0) 72%, #1d1e16 100%);
}
.hero-top, .hero-text { position: relative; z-index: 2; }
.hero-top { padding: 26px var(--gut) 0; }
.script-logo { font-family: "Great Vibes", "Cormorant Garamond", cursive; font-weight: 400; font-size: 38px; line-height: 1; color: #fffdfa; text-decoration: none; display: inline-block; }
.script-sub { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: #dcdccb; margin-top: 10px; }
.hero-text { margin-top: auto; padding: 0 var(--gut) 72px; max-width: 640px; }
.hero-eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #dcdccb; margin: 0 0 22px; }
.hero-photo h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: #fffdfa;
  font-size: clamp(40px, 11.5vw, 76px); line-height: 1.04; margin: 0 0 22px; max-width: 62%;
}
.hero-lead { color: #ecebe0; font-size: 15.5px; line-height: 1.6; max-width: 60%; margin: 0 0 30px; }
.pill-row { display: grid; gap: 12px; justify-items: start; }
.pill {
  display: inline-flex; align-items: center; gap: 18px; min-height: 54px; padding: 0 26px 0 28px;
  border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  background: #6b6e48; color: #fffdfa; border: 1px solid #6b6e48;
}
.pill::after { content: "→"; font-size: 20px; line-height: 1; }
.pill:hover { background: #fffdfa; color: var(--olive-d); border-color: #fffdfa; }
.pill--ghost { background: rgba(29,30,22,.3); border-color: rgba(255,253,250,.65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill--down::after { content: "↓"; }

.features {
  position: relative; z-index: 3; margin: -36px var(--gut) 0; padding: 26px 12px;
  background: #ece6da; color: var(--graphite); border-radius: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center;
}
.features svg { width: 34px; height: 34px; stroke: var(--olive-d); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 12px; display: block; }
.features span { display: block; font-size: 13px; line-height: 1.35; }
.landing-more { padding: 48px var(--gut) 64px; max-width: 640px; }
.landing-more p { color: #dcdccb; margin: 0 0 18px; }
.landing-more .muted-l { color: #a9ab8c; font-size: 14px; }
.landing-more a { color: #fffdfa; text-decoration: none; border-bottom: 1px solid var(--olive-l); }

@media (max-width: 520px) {
  .hero-photo > img { object-position: 63% 30%; }
  .hero-photo h1 { font-size: 40px; max-width: 58%; }
  .hero-lead { max-width: 62%; font-size: 15px; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
}
@media (min-width: 900px) {
  .hero-photo > img { object-position: 70% 28%; }
  .hero-top { padding: 34px clamp(32px, 6vw, 96px) 0; }
  .hero-text { padding: 0 clamp(32px, 6vw, 96px) 120px; }
  .hero-photo h1 { max-width: 560px; }
  .hero-lead { max-width: 440px; }
  .pill-row { grid-auto-flow: column; justify-content: start; }
  .features { margin: -56px auto 0; max-width: 1000px; padding: 32px 24px; }
  .landing-more { margin: 0 auto; text-align: center; }
}

/* ---------- Блок «Обо мне» (страница правил) ---------- */
.about-hero { padding-bottom: 28px; }
.about-hero::after {
  background:
    linear-gradient(90deg, rgba(29,30,22,.8) 0%, rgba(29,30,22,.45) 40%, rgba(29,30,22,0) 64%),
    linear-gradient(180deg, rgba(29,30,22,.35) 0%, rgba(29,30,22,0) 18%, rgba(29,30,22,0) 60%, rgba(29,30,22,.85) 92%);
}
.about-hero .hero-text { padding-bottom: 40px; max-width: none; }
.about-hero .hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.about-hero .hero-eyebrow::after { content: ""; width: 64px; height: 1px; background: rgba(236,235,224,.6); }
.about-hero h1 { font-size: clamp(36px, 10vw, 68px); line-height: 1.06; }
.hero-row { display: flex; gap: 6%; align-items: flex-end; margin-bottom: 28px; }
.about-hero .hero-lead { font-size: 14px; line-height: 1.55; flex: 0 0 52%; max-width: none; margin: 0; }
.hero-quote { flex: 1; text-align: center; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.35; color: #fffdfa; margin: 0; padding: 14px 0; position: relative; }
.hero-quote::before, .hero-quote::after { content: ""; position: absolute; left: 25%; right: 25%; height: 1px; background: rgba(236,235,224,.55); }
.hero-quote::before { top: 0; } .hero-quote::after { bottom: 0; }
.hero-quote b { display: block; font-family: var(--serif); font-size: 40px; line-height: .6; color: #c9b399; margin: 10px 0 4px; font-style: normal; font-weight: 500; }

.about-card {
  position: relative; z-index: 3; margin-top: -28px; border-radius: 32px 32px 0 0;
  background: radial-gradient(120% 60% at 80% 0%, #faf6ef 0%, #efe9de 60%, #e8e1d3 100%);
  color: var(--graphite); padding: 40px var(--gut) 56px;
}
.about-card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8vw, 44px); color: var(--black); margin: 0 0 14px; }
.about-card p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.philosophy { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 18px; background: #6b6e48; color: #f4f2e6; border-radius: 18px; padding: 18px 22px; margin: 26px 0 40px; font-size: 15px; line-height: 1.5; }
.philosophy svg { width: 36px; height: 36px; stroke: #f4f2e6; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; justify-self: center; }
.philosophy > div { border-left: 1px solid rgba(244,242,230,.4); padding-left: 18px; }
.philosophy b { color: #fffdfa; }
.approach-title { display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: clamp(28px, 7.5vw, 40px); font-weight: 500; color: var(--black); margin: 0 0 22px; }
.approach-title::before, .approach-title::after { content: ""; flex: 1; height: 1px; background: var(--grey-d); }
.approach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.approach > div { padding: 4px 6px; border-left: 1px solid var(--grey-d); }
.approach > div:first-child { border-left: 0; }
.approach svg { width: 32px; height: 32px; stroke: var(--olive-d); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 12px; display: block; }
.approach span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--graphite); overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 520px) {
  .about-hero h1 { font-size: 34px; max-width: 54%; }
  .about-hero .hero-lead { font-size: 13px; }
  .hero-quote { font-size: 15px; }
  .about-hero .pill { min-height: 50px; }
  .approach span { font-size: 11px; }
  .approach > div { padding: 4px 3px; }
}
@media (min-width: 900px) {
  .about-hero .hero-text { padding-bottom: 90px; max-width: 820px; }
  .about-hero h1 { max-width: 600px; }
  .about-hero .hero-lead { font-size: 16px; flex-basis: 50%; }
  .hero-quote { font-size: 21px; }
  .about-card { padding: 64px max(var(--gut), calc((100% - 880px) / 2)) 72px; }
  .approach span { font-size: 14px; }
}

/* ---------- Простая шапка внутренней страницы ---------- */
.simple-head { border-bottom: 1px solid var(--grey); }
.simple-head .wrap { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.simple-head .btn { min-height: 44px; padding: 0 20px; font-size: 12px; }
@media (max-width: 520px) { .simple-head .btn { display: none; } }
.simple-foot { background: #1d1e16; color: #a9ab8c; text-align: center; padding: 48px var(--gut) 110px; font-size: 13px; }
.simple-foot a { color: #dcdccb; text-decoration: none; }
.float-book { display: block; }
@media (min-width: 761px) { .float-book { left: auto; right: 24px; bottom: 24px; width: 320px; } }
.rule-list { list-style: none; padding: 0; margin: 20px 0 28px; border-top: 1px solid var(--grey-d); }
.rule-list li { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--grey-d); }
.rule-list li::before { display: none; }
.rule-list b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--black); line-height: 1.3; }
.doc-body .rule-list li { padding-left: 0; }
@media (max-width: 600px) { .rule-list li { grid-template-columns: 1fr; gap: 4px; } }
.tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; margin-bottom: 10px; }
.tag--easy { background: var(--olive-bg); color: var(--olive-d); }
.tag--hard { background: var(--beige); color: #7a5a3a; }

/* ---------- Анимация кнопок ---------- */
.pill { position: relative; overflow: hidden; isolation: isolate; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .2s var(--ease), box-shadow .3s; }
.pill::after { display: inline-block; animation: arrowNudge 2.6s var(--ease) infinite; }
.pill--ghost::after { animation-delay: 1.3s; }
.pill::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,253,250,.32), transparent);
  transform: skewX(-20deg); animation: shine 4.2s ease-in-out infinite;
}
.pill--ghost::before { background: linear-gradient(100deg, transparent, rgba(255,253,250,.16), transparent); animation-delay: 2.1s; }
.pill:not(.pill--ghost) { animation: softGlow 4.2s ease-in-out infinite; }
.pill:hover { transform: translateY(-2px); }
.pill:hover::after { animation: none; transform: translateX(6px); transition: transform .3s var(--ease); }
.pill:active { transform: scale(.97); }
@keyframes arrowNudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(6px); } 88% { transform: translateX(0); } }
@keyframes shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
@keyframes softGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(107,110,72,0); } 50% { box-shadow: 0 0 0 6px rgba(107,110,72,.25); } }

/* ---------- «Обо мне» v2 (страница правил) ---------- */
.about2 {
  position: relative; color: #dcdccb; overflow: hidden;
  background:
    radial-gradient(60% 50% at 25% 30%, rgba(120, 90, 50, .28), transparent 70%),
    radial-gradient(50% 40% at 85% 10%, rgba(107, 110, 72, .25), transparent 70%),
    #202217;
}
.about2-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 24px var(--gut); }
.about2-head .script-logo { font-size: 36px; text-align: center; }
.about2-head .script-sub { font-size: 9.5px; margin-top: 8px; }
.about2-nav { display: flex; gap: 30px; }
.about2-nav a { color: #ecebe0; text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s; }
.about2-nav a:hover, .about2-nav a[aria-current] { border-color: #e6d5bd; }
.about2-book { display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border: 1px solid rgba(236,235,224,.7); border-radius: 999px; color: #fffdfa; text-decoration: none; font-size: 14px; transition: background .3s, color .3s; white-space: nowrap; }
.about2-book:hover { background: #fffdfa; color: var(--olive-d); }

.about2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); max-width: 1240px; margin: 0 auto; padding: 8px var(--gut) 0; align-items: start; }
.about2-photo { position: relative; margin: 0; }
.about2-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 95% 30%;
  -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 42%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 58% 60% at 50% 42%, #000 62%, transparent 100%);
}
.about2-quote {
  position: absolute; left: 6%; right: 6%; bottom: 7%; margin: 0; padding: 26px 18px;
  text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3; color: #f4efe4;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.about2-quote::before, .about2-quote::after { content: ""; position: absolute; left: 32%; right: 32%; height: 1px; background: rgba(230,213,189,.6); }
.about2-quote::before { top: 0; } .about2-quote::after { bottom: 0; }
.about2-quote .q { position: absolute; font-family: var(--serif); font-style: normal; font-size: 64px; line-height: 1; color: #e6d5bd; }
.about2-quote .q--open { left: 0; top: -6px; }
.about2-quote .q--close { right: 4%; bottom: -30px; }

.about2-text { padding-top: 24px; }
.about2-eyebrow { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #dcdccb; margin: 0 0 22px; }
.about2-eyebrow::after { content: ""; width: 72px; height: 1px; background: rgba(236,235,224,.5); }
.about2 h1 { font-family: var(--serif); font-weight: 400; color: #f4efe4; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; margin: 0 0 28px; }
.about2 h1 em { display: block; font-style: italic; color: #e6d5bd; font-size: 1.45em; line-height: 1.05; margin-top: 4px; }
.about2-text p { font-size: 15.5px; line-height: 1.6; margin: 0 0 18px; color: #dcdccb; }
.about2-philo {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center;
  background: rgba(107, 110, 72, .32); border: 1px solid rgba(201, 203, 166, .25); border-radius: 18px;
  padding: 18px 22px; margin: 10px 0 26px;
}
.about2-philo svg { width: 32px; height: 32px; stroke: #e6d5bd; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.about2-philo p { margin: 0; color: #ecebe0; }
.about2-philo b { color: #fffdfa; }
.about2-sign { font-family: "Great Vibes", cursive; font-size: 62px !important; color: #e6d5bd !important; text-align: right; margin: 0 8% 0 0 !important; transform: rotate(-5deg); line-height: 1.2 !important; }

.about2-features {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1080px;
  margin: 48px auto 0; margin-left: max(var(--gut), calc((100% - 1080px) / 2)); margin-right: max(var(--gut), calc((100% - 1080px) / 2));
  padding: 30px 12px; text-align: center; border-radius: 28px;
  background: rgba(255, 253, 250, .05); border: 1px solid rgba(230, 213, 189, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.about2-features > div { padding: 4px 12px; border-left: 1px solid rgba(230, 213, 189, .2); }
.about2-features > div:first-child { border-left: 0; }
.about2-features svg { width: 34px; height: 34px; stroke: #e6d5bd; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 14px; display: block; }
.about2-features span { display: block; font-size: 14.5px; line-height: 1.4; color: #ecebe0; }
.about2-wave {
  height: 90px; margin-top: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 L0 18 C 20 2, 40 4, 60 12 S 90 22, 100 8 L100 30 Z' fill='%23f8f4ee'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

@media (max-width: 960px) {
  .about2-nav { display: none; }
}
@media (max-width: 760px) {
  .about2-head .script-logo { font-size: 30px; text-align: left; }
  .about2-book { padding: 10px 18px; font-size: 13px; }
  .about2-grid { grid-template-columns: 1fr; gap: 8px; }
  .about2-photo img { aspect-ratio: 4 / 4.8; }
  .about2-quote { font-size: 20px; bottom: 4%; }
  .about2-quote .q { font-size: 48px; }
  .about2-text { padding-top: 8px; }
  .about2 h1 { font-size: 30px; }
  .about2-text p { font-size: 15px; }
  .about2-sign { font-size: 50px !important; }
  .about2-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; margin-top: 36px; }
  .about2-features > div:nth-child(3) { border-left: 0; }
  .about2-features span { font-size: 13px; }
  .about2-wave { height: 56px; margin-top: 40px; }
}

/* Фото без сильного увеличения + листики на фоне */
.about2-photo img { aspect-ratio: 1 / 1.05; object-position: 88% 35%; }
.about2-head, .about2-grid, .about2-features, .about2-wave { position: relative; z-index: 1; }
.leaf { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.leaf--tr { width: 300px; top: 70px; right: -70px; transform: rotate(160deg) scaleX(-1); opacity: .55; filter: blur(.6px); }
.leaf--bl { width: 380px; bottom: 40px; left: -110px; transform: rotate(10deg); opacity: .4; filter: blur(3px); }
.leaf--ml { width: 220px; top: 46%; right: 2%; transform: rotate(-120deg); opacity: .18; filter: blur(5px); }
@media (max-width: 760px) {
  .about2-photo img { aspect-ratio: 16 / 11; object-position: 75% 35%; }
  .about2-quote { position: relative; left: auto; right: auto; bottom: auto; margin: 18px 0 10px; text-shadow: none; }
  .about2-photo img { -webkit-mask-image: radial-gradient(ellipse 72% 78% at 55% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 72% 78% at 55% 45%, #000 60%, transparent 100%); }
  .about2-quote .q--close { bottom: -26px; }
  .leaf--tr { width: 190px; top: 60px; right: -60px; opacity: .45; }
  .leaf--bl { width: 240px; left: -90px; bottom: 120px; }
  .leaf--ml { width: 160px; top: 38%; right: -40px; }
}

/* =========== «Обо мне» v3 — по макету =========== */
.ab3 { --ab-dark: #262719; --ab-cream: #f2ece2; --ab-gold: #b7a079; --ab-olive: #6b6c45; color: #ecebe0; background: var(--ab-dark); }
.ab3-hero { position: relative; overflow: hidden; background: #2a2b1d; }
.ab3-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 84% 30%; z-index: 0; }
.ab3-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(38,39,25,.82) 0%, rgba(38,39,25,.55) 34%, rgba(38,39,25,.08) 62%, rgba(38,39,25,0) 100%),
    linear-gradient(180deg, rgba(38,39,25,.25) 0%, rgba(38,39,25,0) 22%, rgba(38,39,25,0) 66%, rgba(38,39,25,.7) 100%);
}
.ab3-head, .ab3-body, .ab3-menu { position: relative; z-index: 2; }
.ab3-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px 0 22px; }
.ab3-logo { text-decoration: none; text-align: center; display: inline-flex; flex-direction: column; align-items: center; }
.ab3-script { font-family: "Great Vibes", cursive; font-size: 33px; line-height: 1; color: #fffdfa; }
.ab3-sub { font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; color: #e6dfd0; margin-top: 7px; }
.ab3-burger { width: 44px; height: 40px; border: 0; background: none; position: relative; cursor: pointer; margin-top: 2px; }
.ab3-burger span, .ab3-burger::before, .ab3-burger::after { content: ""; position: absolute; left: 6px; right: 6px; height: 1.5px; background: #fffdfa; transition: transform .35s var(--ease), opacity .2s; }
.ab3-burger::before { top: 10px; } .ab3-burger span { top: 19px; } .ab3-burger::after { top: 28px; }
.ab3.is-menu .ab3-burger::before { transform: translateY(9px) rotate(45deg); }
.ab3.is-menu .ab3-burger span { opacity: 0; }
.ab3.is-menu .ab3-burger::after { transform: translateY(-9px) rotate(-45deg); }
.ab3-menu {
  position: absolute; top: 66px; right: 16px; z-index: 5; display: grid; min-width: 210px; padding: 10px 0;
  background: rgba(38,39,25,.94); border: 1px solid rgba(230,213,189,.25); border-radius: 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s, transform .3s, visibility .3s;
}
.ab3.is-menu .ab3-menu { opacity: 1; visibility: visible; transform: none; }
.ab3-menu a { color: #f4efe4; text-decoration: none; padding: 11px 22px; font-size: 15px; }
.ab3-menu a:hover { background: rgba(255,255,255,.06); }

.ab3-body { display: grid; grid-template-columns: 54% 46%; align-items: end; padding: 54px 18px 44px 26px; }
.ab3-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #ecebe0; margin: 0 0 18px; }
.ab3-eyebrow::after { content: ""; width: 54px; height: 1px; background: rgba(236,235,224,.7); }
.ab3-title { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.12; color: #f6f1e7; margin: 0 0 16px; }
.ab3-title em { font-style: italic; font-size: 1.32em; color: #efe3cf; line-height: 1.05; }
.ab3-lead { font-size: 13px; line-height: 1.5; color: #ecebe0; margin: 0 0 18px; }
.ab3-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 26px;
  border-radius: 999px; background: #7a7b4f; color: #fffdfa; text-decoration: none; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.55); transition: background .3s, transform .2s;
}
.ab3-pill:hover { background: #868859; } .ab3-pill:active { transform: scale(.97); }
.ab3-quote { position: relative; margin: 0 0 6px; padding: 18px 0 18px 30px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.38; color: #f6f1e7; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.ab3-quote::before { content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 1px; background: rgba(236,235,224,.6); }
.ab3-quote::after { content: ""; position: absolute; bottom: 0; left: 6%; width: 50%; height: 1px; background: rgba(236,235,224,.6); }
.ab3-q { position: absolute; left: 4px; top: 12px; font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 46px; line-height: 1; color: #e2cfae; text-shadow: none; }

.ab3-card { position: relative; z-index: 3; margin-top: -2px; background: linear-gradient(180deg, #f5f0e7 0%, #efe8dc 100%); color: #2b2b26; border-radius: 34px 34px 0 0; padding: 14px 18px 30px; }
.ab3-list { list-style: none; margin: 0; padding: 0; }
.ab3-list li { display: grid; grid-template-columns: 52px 1fr; align-items: center; padding: 9px 0; }
.ab3-list svg { width: 30px; height: 30px; stroke: var(--ab-gold); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; justify-self: center; }
.ab3-list p { margin: 0; padding-left: 14px; border-left: 1px solid #cfc3ae; font-size: 13.5px; line-height: 1.42; color: #2f2f29; }
.ab3-philo { display: grid; grid-template-columns: 52px 1fr; align-items: center; margin-top: 16px; padding: 16px 16px 16px 10px; background: var(--ab-olive); border-radius: 18px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
.ab3-philo svg { width: 34px; height: 34px; stroke: #f4efe4; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; justify-self: center; }
.ab3-philo p { margin: 0; padding-left: 16px; border-left: 1px solid rgba(244,239,228,.45); font-size: 14.5px; line-height: 1.5; color: #f4efe4; }
.ab3-philo b { color: #fffdfa; }

.ab3-dark { position: relative; background: linear-gradient(180deg, #3a3b27 0%, #2d2e1f 100%); padding: 56px 12px 84px; }
.ab3-dark::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H100 V18 C 80 44, 60 10, 40 24 S 10 30, 0 16 Z' fill='%23efe8dc'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.ab3-dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23a89371'/%3E%3Cstop offset='.5' stop-color='%23d8c7a6'/%3E%3Cstop offset='1' stop-color='%23a08a68'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 40 C 25 18, 55 20, 75 30 S 95 34, 100 22 V64 H0 Z' fill='url(%23w)'/%3E%3Cpath d='M0 50 C 25 30, 55 32, 75 42 S 95 46, 100 34 V64 H0 Z' fill='%23f8f4ee'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.ab3-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.ab3-feats > div { padding: 2px 4px; border-left: 1px solid rgba(230,213,189,.28); }
.ab3-feats > div:first-child { border-left: 0; }
.ab3-feats svg { width: 32px; height: 32px; stroke: #efe3cf; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 12px; }
.ab3-feats span { display: block; font-size: 12.5px; line-height: 1.4; color: #ecebe0; }

@media (min-width: 761px) {
  .ab3-head { padding: 28px clamp(24px, 5vw, 64px) 0; }
  .ab3-script { font-size: 42px; } .ab3-sub { font-size: 10px; }
  .ab3-bg { left: auto; right: 0; width: 56%; object-position: 50% 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
  .ab3-body { max-width: 1200px; margin: 0 auto; padding: 80px clamp(24px, 5vw, 64px) 80px; grid-template-columns: 48% 40%; justify-content: space-between; min-height: 640px; }
  .ab3-title { font-size: 52px; } .ab3-lead { font-size: 16px; max-width: 420px; } .ab3-quote { font-size: 24px; }
  .ab3-card { padding: 28px max(24px, calc((100% - 860px) / 2)) 40px; }
  .ab3-list li { grid-template-columns: 64px 1fr; padding: 12px 0; }
  .ab3-list p { font-size: 16px; } .ab3-philo p { font-size: 17px; }
  .ab3-feats { max-width: 900px; margin: 0 auto; } .ab3-feats span { font-size: 15px; }
}
/* v3: фото меньше, как на макете (только телефон) */
@media (max-width: 760px) {
  .ab3-bg { object-position: 72% 22%; }
  .ab3-hero::after {
    background:
      linear-gradient(90deg, rgba(38,39,25,.78) 0%, rgba(38,39,25,.5) 36%, rgba(38,39,25,0) 62%),
      linear-gradient(180deg, rgba(38,39,25,.2) 0%, rgba(38,39,25,0) 20%, rgba(38,39,25,0) 55%, rgba(38,39,25,.6) 100%);
  }
  .ab3-body { padding-top: 46px; }
  .ab3-pill { white-space: nowrap; padding: 0 22px; font-size: 13.5px; }
  .ab3-list p { font-size: 13px; }
}
@media (max-width: 760px) {
  .ab3-feats span { font-size: 11.5px; overflow-wrap: anywhere; hyphens: auto; }
  .ab3-feats > div { padding: 2px 3px; }
}

/* «Моя философия» — кнопка, раскрывающая текст сверху */
.ab3-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.ab3-more-in { overflow: hidden; min-height: 0; }
.ab3.is-open .ab3-more { grid-template-rows: 1fr; }
.ab3-list li { opacity: 0; transform: translateY(-10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ab3.is-open .ab3-list li { opacity: 1; transform: none; }
.ab3.is-open .ab3-list li:nth-child(1) { transition-delay: .12s; }
.ab3.is-open .ab3-list li:nth-child(2) { transition-delay: .2s; }
.ab3.is-open .ab3-list li:nth-child(3) { transition-delay: .28s; }
.ab3.is-open .ab3-list li:nth-child(4) { transition-delay: .36s; }
.ab3.is-open .ab3-list li:nth-child(5) { transition-delay: .44s; }
.ab3-list { padding-bottom: 6px; }
button.ab3-philo { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; grid-template-columns: 52px 1fr 28px; transition: background .3s, transform .2s; }
button.ab3-philo:hover { background: #77784d; }
button.ab3-philo:active { transform: scale(.985); }
.ab3-philo-t { display: block; padding-left: 16px; border-left: 1px solid rgba(244,239,228,.45); font-size: 14.5px; line-height: 1.5; color: #f4efe4; }
.ab3-chev { width: 10px; height: 10px; justify-self: center; border-right: 1.5px solid #f4efe4; border-top: 1.5px solid #f4efe4; transform: rotate(-45deg); margin-top: 4px; transition: transform .4s var(--ease); }
.ab3.is-open .ab3-chev { transform: rotate(135deg); margin-top: -4px; }
.ab3:not(.is-open) .ab3-philo { margin-top: 6px; animation: philoPulse 3.2s ease-in-out infinite; }
@keyframes philoPulse { 0%, 100% { box-shadow: 0 14px 30px -18px rgba(0,0,0,.5), 0 0 0 0 rgba(107,108,69,0); } 50% { box-shadow: 0 14px 30px -18px rgba(0,0,0,.5), 0 0 0 6px rgba(107,108,69,.22); } }
@media (min-width: 761px) { .ab3-philo-t { font-size: 17px; } }

/* Перелив на кнопке «Моя философия» */
button.ab3-philo {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, #646540 0%, #6f7146 22%, #8a8a5c 40%, #a39c6e 50%, #8a8a5c 60%, #6f7146 78%, #646540 100%);
  background-size: 300% 100%;
  animation: philoFlow 7s ease-in-out infinite, philoPulse 3.2s ease-in-out infinite;
}
button.ab3-philo:hover { background: linear-gradient(115deg, #646540 0%, #6f7146 22%, #8a8a5c 40%, #a39c6e 50%, #8a8a5c 60%, #6f7146 78%, #646540 100%); background-size: 300% 100%; }
button.ab3-philo::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,248,225,.08) 30%, rgba(255,248,225,.38) 50%, rgba(255,248,225,.08) 70%, transparent 100%);
  transform: skewX(-18deg); filter: blur(2px);
  animation: philoShine 3.6s cubic-bezier(.45,.05,.25,1) infinite;
}
button.ab3-philo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,248,225,.28), inset 0 -1px 0 rgba(0,0,0,.12);
}
.ab3.is-open button.ab3-philo { animation: philoFlow 7s ease-in-out infinite; }
@keyframes philoFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes philoShine { 0% { left: -40%; } 55%, 100% { left: 125%; } }
.ab3:not(.is-open) button.ab3-philo { animation: philoFlow 7s ease-in-out infinite, philoPulse 3.2s ease-in-out infinite; }
.ab3-quote { padding-left: 0; }

/* =========== Раздел «Услуги» =========== */
.sv { position: relative; overflow: hidden; color: #ecebe0;
  background: radial-gradient(70% 40% at 90% 0%, rgba(120,125,80,.35), transparent 70%), radial-gradient(60% 50% at 0% 60%, rgba(90,80,50,.3), transparent 70%), #24251a; }
.sv-leaves { position: absolute; top: -40px; right: -60px; width: 300px; opacity: .45; filter: blur(4px); transform: rotate(150deg) scaleX(-1); pointer-events: none; }
.sv-wrap { position: relative; max-width: 900px; margin: 0 auto; padding: 40px 14px 36px; }
.sv-title { display: flex; align-items: center; gap: 20px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 52px; line-height: 1; color: #efe3cf; margin: 0 0 14px 8px; }
.sv-title::after { content: ""; width: 110px; height: 1px; background: rgba(239,227,207,.6); }
.sv-kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #dcdccb; line-height: 1.6; margin: 0 0 12px 8px; max-width: 360px; }
.sv-intro { font-size: 13.5px; line-height: 1.5; color: #ecebe0; margin: 0 0 18px 8px; }
.sv-list { display: grid; gap: 10px; }
.sv-card {
  display: grid; grid-template-columns: 37% 1fr 50px; align-items: stretch; min-height: 118px;
  border: 1px solid rgba(230,213,189,.28); border-radius: 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,253,245,.02), rgba(255,253,245,.06));
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.sv-card:hover { border-color: rgba(230,213,189,.55); transform: translateY(-2px); }
.sv-img { width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, #000 78%, transparent 100%); }
.sv-body { padding: 10px 6px 10px 12px; border-left: 1px solid rgba(230,213,189,.25); margin: 14px 0; display: flex; flex-direction: column; justify-content: center; }
.sv-body h3 { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; color: #f6f1e7; margin: 0 0 5px; }
.sv-body p { font-size: 11.5px; line-height: 1.38; color: #dcdccb; margin: 0 0 8px; }
.sv-meta { display: flex; align-items: center; gap: 10px; font-size: 10.5px; color: #ecebe0; flex-wrap: wrap; }
.sv-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sv-meta span + span { padding-left: 10px; border-left: 1px solid rgba(230,213,189,.3); }
.sv-meta svg { width: 16px; height: 16px; stroke: #e6d5bd; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sv-go { align-self: center; justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: #efe1c9; color: #2b2b1f; display: grid; place-items: center; text-decoration: none; font-size: 18px; transition: transform .3s var(--ease), background .3s; margin-right: 8px; }
.sv-go:hover { background: #fff6e4; transform: translateX(3px); }

.sv-cta { display: grid; grid-template-columns: 30% 1fr; grid-template-areas: "img body" "img btn"; align-items: center; gap: 0 0; margin-top: 22px; border: 1px solid rgba(230,213,189,.28); border-radius: 22px; overflow: hidden; background: rgba(255,253,245,.05); }
.sv-cta-img { grid-area: img; position: relative; align-self: stretch; }
.sv-cta-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .75; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%); mask-image: linear-gradient(90deg, #000 60%, transparent 100%); }
.sv-cta-img svg { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); stroke: #f6f1e7; fill: none; stroke-width: 1.2; }
.sv-cta-body { grid-area: body; padding: 16px 14px 6px 14px; border-left: 1px solid rgba(230,213,189,.25); margin-top: 14px; }
.sv-cta-body h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; line-height: 1.15; color: #f6f1e7; margin: 0 0 6px; }
.sv-cta-body p { font-size: 11.5px; line-height: 1.45; color: #dcdccb; margin: 0; }
.sv-cta-btn { grid-area: btn; justify-self: start; margin: 10px 14px 16px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 999px; background: #efe1c9; color: #2b2b1f; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .3s, transform .2s; }
.sv-cta-btn:hover { background: #fff6e4; } .sv-cta-btn:active { transform: scale(.97); }
.sv-foot { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: #dcdccb; text-align: center; }
.sv-foot::before, .sv-foot::after { content: ""; flex: 1; height: 1px; background: rgba(230,213,189,.35); }

@media (min-width: 761px) {
  .sv-wrap { padding: 80px 24px 64px; }
  .sv-title { font-size: 76px; } .sv-kicker { font-size: 13px; max-width: none; } .sv-intro { font-size: 16px; max-width: 640px; }
  .sv-card { min-height: 150px; grid-template-columns: 34% 1fr 70px; }
  .sv-body { padding-left: 24px; } .sv-body h3 { font-size: 25px; } .sv-body p { font-size: 14px; } .sv-meta { font-size: 13px; }
  .sv-go { width: 48px; height: 48px; }
  .sv-cta { grid-template-columns: 22% 1fr auto; grid-template-areas: "img body btn"; }
  .sv-cta-body { margin: 18px 0; padding: 8px 24px; } .sv-cta-body h3 { font-size: 30px; } .sv-cta-body p { font-size: 14px; }
  .sv-cta-btn { margin: 0 24px; padding: 16px 30px; font-size: 15px; }
  .sv-foot { font-size: 12px; }
  .sv-leaves { width: 420px; }
}
@media (max-width: 760px) {
  .sv-wrap { padding-left: 12px; padding-right: 12px; }
  .sv-card { grid-template-columns: 31% 1fr 44px; min-height: 0; }
  .sv-body { margin: 10px 0; padding: 4px 4px 4px 10px; }
  .sv-body h3 { font-size: 17px; margin-bottom: 4px; }
  .sv-body p { font-size: 10.5px; line-height: 1.35; margin-bottom: 6px; }
  .sv-meta { font-size: 9.5px; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
  .sv-meta span { gap: 4px; }
  .sv-meta span + span { padding-left: 6px; }
  .sv-meta svg { width: 13px; height: 13px; }
  .sv-go { width: 34px; height: 34px; font-size: 15px; margin-right: 6px; }
}
.sv-cta-img img { opacity: 1; }
@media (max-width: 760px) {
  .sv-foot { font-size: 9px; letter-spacing: .16em; gap: 10px; white-space: nowrap; }
  .sv-foot::before, .sv-foot::after { min-width: 14px; }
}

/* =========== Страницы отдельных услуг =========== */
.svp { position: relative; overflow: hidden; min-height: 100vh; color: #f1ede2;
  background:
    radial-gradient(70% 40% at 15% 0%, rgba(130,130,90,.45), transparent 70%),
    radial-gradient(60% 40% at 100% 55%, rgba(120,118,80,.35), transparent 70%),
    radial-gradient(80% 40% at 0% 100%, rgba(80,80,50,.5), transparent 70%),
    linear-gradient(180deg, #5b5a3c 0%, #555537 50%, #4d4d32 100%); }
.svp-leaf { position: absolute; pointer-events: none; opacity: .5; filter: blur(3px); }
.svp-leaf--bl { width: 260px; left: -90px; bottom: -40px; transform: rotate(20deg); }
.svp-leaf--tc { width: 220px; left: 38%; top: -90px; transform: rotate(170deg); opacity: .35; }
.svp-wrap { position: relative; max-width: 880px; margin: 0 auto; padding: 0 14px 40px; }
.svp-head { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 6px 0; }
.svp-head .ab3-menu { top: 62px; right: 6px; }
.svp[data-open] .ab3-menu { opacity: 1; visibility: visible; transform: none; }
.svp[data-open] .ab3-burger::before { transform: translateY(9px) rotate(45deg); }
.svp[data-open] .ab3-burger span { opacity: 0; }
.svp[data-open] .ab3-burger::after { transform: translateY(-9px) rotate(-45deg); }

.svp-top { position: relative; min-height: 380px; }
.svp-hero { position: absolute; top: -78px; right: -14px; width: 58%; height: 440px; object-fit: cover; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
.svp-text { position: relative; z-index: 2; padding: 26px 6px 0; }
.svp-back { display: inline-flex; align-items: center; gap: 10px; color: #f1ede2; text-decoration: none; font-size: 15px; margin-bottom: 14px; }
.svp-back:hover { color: #fff; }
.svp h1 { display: flex; align-items: flex-end; gap: 14px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 40px; line-height: 1.02; color: #f3e6cf; margin: 0 0 14px; max-width: 70%; }
.svp h1 em { font-style: italic; font-weight: 600; color: #f3e6cf; }
.svp-intro { font-size: 13.5px; line-height: 1.5; color: #f1ede2; max-width: 58%; margin: 0 0 18px; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.svp-feats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 60%; text-align: center; }
.svp-feats > div { padding: 0 4px; border-left: 1px solid rgba(241,237,226,.3); }
.svp-feats > div:first-child { border-left: 0; }
.svp-feats svg, .svp-ic { width: 24px; height: 24px; stroke: #f3e6cf; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 6px; }
.svp-feats span { display: block; font-size: 10px; line-height: 1.3; color: #f1ede2; }

.svp-card { position: relative; border: 1px solid rgba(243,230,207,.35); border-radius: 22px; background: linear-gradient(120deg, rgba(255,253,240,.10), rgba(255,253,240,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); margin-top: 12px; }
.svp-who { display: grid; grid-template-columns: 38% 1fr; gap: 14px; padding: 8px; align-items: center; }
.svp-who img { width: 100%; height: 100%; min-height: 120px; max-width: none; object-fit: cover; border-radius: 16px; }
.svp-h { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; color: #f3e6cf; margin: 0 0 8px; }
.svp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.svp-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font-size: 12px; line-height: 1.35; color: #f1ede2; }
.svp-checks svg { width: 17px; height: 17px; stroke: #f3e6cf; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.svp-consider { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 18px; }
.svp-consider .svp-h { margin: 0; font-size: 22px; padding-right: 14px; border-right: 1px solid rgba(243,230,207,.35); }
.svp-consider p { margin: 0; font-size: 12px; line-height: 1.45; }
.svp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.svp-duo .svp-card { margin: 0; display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px; align-items: center;
  background: linear-gradient(120deg, #efe3cc, #dcc8a6); border-color: rgba(255,240,210,.6); color: #2b2a1f; }
.svp-duo img { width: 100%; height: 100%; min-height: 90px; max-width: none; object-fit: cover; border-radius: 14px; }
.svp-duo h3 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; color: #2b2a1f; margin: 0 0 4px; }
.svp-duo p { margin: 0; font-size: 11px; line-height: 1.35; color: #3a382b; }

.svp-sect { display: flex; align-items: center; gap: 16px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; color: #f3e6cf; margin: 22px 6px 12px; }
.svp-sect::after { content: ""; flex: 1; height: 1px; background: rgba(243,230,207,.4); }
.svp-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.svp-step { position: relative; }
.svp-step img { width: 100%; aspect-ratio: 16 / 9.2; max-width: none; object-fit: cover; border-radius: 12px; border: 1px solid rgba(243,230,207,.3); margin-bottom: 8px; }
.svp-step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22%; color: #f3e6cf; font-size: 14px; }
.svp-steps.no-img .svp-step:not(:last-child)::after { top: 4px; }
.svp-step div { display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: start; font-size: 11px; line-height: 1.35; color: #f1ede2; }
.svp-step b { width: 22px; height: 22px; border: 1px solid rgba(243,230,207,.7); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-size: 11px; color: #f3e6cf; }
.svp-dur { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 20px; margin-top: 18px; }
.svp-dur svg { width: 40px; height: 40px; stroke: #f3e6cf; fill: none; stroke-width: 1.2; }
.svp-dur div { border-left: 1px solid rgba(243,230,207,.35); padding-left: 14px; font-size: 12px; color: #f1ede2; }
.svp-dur b { display: block; font-size: 20px; font-weight: 600; color: #fff; margin-top: 2px; }
.svp-dur b small { font-size: 14px; font-weight: 400; }
.svp-inc { display: grid; grid-template-columns: 48px auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; }
.svp-inc > svg { width: 36px; height: 36px; stroke: #f3e6cf; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.svp-inc .svp-h { margin: 0; padding: 0 14px; border-left: 1px solid rgba(243,230,207,.35); line-height: 1.15; }
.svp-inc .svp-checks { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.svp-care-t { text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; color: #f3e6cf; margin: 22px 0 12px; }
.svp-care { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.svp-care > div { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; padding: 0 10px; border-left: 1px solid rgba(243,230,207,.35); font-size: 11.5px; line-height: 1.35; color: #f1ede2; }
.svp-care > div:first-child { border-left: 0; }
.svp-care svg { width: 30px; height: 30px; stroke: #f3e6cf; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.svp-cta { display: flex; justify-content: center; margin: 24px 0 8px; }
.svp-cta a { display: inline-flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 40px; border-radius: 999px; background: linear-gradient(120deg, #f4e7cf, #e7d3b0); color: #2b2a1f; text-decoration: none; font-size: 17px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); transition: transform .2s, filter .3s; position: relative; overflow: hidden; }
.svp-cta a::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: philoShine 3.8s ease-in-out infinite; }
.svp-cta a:hover { filter: brightness(1.04); } .svp-cta a:active { transform: scale(.97); }

@media (max-width: 760px) {
  .svp-top { min-height: 0; }
  .svp-hero { top: -70px; right: -14px; width: 66%; height: 400px; }
  .svp h1 { font-size: 36px; max-width: 72%; }
  .svp-intro { max-width: 62%; font-size: 12.5px; }
  .svp-feats { max-width: none; margin-top: 6px; }
  .svp-feats span { font-size: 10.5px; }
  .svp-who { grid-template-columns: 1fr; }
  .svp-who img { height: 150px; }
  .svp-who > div { padding: 2px 8px 8px; }
  .svp-consider { grid-template-columns: 1fr; gap: 6px; }
  .svp-consider .svp-h { border-right: 0; padding: 0; }
  .svp-duo { grid-template-columns: 1fr; }
  .svp-steps { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .svp-step:nth-child(2)::after { display: none; }
  .svp-inc { grid-template-columns: 40px 1fr; }
  .svp-inc .svp-checks { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .svp-care { grid-template-columns: 1fr; gap: 10px; }
  .svp-care > div { border-left: 0; padding: 0 6px; font-size: 12.5px; }
  .svp-cta a { width: 100%; justify-content: center; padding: 0 20px; font-size: 16px; }
}
@media (min-width: 761px) {
  .svp-wrap { padding: 0 24px 60px; }
  .svp-top { min-height: 460px; }
  .svp-hero { height: 560px; top: -90px; }
  .svp h1 { font-size: 58px; }
  .svp-intro { font-size: 16px; }
  .svp-feats span { font-size: 12px; }
  .svp-checks li { font-size: 14px; } .svp-consider p { font-size: 14px; }
  .svp-step div { font-size: 13px; } .svp-care > div { font-size: 13px; }
  .svp-duo p { font-size: 13px; }
}
a.sv-card { text-decoration: none; color: inherit; cursor: pointer; }
a.sv-card:hover .sv-go { background: #fff6e4; transform: translateX(3px); }
a.sv-card:active { transform: scale(.985); }
.svp-hero { object-position: 30% 15%; }
.svp-hero { object-position: 8% 12%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%), linear-gradient(180deg, #000 72%, transparent 100%); }
.svp-top--nohero { min-height: 0 !important; }
.svp-top--nohero h1, .svp-top--nohero .svp-intro, .svp-top--nohero .svp-feats { max-width: 640px; }
.svp-top--nohero .svp-feats { margin: 4px 0 6px; }
@media (min-width: 761px) { .svp-top:not(.svp-top--nohero) .svp-intro { max-width: 46%; } .svp-top:not(.svp-top--nohero) .svp-feats { max-width: 50%; } }

/* --- Новые блоки страниц услуг --- */
.svp-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.svp-ba .svp-card { margin: 0; padding: 14px 14px 16px; text-align: center; }
.svp-ba h2 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; color: #f3e6cf; margin: 0 0 6px; }
.svp-ba p { font-size: 11.5px; line-height: 1.4; color: #f1ede2; margin: 0 0 12px; text-align: left; }
.svp-ba-pics { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; }
.svp-ba-pics figure { position: relative; margin: 0; }
.svp-ba-pics img { width: 100%; aspect-ratio: 4 / 3.3; max-width: none; object-fit: cover; border-radius: 14px; border: 1px solid rgba(243,230,207,.3); }
.svp-ba-pics figcaption { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; background: #efe1c9; color: #2b2a1f; font-family: var(--serif); font-size: 12px; letter-spacing: .06em; }
.svp-ba-pics > span { color: #f3e6cf; font-size: 14px; }
.svp-row { display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: center; padding: 16px 20px; }
.svp-row .svp-h { margin: 0; font-size: 26px; line-height: 1.15; padding-right: 16px; border-right: 1px solid rgba(243,230,207,.35); }
.svp-row--inline { grid-template-columns: auto 1fr; }
.svp-row--inline .svp-checks { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.svp-row--inline .svp-checks li { padding-left: 8px; border-left: 1px solid rgba(243,230,207,.3); }
.svp-row--inline .svp-checks li:first-child { border-left: 0; padding-left: 0; }
.svp-gal { padding: 12px 12px 16px; }
.svp-gal > .svp-h { text-align: center; margin: 0 0 10px; font-size: 26px; }
.svp-gal-grid { display: grid; gap: 14px 10px; }
.svp-gal-grid + .svp-gal-grid { margin-top: 16px; }
.svp-gal-item { text-align: center; }
.svp-gal-item figure { position: relative; margin: 0 0 18px; }
.svp-gal-item img { width: 100%; aspect-ratio: 16 / 7.5; max-width: none; object-fit: cover; border-radius: 14px; border: 1px solid rgba(243,230,207,.3); }
.svp-gal-grid.cols-4 .svp-gal-item img { aspect-ratio: 16 / 8; }
.svp-gal-item figcaption { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); white-space: nowrap; padding: 4px 16px; border-radius: 999px; background: linear-gradient(120deg, #f4e7cf, #e3cfab); color: #2b2a1f; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 14px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
.svp-gal-item p { margin: 0; font-size: 11px; line-height: 1.38; color: #f1ede2; }
.svp-procs { display: grid; grid-template-columns: 26% 1fr; gap: 12px; align-items: center; padding: 14px 16px; }
.svp-procs > .svp-h { margin: 0; font-size: 26px; line-height: 1.1; }
.svp-procs-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.svp-proc { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: center; }
.svp-proc img { width: 54px; height: 54px; max-width: none; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.svp-proc h3 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 15px; line-height: 1.1; color: #f3e6cf; margin: 0 0 3px; }
.svp-proc p { margin: 0; font-size: 10.5px; line-height: 1.3; color: #f1ede2; }

@media (max-width: 760px) {
  .svp-ba { grid-template-columns: 1fr; }
  .svp-row, .svp-row--inline { grid-template-columns: 1fr; gap: 8px; }
  .svp-row .svp-h { border-right: 0; padding-right: 0; font-size: 24px; }
  .svp-row--inline .svp-checks { grid-template-columns: 1fr; }
  .svp-row--inline .svp-checks li { border-left: 0; padding-left: 0; }
  .svp-gal-grid { grid-template-columns: 1fr 1fr !important; }
  .svp-gal-grid.cols-3 .svp-gal-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .svp-gal-item p { font-size: 11px; }
  .svp-procs { grid-template-columns: 1fr; }
  .svp-procs-list { grid-template-columns: 1fr; gap: 12px; }
  .svp-proc { grid-template-columns: 60px 1fr; }
  .svp-proc img { width: 60px; height: 60px; }
}
@media (min-width: 761px) {
  .svp-ba p, .svp-gal-item p, .svp-proc p { font-size: 13px; }
  .svp-gal-item figcaption { font-size: 16px; }
  .svp-proc h3 { font-size: 18px; }
  .svp-proc { grid-template-columns: 64px 1fr; } .svp-proc img { width: 64px; height: 64px; }
}
@media (max-width: 760px) {
  .svp-gal-item figcaption { white-space: normal; width: max-content; max-width: 94%; font-size: 12px; line-height: 1.15; padding: 4px 10px; text-align: center; }
  .svp-gal-item figure { margin-bottom: 22px; }
  .svp-gal-grid .svp-gal-item img { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) { .svp-gal-grid.cols-3 .svp-gal-item:last-child:nth-child(odd) img { aspect-ratio: 16 / 7; } }

/* Стрижки и укладки */
.svp-feat3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); text-align: center; padding: 18px 8px; }
.svp-feat3 > div { padding: 0 8px; border-left: 1px solid rgba(243,230,207,.3); }
.svp-feat3 > div:first-child { border-left: 0; }
.svp-feat3 svg { width: 32px; height: 32px; stroke: #f3e6cf; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 10px; }
.svp-feat3 span { font-size: 12.5px; line-height: 1.35; color: #f1ede2; }
.svp-incimg { display: grid; grid-template-columns: 1fr 34%; gap: 14px; align-items: center; margin: 22px 6px 6px; }
.svp-incimg .svp-h { font-size: 26px; margin-bottom: 12px; }
.svp-incimg img { width: 100%; aspect-ratio: 1.2; max-width: none; object-fit: cover; border-radius: 18px; border: 1px solid rgba(243,230,207,.35); }
.svp-line-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); text-align: center; position: relative; margin: 4px 0 8px; }
.svp-line-steps::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 1px; background: rgba(243,230,207,.55); }
.svp-line-steps > div { position: relative; padding: 0 4px; }
.svp-line-steps b { position: relative; z-index: 1; width: 30px; height: 30px; margin: 0 auto 10px; display: grid; place-items: center; border: 1px solid rgba(243,230,207,.8); border-radius: 50%; background: #565637; font-family: var(--serif); font-weight: 400; font-size: 15px; color: #f3e6cf; }
.svp-line-steps span { display: block; font-size: 11.5px; line-height: 1.35; color: #f1ede2; }
.svp-note { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; padding: 20px 22px; margin-top: 18px; }
.svp-note > svg { width: 44px; height: 44px; stroke: #f3e6cf; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; justify-self: center; }
.svp-note > div { border-left: 1px solid rgba(243,230,207,.35); padding-left: 18px; }
.svp-note .svp-h { margin: 0 0 6px; font-size: 24px; }
.svp-note p { margin: 0; font-size: 13px; line-height: 1.45; color: #f1ede2; }
@media (max-width: 760px) {
  .svp-feat3 span { font-size: 11.5px; }
  .svp-incimg { grid-template-columns: 1fr; }
  .svp-incimg img { aspect-ratio: 16 / 9; }
  .svp-line-steps span { font-size: 10.5px; }
  .svp-note { grid-template-columns: 52px 1fr; padding: 16px; }
  .svp-note > div { padding-left: 12px; }
}
@media (min-width: 761px) { .svp-line-steps span, .svp-feat3 span { font-size: 14px; } .svp-note p { font-size: 15px; } }
.svp-feat3 span { display: block; }
@media (max-width: 760px) {
  .svp-incimg { grid-template-columns: 1fr 30%; gap: 10px; }
  .svp-incimg img { aspect-ratio: 3 / 4; }
  .svp-incimg .svp-checks li { font-size: 11.5px; }
}
/* позиции новых фото «Окрашивание в один тон» */
.svp-hero[src$="ok-hero.jpg"] { object-position: 58% 22%; }
.svp-step img[src$="ok-st1.jpg"] { object-position: 50% 45%; }
.svp-step img[src$="ok-st2.jpg"] { object-position: 50% 58%; }
.svp-step img[src$="ok-st3.jpg"] { object-position: 50% 35%; }
.svp-step img[src$="ok-st4.jpg"] { object-position: 50% 40%; }

/* =========== Диагностика волос =========== */
.dg-lead { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.25; color: #f3e6cf; max-width: 58%; margin: 0 0 12px; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.dg-ic { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(243,230,207,.12); border: 1px solid rgba(243,230,207,.35); }
.dg-ic svg { width: 24px; height: 24px; stroke: #f3e6cf; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dg-eval { padding: 16px 18px 18px; }
.dg-eval > .svp-h { font-size: 28px; margin-bottom: 14px; }
.dg-eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.dg-item { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
.dg-item h3, .dg-three h3, .dg-steps h3 { font-family: var(--sans, Manrope, sans-serif); font-weight: 600; font-size: 13px; line-height: 1.25; color: #fff; margin: 2px 0 3px; }
.dg-item p, .dg-three p, .dg-steps p { margin: 0; font-size: 11.5px; line-height: 1.4; color: #e9e3d3; }
.dg-quote { display: grid; grid-template-columns: 55% 1fr; align-items: center; overflow: hidden; margin-top: 14px; }
.dg-quote img { width: 100%; height: 100%; min-height: 150px; max-width: none; object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.dg-quote blockquote { margin: 0; padding: 16px 20px 16px 18px; border-left: 1px solid rgba(243,230,207,.4); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: #f3e6cf; }
.dg-how { display: grid; grid-template-columns: 1fr 34%; gap: 14px; align-items: stretch; }
.dg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.dg-steps::before { content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 1px; background: rgba(243,230,207,.4); }
.dg-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.dg-steps b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #6b6846; border: 1px solid rgba(243,230,207,.5); font-family: var(--serif); font-weight: 500; font-size: 16px; color: #f3e6cf; }
.dg-how-img { width: 100%; height: 100%; min-height: 220px; max-width: none; object-fit: cover; object-position: 40% 40%; border-radius: 18px; border: 1px solid rgba(243,230,207,.35); }
.dg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dg-duo .svp-card { margin: 0; padding: 16px 18px; }
.dg-duo .svp-h { font-size: 23px; line-height: 1.15; margin-bottom: 10px; }
.dg-duo p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: #e9e3d3; }
.dg-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dg-ticks li { position: relative; padding-left: 24px; font-size: 12px; line-height: 1.4; color: #e9e3d3; }
.dg-ticks li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 10px; height: 5px; border-left: 1.5px solid #f3e6cf; border-bottom: 1.5px solid #f3e6cf; transform: rotate(-45deg); }
.dg-philo { display: grid; grid-template-columns: 40% 1fr; gap: 0; align-items: center; overflow: hidden; }
.dg-philo img { width: 100%; height: 100%; min-height: 150px; max-width: none; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.dg-philo > div { padding: 16px 20px; border-left: 1px solid rgba(243,230,207,.35); }
.dg-philo .svp-h { font-size: 26px; }
.dg-philo p { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: #e9e3d3; }
.dg-three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.dg-three .svp-card { margin: 0; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 14px; }
.dg-foot { text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: #f3e6cf; margin: 26px 0 0; }
.dg-foot span { font-weight: 600; }
@media (max-width: 760px) {
  .dg-lead { max-width: 60%; font-size: 16px; }
  .dg-eval-grid { grid-template-columns: 1fr; gap: 14px; }
  .dg-eval > .svp-h { font-size: 25px; }
  .dg-quote { grid-template-columns: 1fr; }
  .dg-quote img { height: 170px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .dg-quote blockquote { border-left: 0; padding: 4px 18px 18px; font-size: 18px; }
  .dg-how { grid-template-columns: 1fr; }
  .dg-how-img { height: 200px; min-height: 0; order: -1; }
  .dg-duo { grid-template-columns: 1fr; }
  .dg-philo { grid-template-columns: 1fr; }
  .dg-philo img { height: 160px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .dg-philo > div { border-left: 0; padding: 4px 18px 16px; }
  .dg-three { grid-template-columns: 1fr; }
  .dg-foot { font-size: 17px; }
}
@media (min-width: 761px) {
  .dg-lead { font-size: 24px; max-width: 46%; }
  .dg-item h3, .dg-three h3, .dg-steps h3 { font-size: 15px; }
  .dg-item p, .dg-three p, .dg-steps p, .dg-duo p, .dg-ticks li, .dg-philo p { font-size: 13.5px; }
  .dg-quote blockquote { font-size: 23px; }
}
.svp-hero[src*="di-hero"] { object-position: 72% 30%; }

/* Меню на главной */
.hero-top { z-index: 5; }
.hero-top .ab3-burger { position: absolute; top: 22px; right: calc(var(--gut) - 8px); }
.hero-top .ab3-menu { position: absolute; top: 70px; right: calc(var(--gut) - 6px); }
.hero-photo[data-open] .ab3-menu { opacity: 1; visibility: visible; transform: none; }
.hero-photo[data-open] .ab3-burger::before { transform: translateY(9px) rotate(45deg); }
.hero-photo[data-open] .ab3-burger span { opacity: 0; }
.hero-photo[data-open] .ab3-burger::after { transform: translateY(-9px) rotate(-45deg); }

/* Диагностика v2: кнопки и онлайн-консультация */
.dg-btns { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 4px; }
.dg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: linear-gradient(120deg, #f4e7cf, #e3cfab); color: #2b2a1f; text-decoration: none; font-size: 15px; font-weight: 500; box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); transition: transform .2s, filter .3s; }
.dg-btn:hover { filter: brightness(1.04); } .dg-btn:active { transform: scale(.97); }
.dg-btn--ghost { background: rgba(255,253,240,.04); color: #f3e6cf; border: 1px solid rgba(243,230,207,.55); box-shadow: none; }
.dg-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dg-online { display: grid; grid-template-columns: 44% 1fr; align-items: center; overflow: hidden; margin-top: 18px; scroll-margin-top: 20px; }
.dg-online > img { width: 100%; height: 100%; min-height: 220px; max-width: none; object-fit: cover; object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.dg-online > div { padding: 18px 20px 20px 10px; }
.dg-online .svp-h { font-size: 28px; margin-bottom: 6px; }
.dg-online p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.45; color: #e9e3d3; }
.dg-online-feats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.dg-online-feats > div { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: center; font-size: 11px; line-height: 1.3; color: #f1ede2; }
.dg-online-feats svg { width: 24px; height: 24px; stroke: #f3e6cf; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dg-online .dg-btn { min-height: 48px; }
.dg-three p + p { margin-top: 8px; }
.dg-three .dg-ticks li { font-size: 11.5px; }
.dg-foot { display: flex; align-items: center; justify-content: center; gap: 16px; }
.dg-foot::before, .dg-foot::after { content: ""; flex: 1; max-width: 110px; height: 1px; background: rgba(243,230,207,.4); }
.svp-hero[src*="di-hero"] { object-position: 62% 30%; }
@media (max-width: 760px) {
  .dg-btns { grid-template-columns: 1fr; }
  .dg-online { grid-template-columns: 1fr; }
  .dg-online > img { height: 200px; min-height: 0; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
  .dg-online > div { padding: 4px 18px 18px; }
  .dg-online-feats { grid-template-columns: 1fr; gap: 8px; }
  .dg-online-feats > div { font-size: 12.5px; }
  .dg-online .dg-btn { width: 100%; }
  .dg-foot { font-size: 16px; gap: 10px; }
  .dg-foot::before, .dg-foot::after { max-width: 30px; }
}
@media (min-width: 761px) {
  .dg-online p { font-size: 14px; } .dg-online-feats > div { font-size: 12.5px; }
  .dg-three .dg-ticks li { font-size: 13px; }
}
.dg-foot span { font-weight: 400; text-align: center; } .dg-foot b { font-weight: 600; }
@media (max-width: 760px) { .dg-online .dg-btn { font-size: 14px; padding: 0 16px; white-space: nowrap; } }

/* Диагностика v3: шрифты и иконки как на макете */
.dg-page { --lora: "Lora", Georgia, serif; }
.dg-page h1, .dg-page .svp-h, .dg-page .svp-sect { font-family: var(--lora); font-style: normal; font-weight: 400; color: #f6ead3; letter-spacing: -.01em; }
.dg-page h1 { font-size: 40px; line-height: 1.05; }
.dg-page .dg-lead, .dg-page .dg-quote blockquote, .dg-page .dg-foot { font-family: var(--lora); font-style: italic; font-weight: 400; }
.dg-page .dg-lead { font-size: 16px; line-height: 1.35; }
.dg-page .dg-quote blockquote { font-size: 17px; line-height: 1.45; }
.dg-page .dg-foot { font-size: 16px; }
.dg-page .dg-item h3, .dg-page .dg-three h3, .dg-page .dg-steps h3 { font-weight: 700; color: #fbf3e4; }
.dg-page .dg-ic { width: 48px; height: 48px; border: 0; background: radial-gradient(circle at 35% 30%, #a9875c, #7a5d3a 70%, #654b2d); box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,235,200,.25); }
.dg-page .dg-ic svg { width: 24px; height: 24px; stroke: #fbf1de; stroke-width: 1.5; }
.dg-page .dg-item { grid-template-columns: 48px 1fr; }
.dg-page .dg-three .svp-card { grid-template-columns: 48px 1fr; }
.dg-page .dg-steps::before { left: 19px; background: rgba(214,180,130,.55); }
.dg-page .dg-steps b { width: 38px; height: 38px; border: 0; background: radial-gradient(circle at 35% 30%, #a9875c, #7a5d3a 70%, #654b2d); box-shadow: 0 6px 14px -6px rgba(0,0,0,.6); font-family: var(--sans); font-weight: 700; font-size: 14px; color: #fff; }
.dg-page .dg-steps li { grid-template-columns: 38px 1fr; }
.dg-page .dg-online-feats svg { stroke: #e3c79b; stroke-width: 1.5; }
.dg-page .dg-ticks li::before { border-color: #e3c79b; }
@media (min-width: 761px) {
  .dg-page h1 { font-size: 54px; }
  .dg-page .dg-lead { font-size: 20px; }
  .dg-page .dg-quote blockquote { font-size: 21px; }
}

/* =========== Правила записи (zapis.html) =========== */
.zp-page { --lora: "Lora", Georgia, serif; --gold: #d9b67e; --gold-l: rgba(217,182,126,.55);
  background:
    radial-gradient(60% 35% at 50% 30%, rgba(150,130,80,.22), transparent 70%),
    linear-gradient(180deg, #3b3725 0%, #302d1e 45%, #27251a 100%); }
.zp-hair { position: absolute; top: 0; right: 0; width: min(62%, 560px); height: 420px; object-fit: cover; object-position: 40% 20%; max-width: none; pointer-events: none; opacity: .85;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000 35%, transparent 72%); mask-image: radial-gradient(120% 100% at 100% 0%, #000 35%, transparent 72%); }
.zp-top { position: relative; z-index: 2; padding: 40px 6px 22px; }
.zp-page h1 { display: block; font-family: var(--lora); font-style: normal; font-weight: 400; font-size: 38px; line-height: 1.05; color: #f6ead3; max-width: 75%; margin: 0 0 12px; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.zp-lead { font-family: var(--lora); font-style: italic; font-size: 15px; line-height: 1.4; color: #eadfc9; max-width: 62%; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.zp-list { position: relative; z-index: 2; display: grid; gap: 10px; }
.zp-item { border: 1px solid var(--gold-l); border-radius: 18px; background: linear-gradient(120deg, rgba(255,245,215,.09), rgba(255,245,215,.025)); box-shadow: inset 0 1px 0 rgba(255,235,200,.10); transition: box-shadow .3s, border-color .3s; }
.zp-item[open] { border-color: rgba(230,195,135,.85); box-shadow: 0 0 22px -4px rgba(217,170,100,.45), inset 0 1px 0 rgba(255,235,200,.18); }
.zp-item summary { list-style: none; display: grid; grid-template-columns: 34px 1fr 20px; gap: 14px; align-items: center; padding: 14px 18px; cursor: pointer; }
.zp-item summary::-webkit-details-marker { display: none; }
.zp-ic svg { width: 28px; height: 28px; display: block; stroke: #e8cfa3; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.zp-t { font-family: var(--lora); font-size: 17px; color: #f6ead3; }
.zp-chev { width: 10px; height: 10px; border-right: 1.6px solid #e8cfa3; border-bottom: 1.6px solid #e8cfa3; transform: rotate(45deg) translate(-3px,-3px); transition: transform .3s; }
.zp-item[open] .zp-chev { transform: rotate(-135deg) translate(-2px,-2px); }
.zp-item[open] summary { border-bottom: 1px solid rgba(217,182,126,.3); }
.zp-body { padding: 14px 20px 20px; color: #ece3d1; font-size: 14px; line-height: 1.5; }
.zp-body h2 { font-family: var(--lora); font-weight: 400; font-size: 22px; color: #f6ead3; margin: 0 0 6px; }
.zp-body h3 { font-family: var(--lora); font-weight: 500; font-size: 16px; color: #f6ead3; margin: 16px 0 8px; }
.zp-body p { margin: 0 0 10px; }
.zp-ticks, .zp-nums { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.zp-ticks li { position: relative; padding-left: 28px; }
.zp-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e2c28c, #a9844f); }
.zp-ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 8px; border: solid #2a2016; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.zp-nums { counter-reset: zp; }
.zp-nums li { counter-increment: zp; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.zp-nums li::before { content: counter(zp); width: 24px; height: 24px; border: 1px solid #e8cfa3; border-radius: 50%; display: grid; place-items: center; font-family: var(--lora); font-size: 13px; color: #f6ead3; }
.zp-note, .zp-gold { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 12px 16px; margin: 14px 0; border: 1px solid rgba(217,182,126,.45); border-radius: 14px; background: rgba(255,240,210,.05); }
.zp-note svg, .zp-gold svg { width: 30px; height: 30px; stroke: #e8cfa3; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.zp-note p, .zp-gold p { margin: 0; font-size: 13px; line-height: 1.45; }
.zp-note b { display: block; color: #f6ead3; font-weight: 600; }
.zp-gold { background: linear-gradient(120deg, #e9d2a6, #c9a46c); border: 0; }
.zp-gold svg { stroke: #2a2016; } .zp-gold p { color: #2a2016; font-weight: 600; }
.zp-thanks { font-family: var(--lora); font-style: italic; color: #e8cfa3; text-align: center; margin: 4px 0 0 !important; }
.zp-btn { position: relative; z-index: 2; display: flex; width: max-content; margin: 22px auto 0; padding: 0 34px; }
.zp-foot { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--lora); font-style: italic; font-size: 19px; color: #f1e4c9; margin: 26px 0 0; }
.zp-foot svg { width: 44px; height: 30px; stroke: #e8cfa3; fill: none; stroke-width: 1.4; stroke-linecap: round; }
@media (min-width: 761px) {
  .zp-hair { height: 520px; }
  .zp-top { padding: 70px 6px 34px; }
  .zp-page h1 { font-size: 56px; max-width: 60%; }
  .zp-lead { font-size: 19px; max-width: 48%; }
  .zp-t { font-size: 19px; }
  .zp-body { padding: 18px 28px 26px; font-size: 15px; }
  .zp-body h2 { font-size: 26px; }
  .zp-note p, .zp-gold p { font-size: 14px; }
}
@media (max-width: 400px) {
  .zp-page h1 { font-size: 32px; }
  .zp-t { font-size: 15.5px; }
  .zp-item summary { gap: 10px; padding: 13px 14px; }
}
/* Правила записи v2: оливковый, плитки-иконки */
.zp-item summary { grid-template-columns: 64px 1fr 16px; gap: 16px; padding: 14px 16px; }
.zp-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, rgba(255,245,215,.12), rgba(255,245,215,.03)); box-shadow: inset 0 1px 0 rgba(255,240,210,.18), 0 6px 14px -8px rgba(0,0,0,.6); position: relative; }
.zp-ic::after { content: ""; position: absolute; right: -9px; top: 6px; bottom: 6px; width: 1px; background: rgba(217,182,126,.4); }
.zp-ic svg { width: 32px; height: 32px; }
.zp-t b { display: block; font-family: "Lora", Georgia, serif; font-weight: 500; font-size: 18px; color: #f6ead3; margin-bottom: 3px; }
.zp-t small { display: block; font-family: var(--sans, "Manrope", sans-serif); font-size: 13px; line-height: 1.4; color: #e6dcc6; }
.zp-item[open] .zp-t small { display: none; }
.zp-chev { transform: rotate(-45deg); }
.zp-item[open] .zp-chev { transform: rotate(45deg) translate(-3px,-3px); }
.zp-thx { position: relative; z-index: 2; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-top: 18px; padding: 20px 22px; border-radius: 20px; border: 1px solid rgba(230,195,135,.6);
  background: linear-gradient(120deg, rgba(120,104,70,.55), rgba(196,170,120,.35) 55%, rgba(120,104,70,.45)); box-shadow: 0 0 24px -8px rgba(217,170,100,.5), inset 0 1px 0 rgba(255,235,200,.25); }
.zp-thx svg { width: 64px; height: 50px; stroke: #f1e2c2; fill: none; stroke-width: 1.3; stroke-linecap: round; padding-right: 12px; border-right: 1px solid rgba(243,230,207,.45); box-sizing: content-box; }
.zp-thx h2 { font-family: "Lora", Georgia, serif; font-style: italic; font-weight: 400; font-size: 22px; color: #fbf1de; margin: 0 0 4px; }
.zp-thx p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #f1e8d6; }
.zp-btn { margin-top: 18px; }
@media (min-width: 761px) { .zp-t b { font-size: 21px; } .zp-t small { font-size: 14.5px; } .zp-thx h2 { font-size: 28px; } .zp-thx p { font-size: 15px; } }
@media (max-width: 400px) { .zp-item summary { grid-template-columns: 52px 1fr 14px; gap: 14px; padding: 12px; } .zp-ic { width: 52px; height: 52px; } .zp-ic svg { width: 28px; height: 28px; } .zp-t b { font-size: 16.5px; } .zp-t small { font-size: 12.5px; } .zp-thx { grid-template-columns: 60px 1fr; padding: 16px; gap: 14px; } .zp-thx svg { width: 50px; } }
.zp-ic svg { stroke: #ead2a4; stroke-width: 1.35; }
.zp-ic svg .d { fill: #ead2a4; stroke: none; }
.zp-ic svg { width: 38px; height: 38px; } @media (max-width: 400px) { .zp-ic svg { width: 32px; height: 32px; } }

/* Рекомендации: домашний уход (rekomendacii.html) */
.hc-page .dg-quote cite { display: block; margin-top: 10px; font-size: .78em; font-style: italic; color: #e3c79b; }
.svp-hero[src*="hc-hero"] { object-position: 55% 0%; }
.hc-page .dg-online > img { object-position: 45% 25%; }
.hc-page .dg-how-img { object-position: 50% 40%; }
.hc-page .dg-quote img { object-position: 50% 35%; }
.hc-page .dg-how-img { object-position: 50% 85%; }
@media (max-width: 760px) {
  .hc-page .dg-quote img { height: auto; aspect-ratio: 3 / 2; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
  .hc-page .dg-how-img { height: auto; aspect-ratio: 4 / 5; }
}

/* =========== Анимации: живой сайт =========== */
@keyframes lsPageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lsBreathe { 0%, 100% { scale: 1; } 50% { scale: 1.045; } }
@keyframes lsSway { 0%, 100% { translate: 0 0; } 50% { translate: 10px -14px; } }
@keyframes lsFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes lsGlow { 0%, 100% { box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), 0 0 0 0 rgba(227,199,155,0); } 50% { box-shadow: 0 6px 16px -6px rgba(0,0,0,.6), 0 0 0 6px rgba(227,199,155,.14); } }
@keyframes lsSweep { 0% { left: -45%; } 55%, 100% { left: 130%; } }
@keyframes lsDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lsDown { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes lsRipple { to { transform: scale(3.2); opacity: 0; } }
@keyframes lsLogo { from { opacity: 0; letter-spacing: .06em; filter: blur(4px); } to { opacity: 1; letter-spacing: normal; filter: none; } }

body { animation: lsPageIn .7s ease both; }
body.ls-leave { opacity: 0; transition: opacity .28s ease; }

/* Логотип проявляется */
.ab3-script, .script-logo { animation: lsLogo 1.4s cubic-bezier(.2,.7,.2,1) both; }

/* Главные фото «дышат», листья колышутся */
.svp-hero, .zp-hair, .hero-photo > img { animation: lsBreathe 16s ease-in-out infinite; transform-origin: 60% 30%; will-change: scale, translate; }
.svp-leaf { animation: lsSway 11s ease-in-out infinite; }
.svp-leaf--tc { animation-duration: 14s; animation-direction: reverse; }

/* Карточки приподнимаются при наведении */
.svp-card, .zp-item, .card, .dg-item, .svp-step, .svp-duo .svp-card {
  transition: opacity 1s var(--ease), transform 1s var(--ease), translate .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
@media (hover: hover) {
  .svp-card:hover, .card:hover { translate: 0 -4px; border-color: rgba(243,230,207,.6); box-shadow: 0 18px 36px -22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16); }
  .zp-item:hover { translate: 0 -2px; border-color: rgba(230,195,135,.8); }
  .dg-item:hover { translate: 4px 0; }
  .svp-card img, .dg-how-img, .svp-step img { transition: scale .9s var(--ease), filter .9s var(--ease); }
  .svp-card:hover img, .dg-how:hover .dg-how-img, .svp-step:hover img { scale: 1.04; filter: brightness(1.05); }
}
.svp-card, .dg-how-img { overflow: hidden; }

/* Иконки мягко светятся и покачиваются */
.dg-page .dg-ic, .zp-ic { animation: lsGlow 4.5s ease-in-out infinite, lsFloat 5s ease-in-out infinite; }
.dg-item:nth-child(2n) .dg-ic, .zp-item:nth-child(2n) .zp-ic { animation-delay: -1.5s, -2.5s; }
.dg-item:nth-child(3n) .dg-ic, .zp-item:nth-child(3n) .zp-ic { animation-delay: -3s, -1s; }

/* Кнопки: блик и волна при нажатии */
.dg-btn, .zp-btn { position: relative; overflow: hidden; isolation: isolate; }
.dg-btn:not(.dg-btn--ghost)::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 32%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-18deg); animation: lsSweep 4.6s ease-in-out infinite; }
.dg-btn span[aria-hidden] { display: inline-block; transition: translate .3s var(--ease); }
.dg-btn:hover span[aria-hidden] { translate: 5px 0; }
.ls-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: lsRipple .7s ease-out forwards; pointer-events: none; }

/* Линия у заголовков разделов вырастает */
.svp-sect::after { transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) .25s; }
.svp-sect.is-in::after, .no-js .svp-sect::after { transform: none; }

/* Номера шагов загораются по очереди */
.dg-steps b, .svp-step b { transition: scale .5s var(--ease); }
.dg-steps li.is-in b, .svp-step.is-in b { animation: lsGlow 3.5s ease-in-out infinite; }

/* Аккордеон правил: плавное раскрытие */
.zp-item[open] .zp-body { animation: lsDown .5s var(--ease) both; }
.zp-item summary:active .zp-ic { scale: .94; }

/* Сердечко-подпись рисуется */
.zp-thx svg path, .zp-foot svg path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.zp-thx.is-in svg path, .zp-foot.is-in svg path { animation: lsDraw 2.4s ease .3s forwards; }

/* Пункты меню выезжают по очереди */
.ab3-menu a { transition: color .3s, translate .45s var(--ease), opacity .45s var(--ease); }
.svp:not([data-open]) .ab3-menu a, .hero-photo:not([data-open]) .ab3-menu a, .ab3:not(.is-menu) .ab3-menu a { opacity: 0; translate: 12px 0; }
.ab3-menu a:nth-child(2) { transition-delay: .04s; } .ab3-menu a:nth-child(3) { transition-delay: .08s; }
.ab3-menu a:nth-child(4) { transition-delay: .12s; } .ab3-menu a:nth-child(5) { transition-delay: .16s; }
.ab3-menu a:nth-child(6) { transition-delay: .2s; } .ab3-menu a:nth-child(7) { transition-delay: .24s; }
.ab3-menu a:nth-child(8) { transition-delay: .28s; } .ab3-menu a:nth-child(9) { transition-delay: .32s; }

/* Появление с лёгким размытием */
.reveal { filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), translate .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.reveal.is-in, .no-js .reveal { filter: none; }

@media (prefers-reduced-motion: reduce) {
  body, .svp-hero, .zp-hair, .hero-photo > img, .svp-leaf, .dg-ic, .zp-ic, .ab3-script, .script-logo { animation: none !important; }
  .reveal { filter: none; }
  .svp-sect::after { transform: none; }
  .zp-thx svg path, .zp-foot svg path { stroke-dasharray: none; }
}

/* Длинная страница: разделы Диагностика / Правила записи / Рекомендации */
html { scroll-behavior: smooth; }
html:has(.ls-part) { scroll-padding-top: 0; }
.svp.ls-part { min-height: 0; }
.ls-part .svp-wrap { padding-top: 56px; }
.ls-part .svp-top { margin-top: 0; }
.ls-part + .ls-part { border-top: 1px solid rgba(243,230,207,.18); }
.ls-part.zp-page .zp-top { padding-top: 0; }
.ls-part .zp-hair { top: 0; }
@media (min-width: 761px) { .ls-part .svp-wrap { padding-top: 80px; } }

/* =========== Анимации, часть 2: ещё больше жизни =========== */
@keyframes lsDrift { 0% { transform: translate(0,0) rotate(0deg); } 33% { transform: translate(4%, -3%) rotate(4deg); } 66% { transform: translate(-3%, 3%) rotate(-3deg); } 100% { transform: translate(0,0) rotate(0deg); } }
@keyframes lsShimmer { 0% { background-position: 200% 50%; } 100% { background-position: -200% 50%; } }
@keyframes lsPop { 0% { scale: 0; } 70% { scale: 1.25; } 100% { scale: 1; } }
@keyframes lsMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lsBorder { 0%, 100% { border-color: rgba(230,195,135,.85); } 50% { border-color: rgba(250,225,175,.4); } }
@keyframes lsPulse { 0%, 100% { box-shadow: 0 16px 40px -16px rgba(0,0,0,.45), 0 0 0 0 rgba(243,230,207,.35); } 50% { box-shadow: 0 16px 40px -16px rgba(0,0,0,.45), 0 0 0 10px rgba(243,230,207,0); } }
@keyframes lsBurger { 0%, 100% { width: auto; } }

/* Полоса прогресса прокрутки */
.ls-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #a9875c, #f3e6cf, #c9a46c); box-shadow: 0 0 10px rgba(227,199,155,.7); }

/* Золотые пылинки */
.ls-dust { position: fixed; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; }

/* Фон разделов медленно переливается */
.svp::before, .sv::before { content: ""; position: absolute; inset: -25%; pointer-events: none; z-index: 0;
  background: radial-gradient(30% 25% at 25% 30%, rgba(200,180,120,.16), transparent 70%), radial-gradient(28% 22% at 75% 70%, rgba(170,160,110,.14), transparent 70%), radial-gradient(22% 18% at 60% 15%, rgba(243,230,207,.08), transparent 70%);
  animation: lsDrift 26s ease-in-out infinite; }
.sv > * { position: relative; z-index: 1; }

/* Логотип переливается золотом */
.ab3-script, .script-logo { background: linear-gradient(100deg, #fffdfa 0%, #fffdfa 40%, #e9cf9c 50%, #fffdfa 60%, #fffdfa 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: lsLogo 1.4s cubic-bezier(.2,.7,.2,1) both, lsShimmer 7s linear 1.4s infinite; }

/* Заголовки появляются по словам */
.ls-w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(3deg); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .9s cubic-bezier(.2,.8,.2,1), filter .8s var(--ease); transition-delay: calc(var(--i) * 70ms + 80ms); }
.ls-on .ls-w { opacity: 1; transform: none; filter: none; }

/* Фото открываются «шторкой» */
.reveal :is(.dg-how-img, .dg-quote img, .dg-online > img, .svp-step img, .svp-duo img, .svp-who img, .svp-gallery img, .sv-card img) { clip-path: inset(0 0 100% 0 round 16px); transition: clip-path 1.4s cubic-bezier(.7,0,.2,1) .15s, scale .9s var(--ease), filter .9s var(--ease); }
.reveal.is-in :is(.dg-how-img, .dg-quote img, .dg-online > img, .svp-step img, .svp-duo img, .svp-who img, .svp-gallery img, .sv-card img) { clip-path: inset(0 0 0 0 round 0); }
.dg-how.reveal .dg-how-img { clip-path: inset(0 0 100% 0 round 18px); }
.dg-how.reveal.is-in .dg-how-img { clip-path: inset(0 round 18px); }

/* Иконки выпрыгивают с поворотом */
.dg-item .dg-ic, .dg-three .dg-ic, .zp-item .zp-ic { scale: .3; rotate: -25deg; transition: scale .9s cubic-bezier(.34,1.56,.64,1) .2s, rotate .9s cubic-bezier(.34,1.56,.64,1) .2s; }
.dg-item.is-in .dg-ic, .dg-three .is-in .dg-ic, .zp-item.is-in .zp-ic { scale: 1; rotate: 0deg; }
.dg-online-feats svg, .svp-feats svg, .svp-checks svg { transition: scale .7s cubic-bezier(.34,1.56,.64,1) .3s; scale: .2; }
.is-in .dg-online-feats svg, .dg-online-feats .is-in svg, .is-in.svp-feats svg, .svp-feats .is-in svg, .svp-checks .is-in svg, .is-in .svp-checks svg { scale: 1; }

/* Галочки и точки выскакивают */
.dg-ticks li.is-in::before, .zp-ticks li.is-in::before, .zp-nums li.is-in::before { animation: lsPop .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: inherit; }
.zp-ticks li::after { transition: opacity .3s .45s; opacity: 0; } .zp-ticks li.is-in::after { opacity: 1; }

/* Номера шагов выпрыгивают */
.dg-steps li b { scale: 0; transition: scale .8s cubic-bezier(.34,1.56,.64,1) .15s; }
.dg-steps li.is-in b { scale: 1; }
.dg-steps::before { transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease) .3s; }
.dg-how.is-in .dg-steps::before, .dg-steps.is-in::before { transform: none; }

/* Свет следует за пальцем/мышкой по карточке */
.svp-card::after, .zp-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,240,205,.16), transparent 70%); }
.svp-card:hover::after, .zp-item:hover::after, .ls-touch::after { opacity: 1; }
.zp-item { position: relative; }

/* Открытая карточка правил переливается рамкой */
.zp-item[open] { animation: lsBorder 3s ease-in-out infinite; }

/* Плавающая кнопка «Связаться» пульсирует */
.float-book .btn { animation: lsPulse 2.8s ease-out infinite; }

/* Бургер: средняя линия «дышит» */
.ab3-burger span { transition: transform .35s var(--ease), opacity .2s, left .5s var(--ease); }
.ab3-burger:hover span { left: 16px; }

/* Бегущая строка между разделами */
.ls-marquee { position: relative; z-index: 2; overflow: hidden; white-space: nowrap; padding: 14px 0; background: linear-gradient(90deg, #3f3e28, #4a4930, #3f3e28);
  border-top: 1px solid rgba(243,230,207,.18); border-bottom: 1px solid rgba(243,230,207,.18); }
.ls-marquee div { display: inline-flex; gap: 0; animation: lsMarquee 38s linear infinite; }
.ls-marquee span { font-family: "Lora", Georgia, serif; font-style: italic; font-size: 17px; color: #f3e6cf; padding: 0 18px; }
.ls-marquee i { color: #c9a46c; font-style: normal; }
.ls-marquee:nth-of-type(2n) div { animation-direction: reverse; }

/* Кнопки «тянутся» за курсором */
.dg-btn, .pill { transition: transform .2s, filter .3s, translate .35s cubic-bezier(.2,.8,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .ls-dust, .ls-progress { display: none; }
  .svp::before, .sv::before, .ls-marquee div, .float-book .btn, .zp-item[open] { animation: none !important; }
  .ls-w { opacity: 1; transform: none; filter: none; }
  .reveal :is(.dg-how-img, .dg-quote img, .dg-online > img, .svp-step img, .svp-duo img, .svp-who img, .svp-gallery img, .sv-card img), .dg-how.reveal .dg-how-img { clip-path: none; }
  .dg-item .dg-ic, .dg-three .dg-ic, .zp-item .zp-ic, .dg-steps li b, .dg-online-feats svg, .svp-feats svg, .svp-checks svg { scale: 1; rotate: 0deg; }
  .dg-steps::before { transform: none; }
}
.ls-in { display: inline; }

/* Три полоски: без чёрной рамки после нажатия */
.ab3-burger:focus { outline: none; }
.ab3-burger:focus-visible { outline: 1.5px solid rgba(243,230,207,.6); outline-offset: 2px; border-radius: 8px; }

/* Верхняя строка-меню при прокрутке */
.ls-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
  background: rgba(52,51,34,.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(243,230,207,.18); box-shadow: 0 10px 30px -18px rgba(0,0,0,.7);
  transform: translateY(-110%); opacity: 0; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.ls-bar.is-on { transform: none; opacity: 1; }
.ls-bar-logo { flex: none; font-family: "Great Vibes", cursive; font-size: 24px; line-height: 1; color: #f3e6cf; text-decoration: none; padding-right: 10px; border-right: 1px solid rgba(243,230,207,.25); }
.ls-bar nav { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); padding: 2px 14px; }
.ls-bar nav::-webkit-scrollbar { display: none; }
.ls-bar nav a { flex: none; scroll-snap-align: center; white-space: nowrap; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 500; color: #efe6d2; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; opacity: 0; translate: 0 -8px;
  transition: background .35s, color .35s, border-color .35s, opacity .4s, translate .5s cubic-bezier(.2,.8,.2,1); }
.ls-bar.is-on nav a { opacity: 1; translate: 0 0; }
.ls-bar nav a:nth-child(2) { transition-delay: 0s, 0s, 0s, .05s, .05s; } .ls-bar nav a:nth-child(3) { transition-delay: 0s, 0s, 0s, .1s, .1s; }
.ls-bar nav a:nth-child(4) { transition-delay: 0s, 0s, 0s, .15s, .15s; } .ls-bar nav a:nth-child(5) { transition-delay: 0s, 0s, 0s, .2s, .2s; }
.ls-bar nav a:nth-child(6) { transition-delay: 0s, 0s, 0s, .25s, .25s; } .ls-bar nav a:nth-child(7) { transition-delay: 0s, 0s, 0s, .3s, .3s; }
.ls-bar nav a:hover { border-color: rgba(243,230,207,.35); }
.ls-bar nav a.is-active { background: linear-gradient(120deg, #f4e7cf, #e3cfab); color: #2b2a1f; }
.ls-bar nav a[data-tg] { border-color: rgba(243,230,207,.45); }
.ls-progress { z-index: 95; }
/* три полоски «складываются» в строку */
.ab3-burger { transition: opacity .4s, scale .5s cubic-bezier(.2,.8,.2,1), rotate .5s; }
body.ls-bar-shown .ab3-burger { opacity: 0; scale: .4; rotate: 90deg; pointer-events: none; }
body.ls-bar-shown .ab3-menu { opacity: 0 !important; visibility: hidden !important; }
html:has(.ls-part) { scroll-padding-top: 58px !important; }
@media (min-width: 761px) {
  .ls-bar { justify-content: center; padding: 10px 24px; }
  .ls-bar nav { flex: 0 1 auto; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .ls-bar nav a { font-size: 14px; padding: 9px 16px; }
  .ls-bar-logo { font-size: 28px; position: absolute; left: 24px; border-right: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) { .ls-bar-logo { display: none; } }
@media (prefers-reduced-motion: reduce) { .ls-bar, .ls-bar nav a { transition: none; } }
.ls-bar nav { position: relative; }

/* Лого: перелив не обрезает завитки рукописных букв */
.ab3-script, .script-logo { padding: .18em .35em .22em; margin: -.18em -.35em -.22em; overflow: visible; }

/* Веточка в «Услугах» — фон, не занимает места */
.sv > .sv-leaves { position: absolute; z-index: 0; }

/* Переключатель языков RU / UZ / EN */
.ls-lang { display: flex; gap: 4px; }
.ls-lang a { font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: rgba(243,230,207,.7); text-decoration: none;
  padding: 6px 9px; border-radius: 999px; border: 1px solid transparent; transition: color .3s, border-color .3s, background .3s; }
.ls-lang a:hover { color: #f3e6cf; border-color: rgba(243,230,207,.3); }
.ls-lang a[aria-current] { color: #2f2f20; background: #f3e6cf; }
.ab3-menu .ls-lang { margin: 8px 18px 4px; padding-top: 12px; border-top: 1px solid rgba(230,213,189,.18); }
.ab3-menu .ls-lang a { padding: 6px 11px; font-size: 12px; }
.ab3-menu .ls-lang a:hover { background: none; }
.ab3-menu .ls-lang a[aria-current] { background: #f3e6cf; }
.ls-bar .ls-lang { flex: none; gap: 2px; padding-left: 8px; border-left: 1px solid rgba(243,230,207,.25); }
.ls-bar .ls-lang a { padding: 5px 7px; font-size: 11px; }
@media (max-width: 520px) { .ls-bar .ls-lang { padding-left: 4px; } .ls-bar .ls-lang a { padding: 5px 5px; font-size: 10.5px; } }
