/* ============ Base & tokens ============ */
:root {
  /* Палитра по брифу клиента:
     фон — кремовый/слоновая кость, доп. фон — светлая мята,
     текст — тёмно-оливковый, акцент — приглушённый терракот/«глина» */
  --bg: #f4f1e6;          /* кремовый / слоновая кость */
  --bg-soft: #e4ede2;     /* светлая мята */
  --paper: #fffdf8;       /* тёплый «бумажный» для карточек */
  --ink: #2f331f;         /* тёмно-оливковый — основной текст */
  --ink-soft: #595c43;    /* приглушённый оливковый */
  --muted: #8c8d77;       /* серо-оливковый */
  --line: #dcdecb;        /* мягкая мятно-кремовая линия */
  --sage: #7c8b6b;        /* шалфей — дополнительный зелёный акцент */
  --sage-deep: #56633f;   /* глубокий оливково-зелёный */
  --clay: #b86a48;        /* приглушённый терракот — основной акцент */
  --accent: #2a2e1b;      /* тёмная оливковая подложка (топбар, футер, CTA) */
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--sans);
  background: transparent;
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--clay); color: #fffdf9; }
.btn--solid:hover { background: #9d5a3f; box-shadow: 0 12px 30px -12px rgba(181,106,74,.45); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn--full { width: 100%; }


/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,238,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(0,0,0,.25);
}
.header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo--header { line-height: 1; }
.logo__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.logo__img {
  display: block;
  width: auto;
  max-width: none;
}
.logo__img--mark { height: 42px; }
.logo__name {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-left: 2px;
}
.logo__img--footer { height: 72px; }
.logo__img--auth { height: 58px; margin-bottom: 8px; }
.logo__img--dir-detail {
  position: absolute; left: 30px; bottom: 24px; z-index: 2;
  height: 56px;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .35));
}

.nav { display: flex; gap: 30px; }
.nav__link {
  font-size: 16px; font-weight: 600; color: var(--ink);
  position: relative; padding: 4px 0;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 2px;
  background: var(--sage-deep); transition: background .35s var(--ease);
}
.nav__link:hover { color: var(--sage-deep); }
.nav__link:hover::after { background: var(--clay); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.header-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink-soft);
  background: transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.header-icon:hover {
  color: var(--ink); border-color: var(--sage); background: var(--paper);
  transform: translateY(-1px);
}
.header-icon--solid {
  color: var(--paper); background: var(--sage-deep); border-color: var(--sage-deep);
}
.header-icon--solid:hover {
  color: var(--paper); background: var(--ink); border-color: var(--ink);
}
.header-icon__svg { width: 20px; height: 20px; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang__btn { background: none; border: none; cursor: pointer; color: var(--muted); font-weight: 600; font-family: var(--sans); transition: color .3s; }
.lang__btn.is-active { color: var(--ink); }
.lang__sep { color: var(--line); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============ Mobile menu ============ */
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 28px 28px;
  transform: translateY(-120%); transition: transform .45s var(--ease), visibility .45s var(--ease);
  gap: 4px; visibility: hidden; pointer-events: none;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
.mobile-menu__link {
  font-size: 19px; font-weight: 600; color: var(--ink);
  padding: 12px 0; border-bottom: 1px solid var(--line);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: var(--sage-deep); text-decoration-thickness: 2px;
}
.mobile-menu__actions { display: flex; gap: 10px; margin-top: 18px; }
.mobile-menu__actions--icons { justify-content: flex-start; }
.mobile-menu__actions .btn { flex: 1; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: calc(100vh - 76px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 28px 120px; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(244, 241, 230, 0.94) 42%, rgba(244, 241, 230, 0.78) 100%),
    url('/images/studio/hero-hall.webp') center / cover no-repeat fixed,
    var(--bg);
}
.hero__content { position: relative; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero__eyebrow {
  color: var(--sage-deep); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 22px;
}
.hero__title {
  font-family: var(--serif); color: var(--ink); font-weight: 500;
  font-size: clamp(48px, 8.5vw, 116px); line-height: .98; letter-spacing: -.01em;
}
.hero__title > span { display: block; }
.hero__title--italic { font-style: italic; color: var(--sage-deep); font-weight: 400; }
.hero__title--bold { color: var(--ink); font-weight: 700; font-style: normal; }
.hero__dash {
  display: inline-block;
  width: 0.3em;
  height: 0.055em;
  margin: 0 0.12em;
  background: currentColor;
  vertical-align: 0.14em;
}
.hero__lead {
  color: var(--ink-soft); max-width: 540px; font-size: 18px; margin-top: 28px; line-height: 1.7;
  font-weight: 400;
}
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero__stats {
  position: relative; max-width: var(--max); margin: 70px auto 0; width: 100%;
  display: flex; gap: 54px; flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-family: var(--serif); font-size: 52px; color: var(--paper); font-weight: 500; line-height: 1; }
.hero__stat span { color: #d9d3c5; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 20px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--sage); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{ opacity:0; transform: translateY(-4px);} 40%{opacity:1;} 80%{opacity:0; transform: translateY(12px);} 100%{opacity:0;} }

/* ============ Marquee ============ */
.marquee { background: var(--accent); color: #cfc9ba; overflow: hidden; padding: 18px 0; }
.marquee__track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--serif); font-size: 30px; font-style: italic; letter-spacing: .02em;
}
.marquee__track span:nth-child(even){ color: var(--sage); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 110px 0; }
.eyebrow {
  color: var(--sage-deep); font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 16px;
}
.eyebrow--light { color: #c9d2bb; }
.section__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05; letter-spacing: -.01em; max-width: 16ch;
}
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: 56px; flex-wrap: wrap;
}
.section__desc { max-width: 420px; color: var(--ink-soft); font-size: 17px; }

/* ============ Cards (directions) ============ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(47,53,43,.4); }
.card__img { height: 240px; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.card:hover .card__img { transform: scale(1.06); }
.card__body { padding: 24px 22px 26px; position: relative; }
.card__num { font-family: var(--sans); font-size: 14px; color: var(--clay); letter-spacing: .02em; font-variant-numeric: lining-nums; }
.card__title { font-family: var(--serif); font-size: 25px; font-weight: 600; margin: 6px 0 0; }
.card__text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.card__link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--sage-deep); transition: gap .3s; }
.card__link:hover { color: var(--ink); }
.directions__intro {
  font-size: 18px; color: var(--ink-soft); max-width: 640px;
  margin: -20px 0 48px; line-height: 1.7;
}
.directions__more { text-align: center; margin-top: 50px; }
.page-placeholder { padding-top: 120px; padding-bottom: 80px; min-height: 50vh; }

/* ============ About ============ */
.about { background: transparent; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__media { position: relative; }
.about__img { height: 540px; border-radius: var(--radius); background-size: cover; background-position: center; }
.about__badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 24px;
  display: flex; flex-direction: column; box-shadow: 0 24px 50px -28px rgba(0,0,0,.4);
}
.about__badge strong { font-family: var(--serif); font-size: 30px; color: var(--sage-deep); }
.about__badge span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about__lead { color: var(--ink-soft); font-size: 18px; margin: 22px 0 36px; }

/* ============ Studio gallery ============ */
.studio-gallery { background: transparent; padding-top: 0; }
.studio-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.studio-gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft);
}
.studio-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.studio-gallery__item:hover img { transform: scale(1.05); }

.studio-gallery__item--wide { grid-column: span 7; grid-row: span 2; }
.studio-gallery__item--tall { grid-column: span 5; grid-row: span 2; }
.studio-gallery__item--sm { grid-column: span 4; }
.studio-gallery__item--md { grid-column: span 4; }

.features { list-style: none; display: flex; flex-direction: column; gap: 26px; }
.feature { display: flex; gap: 16px; }
.feature__icon { color: var(--sage); font-size: 18px; margin-top: 3px; }
.feature h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ============ Teachers ============ */
.teachers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teachers__grid--two { grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 940px; }
.teacher__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--sage-soft) 0%, var(--mint) 100%);
  color: var(--sage-deep); font-family: var(--serif); font-size: 56px; font-weight: 500;
  filter: none;
}
.teachers__grid--two .teacher__img--placeholder { font-size: 72px; }
.teacher__img {
  height: 340px; border-radius: var(--radius); background-size: cover; background-position: center top;
  filter: grayscale(.25); transition: filter .5s var(--ease), transform .5s var(--ease);
}
.teachers__grid--two .teacher__img { height: 440px; }
.teacher:hover .teacher__img { filter: grayscale(0); transform: translateY(-4px); }
.teacher__name { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 18px 0 4px; }
.teachers__grid--two .teacher__name { font-size: 28px; }
.teacher__role { color: var(--muted); font-size: 14px; }
.teacher__bio { color: var(--ink-soft); font-size: 15px; margin-top: 12px; line-height: 1.65; }

/* ============ Services / Pricing ============ */
.services { background: transparent; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pricing--tables { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; align-items: stretch; }

.price-table {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px 32px; display: flex; flex-direction: column; height: 100%;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-table__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.price-table:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(47,53,43,.28); }
.price-table--accent {
  background: #434f3a; border-color: #3d4835; color: #ece7da;
}
.price-table__title {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); font-weight: 600;
  margin-bottom: 24px; line-height: 1.1;
}
.price-table--accent .price-table__title { color: var(--paper); }
.price-table__subtitle {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin: 8px 0 14px;
}
.price-table--accent .price-table__subtitle { color: #c9d2bb; }
.price-table__rows { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.price-table__row { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.price-table__label { flex-shrink: 0; color: var(--ink-soft); max-width: 62%; line-height: 1.4; }
.price-table--accent .price-table__label { color: #d7d2c6; }
.price-table__row--highlight .price-table__label { color: var(--ink); font-weight: 600; }
.price-table--accent .price-table__row--highlight .price-table__label { color: var(--paper); }
.price-table__dots {
  flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line); margin-bottom: 5px;
}
.price-table--accent .price-table__dots { border-bottom-color: rgba(255,255,255,.22); }
.price-table__amount {
  flex-shrink: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.price-table--accent .price-table__amount { color: var(--paper); }
.price-table__row--highlight .price-table__amount { color: var(--clay); font-size: 22px; }
.price-table--accent .price-table__row--highlight .price-table__amount { color: #e8c4a8; }
.price-table__notes {
  list-style: none; margin: 22px 0 26px; padding-top: 18px;
  border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
}
.price-table--accent .price-table__notes { border-top-color: rgba(255,255,255,.12); }
.price-table__notes li {
  font-size: 13.5px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.5;
}
.price-table--accent .price-table__notes li { color: #a8a294; }
.price-table__notes li::before { content: "·"; position: absolute; left: 4px; color: var(--sage); }
.price-table--accent .btn--solid { background: var(--paper); color: var(--ink); }
.price-table--accent .btn--solid:hover { background: var(--sage); color: #fff; }

.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; display: flex; flex-direction: column; position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(47,53,43,.35); }
.price--featured { background: var(--accent); color: #ece7da; border-color: var(--accent); }
.price--featured .price__name, .price--featured .price__value { color: var(--paper); }
.price__tag {
  position: absolute; top: 22px; right: 22px; background: var(--sage); color: #fff;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
}
.price__name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.price__value { font-family: var(--serif); font-size: 46px; font-weight: 500; margin: 14px 0 22px; }
.price__value span { font-size: 22px; color: var(--muted); }
.price--featured .price__value span { color: #bcc4ad; }
.price__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price__list li { font-size: 14.5px; padding-left: 24px; position: relative; color: var(--ink-soft); }
.price--featured .price__list li { color: #d7d2c6; }
.price__list li::before { content: "✦"; position: absolute; left: 0; color: var(--sage); }
.price--featured .price__list li::before { color: var(--sage); }
.price--featured .btn--solid { background: var(--paper); color: var(--ink); }
.price--featured .btn--solid:hover { background: var(--sage); color: #fff; }
.pricing__note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ============ Reviews ============ */
.reviews__widget {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: min(800px, 75vh);
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 48px -32px rgba(47, 53, 43, .22);
}
.reviews__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}
.reviews__source {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}
.reviews__source a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.reviews__source a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

/* ============ Events ============ */
.events__list { display: flex; flex-direction: column; }
.event {
  display: flex; align-items: center; gap: 28px; padding: 30px 8px;
  border-top: 1px solid var(--line); transition: padding .4s var(--ease), background .4s var(--ease);
}
.event:last-child { border-bottom: 1px solid var(--line); }
.event:hover { padding-left: 24px; padding-right: 24px; background: var(--paper); border-radius: var(--radius-sm); }
.event__date {
  display: flex; flex-direction: column; align-items: center; min-width: 64px;
  border-right: 1px solid var(--line); padding-right: 22px;
}
.event__date strong { font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1; }
.event__date span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.event__info { flex: 1; }
.event__info h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.event__info p { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }
.event__arrow { font-size: 24px; color: var(--sage); transition: transform .4s var(--ease); }
.event:hover .event__arrow { transform: translateX(8px); }

/* ============ CTA ============ */
.cta { position: relative; padding: 120px 0; overflow: hidden; color: var(--paper); text-align: center; }
.cta__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(28,29,24,.62), rgba(28,29,24,.74)), url('/images/studio/cta-practice.webp');
  background-size: cover; background-position: center 40%; background-attachment: fixed;
}
.cta__inner { position: relative; max-width: 720px; }
.cta__title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; margin-bottom: 20px; }
.cta__text { color: #e6e1d4; font-size: 18px; margin-bottom: 34px; font-weight: 300; }

/* ============ Contacts ============ */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contacts__list { list-style: none; margin: 30px 0; display: flex; flex-direction: column; gap: 18px; }
.contacts__list li { font-size: 17px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contacts__list span { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contacts__socials { display: flex; gap: 14px; }
.contacts__socials a {
  font-size: 13px; font-weight: 600; padding: 9px 18px; border: 1px solid var(--line); border-radius: 100px;
  transition: .3s var(--ease);
}
.contacts__socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.contacts__form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; }
.form__title { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.form__sub { color: var(--ink-soft); font-size: 15px; margin: 8px 0 24px; }
.form__row { margin-bottom: 14px; }
.form__row input, .form__row select {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 15px; background: var(--bg); color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form__row input:focus, .form__row select:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(124,139,107,.16);
}
.form__note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* ============ Footer ============ */
.footer { background: var(--accent); color: #cfc9ba; padding-top: 70px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 50px; }
.footer__brand p { margin-top: 18px; font-size: 14.5px; color: #a8a294; line-height: 1.7; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14.5px; color: #a8a294; padding: 6px 0; transition: color .3s; }
.footer__col a:hover { color: var(--paper); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; font-size: 13px; color: #8b8578; flex-wrap: wrap; gap: 10px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Фоны-обои: приглушённый эвкалипт (едва заметный) ============ */
/* Доминирует кремовый/мятный фон, листья — отдалённый полупрозрачный намёк */
.directions, .teachers, .reviews, .auth {
  background:
    linear-gradient(rgba(244, 241, 230, 0.93), rgba(244, 241, 230, 0.93)),
    url('/images/decor/wallpaper-sage.webp') center / cover no-repeat fixed,
    var(--bg);
}
.about, .services, .contacts {
  background:
    linear-gradient(rgba(228, 237, 226, 0.92), rgba(228, 237, 226, 0.92)),
    url('/images/decor/wallpaper-shadow.webp') center / cover no-repeat fixed,
    var(--bg-soft);
}
@media (max-width: 880px) {
  .hero, .directions, .teachers, .reviews, .about, .services, .contacts, .auth, .cta__bg { background-attachment: scroll; }
}

/* ============ Кнопка «Подробнее» на карточке ============ */
.card { display: flex; flex-direction: column; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card__more {
  margin-top: auto; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: none; cursor: pointer; border-radius: 100px;
  font-family: var(--sans); font-weight: 700; font-size: 14.5px;
  background: var(--clay); color: #fffdf9;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card__more:hover { background: #9d5a3f; transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(181, 106, 74, .45); }

.directions-page { padding-top: 150px; }

/* ============ Модальное окно направления ============ */
.dir-modal {
  position: fixed; inset: 0; z-index: 200;
  overflow-y: auto; overflow-x: hidden;
  padding: 48px 28px; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.dir-modal.is-open { opacity: 1; visibility: visible; }
.dir-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(28, 29, 24, .55); backdrop-filter: blur(3px);
}
.dir-modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 760px; margin: 0 auto;
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(28, 29, 24, .5);
  transform: translateY(18px) scale(.98);
  transition: transform .4s var(--ease);
}
.dir-modal.is-open .dir-modal__dialog { transform: translateY(0) scale(1); }
.dir-modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255, 253, 248, .85);
  color: var(--ink); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.dir-modal__close:hover { background: var(--bg-soft); transform: rotate(90deg); }

/* hero-галерея со стрелками */
.dir-detail__hero { position: relative; height: 380px; overflow: hidden; background: var(--bg-soft); }
.dir-detail__slides { position: absolute; inset: 0; }
.dir-detail__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .55s var(--ease);
}
.dir-detail__slide.is-active { opacity: 1; }
.dir-detail__hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(28, 29, 24, .6) 0%, rgba(28, 29, 24, .1) 38%, rgba(28, 29, 24, 0) 60%);
}
.dir-detail__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 253, 248, .9); color: var(--ink); font-size: 28px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
  transition: background .3s, transform .3s;
}
.dir-detail__nav:hover { background: #fff; }
.dir-detail__nav--prev { left: 18px; }
.dir-detail__nav--next { right: 18px; }
.dir-detail__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.dir-detail__nav--next:hover { transform: translateY(-50%) translateX(2px); }

.dir-detail__head { padding: 36px 44px 0; }
.dir-detail__tag {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--sage-deep); background: var(--bg-soft);
  padding: 6px 12px; border-radius: 100px;
}
.dir-detail__title { font-family: var(--serif); font-size: 36px; font-weight: 600; margin: 16px 0 12px; line-height: 1.1; }
.dir-detail__lead { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }
.dir-detail__body { padding: 24px 44px 0; }
.dir-detail__body p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; margin-bottom: 14px; }
.dir-detail__benefits { padding: 8px 44px 0; }
.dir-detail__benefits h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.dir-detail__benefits ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.dir-detail__benefits li {
  position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5;
}
.dir-detail__benefits li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--sage-deep); font-size: 13px;
}
.dir-detail__content { padding-bottom: 44px; }
.dir-detail--page {
  max-width: 920px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(44, 62, 45, .08);
}
.dir-detail__actions {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 28px 44px 0;
}
.dir-detail__benefits h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 14px; }

/* ============ Бейджи типов занятий ============ */
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 100px; line-height: 1.4;
}
.badge--group { background: rgba(124,139,107,.16); color: var(--sage-deep); }
.badge--indiv { background: rgba(184,106,72,.16); color: var(--clay); }
.badge--event { background: rgba(42,46,27,.12); color: var(--ink); }

/* ============ Страница расписания ============ */
.sched { padding-top: 92px; }
.sched__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }
.sched__note { color: var(--ink-soft); font-size: 16px; max-width: 540px; margin-top: 16px; }
.sched__note a { color: var(--clay); font-weight: 600; }
.sched__range { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 10px 18px; }
.sched__range-label { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); }

.sched__week {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 14px;
}
.sched__weeknav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--sage-deep);
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.sched__weeknav:hover { background: rgba(124,139,107,.14); color: var(--ink); }
.sched__weeklabel { font-weight: 600; font-size: 14.5px; color: var(--ink-soft); white-space: nowrap; }

.sched__days {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sched__days::-webkit-scrollbar { display: none; }

.sched__day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--clay);
  text-decoration: none;
  transition: opacity .25s var(--ease);
}
.sched__day:hover { opacity: .78; }
.sched__day-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.sched__day-date {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.sched__day.is-active {
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-underline-offset: 7px;
  text-decoration-thickness: 2px;
}

.sched__board { display: flex; flex-direction: column; gap: 12px; }
.sched__panel { display: flex; flex-direction: column; gap: 12px; }
.sched__panel.is-hidden { display: none; }
.sched__empty {
  padding: 36px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.gridsched {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px -40px rgba(47,53,43,.35);
}

.gridsched__stage {
  transition: opacity .38s var(--ease), transform .38s var(--ease);
  will-change: opacity, transform;
}
.gridsched__stage.is-leaving-left {
  opacity: 0;
  transform: translateX(-28px);
}
.gridsched__stage.is-leaving-right {
  opacity: 0;
  transform: translateX(28px);
}
.gridsched__stage.is-entering-left {
  opacity: 0;
  transform: translateX(28px);
}
.gridsched__stage.is-entering-right {
  opacity: 0;
  transform: translateX(-28px);
}
.gridsched.is-loading .gridsched__arrow:not(.is-disabled) {
  opacity: .55;
  pointer-events: none;
}

.gridsched__header {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #fffdf8 0%, #f7f4ec 100%);
}

.gridsched__arrow {
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-soft);
  color: var(--sage-deep);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.gridsched__arrow--next { background: var(--sage-deep); color: #fff; }
.gridsched__arrow:hover:not(.is-disabled) { transform: scale(1.03); }
.gridsched__arrow--prev:hover:not(.is-disabled) { background: var(--sage); color: #fff; }
.gridsched__arrow--next:hover { background: var(--accent); }
.gridsched__arrow.is-disabled { opacity: .35; cursor: default; background: var(--bg); color: var(--muted); }

.gridsched__head-main {
  flex: 1;
  min-width: 0;
}

.gridsched__days {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 6px;
  padding: 0 8px;
  min-width: 0;
}
.gridsched__dayhead {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 6px;
  text-align: center;
}
.gridsched__dayhead--today { background: rgba(124,139,107,.08); border-radius: 10px; }
.gridsched__daytoday {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.gridsched__daylabel {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.35;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums;
}

.gridsched__body {
  background: #f8f6ef;
  padding: 14px 0 18px;
}

.gridsched__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: stretch;
  margin-bottom: 10px;
}
.gridsched__row:last-child { margin-bottom: 0; }

.gridsched__time {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.gridsched__cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0 4px;
  align-items: stretch;
}

.gridsched__cell {
  min-height: 158px;
}

.gridsched__empty {
  padding: 48px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

.gridsched__card {
  width: 100%;
  height: 100%;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 12px 11px 14px;
  border: 1px solid rgba(220,222,203,.75);
  border-left: 3px solid var(--sage-deep);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(47,53,43,.55);
  text-align: left;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.gridsched__card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -16px rgba(47,53,43,.45);
  border-color: rgba(124,139,107,.45);
}
.gridsched__card-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.gridsched__card-duration {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--muted);
}
.gridsched__card-duration::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: .7;
}
.gridsched__card-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.gridsched__card-topic {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.gridsched__card-trainer {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 1px;
}
.gridsched__card-seats {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.gridsched__card-seats strong { color: var(--sage-deep); font-weight: 700; }

.gridsched__card--full { opacity: .78; border-left-color: var(--muted); }
.gridsched__card--cancelled {
  opacity: .65;
  border-left-color: var(--muted);
  background: var(--bg);
}
.gridsched__card--cancelled .gridsched__card-title { text-decoration: line-through; color: var(--muted); }
.gridsched__card--booked { border-left-color: var(--clay); background: #fffaf7; }

.gridsched__mobnav,
.gridsched__mobile { display: none; }

.gridsched__mobnav {
  gap: 8px;
  padding: 10px 4px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gridsched__mobnav::-webkit-scrollbar { display: none; }

.gridsched__mobtab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.gridsched__mobtab-main {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.gridsched__mobtab-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.gridsched__mobtab.is-active {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  transform: translateY(-1px);
}
.gridsched__mobtab.is-active .gridsched__mobtab-main,
.gridsched__mobtab.is-active .gridsched__mobtab-sub { color: #fff; }

.gridsched__mobile {
  background: #f8f6ef;
  padding: 14px 14px 18px;
}
.gridsched__mobile-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gridsched__mobile-panel.is-hidden { display: none; }
.gridsched__mobile-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.gridsched__mobile .gridsched__card {
  min-height: 0;
  height: auto;
}

/* Модальное окно занятия */
.sched-modal {
  position: fixed; inset: 0; z-index: 220;
  overflow-y: auto; overflow-x: hidden;
  padding: 48px 28px; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.sched-modal.is-open { opacity: 1; visibility: visible; }
.sched-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(28, 29, 24, .55); backdrop-filter: blur(3px);
}
.sched-modal__dialog {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; margin: 0 auto;
  background: var(--paper); border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 34px 32px 28px;
  box-shadow: 0 40px 90px -40px rgba(47,53,43,.55);
  transform: translateY(18px) scale(.98);
  transition: transform .35s var(--ease);
}
.sched-modal.is-open .sched-modal__dialog { transform: translateY(0) scale(1); }
.sched-modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(255, 253, 248, .85);
  color: var(--ink); font-size: 28px; line-height: 1;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.sched-modal__close:hover { background: var(--bg-soft); transform: rotate(90deg); }
.sched-modal__head { margin-bottom: 22px; padding-right: 36px; }
.sched-modal__datetime { font-size: 14px; color: var(--muted); margin: 8px 0 6px; }
.sched-modal__title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}
.sched-modal__topic { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }
.sched-modal__meta {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.sched-modal__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.sched-modal__label { color: var(--muted); }
.sched-modal__value { font-weight: 600; text-align: right; }
.sched-modal__desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.sched-modal__action .btn { width: 100%; }

/* Legacy slot styles (trainer panel) */
.slot { display: grid; grid-template-columns: 90px 1fr auto auto; align-items: center; gap: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.slot:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -28px rgba(47,53,43,.4); }
.slot__time { font-family: var(--sans); font-size: 26px; font-weight: 600; color: var(--sage-deep); font-variant-numeric: lining-nums; }
.slot__title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.slot__topic { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.4; }
.slot__meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.slot__trainer { color: var(--ink-soft); font-size: 14px; font-variant-numeric: lining-nums; }
.slot__seats { display: flex; flex-direction: column; text-align: right; min-width: 120px; }
.slot__seats-num { font-family: var(--sans); font-size: 24px; font-weight: 600; color: var(--clay); line-height: 1; font-variant-numeric: lining-nums; }
.slot__seats-num--off { font-size: 18px; color: var(--muted); }
.slot__seats-label { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.slot__action .btn { white-space: nowrap; }
.slot--full, .slot--cancelled { opacity: .82; }
.slot--cancelled { background: var(--bg); }
.slot--cancelled .slot__title { text-decoration: line-through; text-decoration-color: var(--muted); }
.slot--trainer { grid-template-columns: 90px 1fr auto; }

/* ============ Кабинет тренера ============ */
.trainer__user { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.trainer__user strong { display: block; font-size: 16px; }
.trainer__role { font-size: 13px; color: var(--muted); }
.trainer__logout { margin-left: auto; }
.trainer__roster { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.trainer__roster li { font-size: 14.5px; color: var(--ink-soft); padding-left: 14px; position: relative; }
.trainer__roster li::before { content: "·"; position: absolute; left: 0; color: var(--sage-deep); font-weight: 700; }
.trainer__health-note { display: block; margin-top: 2px; font-size: 13px; color: var(--clay); font-style: italic; }
.trainer__empty-roster { margin-top: 10px; font-size: 14px; color: var(--muted); font-style: italic; }
.trainer__cancel-reason { margin-top: 8px; font-size: 13.5px; color: var(--clay); }

/* ============ FAQ ============ */
.faq { margin-top: 70px; max-width: 780px; }
.faq__title { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; margin-bottom: 24px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 0; font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink); }
.faq__icon { flex-shrink: 0; font-size: 24px; color: var(--sage); transition: transform .35s var(--ease); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; padding-bottom: 22px; max-width: 660px; }

/* ============ Страница входа / регистрации ============ */
.auth { padding: 92px 0 100px; min-height: calc(100vh - 76px); }
.auth__wrap { max-width: 480px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 90px -50px rgba(47,53,43,.5); }

.auth__panel { padding: 42px 40px; }
.auth__tabs { display: flex; gap: 6px; background: var(--bg); border-radius: 100px; padding: 5px; margin-bottom: 26px; }
.auth__tab { flex: 1; padding: 11px; border: none; cursor: pointer; border-radius: 100px; background: none; font-family: var(--sans); font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease); }
.auth__tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px -10px rgba(47,53,43,.4); }
.auth__form.is-hidden { display: none; }
.auth__tabs.is-hidden { display: none; }
[data-auth-panel].is-hidden { display: none; }
.auth__code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.auth__verify-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; }
.auth__link--btn { padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth__required { color: var(--clay); font-weight: 700; }
.auth__label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.auth__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth__row3 { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
.auth__birth { margin-bottom: 14px; }
.auth__birth .form__row { margin-bottom: 0; }

.auth__select-wrap { position: relative; }
.auth__select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: border-color .3s var(--ease);
}
.auth__select-wrap:focus-within::after { border-color: var(--sage-deep); }

.auth__select-wrap .auth__select,
.auth__birth .auth__input-year {
  width: 100%;
  padding: 15px 42px 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.auth__birth .auth__input-year {
  cursor: text;
  padding-right: 18px;
}
.auth__select-wrap .auth__select:hover,
.auth__birth .auth__input-year:hover { border-color: #c5c9b0; background: #fffdf9; }
.auth__select-wrap .auth__select:focus,
.auth__birth .auth__input-year:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124,139,107,.16);
  background: #fffdf9;
}
.auth__select-wrap .auth__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.auth__select-wrap .auth__select:invalid { color: var(--muted); }
.auth__select-wrap .auth__select option { color: var(--ink); font-weight: 500; }
.auth__select-wrap .auth__select option[value=""] { color: var(--muted); }
.auth__select-wrap .auth__select--month { font-size: 14.5px; }
.auth__hint, .auth__demo, .auth__optional { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.auth__optional { font-weight: 400; }
.auth__alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.auth__alert p + p { margin-top: 4px; }
.auth__alert--error { background: #fdecea; color: #8b3a32; border: 1px solid #f0c5c0; }
.auth__alert--ok { background: #edf5ee; color: #2f5d3a; border: 1px solid #c8dcc9; }
.auth__alert.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.auth__patronymic.is-hidden { display: none; }
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth__telegram { display: flex; justify-content: center; margin-bottom: 6px; }
.auth__readonly {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  background: #f6f4ef;
  color: var(--ink-soft);
}
.lk__field--telegram dd { min-width: 0; }
.lk-tg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lk-tg-row__name {
  font-size: 17px;
  font-weight: 500;
}
.lk-tg-row__empty {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}
.lk-tg-row__form { margin: 0; }
.lk-tg-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.lk-tg-hint a {
  color: var(--accent, #2a7);
  text-decoration: none;
  white-space: nowrap;
}
.lk-tg-hint a:hover { text-decoration: underline; }
.lk-tg-unlink {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.lk-tg-unlink:hover {
  border-color: #d4a59a;
  color: var(--clay);
  background: #fffdf9;
}
.lk-tg-row__widget { line-height: 0; }
.lk-tg-row__widget .auth__telegram { margin: 0; }

.password-field { position: relative; }
.password-field input {
  width: 100%;
  padding: 15px 48px 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.password-field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124,139,107,.16);
}
.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.password-field__toggle:hover { color: var(--ink-soft); background: rgba(47,53,43,.06); }
.password-field__toggle:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
.password-field__icon { display: block; }
.password-field__icon[hidden] { display: none; }
.lk__logout { margin: 0; }
.lk__logout .lk__navlink { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: var(--sans); }
.auth__hint { margin: -4px 0 14px; }
.auth__row-between { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; gap: 10px; flex-wrap: wrap; }
.auth__check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.auth__check--block { margin: 6px 0 20px; }
.auth__check input { accent-color: var(--sage); width: 16px; height: 16px; }
.auth__minor { color: var(--clay); font-weight: 600; }
.auth__switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.auth__link { background: none; border: none; cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--clay); }
.auth__demo { margin-top: 22px; text-align: center; padding-top: 18px; border-top: 1px solid var(--line); }

/* ============ Личный кабинет ============ */
.lk { padding-top: 92px; }
.lk__grid { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.lk__aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; position: sticky; top: 96px; }
.lk__user { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.lk__avatar { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.lk__user-name { display: block; font-size: 15.5px; }
.lk__user-role { font-size: 12.5px; color: var(--muted); }
.lk__nav { display: flex; flex-direction: column; gap: 2px; }
.lk__navlink { text-align: left; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--ink-soft); padding: 11px 14px; border-radius: var(--radius-sm); transition: background .25s var(--ease), color .25s var(--ease); }
.lk__navlink:hover { background: var(--bg); color: var(--ink); }
.lk__navlink.is-active { background: var(--accent); color: var(--paper); font-weight: 600; }
.lk__navlink--out { color: var(--sage-deep); font-weight: 600; margin-top: 8px; }
.lk__navlink--buy { color: var(--clay); font-weight: 600; }
.lk__navlink--exit { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0; margin-top: 8px; padding-top: 16px; }

.lk__content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 36px 40px; min-height: 420px; }
.lk__panel.is-hidden { display: none; }
.lk__title { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 500; }
.lk__lead { color: var(--ink-soft); font-size: 15.5px; margin: 10px 0 26px; max-width: 640px; line-height: 1.6; }
.lk__empty { color: var(--muted); padding: 16px 0; }

.lk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-bottom: 28px; max-width: 560px; }
.lk__field { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lk__field dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lk__field dd { font-size: 17px; font-weight: 500; }
.lk__alert { margin-bottom: 18px; }

.lk-profile-pane.is-hidden { display: none; }

.lk-profile-edit { max-width: 640px; }
.lk-profile-form { display: flex; flex-direction: column; gap: 28px; }
.lk-profile-form > form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.lk-profile-form .password-field {
  width: 100%;
}
.lk-profile-form .password-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.2;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.lk-profile-form .password-field input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124,139,107,.16);
}
.lk-profile-form__section {
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lk-profile-form__heading {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--ink);
}
.lk-profile-form__grid {
  display: grid;
  gap: 16px;
  align-items: start;
}
.lk-profile-form__grid--2 { grid-template-columns: 1fr 1fr; }
.lk-profile-form__field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.lk-profile-form__section > .lk-profile-form__field + .lk-profile-form__field {
  margin-top: 16px;
}
.lk-profile-form__section > .lk-profile-form__actions {
  margin-top: 20px;
  padding-top: 0;
}
.lk-profile-form__label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}
.lk-profile-form__input,
.lk-profile-form__select,
.lk-profile-form__textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.2;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.lk-profile-form__textarea {
  min-height: 120px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.5;
}
.lk-profile-form__hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.lk-profile-health {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.lk-profile-health__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
}
.lk-profile-health__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.lk-profile-form__input:focus,
.lk-profile-form__select:focus,
.lk-profile-form__textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124,139,107,.16);
}
.lk-profile-form__select-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.lk-profile-form__select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.lk-profile-form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.lk-profile-form__select:invalid { color: var(--muted); }
.lk-profile-form__birth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.lk-profile-form__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.lk-profile-form__check input {
  width: 17px;
  height: 17px;
  accent-color: var(--sage);
}
.lk-profile-form__patronymic.is-hidden { display: none; }
.lk-profile-form__patronymic { margin-top: 14px; }

.lk-profile-email {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lk-profile-email__send { margin-bottom: 0; }
.lk-profile-email__code { margin-top: 14px; }
.lk-profile-email__code.is-hidden { display: none; }
.lk-profile-email__code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lk-profile-form__code {
  width: 148px;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 20px;
  letter-spacing: 5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  color: var(--ink);
}
.lk-profile-form__code:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124,139,107,.16);
}

.lk-profile-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .lk-profile-form__grid--2,
  .lk-profile-form__birth { grid-template-columns: 1fr; }
  .lk-profile-form__section { padding: 18px 16px; }
}

.subs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sub { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; background: var(--bg); }
.sub__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sub__head .badge { align-self: flex-start; }
.sub__name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.sub__count { font-size: 14.5px; color: var(--ink-soft); }
.sub__count strong { color: var(--clay); font: inherit; font-weight: inherit; }
.sub__bar { height: 8px; border-radius: 100px; background: var(--line); overflow: hidden; margin: 10px 0 18px; }
.sub__bar span { display: block; height: 100%; background: var(--sage); border-radius: 100px; }
.sub__dates { display: flex; gap: 28px; }
.sub__dates dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sub__dates dd { font-size: 14.5px; font-weight: 500; margin-top: 2px; }
.sub--inactive { opacity: .72; }
.sub__status { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.lk-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.lk-row { display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; background: var(--bg); }
.lk-row__when { display: flex; flex-direction: column; align-items: center; min-width: 70px; border-right: 1px solid var(--line); padding-right: 18px; }
.lk-row__when strong { font-family: var(--serif); font-size: 24px; color: var(--sage-deep); line-height: 1; }
.lk-row__when span { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.lk-row__main { flex: 1; }
.lk-row__main h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.lk-row__topic { font-size: 14px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.lk-row__main p { font-size: 14px; color: var(--ink-soft); margin-top: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lk-row__when-inline { color: var(--muted); }
.lk-row__reason { color: var(--ink-soft); }
.lk-row--cancelled { opacity: .9; }
.lk-row--cancelled .lk-row__main h3 { text-decoration: line-through; text-decoration-color: var(--muted); }
.lk-row__status { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); background: rgba(184,106,72,.14); padding: 5px 12px; border-radius: 100px; }
.lk-row__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 120px; }
.lk-row__actions form { margin: 0; }

.lk-table { width: 100%; border-collapse: collapse; }
.lk-table th, .lk-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lk-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lk-table td:first-child { font-weight: 600; }

@media (max-width: 720px) {
  .lk-table--stacked thead { display: none; }
  .lk-table--stacked tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--bg);
  }
  .lk-table--stacked tbody tr:last-child { margin-bottom: 0; }
  .lk-table--stacked td {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .lk-table--stacked td:last-child { border-bottom: none; padding-bottom: 0; }
  .lk-table--stacked td:first-child { padding-top: 0; }
  .lk-table--stacked td::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
  }
  .lk-table--stacked td.lk__empty {
    display: block;
    border-bottom: none;
    padding: 16px 0;
  }
  .lk-table--stacked td.lk__empty::before { content: none; }
}

.oferta { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; background: var(--bg); flex-wrap: wrap; }
.oferta__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--clay); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: .05em; }
.oferta__info { flex: 1; min-width: 200px; }
.oferta__info strong { display: block; font-size: 16px; }
.oferta__info span { font-size: 13.5px; color: var(--muted); }

.purchase-group { margin-bottom: 34px; }
.purchase-group__title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 16px; }
.purchase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.purchase-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.purchase-card__head { display: flex; flex-direction: column; gap: 8px; }
.purchase-card__name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.purchase-card__meta { font-size: 14px; color: var(--ink-soft); }
.purchase-card__price { font-family: var(--serif); font-size: 28px; color: var(--clay); font-weight: 600; }
.purchase-card__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.purchase-card__field input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; background: var(--paper); color: var(--ink); }
.purchase-note { margin-top: 8px; font-size: 14px; color: var(--muted); max-width: 640px; line-height: 1.6; }

.payment-result { text-align: center; }
.payment-result__icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 34px; font-weight: 700; }
.payment-result__icon--ok { background: rgba(95,122,94,.16); color: var(--sage-deep); }
.payment-result__icon--wait { background: rgba(184,106,72,.14); color: var(--clay); }
.payment-result__icon--fail { background: rgba(120,120,120,.12); color: var(--muted); }
.payment-result__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 980px) {
  .lk__grid { grid-template-columns: 1fr; }
  .lk__aside { position: static; }
  .lk__nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .lk__navlink { padding: 9px 14px; }
  .lk__navlink--exit { border-top: none; padding-top: 9px; margin-top: 0; }

  .sched__head { flex-direction: column; align-items: flex-start; }
  .sched__range { align-self: stretch; justify-content: center; }
}

@media (max-width: 1180px) {
  .gridsched__row { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .gridsched__time--right { display: none; }
  .gridsched__cells { gap: 6px; }
  .gridsched__cell,
  .gridsched__card { min-height: 150px; }
  .gridsched__card-title { font-size: 14px; }
  .gridsched__daylabel { font-size: 10px; letter-spacing: .04em; }
}

@media (max-width: 960px) {
  .gridsched__days { display: none; }
  .gridsched__mobnav { display: flex; }
  .gridsched__body { display: none; }
  .gridsched__mobile { display: block; }
  .gridsched__header { flex-wrap: nowrap; }
  .gridsched__arrow { flex: 0 0 46px; }
  .gridsched__head-main { flex: 1; min-width: 0; }
}

@media (max-width: 720px) {
  .sched { padding-top: 78px; }
  .gridsched { border-radius: var(--radius-sm); }
  .gridsched__arrow { flex-basis: 42px; }
  .gridsched__mobtab { min-width: 64px; padding: 9px 10px; }
  .gridsched__mobile { padding: 12px 12px 16px; }
  .gridsched__card { padding: 14px 14px 13px 15px; }
  .gridsched__card-title { font-size: 16px; }
  .slot { grid-template-columns: 64px 1fr; gap: 8px 16px; }
  .slot__time { font-size: 20px; }
  .slot__seats { grid-column: 2; text-align: left; align-items: flex-start; margin-top: 6px; }
  .slot__action { grid-column: 1 / -1; }
  .slot__action .btn { width: 100%; }
  .subs, .lk__fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sched .container { padding: 0 16px; }
  .gridsched__mobnav { padding-inline: 0; }
  .gridsched__mobtab-main { font-size: 12px; }
  .sched-modal { padding: 0; }
  .sched-modal__dialog { max-width: 100%; min-height: 100%; border-radius: 0; border: none; }
  .auth__panel { padding: 30px 24px; }
  .lk__content { padding: 26px 22px 30px; }
  .lk-row { flex-wrap: wrap; }
  .lk-row__when { flex-direction: row; gap: 8px; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 8px; min-width: 100%; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .cards, .teachers__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .burger { display: flex; }
  .header__inner { height: 72px; gap: 14px; }
  .logo__img--mark { height: 38px; }
  .logo__name { font-size: 9.5px; letter-spacing: .16em; }
}
@media (max-width: 880px) {
  .section { padding: 80px 0; }
  .about__grid, .contacts__grid, .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .pricing, .pricing--tables { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .about__img { height: 420px; }
  .studio-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .studio-gallery__item--wide,
  .studio-gallery__item--tall,
  .studio-gallery__item--sm,
  .studio-gallery__item--md { grid-column: span 1; grid-row: span 1; }
  .studio-gallery__item--wide { grid-column: span 2; }
  .cta__bg { background-attachment: scroll; }
}
@media (max-width: 560px) {
  .container, .header__inner { padding-left: 20px; padding-right: 20px; }
  .header__inner { height: 68px; }
  .logo__img--mark { height: 34px; }
  .logo__name { font-size: 8.5px; letter-spacing: .14em; }
  .logo__img--footer { height: 60px; }
  .cards, .teachers__grid, .teachers__grid--two { grid-template-columns: 1fr; }
  .studio-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .studio-gallery__item--wide { grid-column: span 1; }
  .teachers__grid--two .teacher__img { height: 360px; }
  .hero__stats { gap: 30px; }
  .hero__stat strong { font-size: 40px; }
  .lang { display: none; }
  .event { gap: 16px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .dir-modal { padding: 0; }
  .dir-modal__dialog { max-width: 100%; min-height: 100%; border-radius: 0; border: none; }
  .dir-detail__hero { height: 260px; }
  .logo__img--dir-detail { left: 22px; bottom: 18px; height: 48px; }
  .dir-detail__nav { width: 40px; height: 40px; font-size: 24px; }
  .dir-detail__nav--prev { left: 12px; }
  .dir-detail__nav--next { right: 12px; }
  .dir-detail__head { padding: 28px 22px 0; }
  .dir-detail__title { font-size: 28px; }
  .dir-detail__body { padding: 20px 22px 0; }
  .dir-detail__benefits { padding: 6px 22px 0; }
  .dir-detail__benefits ul { grid-template-columns: 1fr; }
  .dir-detail__content { padding-bottom: 34px; }
}

/* ============ News ============ */
.container--narrow { max-width: 820px; }

.news-article { padding-top: 48px; }
.news-article__back { color: var(--sage-deep); font-weight: 600; }
.news-article__back:hover { color: var(--clay); }
.news-article__date { color: var(--muted); font-size: 14px; margin: 6px 0 22px; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.news-article__cover {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  background-size: cover; background-position: center; margin-bottom: 28px;
  box-shadow: 0 18px 40px rgba(42,46,27,.10);
}
.news-article__body { font-size: 17px; line-height: 1.8; color: var(--ink-soft); }
.news-article__body p { margin-bottom: 16px; }

.news-reactions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.news-reactions--compact {
  margin-top: 12px;
  margin-bottom: 20px;
  padding-top: 0;
  border-top: 0;
}
.news-reactions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.news-reactions__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-reactions__btn:hover {
  border-color: var(--sage);
  background: var(--bg-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(42, 46, 27, .28);
}
.news-reactions__btn.is-active {
  border-color: var(--sage-deep);
  background: var(--bg-soft);
  color: var(--sage-deep);
  box-shadow: inset 0 0 0 1px rgba(86, 99, 63, .12);
}
.news-reactions__btn.is-busy {
  opacity: .6;
  pointer-events: none;
}
.news-reactions__emoji {
  font-size: 17px;
  line-height: 1;
  transition: transform .25s var(--ease);
}
.news-reactions__btn:hover .news-reactions__emoji,
.news-reactions__btn.is-active .news-reactions__emoji {
  transform: scale(1.08);
}
.news-reactions__count {
  min-width: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sage-deep);
  font-variant-numeric: tabular-nums;
}
.news-reactions__btn:not(.is-active) .news-reactions__count:empty {
  display: none;
}
.news-reactions--compact .news-reactions__btn {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}
.news-reactions--compact .news-reactions__emoji { font-size: 15px; }

.news__pagination { display: flex; justify-content: center; }
.news__pagination nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.news__pagination a,
.news__pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: 14px;
  background: var(--paper);
}
.news__pagination a:hover { border-color: var(--sage); color: var(--sage-deep); }
.news__pagination [aria-current] span { background: var(--clay); color: #fffdf9; border-color: var(--clay); }
.news__pagination .cursor-not-allowed,
.news__pagination [aria-disabled] span { opacity: .45; }

/* ============ Модалка «скоро» ============ */
.soon-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.soon-modal.is-open { display: flex; }
.soon-modal__overlay { position: absolute; inset: 0; background: rgba(42,46,27,.55); backdrop-filter: blur(2px); }
.soon-modal__box {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: var(--paper); border-radius: var(--radius); padding: 40px 32px 32px;
  text-align: center; box-shadow: 0 30px 70px rgba(42,46,27,.28);
  animation: soonpop .28s var(--ease);
}
@keyframes soonpop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.soon-modal__close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--muted); transition: color .2s;
}
.soon-modal__close:hover { color: var(--clay); }
.soon-modal__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
  background: var(--bg-soft); color: var(--sage); font-size: 24px;
}
.soon-modal__title { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--sage-deep); margin-bottom: 10px; }
.soon-modal__text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; }
