/* ============================================================
   «Форматы работы» – переверстка 21.11.2026 (макет Figma «Форматы работы – переверстка», согласован Юлией).
   Карточки как в карусели Юлии: вопрос, цветная плашка со свечением (без скругления – как кнопки сайта), пункты со звездочкой, «Формат: …».
   Ступени – как у главной: ≥1600 (1920), 1200–1600 (макет 1440), 769–1199 (карточки друг под другом), ≤768 (макет 390).
   Одинаковый размер карточек и одна линия вопросов и плашек – js/formats.js (на ширине от 1200, где карточки в ряд).
   ============================================================ */

.fmt { background: var(--color-white); color: var(--color-black); }
.fmt__wrap { display: flex; flex-direction: column; gap: 80px; padding: 60px 140px 100px; }
.fmt p, .fmt h2, .fmt h3, .fmt h4, .fmt ul { margin: 0; }
.fmt__h2 { font: 700 48px/50px var(--font-display); text-transform: uppercase; }
.fmt__group { display: flex; flex-direction: column; gap: 32px; }
.fmt__group-title { font: 600 32px/40px var(--font-body); }

.fmt__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.fmt__team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
.fmt__photo { grid-column: 2 / 4; border-radius: 24px; overflow: hidden; min-height: 100%; }
.fmt__photo picture, .fmt__photo img { display: block; width: 100%; height: 100%; }
.fmt__photo img { object-fit: cover; }
.fmt__note { font: 500 20px/28px var(--font-body); color: #5A5B62; }

/* карточка; пункты – ромбиком (Юлия, 21.11: на сайте все угловатое) */
.fmt-card, .fmt-start {
  background: #FFFFFF; border-radius: 24px; box-shadow: 0 8px 32px rgba(9, 10, 12, .06);
  padding: 40px; box-sizing: border-box; min-width: 0;
}
.fmt-card { display: flex; flex-direction: column; gap: 28px; }
.fmt-card__q { font: 700 32px/36px var(--font-display); text-transform: uppercase; }
.fmt-card__pill-row { display: flex; align-items: stretch; }
.fmt-card__pill {
  display: flex; align-items: center; padding: 16px 28px 18px;
  font: 600 20px/26px var(--font-body); color: var(--color-black);
}
/* 1601–1919: колонки 414–520 px – кегль плашек плавно 17 → 20, строки плашек не рвутся */
@media (min-width: 1600.02px) {
  .fmt-card__pill { padding-left: 20px; padding-right: 20px; font-size: clamp(17px, calc(0.9375vw + 2px), 20px); line-height: 1.3; }
}
.fmt-card__pill--green { background: linear-gradient(90deg, #1FE000, #7DF52A); box-shadow: 0 0 36px rgba(31, 224, 0, .55); }
.fmt-card__pill--red   { background: linear-gradient(90deg, #FF3B1F, #FF5A2C); box-shadow: 0 0 36px rgba(255, 59, 31, .55); }  /* теплее кнопок сайта (#BC0002) */
.fmt-card__pill--pink  { background: linear-gradient(90deg, #C81FC8, #F04BE6); box-shadow: 0 0 36px rgba(200, 31, 200, .55); }
.fmt-card__pill--cyan  { background: linear-gradient(90deg, #12CFE0, #5BE6F0); box-shadow: 0 0 36px rgba(18, 207, 224, .55); }
.fmt-card__body { display: flex; flex-direction: column; gap: 16px; }
.fmt-card__body .fmt-card__list + .fmt-card__lead { margin-top: 16px; }
.fmt-card__lead { font: 700 20px/28px var(--font-body); }
.fmt-card__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fmt-card__list li { position: relative; padding-left: 30px; font: 400 20px/28px var(--font-body); }
.fmt-card__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l8 8-8 8-8-8z' fill='%23090A0C'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fmt-card__fmt { margin-top: auto !important; padding-top: 8px; font: 400 20px/28px var(--font-body); }
.fmt-card__fmt b { font-weight: 700; }

/* с чего начать */
.fmt__start-q { font: 700 32px/36px var(--font-display); text-transform: uppercase; }
.fmt-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.fmt-start__col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.fmt-start__col + .fmt-start__col { gap: 16px; }
.fmt-start__lead { font: 700 26px/34px var(--font-body); }
.fmt-start__note { font: 400 20px/28px var(--font-body); }
.fmt__cta .btn { width: 356px; padding: 0 16px; }

/* ---------- 1200–1600 (макет 1440) ---------- */
@media (max-width: 1600px) {
  .fmt__wrap { gap: 72px; padding: 44px 96px 80px; }
  .fmt__h2 { font-size: 36px; line-height: 42px; }
  .fmt__group-title { font-size: 26px; line-height: 32px; }
  .fmt__cards, .fmt__team { gap: 24px; }
  .fmt__note { font-size: 18px; line-height: 26px; }
  .fmt-card, .fmt-start { padding: 32px; }
  .fmt-card { gap: 24px; }
  .fmt-card__q, .fmt__start-q { font-size: 28px; line-height: 32px; }
  .fmt-card__pill { padding: 14px 20px 16px; font-size: 17px; line-height: 22px; }   /* «мастер-классы для спортсменов» – в строку */
  .fmt-card__body { gap: 14px; }
  .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: 18px; line-height: 26px; }
  .fmt-card__list li { padding-left: 27px; }
  .fmt-card__list li::before { top: 6px; width: 15px; height: 15px; }
  .fmt-start { gap: 48px; }
  .fmt-start__lead { font-size: 22px; line-height: 30px; }
}

/* 1200–1439: колонки по ~320 px – поля и плашки компактнее, чтобы строки плашек не рвались */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .fmt-card, .fmt-start { padding: 24px; }
  .fmt-card__pill { padding: 12px 14px 14px; font-size: 15px; line-height: 20px; }
  .fmt-card__q, .fmt__start-q { font-size: 24px; line-height: 28px; }
  .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: 16px; line-height: 24px; }
}

/* ---------- 769–1199: карточки друг под другом ---------- */
@media (max-width: 1199.98px) {
  .fmt__wrap { gap: 56px; padding: 40px 40px 64px; }
  .fmt__cards { grid-template-columns: minmax(0, 1fr); }
  .fmt__team { grid-template-columns: minmax(0, 1fr); }
  .fmt__photo { grid-column: auto; min-height: 0; aspect-ratio: 1224 / 908; }
  .fmt-card__q, .fmt__start-q { font-size: 26px; line-height: 30px; }
}

/* ---------- телефон (макет 390) ---------- */
@media (max-width: 768px) {
  .fmt__wrap { gap: 40px; padding: 28px 20px 40px; }
  .fmt__h2 { font-size: 22px; line-height: 26px; }
  .fmt__group { gap: 20px; }
  .fmt__group-title { font-size: 18px; line-height: 24px; }
  .fmt__cards, .fmt__team { gap: 16px; }
  .fmt__photo { border-radius: 20px; aspect-ratio: 350 / 260; }
  .fmt__note { font-size: 14px; line-height: 20px; }
  .fmt-card, .fmt-start { padding: 24px; border-radius: 20px; }
  .fmt-card { gap: 20px; }
  .fmt-card__q, .fmt__start-q { font-size: 22px; line-height: 26px; }
  .fmt-card__pill { padding: 10px 20px 12px; font-size: 15px; line-height: 19px; box-shadow: none; }
  .fmt-card__pill--green { box-shadow: 0 0 24px rgba(31, 224, 0, .55); }
  .fmt-card__pill--red   { box-shadow: 0 0 24px rgba(255, 59, 31, .55); }
  .fmt-card__pill--pink  { box-shadow: 0 0 24px rgba(200, 31, 200, .55); }
  .fmt-card__pill--cyan  { box-shadow: 0 0 24px rgba(18, 207, 224, .55); }
  .fmt-card__body { gap: 12px; }
  .fmt-card__body .fmt-card__list + .fmt-card__lead { margin-top: 8px; }
  .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: 15px; line-height: 22px; }
  .fmt-card__list { gap: 6px; }
  .fmt-card__list li { padding-left: 23px; }
  .fmt-card__list li::before { top: 5px; width: 13px; height: 13px; }
  .fmt-start { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .fmt-start__col { gap: 20px; }
  .fmt-start__col + .fmt-start__col { gap: 12px; }
  .fmt-start__lead { font-size: 17px; line-height: 24px; }
  .fmt__cta { display: flex; justify-content: center; }
  .fmt__cta .btn { width: 356px; max-width: 100%; height: 50px; font-size: 13px; }
}
@media (max-width: 375.98px) {
  .fmt__wrap { padding-left: 16px; padding-right: 16px; }
  .fmt-card, .fmt-start { padding: 20px; }
  .fmt-card__pill { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   21.11.2026, Юлия: кегли – как в «Как проходит работа со мной» (текст 24/32 на 1920, 20/26 до 1600; подзаголовок 34 / 26 жирным),
   карточки компактнее – как в макете: меньше поля и промежутки внутри
   ============================================================ */
@media (min-width: 768.02px) {
  .fmt__group-title { font-weight: 700; }
  .fmt-card__fmt { padding-top: 0; }
  .fmt-card__list li::before { top: 9px; }
}
@media (min-width: 1600.02px) {
  .fmt__group-title { font-size: 34px; line-height: 38px; }
  .fmt__note, .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: 24px; line-height: 32px; }
  .fmt-card__list li { padding-left: 32px; }
  .fmt-card__list li::before { width: 18px; height: 18px; top: 7px; }
  .fmt-card, .fmt-start { padding: 36px; }
  .fmt-card { gap: 20px; }
  .fmt-card__body { gap: 10px; }
  .fmt-card__body .fmt-card__list + .fmt-card__lead { margin-top: 12px; }
  .fmt-card__list { gap: 4px; }
  .fmt-card__pill { font-size: clamp(19px, calc(0.9375vw + 4px), 22px); line-height: 1.3; padding: 14px 20px 16px; }
  .fmt-start__lead { font-size: 30px; line-height: 38px; }
}
@media (min-width: 768.02px) and (max-width: 1600px) {
  .fmt__group-title { font-size: 26px; line-height: 32px; }
  .fmt__note, .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: 20px; line-height: 26px; }
  .fmt-card__list li { padding-left: 28px; }
  .fmt-card__list li::before { width: 15px; height: 15px; top: 5px; }
  .fmt-card, .fmt-start { padding: 28px; }
  .fmt-card { gap: 16px; }
  .fmt-card__body { gap: 8px; }
  .fmt-card__body .fmt-card__list + .fmt-card__lead { margin-top: 10px; }
  .fmt-card__list { gap: 2px; }
  .fmt-card__pill { font-size: 18px; line-height: 23px; padding: 12px 18px 14px; }
  .fmt-start__lead { font-size: 24px; line-height: 32px; }
}
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .fmt-card, .fmt-start { padding: 22px; }
  .fmt-card__q, .fmt__start-q { font-size: 24px; line-height: 28px; }
  .fmt-card__pill { font-size: 16px; line-height: 21px; padding: 10px 12px 12px; }
}
/* 1601–1919: кегль и поля плавно за шириной (на 1601 колонки по 414 px – 24 px там давали карточки ~980 px высотой);
   на 1920 – как в «Как проходит работа»: 24/32, на 1600 – 20/26 */
@media (min-width: 1600.02px) {
  .fmt__note, .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: clamp(20px, 1.25vw, 24px); line-height: clamp(26px, calc(1.875vw - 4px), 32px); }
  .fmt-card__pill { font-size: clamp(18px, calc(1.25vw - 2px), 22px); }
  .fmt-card, .fmt-start { padding: clamp(28px, calc(2.5vw - 12px), 36px); }
  .fmt-card__q, .fmt__start-q { font-size: clamp(28px, calc(1.25vw + 8px), 32px); line-height: clamp(32px, calc(1.25vw + 12px), 36px); }
}
/* 1200–1439: колонки 315–395 px – текст 18, плашки 15 (строки плашек не рвутся) */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .fmt__note, .fmt-card__lead, .fmt-card__list li, .fmt-card__fmt, .fmt-start__note { font-size: 18px; line-height: 25px; }
  .fmt-card__list li::before { top: 5px; }
  .fmt-card__pill { font-size: 15px; line-height: 20px; padding: 10px 10px 12px; }
}
/* «Онлайн-консультация» – красным, как кнопка «Запишитесь на консультацию» (Юлия, 21.11); «Разовая персональная работа» остается теплой.
   Текст белый, как на кнопке: черный на #BC0002 читается плохо (контраст ~3:1) */
.fmt-card__pill--brand { background: var(--color-red); color: var(--color-white); box-shadow: 0 0 36px rgba(188, 0, 2, .45); }
@media (max-width: 768px) { .fmt-card__pill--brand { box-shadow: 0 0 24px rgba(188, 0, 2, .45); } }
/* отступы как в других блоках (Юлия, 21.11): заголовок → подзаголовок 24 (телефон 22), подзаголовок → карточки 48 / 36 (телефон 20) */
.fmt__h2 + .fmt__group { margin-top: -56px; }   /* 80 − 56 = 24 */
.fmt__group { gap: 48px; }
@media (max-width: 1600px) { .fmt__h2 + .fmt__group { margin-top: -48px; } .fmt__group { gap: 36px; } }   /* 72 − 48 = 24 */
@media (max-width: 1199.98px) { .fmt__h2 + .fmt__group { margin-top: -32px; } }   /* 56 − 32 = 24 */
@media (max-width: 768px) { .fmt__h2 + .fmt__group { margin-top: -18px; } .fmt__group { gap: 20px; } }   /* 40 − 18 = 22 */

/* 21.11 вечер: Safari на iPhone (сетка + aspect-ratio + картинка с height:100%) растягивал карточку «Командные…» лишним отступом
   и сужал фото. Карточки друг под другом – обычный столбик без сетки, высота фото – от самой картинки (пропорции те же, что у рамки) */
@media (max-width: 1199.98px) {
  .fmt__team { display: flex; flex-direction: column; }
  .fmt__photo { width: 100%; min-height: 0; aspect-ratio: auto; }
  .fmt__photo picture, .fmt__photo img { height: auto; }
}
