/* Студия подологии Светланы Кишмишевой */

:root {
  --bg: #F6F3EE;
  --bg-2: #EDF1EE;
  --surface: #FFFFFF;
  --ink: #1F2A28;
  --ink-2: #44514E;
  --muted: #74807C;
  --line: #E2DDD5;
  --sage: #8FA39B;
  --sage-soft: #DCE5E0;
  --brand: #3E5A53;
  --brand-hover: #314A44;
  --accent: #A8644F;
  --star: #C9A15A;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -24px rgba(31, 42, 40, .28);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(72px, 10vw, 128px) 0; }

/* Типографика */
h1, h2 { font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h2 em, h1 em {
  font-family: var(--serif); font-style: normal; font-weight: 600;
  color: var(--accent); letter-spacing: 0; font-size: 1.36em; line-height: .8;
}
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { text-wrap: pretty; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.head--row > div:first-child { flex: 1 1 520px; max-width: 760px; }
.head__sub { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 560px; }
.head--row .head__sub, .head--row > .rating { flex: 0 1 400px; margin-top: 0; max-width: 420px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: transparent; border-color: rgba(31, 42, 40, .18); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.link, .link-plain { background: none; border: 0; padding: 0; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link-plain { text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(31, 42, 40, .18); background: var(--surface);
  display: inline-grid; place-items: center; transition: background .25s, border-color .25s, color .25s;
}
.round svg { width: 20px; height: 20px; }
.round:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .3s var(--ease); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: 52px; height: 52px; transition: transform .6s var(--ease); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.brand__text span { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { font-weight: 600; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(31, 42, 40, .18); background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 0 28px; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mnav__links { display: flex; flex-direction: column; padding: 0 clamp(16px, 4vw, 40px); }
.mnav__links a { font-size: 22px; font-weight: 600; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mnav__contacts { display: grid; gap: 10px; padding: 24px clamp(16px, 4vw, 40px) 0; }

/* Первый экран */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.02; margin-bottom: 26px; }
.hero__title .line { display: block; }
.hero__title em { display: inline-block; padding-right: .06em; }
.hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; font-size: 14.5px; color: var(--ink-2); }
.hero__facts li, .hero__facts a { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts a:hover { color: var(--ink); }
.hero__facts b { color: var(--ink); }
.nowrap { white-space: nowrap; }
.hero__facts > li > svg { width: 18px; height: 18px; color: var(--brand); }
.hero__media { position: relative; --inset: 20px; }
.hero__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; background: var(--sage-soft);
}
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%; }
.hero__card {
  position: absolute; left: var(--inset); bottom: var(--inset); max-width: calc(100% - var(--inset) * 2 - 140px); background: var(--surface); border-radius: var(--radius-sm);
  padding: 14px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.3;
}
.hero__card b { font-size: 15px; }
.hero__card span { font-size: 13.5px; color: var(--muted); }
.hero__award {
  position: absolute; right: var(--inset); top: var(--inset); background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  padding: 12px 16px; display: grid; line-height: 1.2; box-shadow: var(--shadow);
}
.hero__award-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.hero__award-v { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.05; }
.hero__award-s { font-size: 12px; opacity: .7; }
.hero__badge {
  position: absolute; right: var(--inset); bottom: var(--inset); width: 124px; height: 124px; border-radius: 50%;
  background: var(--sage-soft); border: 0; padding: 0; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .55), 0 14px 34px -14px rgba(31, 42, 40, .5);
}
.hero__badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge text { font-size: 12.4px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: var(--brand); }
.hero__badge-arrow { width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease); }
.hero__badge-arrow svg { width: 20px; height: 20px; transform: rotate(-45deg); }
.hero__badge:hover .hero__badge-arrow { transform: scale(1.08); }
.hero__steps { position: absolute; inset: 0; pointer-events: none; }
.hero__steps svg { position: absolute; width: 18px; height: 40px; color: var(--sage); opacity: 0; }

/* Доверие */
.trust { padding: 0 0 clamp(24px, 4vw, 40px); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust__item { background: var(--surface); padding: 26px 24px; display: flex; gap: 16px; align-items: flex-start; }
@media (min-width: 1101px) { .trust__item { flex-direction: column; gap: 14px; } }
.trust__item b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.trust__item p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.ico { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); color: var(--brand); display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; }

/* Проблемы */
.problems__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: p; }
.problems__list a {
  width: 100%; height: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 6px; position: relative;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.problems__list .num { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--accent); margin-bottom: 26px; }
.problems__list b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; padding-right: 26px; }
.problems__list span:not(.num) { font-size: 14px; color: var(--muted); line-height: 1.5; }
.problems__list .go { position: absolute; right: 20px; top: 26px; width: 20px; height: 20px; color: var(--brand); transform: rotate(-45deg); transition: transform .3s var(--ease); }
.problems__list a:hover { border-color: var(--sage); background: #FBFCFB; }
.problems__list a:hover .go { transform: rotate(0); }

/* Услуги */
.services { background: var(--surface); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)) 28px; padding: 2px clamp(16px, 4vw, 40px); -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 11px 20px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s;
}
.tab:hover { border-color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab sup { font-size: 11px; font-weight: 600; opacity: .55; margin-left: 3px; }
.svc { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.svc + .svc { margin-top: 56px; }
.svc__h { grid-column: 1 / -1; font-size: clamp(24px, 3vw, 32px); margin-bottom: -8px; }
.js .svc__h { display: none; }
.js .svc + .svc { margin-top: 0; }
.svc-panels > .svc { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.svc-panels > .svc.is-switching { opacity: 0; transform: translateY(10px); }
.svc__cover { position: sticky; top: calc(var(--header-h) + 24px); aspect-ratio: 4 / 4.4; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.svc__cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform 1.2s var(--ease); }
.svc__cover-bg { display: none; }
.svc__list { border-top: 1px solid var(--line); }
.svc__row {
  width: 100%; display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 8px 20px;
  list-style: none; padding: 20px 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.svc__row::-webkit-details-marker { display: none; }
.svc__row::marker { content: ""; }
.svc__name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.svc__meta { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.svc__price { font-size: 18px; font-weight: 700; white-space: nowrap; text-align: right; letter-spacing: -.01em; }
.svc__price--text { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.svc__price small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.svc__toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.svc__toggle svg { width: 14px; height: 14px; }
.svc__item[open] .svc__toggle { transform: rotate(45deg); background: var(--bg-2); }
.svc__list > li { border-bottom: 1px solid var(--line); }
.svc__more p { color: var(--ink-2); font-size: 15px; max-width: 46em; padding-right: 48px; }
.svc__more .btn { margin: 16px 0 22px; }
.svc__note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.svc__empty { padding: 24px 0; color: var(--muted); }

/* Специалист */
.specialist__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.specialist__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1280 / 853; }
.specialist__photo img { width: 100%; height: 100%; object-fit: cover; }
.specialist__role { font-size: 18px; color: var(--brand); font-weight: 500; margin: 14px 0 18px; }
.specialist__text > p:not(.eyebrow):not(.specialist__role) { color: var(--ink-2); font-size: 16.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.stats div { border-top: 1px solid var(--ink); padding-top: 14px; }
.stats b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 4vw, 52px); line-height: 1; color: var(--ink); }
.stats span { font-size: 13.5px; color: var(--muted); line-height: 1.4; display: block; margin-top: 6px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.creds__col { background: var(--surface); border-radius: var(--radius); padding: 30px 28px; }
.creds__col h3 { margin-bottom: 16px; }
.creds__col li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.creds__col li + li { margin-top: 10px; }
.edu-list li b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.edu-list li span { display: block; margin-top: 3px; }
.edu-list li + li { margin-top: 14px; }
.creds__col .edu-list li::before { top: .5em; }
.creds__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--sage); }
.colleague {
  grid-column: 1 / -1; background: var(--bg-2); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
}
.colleague__photo { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--sage-soft); }
.colleague__photo img { width: 100%; height: 100%; object-fit: cover; }
.colleague .eyebrow { margin-bottom: 10px; }
.colleague h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; margin-bottom: 8px; }
.colleague__lead { font-size: 17px; color: var(--ink); font-weight: 500; margin-bottom: 18px; }
.colleague__quote { margin: 0 0 22px; padding: 4px 0 4px 20px; border-left: 2px solid var(--sage); }
.colleague__quote p { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
.colleague__quote p + p { margin-top: 8px; }
.colleague__quote b { color: var(--ink); font-weight: 600; }

/* Студия, галерея */
.studio { background: var(--bg-2); }
.gallery { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; outline: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-drag { cursor: grabbing; }
.gallery__track { display: flex; gap: 16px; padding: 0 clamp(16px, 4vw, 40px); width: max-content; }
.gallery figure { height: clamp(280px, 38vw, 460px); border-radius: var(--radius); overflow: hidden; flex: none; background: var(--sage-soft); }
.gallery img { width: auto; max-width: none; height: 100%; object-fit: cover; transition: transform .8s var(--ease); pointer-events: none; -webkit-user-drag: none; user-select: none; }
.gallery figure:hover img { transform: scale(1.04); }

/* Шаги */
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps__list li { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); position: relative; }
.steps__list .num {
  display: grid; place-items: center; line-height: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sage);
  font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--accent); margin-bottom: 22px;
}
.steps__list b { display: block; font-size: 17px; margin-bottom: 8px; }
.steps__list p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* Обучение */
.edu { padding-top: 0; }
.edu__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--ink); color: #EEF1EF; border-radius: calc(var(--radius) + 8px); padding: clamp(20px, 3vw, 32px); }
.edu__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; }
.edu__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.edu__text { padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 32px) clamp(8px, 2vw, 24px) 0; }
.edu .eyebrow { color: var(--sage-soft); }
.edu h2 { color: #fff; margin-bottom: 20px; }
.edu h2 em { color: #E1B7A6; }
.edu p:not(.eyebrow) { color: rgba(238, 241, 239, .78); font-size: 16px; }
.edu p + p { margin-top: 12px; }
.edu__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.edu .btn--primary { background: #fff; color: var(--ink); }
.edu .btn--primary:hover { background: var(--sage-soft); }
.edu .link { color: #fff; }

/* Отзывы */
.rating { display: flex; align-items: center; gap: 18px; background: var(--surface); border-radius: var(--radius); padding: 16px 24px 16px 20px; }
.rating__score { font-family: var(--serif); font-weight: 600; font-size: 54px; line-height: 1; color: var(--ink); }
.rating p { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 4px; }
.reviews__wrap { position: relative; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; outline: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.review header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review header b { font-size: 16px; }
.review time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.review::before { content: "★★★★★"; color: var(--star); letter-spacing: 3px; font-size: 14px; order: -1; }
.review p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.reviews__nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ywidget { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ywidget iframe { width: 100%; height: 720px; border: 0; display: block; }

/* Запись */
.booking { background: var(--surface); }
.booking__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.booking__intro > p:not(.eyebrow) { color: var(--ink-2); font-size: 16.5px; margin-top: 18px; }
.channels { display: grid; gap: 10px; margin-top: 28px; }
.channels a { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s, background .25s; }
.channels a:hover { border-color: var(--sage); background: #FBFCFB; }
.channels b { display: block; font-size: 15.5px; }
.channels span:last-child { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.ico--tg { background: #E6F1F8; color: #2A8BC9; }
.ico--wa { background: #E7F5EA; color: #2EA44F; }
.booking__form { background: var(--bg); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.4vw, 40px); }

/* Форма */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 44px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2344514E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #A3ABA8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62, 90, 83, .14); }
.field.is-invalid input { border-color: #C0573F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1.5px solid var(--muted);
  background: var(--surface) center / 14px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.consent input:checked { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form__submit { width: 100%; margin-top: 4px; }
.form__error { color: #B04A33; font-size: 14px; }
.form__done { text-align: center; padding: 28px 8px 8px; display: grid; justify-items: center; gap: 8px; }
.form__done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--sage-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 8px; }
.form__done-ico svg { width: 30px; height: 30px; }
.form__done b { font-size: 20px; }
.form__done p { color: var(--ink-2); }
.form.is-sent > :not(.form__done) { display: none; }

/* Контакты */
.contacts__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.clist { display: grid; gap: 18px; margin-bottom: 26px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist > li > svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.clist b { display: block; font-size: 16.5px; }
.clist span { font-size: 14px; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: border-color .2s; }
.socials a:hover { border-color: var(--ink-2); }
.socials svg { width: 18px; height: 18px; color: var(--brand); }
.entrance { margin-top: 30px; }
.entrance__t { font-weight: 600; margin-bottom: 12px; }
.entrance__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entrance figure { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.entrance img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.entrance figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px 10px; line-height: 1.4; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--bg-2); align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.map iframe { width: 100%; height: 560px; border: 0; display: block; }
/* Картинка карты: на телефоне и планшете вместо живой карты (её блокируют просмотрщики и она мешает прокрутке) */
.map__static { display: none; position: relative; }
.map__static img { width: 100%; height: auto; aspect-ratio: 650 / 450; object-fit: cover; }
.map__btn {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 12px 20px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow);
}
.map__btn svg { width: 18px; height: 18px; color: var(--brand); }
html:not(.js) .map iframe { display: none; }
html:not(.js) .map__static { display: block; }

/* Подвал */
.footer { background: var(--ink); color: rgba(238, 241, 239, .8); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__brand { display: flex; gap: 20px; align-items: flex-start; max-width: 420px; }
.footer__brand img { width: 88px; height: 88px; flex: none; border-radius: 50%; }
.footer__nav, .footer__contacts { display: grid; gap: 10px; align-content: start; }
.footer a:hover { color: #fff; }
.footer__legal { padding-top: 24px; display: grid; gap: 6px; font-size: 13px; color: rgba(238, 241, 239, .55); }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__disclaimer { font-size: 12.5px; }

/* Панель на телефоне */
.mbar { display: none; }

/* Без скриптов (например, просмотр файла на iPhone): скрываем то, что без них не работает */
html:not(.js) .burger, html:not(.js) .tabs, html:not(.js) .reviews__nav, html:not(.js) [data-widget] { display: none !important; }
html:not(.js) .mbar.is-hidden { transform: none; opacity: 1; }

/* Модальное окно */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 31, 29, .48); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  overscroll-behavior: contain; background: var(--bg); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 40px);
}
.modal__dialog h2 { font-size: clamp(28px, 4vw, 38px); padding-right: 48px; }
.modal__sub { color: var(--ink-2); margin: 10px 0 22px; }
.modal__close { position: absolute; right: 16px; top: 16px; }
.modal__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.modal__alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.modal__alt svg { width: 18px; height: 18px; color: var(--brand); }
body.is-locked { overflow: hidden; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18, 24, 23, .92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; object-fit: contain; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }

.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(420px, calc(100% - 32px));
  background: var(--surface); border-radius: 20px; padding: 20px 22px; box-shadow: 0 20px 60px -20px rgba(31, 42, 40, .35); font-size: 14px; color: var(--ink-2);
}
.cookie a { color: var(--brand); text-decoration: underline; }
.cookie__btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; font-size: 14px; }
  .header__phone { display: none; }
  .problems__list { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .creds { grid-template-columns: 1fr 1fr; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .reviews__track { grid-auto-columns: calc((100% - 16px) / 2); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; gap: 10px; }
  .brand__logo { width: 44px; height: 44px; }
  .hero__grid, .specialist__grid, .booking__grid, .contacts__grid, .svc, .edu__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .hero__media { --inset: 16px; }
  /* Фото в прайсе целиком: снимок вписан в рамку по центру, на спокойном фоне */
  .svc__cover { position: relative; top: 0; aspect-ratio: 4 / 3; max-width: 640px; width: 100%; margin: 0 auto; }
  .svc__cover { background: var(--bg-2); }
  .svc__cover .svc__cover-img { position: relative; object-fit: contain; }
  .edu__photo { aspect-ratio: 960 / 1280; max-width: 480px; width: 100%; margin: 0 auto; }
  .edu__photo img { object-position: 50% 50%; }
  .edu__text { padding: 4px 6px 10px; }
  .map { position: relative; top: 0; }
  .map iframe { display: none; }
  .map__static { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .header .btn--sm { display: none; }
  .brand__text b { font-size: 14px; }
  .brand__text span { font-size: 9.5px; letter-spacing: .16em; }
  .hero { padding-top: 20px; }
  .hero__title { margin-bottom: 18px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { gap: 10px; flex-direction: column; margin-top: 26px; }
  .hero__photo { aspect-ratio: 4 / 4.6; }
  .hero__media { --inset: 14px; }
  .hero__card { max-width: calc(100% - var(--inset) * 2 - 108px); padding: 9px 12px; border-radius: 12px; }
  .hero__card b { font-size: 14px; }
  .hero__card span { font-size: 12px; }
  .hero__award { padding: 9px 12px; border-radius: 12px; }
  .hero__award-k, .hero__award-s { font-size: 10.5px; }
  .hero__award-v { font-size: 24px; }
  .hero__badge { width: 100px; height: 100px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .55), 0 12px 28px -12px rgba(31, 42, 40, .5); }
  .hero__badge text { font-size: 13.5px; letter-spacing: .08em; }
  .hero__badge-arrow { width: 42px; height: 42px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { padding: 20px 18px; }
  .problems__list { grid-template-columns: 1fr; gap: 10px; }
  /* номер стоит на одной линии с заголовком карточки */
  .problems__list a { padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; row-gap: 3px; align-items: baseline; }
  .problems__list .num { margin: 0; font-size: 20px; line-height: 1.3; grid-column: 1; grid-row: 1; }
  .problems__list b { font-size: 16px; grid-column: 2; grid-row: 1; }
  .problems__list span:not(.num) { font-size: 13.5px; grid-column: 2; grid-row: 2; }
  .problems__list .go { top: 18px; right: 16px; width: 18px; height: 18px; }
  .svc__row { grid-template-columns: 1fr auto; padding: 18px 0; }
  .svc__toggle { display: none; }
  .svc__name { font-size: 16px; }
  .svc__price { font-size: 16.5px; }
  .svc__price--text { font-size: 13.5px; white-space: normal; width: min-content; line-height: 1.3; }
  .svc__more p { padding-right: 0; }
  .svc__cover { border-radius: var(--radius-sm); }
  .stats { gap: 10px; }
  .stats b { font-size: 36px; }
  .creds { grid-template-columns: 1fr; }
  .creds__col { padding: 24px 20px; }
  .colleague { grid-template-columns: 96px 1fr; padding: 20px; gap: 6px 16px; align-items: center; }
  .colleague__text { display: contents; }
  .colleague__photo { grid-row: 1 / span 3; align-self: start; border-radius: 16px; }
  .colleague .eyebrow { grid-column: 2; margin: 0; font-size: 11px; }
  .colleague h3 { grid-column: 2; margin: 0; font-size: 24px; }
  .colleague__lead { grid-column: 2; margin: 0; font-size: 14.5px; }
  .colleague__quote { grid-column: 1 / -1; margin: 12px 0 4px; padding-left: 16px; }
  .colleague__quote p { font-size: 14.5px; }
  .colleague .link { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
  .steps__list { grid-template-columns: 1fr; gap: 10px; }
  /* круг с цифрой стоит по центру строки с заголовком шага */
  .steps__list li { padding: 20px; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-items: center; }
  .steps__list .num { margin: 0; grid-column: 1; grid-row: 1; }
  .steps__list b { margin: 0; grid-column: 2; grid-row: 1; }
  .steps__list p { grid-column: 2; grid-row: 2; }
  .reviews__track { grid-auto-columns: 88%; gap: 12px; }
  .review { padding: 22px 20px; }
  .rating { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .entrance__row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { flex-direction: column; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .cookie { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 14px 16px; font-size: 13px; line-height: 1.5; border-radius: 18px; z-index: 75; }
  .cookie__btns { margin-top: 10px; flex-wrap: nowrap; }
  .cookie__btns .btn { flex: 1; min-height: 40px; padding: 0 12px; font-size: 13.5px; }
  .mbar {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    padding: 8px; border-radius: 999px; box-shadow: 0 12px 40px -12px rgba(31, 42, 40, .35);
    transition: transform .4s var(--ease), opacity .4s;
  }
  .mbar .btn { flex: 1; min-height: 48px; }
  .mbar__ico { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-2); color: var(--brand); display: grid; place-items: center; flex: none; }
  .mbar__ico svg { width: 21px; height: 21px; }
  .mbar.is-hidden { transform: translateY(140%); opacity: 0; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__dialog { width: 100%; border-radius: 26px 26px 0 0; max-height: 94vh; max-height: 94dvh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .hero__media { --inset: 12px; }
  .hero__badge { width: 80px; height: 80px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 10px 24px -10px rgba(31, 42, 40, .5); }
  .hero__card { max-width: calc(100% - var(--inset) * 2 - 88px); padding: 8px 10px; }
  .hero__card b { font-size: 13px; }
  .hero__card span { font-size: 11px; }
  .hero__badge-arrow { width: 36px; height: 36px; }
  .hero__badge-arrow svg { width: 16px; height: 16px; }
}

@media (max-width: 380px) {
  .brand__text span { font-size: 9px; letter-spacing: .12em; }
  .brand__text b { font-size: 13px; }
}

/* ---------- Анимации (только в версии с моушн) ---------- */
[data-motion="on"].js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-motion="on"].js .reveal.is-in { opacity: 1; transform: none; }

[data-motion="on"].js .hero__title .line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
[data-motion="on"].js .hero__title .line > span,
[data-motion="on"].js .hero__title .line > em > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
[data-motion="on"].js .hero__title .line:nth-child(2) > em > span { transition-delay: .12s; }
[data-motion="on"].js.is-loaded .hero__title .line > span,
[data-motion="on"].js.is-loaded .hero__title .line > em > span { transform: none; }

[data-motion="on"].js .hero__photo { clip-path: inset(100% 0 0 0 round 24px); transition: clip-path 1.4s var(--ease) .15s; }
[data-motion="on"].js.is-loaded .hero__photo { clip-path: inset(0 0 0 0 round 24px); }
[data-motion="on"].js .hero__photo img { transform: scale(1.15); transition: transform 2.2s var(--ease) .15s; will-change: transform; }
[data-motion="on"].js.is-loaded .hero__photo img { transform: scale(1.02) translateY(var(--py, 0px)); transition: transform 2.2s var(--ease) .15s; }
[data-motion="on"].js.is-settled .hero__photo img { transition: none; }
[data-motion="on"].js .hero__card, [data-motion="on"].js .hero__award, [data-motion="on"].js .hero__badge { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-motion="on"].js.is-loaded .hero__card { opacity: 1; transform: none; transition-delay: .9s; }
[data-motion="on"].js.is-loaded .hero__award { opacity: 1; transform: none; transition-delay: 1.05s; }
[data-motion="on"].js.is-loaded .hero__badge { opacity: 1; transform: none; transition-delay: 1.2s; }
[data-motion="on"] .hero__badge > svg { animation: spin 22s linear infinite; }
[data-motion="on"] .hero__card { animation: float 7s ease-in-out 2s infinite; }
[data-motion="on"] .hero__steps svg { animation: step 9s ease-in-out infinite; }
[data-motion="on"] .brand:hover .brand__logo { transform: rotate(-12deg); }
[data-motion="on"] .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(62, 90, 83, .7); }
[data-motion="on"] .problems__list a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
[data-motion="on"] .gallery { cursor: grab; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes step { 0% { opacity: 0; } 12% { opacity: .55; } 45% { opacity: .55; } 60%, 100% { opacity: 0; } }

[data-motion="off"] .gallery__track { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html:focus-within { scroll-behavior: auto; }
  [data-motion="on"].js .reveal { opacity: 1; transform: none; }
  [data-motion="on"].js .hero__title .line > span, [data-motion="on"].js .hero__title .line > em > span { transform: none; }
  [data-motion="on"].js .hero__photo { clip-path: none; }
  [data-motion="on"].js .hero__card, [data-motion="on"].js .hero__award, [data-motion="on"].js .hero__badge { opacity: 1; transform: none; }
}

/* Мышь без hover (тач-экраны): не залипать в hover-состояниях */
@media (hover: none) {
  .gallery figure:hover img { transform: none; }
  [data-motion="on"] .problems__list a:hover { transform: none; box-shadow: none; }
}
