/* Главная, секции 7–14 (07.09.2026): «Команда», «Форматы», «Среда», «Как проходит обучение», «Миссия»,
   «Диагностика», FAQ, «Система». Без карточек-стекляшек, градиентных полос и фоновых фото: леджеры, тонкие линии,
   мономаркеры, живые объекты (компас, метроном, вершина, орбита). Дизайн-система и тексты сайта сохранены. */

/* ── общие детали ── */
.fd-mono { display: block; color: var(--color-grey); }
.fd-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--color-border); }
.fd-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.fd-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 21px;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--color-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fd-list--lg li { padding: 16px 0 16px 30px; }
.fd-list--lg li::before { top: 25px; }
.fd-list li:hover { padding-left: 34px; }
.fd-list--lg li:hover { padding-left: 36px; }
.fd-list li:hover::before { transform: rotate(45deg) scale(1.25); box-shadow: 0 0 0 4px rgba(245, 192, 74, 0.16); }
.fd-sub { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: 24px 64px; align-items: start; }

/* ── секция 7: Команда, опыт, подход ── */
.fd-s7 {
  position: relative;
  background-color: var(--color-black);
  padding-block: 96px 104px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
}
.fd-s7__row {
  display: grid;
  grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr);
  gap: 24px 64px;
  align-items: start;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.fd-s7__row h3 { margin: 0; }
.fd-s7__text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; color: var(--color-light); }
.fd-s7__text p { max-width: 520px; }
.fd-s7__row--last { margin-top: 96px; }

.fd-s7__strip { padding: 48px 0 0; }
.fd-s7 .ttc__track { gap: 32px; }
.fd-s7 .ttc__card { flex: 0 0 calc((100% - 96px) / 4); }
.fd-s7__ph {
  overflow: hidden;
  border-radius: var(--radius1);
  aspect-ratio: 330 / 350;
  background: var(--color-dark);
}
.fd-s7__ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transform: scale(1.001);
  transition: filter 0.45s ease, transform 0.6s ease;
}
.fd-s7__card:hover .fd-s7__ph img { filter: saturate(1); transform: scale(1.03); }
.fd-s7__card .fs-title { display: block; margin-top: 16px; }
.fd-s7__card .fs-label { margin-top: 4px; }
.fd-s7__card .mf-team__merit-list { color: var(--color-light); }
.fd-s7__bar {
  position: relative;
  height: 1px;
  margin-top: 40px;
  background: var(--color-border);
}
.fd-s7__bar i {
  position: absolute;
  left: var(--x, 0%);
  top: -1px;
  width: var(--w, 30%);
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: left 0.25s ease, width 0.25s ease;
}
.fd-s7 .ttc__footer { margin-top: 20px; }
.fd-s7 .ttc__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-white);
  font-size: 14px;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.fd-s7 .ttc__btn:hover:not(:disabled) { border-color: var(--color-accent); color: var(--color-accent); background: rgba(245, 192, 74, 0.06); }
.fd-s7 .ttc__btn:disabled { opacity: 0.3; }

.fd-s7__founders { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.fd-s7__founders h3 { margin: 0; }
.fd-s7__fgrid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 6fr);
  gap: 32px 64px;
  align-items: start;
}
.fd-s7__ftext .fs-body-md { max-width: 620px; }
.fd-s7__ledger { margin-top: 28px; border-top: 1px solid var(--color-border); }
.fd-s7__ledger p {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-light);
  max-width: 620px;
}
.fd-s7__ledger b { color: var(--color-white); }
.fd-s7__photo { position: relative; }
.fd-s7__photo img { display: block; width: 100%; height: auto; border-radius: var(--radius2); }
.fd-s7__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius2);
  box-shadow: inset 0 0 0 1px rgba(250, 251, 254, 0.08);
  pointer-events: none;
}

/* ── секция 8: Форматы обучения — леджер форматов и живая кладка недели ── */
.fd-s8 {
  position: relative;
  background-color: var(--color-dark);
  background-image: none;   /* старая градиентная заливка убрана */
  padding-block: 96px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
  overflow-x: clip;         /* не hidden: внутри sticky-сцена на телефоне */
}
.fd-s8__head { max-width: 760px; }
.fd-s8__head .fs-title { display: block; }
.fd-s8__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 40px 64px;
  align-items: start;
}
.fd-s8__rows { border-top: 1px solid var(--color-border); }
.fd-s8__row {
  display: grid;
  grid-template-columns: minmax(200px, 5fr) minmax(0, 7fr);
  gap: 8px 40px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--color-border);
  cursor: default;
  transition: opacity 0.35s ease, background 0.35s ease;
}
.fd-s8__row-head .fs-label { display: block; }
.fd-s8__row-head .fs-title { display: block; margin-top: 6px; }
.fd-s8__row-body p { color: var(--color-light); max-width: 520px; }
.fd-s8__row-body p + p { margin-top: 8px; color: var(--color-grey); }
.fd-s8__rows.has-active .fd-s8__row { opacity: 0.5; }
.fd-s8__rows.has-active .fd-s8__row.is-active { opacity: 1; }
.fd-s8__row.is-active { background: linear-gradient(90deg, rgba(245, 192, 74, 0.06), transparent 60%); }

/* сцена: кладка недели, пересобирается под активный формат */
.fd-s8__stagebox { align-self: center; }
.fd-s8__stage { position: relative; aspect-ratio: 540 / 420; width: min(100%, 520px); margin-left: auto; }
.fd-s8__stage::before {
  content: "";
  position: absolute;
  inset: -12% -18% -6% -18%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 48% at 50% 46%, rgba(200, 214, 240, 0.14) 0%, rgba(200, 214, 240, 0.04) 45%, transparent 72%);
}
.fd-s8__stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.fd-s8__stage .blk { opacity: 0; transform: translateY(-28px); transition: none; }
.fd-s8__stage .blk polygon { stroke: rgba(250, 251, 254, 0.45); stroke-width: 1.1; stroke-linejoin: round; }
.fd-s8__stage .f-top { fill: #2d3755; }
.fd-s8__stage .f-left { fill: #212b47; }
.fd-s8__stage .f-right { fill: #182036; }
.fd-s8__stage .f-gtop { fill: #F5C04A; }
.fd-s8__stage .f-gleft { fill: #D9A63C; }
.fd-s8__stage .f-gright { fill: #B98B2E; }
.fd-s8__stage .f-gtop, .fd-s8__stage .f-gleft, .fd-s8__stage .f-gright { stroke: rgba(255, 236, 190, 0.55); }
.fd-s8__stage svg.is-active .blk {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.1);
  transition-delay: calc(var(--i) * 110ms);
}
.fd-s8__stage svg.is-active { animation: fdBreath 8s ease-in-out infinite; }

/* ── секция 9: Образовательная среда (компас) ── */
.fd-s9 {
  position: relative;
  background-color: var(--color-black);
  padding-block: 96px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
  overflow: hidden;
}
.fd-s9__title { max-width: 860px; }
.fd-s9__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: start;
}
.fd-s9__aside .fs-body-md { max-width: 480px; }
.fd-s9__aside .fs-body-sm { max-width: 480px; color: var(--color-grey); }
.fd-s9__object { --ar: 2160 / 1800; width: min(100%, 440px); margin-top: 36px; }
.fd-s9__add .fd-list--lg li { padding-right: 24px; }

/* ── секция 10: Как проходит обучение (метроном) ── */
.fd-s10 {
  position: relative;
  background-color: var(--color-dark);
  padding-block: 96px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
  overflow: hidden;
}
.fd-s10__top {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 32px 64px;
  align-items: end;
}
.fd-s10__top h2 { max-width: 700px; }
.fd-s10__top .mf-education__subtitle { display: block; max-width: 700px; }
.fd-s10__object { --ar: 2160 / 2000; width: min(100%, 250px); justify-self: end; margin-bottom: -12px; }
.fd-s10__list { margin-top: 48px; padding: 0; list-style: none; counter-reset: edu; border-top: 1px solid var(--color-border); }
.fd-s10__row {
  counter-increment: edu;
  display: grid;
  grid-template-columns: 56px minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 40px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--color-border);
  transition: opacity 0.35s ease;
}
.fd-s10__row::before {
  content: counter(edu, decimal-leading-zero);
  padding-top: 5px;
  font-family: 'FD-JB', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-grey);
  transition: color 0.35s ease;
}
.fd-s10__row .fs-title { display: block; }
.fd-s10__row p { max-width: 620px; color: var(--color-light); }
.fd-s10__list.has-active .fd-s10__row { opacity: 0.55; }
.fd-s10__list.has-active .fd-s10__row.is-active { opacity: 1; }
.fd-s10__row.is-active::before { color: var(--color-accent); }

/* ── секция 11: Миссия (вершина) ── */
.fd-s11 {
  position: relative;
  background-color: var(--color-black);
  background-image: none;   /* старая градиентная заливка убрана */
  padding-block: 96px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
  overflow: hidden;
}
.fd-s11__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 40px 64px;
  align-items: start;
}
.fd-s11__text h2 { max-width: 760px; }
.fd-s11__sub { display: block; margin-top: 12px; color: var(--color-accent) !important; }
.fd-s11__info { margin-top: 36px; max-width: 640px; }
.fd-s11__info .fs-body-sm { color: var(--color-light); }
.fd-s11__info .fs-body-md { padding-top: 16px; border-top: 1px solid var(--color-border); }
.fd-s11__object { --ar: 2160 / 1900; width: min(100%, 400px); margin: -24px auto 0; }
.fd-s11__con { margin-top: 12px; }

/* ── секция 12: Диагностика ── */
.fd-s12 {
  position: relative;
  background-color: var(--color-dark);
  padding-block: 96px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
}
.fd-s12__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: start;
}
.fd-s12__lead .fs-title { display: block; max-width: 520px; }
.fd-s12__lead .mm-margin24 { max-width: 520px; color: var(--color-light); }
.fd-s12__cta {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 2px solid var(--color-accent);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
  gap: 24px 64px;
  align-items: center;
}
.fd-s12__text { max-width: 760px; }
.fd-s12__btn { justify-self: end; }

/* ── секция 13: FAQ ── */
.fd-s13 {
  position: relative;
  background-color: var(--color-black);
  padding-block: 96px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
}
.fd-s13__grid {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  align-items: start;
}
.fd-s13__aside { position: sticky; top: 140px; }
.fd-s13__aside h2 { max-width: 420px; }
.fd-s13__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.fd-s13__item { border-bottom: 1px solid var(--color-border); transition: background 0.3s ease; }
.fd-s13 .mf-faq__question {
  position: relative;
  display: block;
  padding: 22px 56px 22px 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}
.fd-s13 .mf-faq__question::before,
.fd-s13 .mf-faq__question::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-top: -1px;
  background: var(--color-grey);
  transition: transform 0.35s ease, background 0.3s ease;
  display: block;
}
.fd-s13 .mf-faq__question::before { transform: rotate(90deg); }
.fd-s13 .mf-faq__item:hover .mf-faq__question,
.fd-s13 .mf-active-item .mf-faq__question { color: var(--color-accent); }
.fd-s13 .mf-active-item .mf-faq__question::before { transform: rotate(0deg); display: block; }
.fd-s13 .mf-active-item .mf-faq__question::before,
.fd-s13 .mf-active-item .mf-faq__question::after { background: var(--color-accent); }
.fd-s13 .mf-faq__answer { max-width: 720px; margin-top: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.fd-s13 .mf-faq__answer p { padding: 0 0 24px; color: var(--color-light); }
.fd-s13__item:hover .mf-faq__question { color: var(--color-accent); }

/* ── секция 14: Система (орбита) ── */
.fd-s14 {
  position: relative;
  background-color: var(--color-dark);
  background-image: none;   /* фоновое фото старой версии убрано */
  padding-block: 96px 104px;
  border-top: 1px solid rgba(250, 251, 254, 0.06);
  overflow: hidden;
}
.fd-s14__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 40px 64px;
  align-items: center;
}
.fd-s14__text h2 { max-width: 760px; }
.fd-s14__text .fs-title { display: block; margin-top: 16px; max-width: 640px; }
.fd-s14__text .fs-body-sm { margin-top: 16px; max-width: 640px; color: var(--color-light); }
.fd-s14__object { --ar: 2160 / 1800; width: min(100%, 480px); justify-self: end; }
.fd-s14__close {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 2px solid var(--color-accent);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 24px 64px;
  align-items: center;
}
.fd-s14__quote { max-width: 720px; color: var(--color-light); }
.fd-s14__action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fd-s14__action .fs-body-md { color: var(--color-white); }

/* ── адаптив ── */
@media (max-width: 1100px) {
  .fd-s7, .fd-s8, .fd-s9, .fd-s10, .fd-s11, .fd-s12, .fd-s13, .fd-s14 { padding-block: 64px 56px; }
  .fd-s7__row, .fd-s7__fgrid, .fd-s9__grid, .fd-s10__top, .fd-s11__grid, .fd-s12__grid, .fd-s12__cta, .fd-s13__grid, .fd-s14__grid, .fd-s14__close { grid-template-columns: 1fr; gap: 24px; }
  .fd-s7__row { margin-top: 40px; }
  .fd-s7__row--last, .fd-s7__founders { margin-top: 64px; }
  .fd-s7__text { grid-template-columns: 1fr; }
  .fd-s7 .ttc__card { flex: 0 0 calc((100% - 64px) / 3); }
  .fd-s8__grid { grid-template-columns: 1fr; gap: 0; }
  /* телефон: кладка прилипает под шапкой, строки форматов прокручиваются под ней и переключают её */
  .fd-s8__stagebox {
    order: -1;
    position: sticky;
    top: var(--fd-header-h, 64px);
    z-index: 3;
    margin: 0 -15px;
    padding: 6px 15px 10px;
    background: var(--color-dark);
    border-bottom: 1px solid var(--color-border);
  }
  .fd-s8__stage { width: min(58vw, 300px); margin: 0 auto; }
  .fd-s8__stage::before { inset: -6% -14% -4% -14%; }
  .fd-s8__rows { border-top: 0; }
  .fd-s9__object, .fd-s11__object, .fd-s14__object { justify-self: center; margin: 24px auto 0; width: min(100%, 440px); }
  .fd-s10__object { justify-self: center; margin: 0 auto; width: min(100%, 260px); }
  .fd-s10__row { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 24px; padding: 20px 0 22px; }
  .fd-s10__row p { grid-column: 2; }
  .fd-s12__btn { justify-self: start; }
  .fd-s13__aside { position: static; }
}
@media (max-width: 700px) {
  .fd-s7 .ttc__track { gap: 20px; }
  .fd-s7 .ttc__card { flex: 0 0 calc((100% - 20px) / 2); }
  .fd-s8__row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0 22px; }
  .fd-s9__object, .fd-s11__object, .fd-s14__object { width: 100%; }
  .fd-s13 .mf-faq__question { padding: 18px 44px 18px 0; }
}
@media (max-width: 480px) {
  .fd-s7 .ttc__card { flex: 0 0 82%; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-s8__stage svg.is-active .blk { transition: none; }
  .fd-s8__stage svg.is-active { animation: none; }
}

/* кладка-видео (сцены Codex stack-11/21/12/22, 09.09): четыре варианта лежат друг на друге, виден активный */
.fd-s8__stage .fd-object.fd-s8__stack { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.fd-s8__stage .fd-object.fd-s8__stack.is-active { opacity: 1; }
.fd-s8__stage .fd-object.fd-s8__stack::before { display: none; }
.fd-s8__stage .fd-object.fd-s8__stack img, .fd-s8__stage .fd-object.fd-s8__stack canvas { filter: brightness(1.06) contrast(1.03) saturate(0.95) drop-shadow(0 22px 48px rgba(8, 12, 22, 0.55)); }
.fd-s8__stage .fd-object.fd-s8__stack.is-held canvas { opacity: 0; }
.fd-s8__stage .fd-object.fd-s8__stack.is-held img { opacity: 1; }

/* команда по направлениям (владелец 09.09): математика / экономика / администрация */
.fd-s7__group { margin-top: 40px; }
.fd-s7__group + .fd-s7__group { margin-top: 56px; }
.fd-s7__group-title {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  font-family: 'FD-JB', monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.fd-s7__group .fd-s7__strip { padding-top: 28px; }
.fd-s7__group[data-count="1"] .ttc__footer, .fd-s7__group[data-count="2"] .ttc__footer, .fd-s7__group[data-count="3"] .ttc__footer,
.fd-s7__group[data-count="1"] .fd-s7__bar, .fd-s7__group[data-count="2"] .fd-s7__bar, .fd-s7__group[data-count="3"] .fd-s7__bar { display: none; }
@media (max-width: 1100px) {
  .fd-s7__group[data-count="3"] .ttc__footer, .fd-s7__group[data-count="3"] .fd-s7__bar { display: block; }
}
@media (max-width: 700px) {
  .fd-s7__group[data-count="2"] .ttc__footer, .fd-s7__group[data-count="2"] .fd-s7__bar { display: block; }
}
