/* Общие стили курсовых страниц (pirogi/, saladlab/, zagotovki/): вынесено из инлайна pirogi/index.html 05.09.2026
   слово в слово. Блоки: hero со шапкой поверх фото, карточка «формат + доступ», витрина приложения, «Кто вас учит»,
   вкусы/программа пирогов. Подключать после brand.css. */
.foryou .tile h3 { font-size: 21px; }
.secret { max-width: 780px; margin-inline: auto; padding: clamp(30px, 5vw, 52px); text-align: center; display: grid; gap: 16px; justify-items: center; }
.chero__vid { width: 100%; height: 100%; object-fit: cover; display: block; background: #efe9e6; }
.flavor { display: grid; gap: 14px; align-content: start; }
.flavor__img { border-radius: 16px; border: 1px solid var(--line); }
.fmt__card--access { --pad: clamp(26px, 3.2vw, 38px); padding: var(--pad); grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 2.6vw, 32px); align-items: center; padding-left: 0; }
.access__photo { align-self: stretch; margin: calc(-1 * var(--pad)) 0; border-radius: var(--r) 0 0 var(--r); overflow: hidden; min-height: 260px; }
.access__photo picture { display: contents; }
.access__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.access__body { display: grid; gap: 18px; align-content: center; }
.chero__grid--stack .chero__cta { justify-content: center; }
.chero__stage { position: relative; width: min(100%, 620px); margin-inline: auto; }
.chero__stage .chero__photo { width: 100%; margin: 0; }
.chero__stage .chero__photo { position: relative; }
.chero__stage .chero__photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 48%; pointer-events: none;
  background: linear-gradient(to top, rgba(26, 14, 20, .74), rgba(26, 14, 20, .3) 40%, rgba(26, 14, 20, 0)); }
.chero__title--over { position: absolute; left: clamp(20px, 5%, 40px); right: clamp(20px, 5%, 40px); bottom: clamp(18px, 4%, 34px);
  margin: 0; z-index: 2; color: #fff; text-align: left; font-size: clamp(32px, 6.4vw, 56px); line-height: 1.05; }
.chero__title--over em { color: #fff; }
.chero__title--over { text-shadow: 0 2px 18px rgba(26, 14, 20, .35); }
.feats--one { grid-template-columns: 1fr; max-width: 780px; margin-inline: auto; }
.feat--one { text-align: center; justify-items: center; gap: 14px; }
.feat--one p { max-width: 46ch; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink); }
.chero__grid--stack .lead { text-align: center; max-width: 640px; }
@media (max-width: 700px) { .chero__grid--stack .lead { padding-inline: min(calc(9vw - 8px), 40px); } }
.chero__grid--stack { grid-template-columns: 1fr; gap: clamp(22px, 3vw, 34px); justify-items: center; }
.chero__grid--stack .chero__text { justify-items: center; text-align: center; gap: 14px; max-width: 720px; }
.chero__grid--stack .chero__photo { order: 0; width: min(100%, 620px); height: auto; aspect-ratio: 1.05; margin-inline: auto; }
@media (max-width: 860px) {
  .chero__grid--stack .chero__photo { order: 0; width: min(100%, 440px); aspect-ratio: .95; }
}
.hows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 780px; margin: 0 auto clamp(24px, 3vw, 34px); }
.how { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 16px 18px; display: grid; gap: 6px; text-align: center; }
.how b { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.15; color: var(--ink); }
.how span { font-family: var(--sans); font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 700px) {
  .hows { grid-template-columns: 1fr; gap: 10px; }
  .how { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; text-align: left; padding: 12px 16px; }
  .how b { font-size: 17px; }
  .how span { text-align: right; }
}
.how i { font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--acc); opacity: .85; }
@media (max-width: 700px) {
  .how { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 4px 14px; text-align: left; padding: 14px 16px; }
  .how i { grid-row: span 2; align-self: center; }
  .how span { text-align: left; }
}
.hows--one { grid-template-columns: 1fr; max-width: 620px; }
.hows--one .how { padding: 20px 24px; gap: 8px; }
.hows--one .how span { font-size: 14.5px; }
@media (max-width: 700px) { .hows--one .how { display: grid; text-align: center; } .hows--one .how span { text-align: center; } }
.fmt__card--access { overflow: hidden; }
.access__photo--cut { background: transparent; border-radius: 0; overflow: visible; align-self: center; margin: 0; min-height: 0; }
.access__photo--cut img { width: 132%; max-width: none; margin-left: -32%; height: auto; object-fit: contain; }
.fmt__card--access.is-flip { grid-template-columns: minmax(0, 1fr) 250px; padding-left: var(--pad); padding-right: 0; }
.fmt__card--access.is-flip .access__photo { order: 2; border-radius: 0 var(--r) var(--r) 0; }
@media (max-width: 700px) {
  .fmt__card--access { --pad: 22px; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: stretch; }
  .fmt__card--access.is-flip { grid-template-columns: minmax(0, 1fr) 112px; padding-left: var(--pad); padding-right: 0; }
  .access__photo { align-self: stretch; margin: calc(-1 * var(--pad)) 0; border-radius: var(--r) 0 0 var(--r); min-height: 0; }
  .access__photo--cut { align-self: center; margin: 0; }
  .access__body { gap: 14px; align-content: center; }
  .fmt--single .fmt__rows { grid-template-columns: 1fr; gap: 14px; }
  .fmt__card--access .fmt__val { font-size: 26px; }
  .fmt__card--access .fmt__lbl { font-size: 11px; }
  .fmt__card--access .fmt__note { font-size: 13.5px; }
}
.mcard__media { position: relative; overflow: hidden; margin: -34px -34px 22px; border-radius: var(--r) var(--r) 0 0; }
.mcard__vid { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #efe9e6; }
.flavor__media { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.flavor__vid { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #efe9e6; }
.flavor__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px;
  display: flex; align-items: baseline; gap: 10px; color: #fff;
  background: linear-gradient(to top, rgba(26,14,20,.62), rgba(26,14,20,0)); }
.flavor__cap span { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; opacity: .85; }
.flavor__cap b { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
/* описание вкуса: крупнее и контрастнее, чтобы читалось */
.flavor p { font-size: 17px; line-height: 1.6; color: var(--ink); }
@media (max-width: 860px) {
  .tile.flavor { padding: 12px; gap: 10px; }
  .flavor p { padding: 0 4px 2px; font-size: 16.5px; }
  .flavor__cap { padding: 30px 14px 12px; }
  .flavor__cap b { font-size: 20px; }
}
/* ---- «Доступ»: тарелка целиком, медленное вращение ---- */
.fmt__card--plate { padding-left: 0; grid-template-columns: 240px minmax(0, 1fr); }
.access__photo--plate { background: transparent; border-radius: 0; overflow: hidden; align-self: center;
  margin: 0; min-height: 0; }
.access__photo--plate img { width: 140%; max-width: none; height: auto; margin: 0 0 0 -40%;
  aspect-ratio: 1 / 1; object-fit: contain;
  transform-origin: 50% 50%; animation: plate-spin 60s linear infinite; will-change: transform; }
@keyframes plate-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.fmt__card--plate .fmt__val { font-size: clamp(26px, 3.4vw, 38px); }
@media (max-width: 700px) {
  .fmt__card--plate { padding-left: 0; grid-template-columns: clamp(112px, 30%, 190px) minmax(0, 1fr); }
  .access__photo--plate { align-self: center; margin: 0; }
  .access__photo--plate img { width: 132%; margin-left: -32%; }
}
@media (prefers-reduced-motion: reduce) {
  .access__photo--plate img { animation: none; transform: none; }
}

/* блок «Кто вас учит» — перенесён с главной 1:1 */
@media (max-width: 700px) {
  #author .wrap { padding-inline: 28px; }
  #author .about { gap: 20px; }
  .about__text p { font-size: 16.5px; line-height: 1.55; }
}
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__photo { position: relative; }
.about__photo img { width: 100%; height: auto; display: block; border-radius: 16px; }
.about__text { display: grid; gap: 16px; justify-items: start; }
.about__quote-card {
  position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 3; padding: 18px 18px 16px;
  background: var(--acc-deep); background: color-mix(in srgb, var(--acc-deep) 94%, transparent); backdrop-filter: blur(3px);
  border-radius: 16px; box-shadow: 0 18px 44px -26px rgba(43,31,35,.6);
}
.about__quote-card p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: #fff; }
.about__quote-card p em { font-style: italic; color: var(--acc-soft); }
@media (min-width: 861px) { .about__quote-card { left: auto; width: min(78%, 330px); } }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__photo { width: min(100%, 420px); margin-inline: auto; } }
.about__facts {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px;
  border-top: 0 !important; padding-top: 0 !important; margin-top: 24px !important;
  width: 100%;
}
.about__facts li {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 10px; text-align: center;
  box-shadow: 0 12px 30px -26px rgba(43,31,35,.5);
}
.about__facts b { font-size: 26px !important; display: block; margin-bottom: 4px; }
.about__facts span { font-size: 12px; line-height: 1.3; }
@media (max-width: 430px) {
  .about__facts { gap: 8px; }
  .about__facts li { padding: 14px 6px; }
  .about__facts b { font-size: 21px !important; }
  .about__facts span { font-size: 10.5px; }
}

/* объединённый блок «формат + доступ» */
.fmt--merged { max-width: 900px; }
.fmt--merged .fmt__rows { gap: 22px 30px; }
.fmt--merged .fmt__val { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.1; }
.fmt--merged .fmt__note { font-size: 13.5px; }
.fmt--merged .fmt__lbl { font-size: 14px; letter-spacing: .12em; color: var(--acc); }
@media (max-width: 560px) { .fmt--merged .fmt__val { font-size: 21px; } }

.fmt--merged .fmt__row--access { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: clamp(20px, 2.4vw, 26px); }
.fmt__pairs { display: grid; gap: 10px; }
.fmt__pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fmt__pair > span { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .fmt__pairs { gap: 12px; } }

/* строка доступа: название слева, значение справа, по одной линии на строку */
.fmt__pairs { display: grid; gap: 12px; }
.fmt__pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fmt__pair > span { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.25; color: var(--text); }
.fmt__pair .fmt__val { font-size: clamp(21px, 2.4vw, 28px); }
.fmt__dash { font-style: normal; color: var(--muted); font-size: clamp(17px, 1.9vw, 21px); }
.fmt__sub { display: block; margin-top: 4px; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.3; color: var(--text); }
.fmt__row--access .fmt__lbl { margin-bottom: 2px; }

/* --- единая сетка отступов и скруглений на странице --- */
/* блок «Как проходит обучение» жил по своим отступам: 78px против 56px у остальных секций */
.appx--shots { row-gap: clamp(32px, 4.4vw, 56px); }
.appx--shots .appx__head { margin-bottom: 0; }
/* скругления: 26 у карточек и панелей, 18 у вложенных блоков, 12 у мелких плашек */
.review, .deck .review { border-radius: var(--r); }
.flavor__media, .about__quote-card, .about__facts li, .bar, .about__photo img, .flavor__img { border-radius: 18px; }
.timer__cell { border-radius: 12px; }

/* brand.css прячет кикер «Формат обучения» на ≤860px, возвращаем его */
@media (max-width: 860px) { .appx--shots .appx__head .kicker { display: flex; } }
/* витрина приложения: телефон стоит на мягкой панели, под ним точки-индикатор */
.appx--shots .appx__demo {
  background: linear-gradient(180deg, var(--acc-soft) 0%, #fff 62%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3.2vw, 38px) clamp(16px, 2.6vw, 34px) clamp(16px, 2.2vw, 26px);
  box-shadow: 0 26px 64px -48px rgba(43, 31, 35, .55);
  row-gap: clamp(18px, 2.4vw, 26px);
}
.appx--shots .appx__side { width: 100%; }
.appx__dots { display: flex; gap: 9px; justify-content: center; align-items: center; }
/* на телефоне подпись идёт ПОСЛЕ скриншота: телефон, текст, точки */
@media (max-width: 860px) {
  .appx--shots .appx__stage { order: 0; }
  .appx--shots .appx__side { order: 1; }
  .appx--shots .appx__dots { order: 2; }
}
.appx__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: #e2d3dd; transition: background .2s ease, transform .2s ease;
}
.appx__dot:hover { background: #cbb3c2; }
.appx__dot.is-on { background: var(--acc); transform: scale(1.4); }
@media (prefers-reduced-motion: reduce) { .appx__dot { transition: none; } }
/* подпись под скриншотом: один короткий абзац вместо заголовка и текста */
.appx--shots .appx__cap p {
  font-size: clamp(16.5px, 1.8vw, 19px) !important; line-height: 1.5;
  color: var(--text) !important; max-width: 34ch; margin-inline: auto;
}
@media (max-width: 345px) { .appx--shots .appx__cap p { font-size: 15px !important; } }
/* подпись над скриншотами приложения */
.appx__where { text-align: center; max-width: none; margin: 0 auto; }
/* на телефоне заголовок длиннее секционного, поэтому чуть мельче, чтобы не рвался по одному слову */
@media (max-width: 700px) { .appx__where.h2 { font-size: clamp(22px, 6.2vw, 27px); } }
/* .appx .h2 покрашен в белый для тёмной витрины, этому заголовку нужен обычный цвет */
.appx .appx__where.h2 { color: var(--ink); }
.appx .appx__where.h2 em { color: var(--acc); }

/* «Заготовки»: карточка предзаписи и вторая карточка в том же offer-дизайне */
.offer + .offer { margin-top: clamp(22px, 3vw, 30px); }
.offer__badge { margin-bottom: clamp(18px, 2.4vw, 24px); }
.offer__now--text { font-size: clamp(28px, 6vw, 40px); }
.offer__fx--soft { font-weight: 500; color: var(--text); font-size: 15px; }
.offer .prebook-form { max-width: 440px; margin-top: clamp(18px, 2.4vw, 24px); }

/* «Заготовки»: слайдер фото в карточке модуля — вернули из старой версии страницы (old/zagotovki):
   одно фото 3:4, стрелки по кругу, плавная смена. Список сверху, фото прижаты к низу карточки. */
.mod--gal { align-content: stretch; grid-template-rows: auto auto 1fr auto; }
.gal { position: relative; width: 100%; }
.gal__grid { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: #efe9e6; }
.gal__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.gal__grid img.on { opacity: 1; }
.gal__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .92); color: var(--acc-deep);
  display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(43, 31, 35, .5);
  transition: transform .15s ease, background-color .2s ease;
}
.gal__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gal__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal__btn--prev { left: 12px; }
.gal__btn--next { right: 12px; }
.gal__btn[hidden] { display: none; }
.gal--bonus { width: min(100%, 340px); justify-self: center; }
@media (prefers-reduced-motion: reduce) { .gal__grid img, .gal__btn { transition: none; } }
