/* ===== ОксиГрум — стили ===== */

:root {
  --brand: #4fb8c6;
  --brand-strong: #167c89;
  --brand-soft: #e6f5f7;
  --sun: #f4c542;
  --sun-soft: #fdf3d3;
  --ink: #1e2326;
  --muted: #5b6670;
  --line: #e7e2da;
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --dark: #172427;
  --wa: #25d366;
  --tg: #2aabee;
  --vk: #0077ff;
  --max: #6f4bff;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow: 0 1px 2px rgba(30, 35, 38, .06), 0 8px 24px rgba(30, 35, 38, .08);
  --shadow-l: 0 2px 6px rgba(30, 35, 38, .06), 0 20px 48px rgba(30, 35, 38, .14);
  --gutter: 16px;
  --header-h: 64px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 680px; margin-bottom: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h1 { font-size: clamp(32px, 8.4vw, 58px); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.h2 { font-size: clamp(28px, 6.6vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 800; }
.lead { font-size: 17px; color: var(--muted); margin-top: 14px; text-wrap: pretty; }
.accent { color: var(--brand-strong); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand-strong); color: #fff; box-shadow: 0 6px 18px rgba(22, 124, 137, .3); }
.btn--primary:hover { background: #12707c; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--light { background: #fff; color: var(--brand-strong); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn .icon { width: 20px; height: 20px; }

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.header__logo { display: block; flex: none; }
.header__logo img { height: 40px; width: auto; }
.header__phone { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--brand-strong); }
.header__cta { display: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--ink);
}
.nav__link:hover { background: var(--brand-soft); }

.burger {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-left: auto; margin-right: -6px;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.burger .icon-close { display: none; }
.header.nav-open .burger .icon-open { display: none; }
.header.nav-open .burger .icon-close { display: block; }

@media (max-width: 959px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(30, 35, 38, .1);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .header.nav-open .nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav__link:hover { background: none; color: var(--brand-strong); }
  .nav__extra { display: grid; gap: 10px; margin-top: 16px; }
}
@media (min-width: 960px) {
  .burger, .nav__extra { display: none; }
  .header__phone, .header__cta { display: inline-flex; }
  .nav { margin-left: auto; }
}

/* ===== Первый экран ===== */
.hero { padding: 28px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__text { position: relative; z-index: 1; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; margin-bottom: 18px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600;
}
.hero__tag .icon { width: 18px; height: 18px; color: var(--brand-strong); }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.hero__media { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.hero__blob {
  position: absolute; inset: 6% -8% -4% 8%;
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
  background: var(--brand); opacity: .9;
}
.hero__photo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 4 / 5; width: 82%;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--small {
  position: absolute; right: 0; bottom: -6%;
  width: 42%; aspect-ratio: 3 / 4; border: 5px solid #fff; border-radius: var(--radius);
}
.hero__badge {
  position: absolute; left: -2%; bottom: 8%;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-l);
  font-size: 13px; line-height: 1.25; font-weight: 600;
}
.hero__badge b { display: block; font-size: 18px; font-weight: 800; }
.hero__badge-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--sun-soft); color: #9a7300;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 36px; }
.stat { padding: 14px 10px; border-radius: var(--radius-s); background: #fff; box-shadow: var(--shadow); text-align: center; }
.stat__num { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; color: var(--brand-strong); }
.stat__label { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }

@media (min-width: 560px) {
  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 960px) {
  .hero { padding: 56px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero__media { max-width: none; }
  .stats { gap: 12px; max-width: 560px; }
  .stat { padding: 18px 14px; text-align: left; }
  .stat__num { font-size: 32px; }
  .stat__label { font-size: 14px; }
}

/* ===== Выбор направления ===== */
.paths { display: grid; gap: 12px; margin-top: -24px; position: relative; z-index: 2; }
.path {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.path:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.path__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none; }
.path__icon .icon { width: 28px; height: 28px; }
.path--groom .path__icon { background: var(--brand-soft); color: var(--brand-strong); }
.path--school .path__icon { background: var(--sun-soft); color: #9a7300; }
.path__title { display: block; font-size: 18px; font-weight: 800; }
.path__text { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.path__arrow { margin-left: auto; color: var(--muted); }
@media (min-width: 720px) { .paths { grid-template-columns: 1fr 1fr; gap: 16px; } .path { padding: 22px; } }

/* ===== Груминг ===== */
.breeds { margin-bottom: 24px; }
.breeds__title { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 15px;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.subhead { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 48px 0 20px; }

.programs { display: grid; gap: 14px; }
.program {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 20px; border-radius: var(--radius-l);
  background: #fff; box-shadow: var(--shadow);
}
.program__head { display: flex; align-items: center; gap: 14px; }
.program__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; background: var(--brand-soft); color: var(--brand-strong); }
.program__title { font-size: 21px; line-height: 1.2; font-weight: 800; }
.program__text { color: var(--muted); }
.program__note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--brand-soft); color: #145f69; font-weight: 600; font-size: 15px;
}
.program__note .icon { width: 20px; height: 20px; margin-top: 1px; }
.program__result { padding: 12px 14px; border-radius: var(--radius-s); background: var(--sun-soft); font-size: 15px; }
.program__fine { margin-top: 14px; font-size: 14px; color: var(--muted); }

.program__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.program__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); background: var(--bg-soft); }
.program__media--2 { grid-template-columns: 1fr 1fr; }
.program__fit-title { font-weight: 700; margin-bottom: 10px; }
.program__fit .program__fine { margin-top: 10px; }
.chips--sm .chip { padding: 7px 13px; font-size: 14px; background: var(--bg-soft); box-shadow: none; }

.program__details { border-top: 1px solid var(--line); }
.program__details summary {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0 4px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
.program__details summary::-webkit-details-marker { display: none; }
.program__count { padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; font-weight: 700; color: var(--muted); }
.program__chevron { margin-left: auto; width: 22px; height: 22px; color: var(--brand-strong); transition: transform .2s ease; }
.program__details[open] .program__chevron { transform: rotate(180deg); }
.program__cta { margin-top: auto; padding-left: 18px; padding-right: 18px; font-size: 15px; text-wrap: balance; }

.steps { display: grid; gap: 12px; margin-top: 14px; counter-reset: step; }
.steps > li { position: relative; padding-left: 36px; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 800;
}
.steps__name { display: block; font-weight: 700; line-height: 1.4; }
.steps__desc { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; }
.steps__sub { display: grid; gap: 6px; margin-top: 8px; }
.steps__sub li { position: relative; padding-left: 16px; color: var(--muted); font-size: 15px; }
.steps__sub li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* На телефоне колонки «растворяются»: порядок как в разметке, кнопка — в самом низу */
.program__main, .program__side { display: contents; }
.program__cta { order: 1; }

@media (min-width: 860px) {
  /* На десктопе каждая программа — строка на всю ширину: слева суть и кнопка, справа состав */
  .programs { gap: 20px; }
  .program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; padding: 32px; }
  .program__main { display: flex; flex-direction: column; gap: 14px; }
  .program__side { display: block; padding: 22px 24px 24px; border-radius: var(--radius); background: var(--bg-soft); }
  .program__side--media { padding: 0; background: none; }
  .program__side .program__details { border-top: 0; }
  .program__side .program__details summary { padding-top: 0; }
  .program__side .program__count { background: #fff; }
  .program__side--media .program__media { gap: 10px; }
  .program__cta { order: 0; align-self: flex-start; width: auto; margin-top: 10px; padding-left: 32px; padding-right: 32px; }
}
}

/* ===== Работы: до / после ===== */
.works { display: grid; gap: 16px; }
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px; border-radius: var(--radius-l);
  background: #fff; box-shadow: var(--shadow);
}
.pair__item { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius) 8px 8px var(--radius); background: var(--bg-soft); }
.pair__item--after { border-radius: 8px var(--radius) var(--radius) 8px; }
.pair__item img { width: 100%; height: 100%; object-fit: cover; }
.pair__label {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(30, 35, 38, .72); color: #fff;
}
.pair__item--after .pair__label { background: var(--brand-strong); }

.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.work { position: relative; margin: 0; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-soft); aspect-ratio: 3 / 4; }
.work img { width: 100%; height: 100%; object-fit: cover; }
.work__caption {
  position: absolute; left: 6px; bottom: 6px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700;
}

@media (min-width: 720px) {
  .works { grid-template-columns: 1fr 1fr; gap: 20px; }
  .works__grid { grid-column: 1 / -1; gap: 20px; }
  .work { border-radius: var(--radius); }
  .work__caption { left: 12px; bottom: 12px; padding: 6px 12px; font-size: 14px; }
}

/* ===== Обучение ===== */
.school { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.school::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(79, 184, 198, .35), transparent 70%);
  pointer-events: none;
}
.school .eyebrow { color: var(--brand); }
.school .lead { color: rgba(255, 255, 255, .72); }


.courses { display: grid; gap: 14px; position: relative; }
.course {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.course__tag {
  align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  background: rgba(79, 184, 198, .18); color: #9fe0e9;
}
.course__title { font-size: 21px; line-height: 1.25; font-weight: 800; }
.course__text { color: rgba(255, 255, 255, .72); }
.course__list { display: grid; gap: 10px; margin: 8px 0 4px; }
.course__list li { display: flex; gap: 10px; align-items: flex-start; }
.course__list .icon { width: 22px; height: 22px; color: var(--sun); stroke-width: 2.4; margin-top: 1px; }
.course .btn { margin-top: auto; align-self: stretch; }
.course__spacer { flex: 1; min-height: 8px; }

.course--main {
  background: linear-gradient(150deg, #1f6e78 0%, #1a4d55 100%);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .25);
}
.course--main .course__tag { background: var(--sun); color: var(--ink); }
.course--main .course__title { font-size: 26px; }

.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--outline-light:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #f7d063; }

@media (min-width: 720px) {
  .courses { grid-template-columns: 1fr 1fr; gap: 16px; }
  .course--main { grid-column: 1 / -1; }
  .course--main .course__list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@media (min-width: 1040px) {
  .courses { grid-template-columns: 1.3fr 1fr 1fr; }
  .course--main { grid-column: 1; grid-row: 1 / span 2; }
  .course--main .course__list { grid-template-columns: 1fr; }
}

/* ----- Преподаватель ----- */
.trainer {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center;
  grid-template-areas: "photo info" "champ champ" "stats stats";
  margin-bottom: 28px; padding: 14px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.trainer__body { display: contents; }
.trainer__photo { grid-area: photo; position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; background: rgba(255, 255, 255, .06); }
.trainer__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trainer__info { grid-area: info; }
.trainer__role { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.trainer__name { margin-top: 2px; font-size: 30px; line-height: 1.15; font-weight: 800; }
.trainer__lead { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .72); }

.trainer__champ {
  grid-area: champ; display: grid; gap: 14px;
  padding: 12px 12px 16px; border-radius: var(--radius);
  background: rgba(244, 197, 66, .08); border: 1px solid rgba(244, 197, 66, .28);
}
.trainer__champ-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.trainer__champ-body { padding: 0 4px; }
.trainer__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 800;
}
.trainer__badge .icon { width: 18px; height: 18px; }
.trainer__champ-title { margin-top: 10px; font-size: 19px; line-height: 1.25; font-weight: 800; }
.trainer__champ-text { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .72); }

.trainer__stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trainer__stats li { min-width: 0; padding: 12px 10px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .06); }
.trainer__stats b { display: block; font-size: 22px; line-height: 1.1; font-weight: 800; color: #fff; }
.trainer__stats span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, .72); }

@media (min-width: 720px) {
  .trainer { grid-template-columns: 180px 1fr; gap: 20px; padding: 16px; }
  .trainer__name { font-size: 40px; }
  .trainer__stats li { padding: 16px; }
  .trainer__stats b { font-size: 28px; }
  .trainer__stats span { font-size: 14px; }
  .trainer__champ { grid-template-columns: 220px 1fr; align-items: center; gap: 20px; padding: 12px; }
  .trainer__champ-photo { aspect-ratio: 4 / 5; }
}
@media (min-width: 1040px) {
  .trainer { grid-template-columns: 340px 1fr; grid-template-areas: none; align-items: stretch; gap: 32px; padding: 16px 32px 16px 16px; }
  .trainer__photo { grid-area: auto; aspect-ratio: auto; min-height: 480px; }
  .trainer__body { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 16px 0; }
  .trainer__info, .trainer__champ, .trainer__stats { grid-area: auto; }
  .trainer__champ { grid-template-columns: 190px 1fr; }
  .trainer__champ-title { font-size: 22px; }
}

/* ----- Выпускники: бегущая лента ----- */
.grads { margin-top: 56px; position: relative; }
.grads__head { margin-bottom: 20px; }
.grads__title { font-size: 24px; line-height: 1.2; font-weight: 800; }
.grads__text { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: 15px; }

.marquee {
  display: grid; gap: 10px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__row { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 100s; }
.marquee__group { display: flex; gap: 10px; padding-right: 10px; }
.marquee__item { display: block; margin: 0; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.marquee__item img { height: 160px; width: auto; }
.marquee:hover .marquee__row, .marquee.is-paused .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 960px) { .marquee__item img { height: 220px; } .grads__title { font-size: 28px; } }

html:has(dialog[open]) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__group[aria-hidden="true"] { display: none; }
}

/* ===== Отзывы ===== */
.reviews { position: relative; }
.reviews__track {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 86%; scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 22px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review__avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  font-weight: 800; font-size: 18px; color: var(--brand-strong); background: var(--brand-soft);
}
.review:nth-child(3n+2) .review__avatar { background: var(--sun-soft); color: #8a6700; }
.review:nth-child(3n+3) .review__avatar { background: #f1ebe2; color: #6b5843; }
.review__name { font-weight: 800; }
.review__source { font-size: 13px; color: var(--muted); }
.review__stars { margin-left: auto; display: flex; gap: 1px; color: var(--sun); }
.review__stars .icon { width: 16px; height: 16px; }
.review__text {
  white-space: pre-line; text-wrap: pretty;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden;
}
.review.is-open .review__text { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.review__more {
  align-self: flex-start; margin-top: 10px; padding: 4px 0;
  border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--brand-strong);
}
.review__more[hidden] { display: none; }

.reviews__nav { display: none; gap: 8px; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
  transition: box-shadow .2s ease, opacity .2s ease;
}
.round-btn:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.round-btn:disabled { opacity: .35; cursor: default; box-shadow: inset 0 0 0 1.5px var(--line); }
.reviews__progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 200px; margin: 0 auto; }
.reviews__progress span { display: block; height: 100%; width: 20%; border-radius: 4px; background: var(--brand); transition: transform .1s linear; }

@media (min-width: 720px) {
  .review { flex-basis: 360px; }
  .reviews__track { gap: 16px; }
  .reviews__nav { display: flex; }
}

/* ===== CTA-баннер ===== */
.cta-band {
  display: grid; gap: 20px;
  padding: 28px 24px; border-radius: var(--radius-l);
  background: var(--brand); color: var(--ink);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(255, 255, 255, .18); pointer-events: none;
}
.cta-band p { margin-top: 8px; font-weight: 500; }
.cta-band .messengers { position: relative; z-index: 1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: 40px 48px; gap: 40px; } }

/* ===== Мессенджеры ===== */
.messengers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg {
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 10px 14px; border-radius: 16px;
  background: #fff; text-decoration: none; font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.msg:hover { transform: translateY(-1px); box-shadow: var(--shadow-l); }
.msg:active { transform: scale(.98); }
.msg__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; flex: none; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.msg__icon .icon { width: 22px; height: 22px; }
.msg--wa .msg__icon { background: var(--wa); }
.msg--tg .msg__icon { background: var(--tg); }
.msg--vk .msg__icon { background: var(--vk); }
.msg--max .msg__icon { background: linear-gradient(135deg, #3d8bff, var(--max)); }
.msg--phone .msg__icon { background: var(--brand-strong); }
.msg__text small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* ===== Контакты ===== */
.contacts { display: grid; gap: 16px; }
.studio {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.studio__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.studio__addr { display: flex; gap: 12px; font-size: 19px; line-height: 1.35; font-weight: 800; }
.studio__addr .icon { color: var(--brand-strong); margin-top: 2px; }
.studio__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.contact-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--brand-soft);
}
.contact-card__phone { display: inline-block; margin: 6px 0 18px; font-size: clamp(26px, 7vw, 32px); font-weight: 800; text-decoration: none; color: var(--ink); }
.contact-card__phone:hover { color: var(--brand-strong); }
.contact-card__vk { margin-top: 12px; box-shadow: none; }
@media (min-width: 860px) {
  .contacts { grid-template-columns: 1fr 1fr 1.25fr; gap: 20px; }
}

/* ===== Подвал ===== */
.footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer__inner { display: grid; gap: 20px; }
.footer__logo img { height: 52px; width: auto; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--brand); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }
@media (max-width: 959px) { .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }

/* ===== Плавающая панель записи (мобильная) ===== */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s ease;
}
.dock.is-visible { transform: none; }
.dock .btn { flex: 1; }
.dock__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  color: #fff; text-decoration: none;
}
.dock__icon .icon { width: 24px; height: 24px; }
.dock__icon--wa { background: var(--wa); }
.dock__icon--tg { background: var(--tg); }
@media (min-width: 960px) { .dock { display: none; } }

/* ===== Окно записи ===== */
.sheet {
  width: 100%; max-width: 440px; max-height: 92dvh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: var(--bg-soft); color: var(--ink);
  box-shadow: var(--shadow-l);
  overflow: auto;
}
.sheet:focus { outline: none; }
.sheet::backdrop { background: rgba(23, 36, 39, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1); }
.sheet[open]::backdrop { animation: fade .28s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet__inner { padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); }
.sheet__grip { width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 5px; background: var(--line); }
.sheet__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.sheet__title { font-size: 24px; line-height: 1.2; font-weight: 800; }
.sheet__close {
  display: grid; place-items: center; width: 40px; height: 40px; margin: -4px -8px 0 auto; flex: none;
  border: 0; border-radius: 50%; background: #fff; cursor: pointer;
}
.sheet__topic {
  display: inline-flex; margin: 6px 0 12px; padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: 14px;
}
.sheet__topic:empty { display: none; }
.sheet__text { color: var(--muted); margin-bottom: 18px; }
.sheet .messengers { grid-template-columns: 1fr; }
.sheet__hint { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 600px) {
  .sheet { margin: auto; border-radius: var(--radius-l); }
  .sheet__grip { display: none; }
  .sheet__inner { padding: 28px; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 100;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Анимация появления ===== */
/* Прячем только когда работает JS — без него всё видно сразу */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 960px) {
  :root { --gutter: 24px; --header-h: 76px; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 44px; }
  .header__logo img { height: 48px; }
  .lead { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
