/* CosmoProfi Academy — главная, версия 2 (лёгкая)
   Масштаб: 1rem = 10px при ширине 1440. От 1280 px всё растягивается
   пропорционально ширине окна, как автоскейл в Tilda. Текст 13px, H2 46px. */

:root {
  --bg: #F6F5F2;
  --white: #FFFFFF;
  --ink: #1B1A18;
  --ink-2: #6F6A63;
  --ink-3: #ABA59D;
  --line: #E7E3DD;
  --tint-sand: #F1ECE5;
  --tint-rose: #F6E9E1;
  --tint-cream: #F8F3EA;
  --tint-stone: #ECEAE6;
  --copper: #A2624A;
  --copper-dk: #7E4632;
  --copper-soft: #EED8CB;

  --f-display: "Wix Madefor Display", "Golos Text", system-ui, sans-serif;
  --f-text: "Golos Text", system-ui, sans-serif;

  --cols: 12;
  --margin: 4rem;
  --gutter: 2rem;
  --gap: .6rem;          /* расстояние между карточками */
  --r: 1.8rem;           /* скругление карточек */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html { font-size: calc(100vw / 144); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (max-width: 1279px) { html { font-size: 10px; } :root { --cols: 8; --margin: 3.2rem; } }
@media (max-width: 767px)  { html { font-size: calc(100vw / 39); } :root { --cols: 4; --margin: 1.6rem; --gutter: 1.2rem; --r: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: 1.3rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* ---------- сетка ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: 10rem; }
.section--tight { padding-top: 0; }

/* ---------- типографика ---------- */
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.05rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.kicker::before { content: ""; width: .9rem; height: .9rem; background: var(--copper); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.h2 { font-size: 4.6rem; line-height: 1.06; }
.h2 .soft, h1 .soft { color: var(--ink-3); }
.lead { font-size: 1.4rem; line-height: 1.6; color: var(--ink-2); max-width: 46rem; }
.small { font-size: 1.15rem; color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }
.head { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 3.2rem; margin-bottom: 3.2rem; }
.head__l { display: flex; flex-direction: column; gap: 2rem; max-width: 64rem; }
@media (max-width: 767px) { .h2 { font-size: 3rem; } .section { padding-block: 6.4rem; } .head { flex-direction: column; align-items: flex-start; } .lead { font-size: 1.35rem; } }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; gap: 1rem; height: 4rem; padding: 0 1.8rem; border-radius: 99rem; border: 0; cursor: pointer; font-size: 1.25rem; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn svg { width: 1.2rem; height: 1.2rem; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(.3rem); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #3A3631; }
.btn--soft { background: var(--copper-soft); color: var(--copper-dk); }
.btn--soft:hover { background: #E6C9B8; }
.btn--light { background: var(--tint-sand); color: var(--ink); }
.btn--light:hover { background: #E7E0D6; }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn--line:hover { background: var(--white); }
.link { display: inline-flex; align-items: center; gap: 1.2rem; font-size: 1.25rem; font-weight: 500; }
.link .ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--tint-stone); display: grid; place-items: center; transition: background .25s, transform .35s var(--ease); }
.link .ic svg { width: 1.1rem; height: 1.1rem; }
.link:hover .ic { background: var(--ink); color: #fff; transform: rotate(45deg); }
.pill { display: inline-flex; align-items: center; height: 2.8rem; padding: 0 1.2rem; border-radius: 99rem; box-shadow: inset 0 0 0 1px var(--line); font-size: 1.1rem; background: var(--white); white-space: nowrap; }
.pill--fill { box-shadow: none; background: var(--tint-sand); }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 6.4rem; padding-inline: var(--margin); }
.header__brand { display: flex; align-items: center; gap: 1.4rem; }
.header__brand img { width: 13.6rem; height: auto; }
.header__brand span { font-size: 1.05rem; color: var(--ink-3); padding-left: 1.4rem; border-left: 1px solid var(--line); line-height: 1.3; }
.nav { display: flex; gap: 2.8rem; font-size: 1.2rem; font-weight: 500; }
.nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav svg { width: .8rem; height: .8rem; }
.header__right { justify-self: end; display: flex; align-items: center; gap: 2rem; font-size: 1.2rem; font-weight: 500; }
.header .btn { height: 3.6rem; font-size: 1.2rem; padding: 0 1.6rem; }
.burger { display: none; }
@media (max-width: 1279px) { .nav { display: none; } .header__in { grid-template-columns: 1fr auto; } }
@media (max-width: 767px) {
  .header__in { height: 5.6rem; }
  .header__brand span, .header__phone, .header .btn { display: none; }
  .header__brand img { width: 12rem; }
  .burger { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; border: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
}

/* ---------- первый экран ---------- */
.hero { padding: 2rem 0 0; }
.hero .grid { align-items: stretch; }
.hero__text { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: center; gap: 2.4rem; padding: 6rem 0; }
.hero__line { display: flex; align-items: center; gap: 1.2rem; font-size: 1.05rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.hero__line::before { content: ""; width: 2.4rem; height: 1px; background: var(--ink-3); }
.hero h1 { font-size: 5.8rem; line-height: 1.02; letter-spacing: -0.04em; max-width: 60rem; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--copper-soft) 58%, var(--copper-soft) 92%, transparent 92%); color: inherit; padding: 0 .2rem; }
.hero .lead { max-width: 44rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__proof { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; }
.faces { display: flex; }
.faces img { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--bg); margin-left: -.9rem; }
.faces img:first-child { margin-left: 0; }
.hero__proof b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; }
.hero__proof span { font-size: 1.1rem; color: var(--ink-2); }
.hero__media { grid-column: 7 / -1; position: relative; border-radius: var(--r); overflow: hidden; height: 63rem; align-self: start; background: var(--tint-sand); }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.is-loaded .hero__media > img { transform: none; }
.float { position: absolute; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem 1rem 1rem; background: var(--white); border-radius: 1.2rem; box-shadow: 0 .8rem 2.4rem #E3DDD4; font-size: 1.15rem; line-height: 1.3; opacity: 0; transform: translateY(1rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-loaded .float { opacity: 1; transform: none; }
.float i { width: 3rem; height: 3rem; border-radius: .9rem; background: var(--tint-sand); display: grid; place-items: center; flex: none; color: var(--copper); }
.float i svg { width: 1.4rem; height: 1.4rem; }
.float b { display: block; font-weight: 500; color: var(--ink); }
.float span { color: var(--ink-2); font-size: 1.05rem; }
.float--a { left: 1.6rem; bottom: 1.6rem; transition-delay: .5s; }
.float--b { right: 1.6rem; top: 50%; transition-delay: .7s; }
.float--c { left: 1.6rem; top: 1.6rem; transition-delay: .9s; }
.float .dot { width: .7rem; height: .7rem; border-radius: 50%; background: #7FAE6B; box-shadow: 0 0 0 .3rem #E5F0DF; margin-left: .6rem; }
@media (max-width: 1279px) { .hero__text { grid-column: 1 / -1; padding: 4rem 0; } .hero__media { grid-column: 1 / -1; height: 56rem; } }
@media (max-width: 767px) { .hero h1 { font-size: 3.8rem; } .hero__media { height: 44rem; } .float--b { display: none; } .hero__cta .btn { flex: 1; justify-content: center; } }

/* ---------- полоса цифр ---------- */
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; align-items: center; gap: var(--gap); margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 1.4rem; padding: .4rem 1.6rem; }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: 3.2rem; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 1.05rem; color: var(--ink-2); line-height: 1.35; max-width: 12rem; }
.stats__ask { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.2rem 1.2rem 1.2rem 1.8rem; border-radius: 1.4rem; background: var(--tint-rose); }
.stats__ask small { display: block; font-size: 1.05rem; color: var(--copper-dk); }
.stats__ask b { font-weight: 500; font-size: 1.25rem; }
.stats__ask .ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--white); display: grid; place-items: center; transition: transform .35s var(--ease); }
.stats__ask .ic svg { width: 1.1rem; height: 1.1rem; }
.stats__ask:hover .ic { transform: rotate(45deg); }
@media (max-width: 1279px) { .stats { grid-template-columns: repeat(3, 1fr); } .stats__ask { grid-column: 1 / -1; } }
@media (max-width: 767px) { .stats { grid-template-columns: 1fr; } .stat { padding: .4rem 0; } }

/* ---------- уровни ---------- */
.levels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.level { position: relative; display: flex; flex-direction: column; min-height: 26rem; padding: 2rem; border-radius: var(--r); background: var(--white); cursor: pointer; text-align: left; border: 0; overflow: hidden; transition: background .4s var(--ease); }
.level__top { display: flex; justify-content: space-between; align-items: center; }
.level__top img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; }
.level__body { margin-top: auto; display: flex; flex-direction: column; gap: 1.2rem; }
.level h3 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.025em; }
.level__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.level__more > div { overflow: hidden; }
.level__desc { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.level__more .small { display: block; padding-top: .4rem; color: var(--copper-dk); font-weight: 500; }
.level:hover .level__more, .level:focus-visible .level__more { grid-template-rows: 1fr; }
.level:hover { background: var(--tint-cream); }
@media (max-width: 1279px) { .levels { grid-template-columns: 1fr; } .level { min-height: 0; gap: 4rem; } .level__more { grid-template-rows: 1fr; } }

/* ---------- каталог ---------- */
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.4rem; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--white); margin-bottom: var(--gap); }
.fgroup { display: flex; align-items: center; gap: 1rem; }
.fgroup__label { font-size: 1.05rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.seg { display: inline-flex; padding: .3rem; border-radius: 99rem; background: var(--tint-stone); }
.seg button { border: 0; cursor: pointer; height: 3rem; padding: 0 1.3rem; border-radius: 99rem; background: transparent; font-size: 1.15rem; transition: background .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--white); box-shadow: 0 .1rem .4rem #DDD6CC; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; flex-basis: 100%; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.chip { border: 0; cursor: pointer; height: 3rem; padding: 0 1.2rem; border-radius: 99rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.15rem; display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; transition: background .25s, box-shadow .25s, color .25s; }
.chip:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip .n { font-size: 1rem; color: var(--ink-3); }
.chip:disabled { color: var(--ink-3); cursor: default; }
.cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; padding: .6rem; border-radius: var(--r); background: var(--white); transition: transform .4s var(--ease), box-shadow .4s var(--ease); animation: cardIn .5s var(--ease) both; }
.card:hover { transform: translateY(-.3rem); box-shadow: 0 1.2rem 3.2rem #E4DED5; }
@keyframes cardIn { from { opacity: 0; transform: translateY(1.2rem); } }
.card__img { position: relative; aspect-ratio: 5 / 4; border-radius: calc(var(--r) - .6rem); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__img .pill { position: absolute; left: .8rem; top: .8rem; height: 2.4rem; font-size: 1.05rem; box-shadow: none; }
.card__body { padding: 1.4rem 1rem 1rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card__meta { display: flex; gap: .8rem; font-size: 1.05rem; color: var(--ink-3); }
.card__meta span + span::before { content: "·"; margin-right: .8rem; }
.card h3 { font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.02em; }
.card p { font-size: 1.2rem; color: var(--ink-2); line-height: 1.5; }
.card__foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card__price { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; }
.card__price small { font-family: var(--f-text); font-size: 1.1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.card__lvl { font-size: 1rem; color: var(--ink-2); padding: .4rem .9rem; border-radius: 99rem; background: var(--tint-stone); white-space: nowrap; }
.card__lvl.med { background: var(--tint-rose); color: var(--copper-dk); }
.catalog__empty { grid-column: 1 / -1; display: none; padding: 4.8rem; border-radius: var(--r); background: var(--white); text-align: center; }
.catalog__empty.is-on { display: block; }
.catalog__more { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
@media (max-width: 1279px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .cards { grid-template-columns: 1fr; }
  .filters { padding: 1.2rem; }
  .fgroup { flex-wrap: wrap; width: 100%; }
  .seg { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 1.6rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
}

/* ---------- форматы: фото + аккордеон ---------- */
/* Полоса доверия под первым экраном */
.trust { padding: 1.2rem 0 0; }
.trust__box { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr)); gap: .6rem; padding: .6rem; border-radius: var(--r); background: var(--ink); color: #fff; }
.trust__lead { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem 2rem 2.2rem; }
.trust__lead .kicker { color: #BDB6AD; }
.trust__lead b { display: block; font-size: 5.6rem; line-height: .95; letter-spacing: -0.04em; font-weight: 400; }
.trust__lead span { display: block; margin-top: .8rem; font-size: 1.25rem; color: #BDB6AD; }
.trust__item { display: flex; flex-direction: column; gap: .8rem; min-height: 21rem; padding: 2rem; border-radius: calc(var(--r) - .6rem); background: #2A2723; }
.trust__ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: #3A3631; display: grid; place-items: center; color: var(--copper-soft); }
.trust__ic svg { width: 1.6rem; height: 1.6rem; }
.trust__item h3 { margin-top: auto; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; }
.trust__item p { font-size: 1.15rem; line-height: 1.45; color: #BDB6AD; }
.trust__item a { color: #fff; text-decoration: underline; text-decoration-color: #5A544D; text-underline-offset: .3rem; font-size: 1.15rem; }
.trust__item a:hover { text-decoration-color: #fff; }
@media (max-width: 1279px) { .trust__box { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust__lead { grid-column: 1 / -1; } .trust__item { min-height: 0; } }
@media (max-width: 767px) { .trust__box { grid-template-columns: 1fr; } .trust__lead b { font-size: 4.8rem; } }

.formats__media { grid-column: 1 / span 6; position: relative; border-radius: var(--r); overflow: hidden; min-height: 52rem; background: var(--tint-sand); }
.formats__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.03); }
.formats__media img.is-on { opacity: 1; transform: none; }
.formats__media .pill { position: absolute; left: 1.4rem; top: 1.4rem; z-index: 1; box-shadow: none; }
.formats__list { grid-column: 8 / -1; display: flex; flex-direction: column; }
.formats__intro { color: var(--ink-2); font-size: 1.3rem; margin-bottom: 2.4rem; max-width: 46rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 0 1.6rem; text-align: left; font-family: var(--f-display); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.02em; }
.acc__btn small { font-family: var(--f-text); font-size: 1.1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-left: auto; }
.acc__btn i { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background .25s; }
.acc__btn i svg { width: 1.1rem; height: 1.1rem; }
.acc.is-open .acc__btn i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__inner { display: grid; grid-template-columns: 1fr 15rem; gap: 2rem; padding-bottom: 2.4rem; }
.acc__inner p { color: var(--ink-2); font-size: 1.25rem; }
.acc__inner .pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 1.8rem; }
.acc__inner img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.2rem; }
@media (max-width: 1279px) { .formats__media { grid-column: 1 / -1; min-height: 40rem; margin-bottom: 3.2rem; } .formats__list { grid-column: 1 / -1; } }
@media (max-width: 767px) { .formats__media { min-height: 28rem; } .acc__inner { grid-template-columns: 1fr; } .acc__inner img { display: none; } .acc__btn { font-size: 1.7rem; } }

/* ---------- практика: заголовок слева, карточки справа ---------- */
.practice__head { grid-column: 1 / span 5; position: sticky; top: 10rem; align-self: start; display: flex; flex-direction: column; gap: 2rem; min-height: 40rem; }
.practice__head .link { margin-top: auto; }
.steps { grid-column: 7 / -1; display: flex; flex-direction: column; gap: var(--gap); }
.step { display: grid; grid-template-columns: 1fr 6.4rem; gap: 1.2rem 2.4rem; padding: 2rem 2.2rem 2.2rem; border-radius: var(--r); background: var(--white); }
.step .small { grid-column: 1 / -1; color: var(--ink-3); font-size: 1.05rem; }
.step h3 { font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.2; }
.step p { grid-column: 1; font-size: 1.25rem; color: var(--ink-2); max-width: 46rem; }
.step img { grid-column: 2; grid-row: 2 / span 2; width: 6.4rem; height: 6.4rem; border-radius: 50%; object-fit: cover; }
.practice__facts { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 1279px) { .practice__head { grid-column: 1 / -1; position: static; min-height: 0; margin-bottom: 3.2rem; } .steps { grid-column: 1 / -1; } }

/* ---------- расписание ---------- */
.sched { grid-column: 1 / -1; display: grid; gap: var(--gap); }
.srow { display: grid; grid-template-columns: 12rem 1fr 18rem 12rem auto; align-items: center; gap: 2rem; padding: 1.2rem 1.2rem 1.2rem 2rem; border-radius: 1.4rem; background: var(--white); transition: background .25s; }
.srow:hover { background: var(--tint-cream); }
.srow__date { font-family: var(--f-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; }
.srow__name { font-weight: 500; font-size: 1.4rem; }
.srow__fmt { font-size: 1.15rem; color: var(--ink-2); }
.srow__seats { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.1rem; color: var(--ink-2); }
.srow__seats::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #7FAE6B; }
.srow .btn { height: 3.4rem; font-size: 1.15rem; }
@media (max-width: 1279px) { .srow { grid-template-columns: 1fr auto; gap: .4rem 2rem; } .srow > :not(.btn) { grid-column: 1; } .srow .btn { grid-column: 2; grid-row: 1 / span 4; } }

/* ---------- преподаватели ---------- */
.lead-teacher { grid-column: 1 / span 5; position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint-sand); }
.lead-teacher img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lead-teacher .pill { position: absolute; z-index: 1; box-shadow: none; }
.lead-teacher .pill:nth-of-type(1) { left: 1.4rem; top: 1.4rem; }
.lead-teacher .pill:nth-of-type(2) { right: 1.4rem; bottom: 1.4rem; }
.teachers__text { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 2rem; justify-content: center; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; margin-top: 1.6rem; }
.feat svg { width: 1.8rem; height: 1.8rem; color: var(--copper); }
.feat b { display: block; margin: 1.2rem 0 .6rem; font-weight: 500; font-size: 1.3rem; }
.feat p { font-size: 1.15rem; color: var(--ink-2); }
.team { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.tm { padding: .6rem .6rem 1.4rem; border-radius: var(--r); background: var(--white); display: flex; flex-direction: column; gap: .4rem; }
.tm img { aspect-ratio: 1; width: 100%; object-fit: cover; object-position: 50% 15%; border-radius: calc(var(--r) - .6rem); margin-bottom: 1rem; transition: transform .8s var(--ease); }
.tm b { font-weight: 500; font-size: 1.3rem; padding-inline: .8rem; }
.tm span { font-size: 1.1rem; color: var(--ink-2); padding-inline: .8rem; line-height: 1.4; }
.tm--more { background: var(--tint-sand); justify-content: flex-end; padding: 1.4rem; gap: .6rem; transition: background .3s; }
.tm--more b, .tm--more span { padding-inline: 0; }
.tm--more .tm__n { margin-bottom: auto; color: var(--ink-3); }
.tm--more .link { margin-top: 1.2rem; }
.tm--more:hover { background: var(--copper-soft); }
.tm--more:hover .link .ic { background: var(--ink); color: #fff; transform: rotate(45deg); }
@media (max-width: 1279px) { .lead-teacher, .teachers__text { grid-column: 1 / -1; } .teachers__text { margin-top: 3.2rem; } .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .lead-teacher { aspect-ratio: 4 / 5; } .feats { grid-template-columns: 1fr; } .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- документы ---------- */
.docs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.doc { position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 26rem; padding: 2rem; border-radius: var(--r); background: var(--white); overflow: hidden; }
.doc:nth-child(1) { background: var(--tint-rose); }
.doc:nth-child(3) { background: var(--tint-cream); }
.doc__ic { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--copper); }
.doc__ic svg { width: 1.6rem; height: 1.6rem; }
.doc__n { position: absolute; right: 2rem; top: 2rem; font-size: 1.05rem; color: var(--ink-3); }
.doc h3 { margin-top: auto; font-size: 1.9rem; letter-spacing: -0.02em; }
.doc p { font-size: 1.2rem; color: var(--ink-2); }
.doc .small { color: var(--ink); font-weight: 500; }
.doc--license { background: var(--ink); color: #fff; }
.doc--license .doc__ic { background: #2E2B27; color: var(--copper-soft); }
.doc--license p { color: #BDB6AD; }
.doc--license .small { color: #fff; }
.doc--license .doc__n { color: #7C756C; }
.doc--license .link .ic { background: #2E2B27; }
.doc--license .link:hover .ic { background: #fff; color: var(--ink); }
.doc::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; border: 2.4rem solid var(--white); pointer-events: none; }
.doc--license::after, .doc:nth-child(2)::after { display: none; }
@media (max-width: 1279px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .docs { grid-template-columns: 1fr; } .doc { min-height: 20rem; } }

/* ---------- оплата ---------- */
.pay__head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 2rem; }
.pay__list { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.payc { padding: 2rem; border-radius: var(--r); background: var(--white); display: flex; flex-direction: column; gap: .8rem; min-height: 17rem; }
.payc .small { color: var(--ink-3); font-size: 1.05rem; }
.payc h3 { font-size: 1.8rem; letter-spacing: -0.02em; margin-top: auto; }
.payc p { font-size: 1.2rem; color: var(--ink-2); }
.payc a { color: var(--copper-dk); font-weight: 500; }
@media (max-width: 1279px) { .pay__head, .pay__list { grid-column: 1 / -1; } .pay__list { margin-top: 3.2rem; } }
@media (max-width: 767px) { .pay__list { grid-template-columns: 1fr; } .payc { min-height: 0; } }

/* ---------- отзывы ---------- */
.reviews__head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 2rem; }
.reviews__list { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.review { display: flex; flex-direction: column; gap: 2rem; min-height: 30rem; padding: 2rem; border-radius: var(--r); background: var(--white); }
.review__top { display: flex; justify-content: space-between; align-items: center; }
.review__top i { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--tint-sand); }
.review__q { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink-3); }
.review__q::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--copper); margin-bottom: .8rem; }
.review__who { margin-top: auto; padding-left: 1.4rem; border-left: 1px solid var(--line); font-size: 1.1rem; color: var(--ink-3); }
.review__who b { display: block; color: var(--ink); font-weight: 500; font-size: 1.2rem; }
@media (max-width: 1279px) { .reviews__head, .reviews__list { grid-column: 1 / -1; } .reviews__list { margin-top: 3.2rem; } }
@media (max-width: 767px) { .reviews__list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 2rem; }
.faq { grid-column: 6 / -1; display: flex; flex-direction: column; gap: var(--gap); }
.faq details { border-radius: var(--r); background: var(--white); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.8rem 1.8rem 1.8rem 2.2rem; font-weight: 500; font-size: 1.45rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 3rem; height: 3rem; border-radius: 50%; background: var(--tint-stone); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background .25s; }
.faq summary i svg { width: 1rem; height: 1rem; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq .ans { padding: 0 6rem 2.2rem 2.2rem; font-size: 1.25rem; color: var(--ink-2); max-width: 70rem; }
@media (max-width: 1279px) { .faq__head, .faq { grid-column: 1 / -1; } .faq { margin-top: 3.2rem; } }
@media (max-width: 767px) { .faq summary { font-size: 1.35rem; } .faq .ans { padding-right: 2.2rem; } }

/* ---------- финальный блок ---------- */
.final { position: relative; grid-column: 1 / -1; border-radius: calc(var(--r) + .6rem); overflow: hidden; background: #2A1810; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 7.2rem 4rem; }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final__text { position: relative; grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 2rem; justify-content: center; }
.final__text .lead { color: var(--ink); }
.form { position: relative; grid-column: 7 / -1; padding: 2.8rem; border-radius: var(--r); background: var(--white); display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .6rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 1.05rem; color: var(--ink-2); padding: 0; }
.field input[type=text], .field input[type=tel] { height: 4.4rem; padding: 0 1.4rem; border: 0; border-radius: 1.1rem; background: var(--bg); font-size: 1.3rem; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink-3); }
.field input.is-bad { box-shadow: inset 0 0 0 1px #C0583F; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label { font-size: 1.15rem; color: var(--ink); height: 3.2rem; padding: 0 1.2rem; border-radius: 99rem; background: var(--bg); display: inline-flex; align-items: center; cursor: pointer; transition: background .2s, color .2s; }
.opts input:checked + label { background: var(--ink); color: #fff; }
.opts input:focus-visible + label { outline: 2px solid var(--copper); outline-offset: 2px; }
.consent { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .6rem; font-size: 1.1rem; color: var(--ink-2); }
.consent label { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.consent label.is-bad { color: #C0583F; }
.consent input { margin: .2rem 0 0; accent-color: var(--ink); width: 1.4rem; height: 1.4rem; flex: none; }
.consent a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .3rem; }
.form__submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.form__submit small { font-size: 1.1rem; color: var(--ink-3); max-width: 30rem; }
.form__ok { grid-column: 1 / -1; display: none; padding: 1.4rem 1.6rem; border-radius: 1.2rem; background: var(--tint-cream); font-size: 1.25rem; }
.form__ok.is-on { display: block; }
.form__err { grid-column: 1 / -1; display: none; padding: 1.4rem 1.6rem; border-radius: 1.2rem; background: var(--tint-rose); font-size: 1.25rem; }
.form__err.is-on { display: block; }
.form__err a { text-decoration: underline; }
@media (max-width: 1279px) { .final { grid-template-columns: 1fr; padding: 4.8rem 3.2rem; } .final__text, .form { grid-column: 1; } .form { margin-top: 3.2rem; } }
@media (max-width: 767px) { .final { padding: 3.2rem 1.2rem 1.2rem; } .final__text { padding: 0 .8rem; } .form { grid-template-columns: 1fr; padding: 2rem 1.6rem; } .form__submit .btn { width: 100%; justify-content: center; } }

/* ---------- подвал ---------- */
.footer { padding: 6.4rem 0 3.2rem; }
.footer .grid { row-gap: 4rem; }
.footer__brand { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 1.6rem; }
.footer__brand img { width: 16rem; }
.footer__brand p { font-size: 1.2rem; color: var(--ink-2); max-width: 30rem; }
.fcol { grid-column: span 2; display: flex; flex-direction: column; gap: 1rem; font-size: 1.2rem; }
.fcol .kicker { margin-bottom: .6rem; }
.fcol a { color: var(--ink-2); }
.fcol a:hover { color: var(--ink); }
.fcol .tel { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: -0.02em; color: var(--ink); }
.footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 2.4rem; flex-wrap: wrap; padding-top: 2.4rem; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--ink-3); line-height: 1.6; }
.footer__bottom p { max-width: 70rem; }
.footer__bottom a:hover { color: var(--ink); }
@media (max-width: 1279px) { .footer__brand { grid-column: 1 / -1; } .fcol { grid-column: span 2; } }
@media (max-width: 767px) { .footer { padding-bottom: 10rem; } }

/* ---------- мобильная панель и меню ---------- */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar { position: fixed; z-index: 60; left: .8rem; right: .8rem; bottom: .8rem; display: grid; grid-template-columns: repeat(3, 4.4rem) 1fr; gap: .4rem; padding: .4rem; border-radius: 99rem; background: var(--white); box-shadow: 0 .8rem 2.4rem #DCD5CB; transform: translateY(150%); transition: transform .5s var(--ease); }
  .mbar.is-on { transform: none; }
  .mbar a { height: 4.4rem; border-radius: 99rem; display: grid; place-items: center; background: var(--bg); }
  .mbar a svg { width: 1.8rem; height: 1.8rem; }
  .mbar a.cta { background: var(--ink); color: #fff; font-weight: 500; font-size: 1.35rem; }
}
.mmenu { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 1.2rem var(--margin) 2.4rem; display: flex; flex-direction: column; gap: 2.4rem; overflow-y: auto; visibility: hidden; transform: translateY(-100%); transition: transform .5s var(--ease), visibility 0s linear .5s; }
.mmenu.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; }
.mmenu__top img { width: 12rem; }
.mmenu__top button { width: 4rem; height: 4rem; border-radius: 50%; border: 0; background: var(--white); font-size: 2rem; line-height: 1; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a { font-family: var(--f-display); font-size: 2.6rem; letter-spacing: -0.03em; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }

/* ---------- появление ---------- */
.rv { opacity: 0; transform: translateY(2rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .06s; } .rv-d2 { transition-delay: .12s; } .rv-d3 { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .float { opacity: 1; transform: none; }
  .hero__media > img { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.final__text, .final__text .kicker, .final__text .lead { color: #FFFFFF; }
.final__text .kicker::before { background: var(--copper-soft); }
.final .h2 .soft { color: #F2D3C2; }

/* ---------- аппараты и обучение (главная, «На вашем аппарате») ---------- */
.ishop { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); border-radius: var(--r); overflow: hidden; background: var(--tint-rose); }
.ishop__txt { display: flex; flex-direction: column; gap: 1.6rem; padding: 4rem; }
.ishop__txt .h2 { margin-top: .4rem; }
.ishop__pts { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.ishop__pts li { display: flex; gap: 1rem; align-items: baseline; font-size: 1.3rem; color: var(--ink-2); }
.ishop__pts li::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--copper); transform: translateY(-.2rem); }
.ishop__pts b { color: var(--ink); font-weight: 500; }
.ishop__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.2rem; }
.ishop { min-height: 48rem; }
.ishop > img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .ishop { grid-template-columns: minmax(0, 1fr); min-height: 0; } .ishop__txt { padding: 2.4rem 2rem; } .ishop > img { height: 30rem; min-height: 0; } }

/* ---------- видеоотзывы ---------- */
.vrev__nav { display: flex; gap: .6rem; }
.vrev__btn { width: 4.4rem; height: 4.4rem; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; }
.vrev__btn svg { width: 1.3rem; height: 1.3rem; }
.vrev__btn[data-vrev="-1"] svg { transform: rotate(180deg); }
.vrev__btn:hover { background: var(--ink); color: #fff; }
.vrevs { grid-column: 1 / -1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.vrevs::-webkit-scrollbar { display: none; }
.vrev { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: .8rem; }
.vrev video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r); background: var(--tint-sand); }
.vrev figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-inline: .4rem; font-size: 1.15rem; color: var(--ink-2); }
@media (max-width: 1279px) { .vrevs { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 767px) { .vrevs { grid-auto-columns: 72%; } .vrev__nav { display: none; } }

/* ---------- юридические документы ---------- */
.legal__head { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 1.2rem; margin: 2.4rem 0 3.2rem; }
.legal__body { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 1.2rem; padding: 3.2rem; border-radius: var(--r); background: var(--white); font-size: 1.35rem; line-height: 1.65; color: var(--ink-2); }
.legal__body h2 { margin-top: 1.6rem; font-family: var(--f-display); font-weight: 500; font-size: 2rem; letter-spacing: -0.02em; color: var(--ink); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body b { color: var(--ink); font-weight: 500; }
@media (max-width: 1279px) { .legal__head, .legal__body { grid-column: 1 / -1; } }
@media (max-width: 767px) { .legal__body { padding: 2rem; font-size: 1.3rem; } }
