/* «Тарифы» в языке V1 (17.11.2026): «Посчитать стоимость», карточки двумя семьями, сравнение, «ОГЭ и ЕГЭ», оплата 01–04,
   порядок зачисления лентой. Общие компоненты — v1.css. */

/* ---------- «Посчитать стоимость» ---------- */
.calc-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.calc-wrap > .calc { width: 100%; }
html.no-js .calc-wrap { display: none; }
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--paper); }
.calc__opts { display: flex; flex-direction: column; gap: 28px; padding: var(--v-pad); min-width: 0; }
.calc__res { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: var(--v-pad); background: var(--white); border-left: 1px solid var(--line); min-width: 0; }
.calc__lbl { display: block; margin-bottom: 12px; color: var(--ink); font: 400 16px/1.3 var(--f-text-sb); }
.calc__hint { margin-top: 12px; font-size: var(--v-small); line-height: 1.45; color: var(--text); min-height: 2.9em; }
.classes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.classes button { height: 52px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 500 22px/1 var(--f-display); transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.classes button:active { transform: scale(.96); }
.classes button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .classes button:hover { box-shadow: inset 0 0 0 1px var(--ink); } .classes button[aria-checked="true"]:hover { box-shadow: none; } }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg button { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 64px; padding: 10px 14px;
  border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease), opacity .18s var(--ease); }
.seg button:active { transform: scale(.98); }
.seg__t { color: var(--ink); font: 400 16px/1.2 var(--f-text-sb); }
.seg__s { color: var(--text); font-size: 14px; line-height: 1.25; }
.seg button[aria-checked="true"] { background: var(--ink); box-shadow: none; }
.seg button[aria-checked="true"] .seg__t, .seg button[aria-checked="true"] .seg__s { color: var(--paper); }
.seg button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-disabled="true"]):not([aria-checked="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.calc__opt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
.calc__name { font: 400 22px/1.2 var(--f-text-sb); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.calc__alt { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.calc__alt button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; color: var(--ink); font: 400 15px/1.3 var(--f-text-sb); transition: box-shadow .18s var(--ease), background-color .18s var(--ease); }
.calc__alt button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper); }
.calc__alt .num { font-size: 20px; }
.calc__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.calc__price .num { font-size: 64px; line-height: .95; }
.calc__unit { font-size: var(--v-small); color: var(--text); }
.calc__inc { width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.calc__intro { margin-bottom: 12px; color: var(--ink); font: 400 15.5px/1.4 var(--f-text-sb); }
.calc__inc .ticks { gap: 8px; font-size: 15px; }
.calc__next { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.calc__next .cap { display: block; margin-bottom: 10px; }
.calc__next ol { display: flex; flex-direction: column; }
.calc__next li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.4; }
.calc__next li:last-child { border-bottom: 0; }
.calc__next b { font: 500 15px/1 var(--f-display); color: var(--forest); }
.calc__next li.is-now { color: var(--forest-m); }
.calc__next li.is-now b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--forest-m); color: var(--paper); }
.calc__next li.is-now b .i { width: 14px; height: 14px; }
.calc__go { margin-top: auto; padding-top: 8px; width: 100%; }
.calc__card { display: none; }
/* калькулятор в две колонки — с 1200 px: на 1024 кнопки «Как учиться» в три колонки рвали «Семейную форму» по слогам */
@media (max-width: 1199.98px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc__res { border-left: 0; border-top: 1px solid var(--line); } .calc__next { display: none; } }
@media (max-width: 809.98px) {
  .classes { grid-template-columns: repeat(4, minmax(0, 1fr)); } .classes button { height: 48px; font-size: 20px; border-radius: 10px; }
  .seg { grid-template-columns: minmax(0, 1fr); } .seg button { min-height: 56px; }
  .calc__price .num { font-size: 52px; }
  .calc__inc { display: none; }
  .calc__card { display: inline-flex; }
}

/* ---------- семьи тарифов ---------- */
.fam { display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: calc(var(--v-hdr) + var(--v-sub) + 16px); }
.fam + .fam { margin-top: 64px; }
.fam__note { margin-top: 14px; color: var(--text); }
.famjump { display: none; }
@media (max-width: 1023.98px) {
  .famjump { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .famjump a { display: flex; flex-direction: column; gap: 3px; min-height: 64px; justify-content: center; padding: 10px 14px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .18s var(--ease), transform .12s var(--ease); }
  .famjump a:active { transform: scale(.98); }
  .famjump b { color: var(--ink); font: 400 16px/1.2 var(--f-text-sb); }
  .famjump span { color: var(--text); font-size: 14px; line-height: 1.3; }
  .famjump a:last-child { background: var(--gold-lll); box-shadow: inset 0 0 0 1px var(--gold-ll); }
  .fam { scroll-margin-top: calc(var(--v-hdr) + 56px); }
}
.tgrid { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto auto 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tcard { position: relative; display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 0; min-width: 0; padding: 0; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease); }
.tcard > * { padding-left: var(--v-pad); padding-right: var(--v-pad); }
.tcard__top { padding-top: var(--v-pad); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tcard__top .chip { white-space: normal; }
.tcard__name { font: 400 22px/1.2 var(--f-text-sb); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.tcard__price { padding-top: 22px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.tcard__sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tcard__sum .num { font-size: var(--v-price); line-height: 1; white-space: nowrap; }
.tcard__unit { font-size: var(--v-small); color: var(--text); }
.tcard__two { display: flex; flex-direction: column; width: 100%; }
.tcard__two div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tcard__two div:first-child { padding-top: 0; }
.tcard__two dt { font-size: var(--v-small); color: var(--text); }
.tcard__two dd { margin: 0; font: 500 40px/1.05 var(--f-display); color: var(--ink); white-space: nowrap; }
.tcard__btn { padding-bottom: 24px; }
.tcard__intro { margin: 0 var(--v-pad); padding: 20px 0 12px; border-top: 1px solid var(--line); color: var(--ink); font: 400 16px/1.45 var(--f-text-sb); }
.tcard__list { padding-bottom: var(--v-pad); font-size: var(--v-body); }
.tcard__extra { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; font-size: var(--v-small); line-height: 1.5; }
.tcard:target { background: var(--white); }
@media (max-width: 1023.98px) { .tgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .tcard { grid-row: auto; grid-template-rows: none; } }
@media (max-width: 1199.98px) { .tcard__two div { flex-direction: column; align-items: flex-start; gap: 2px; } }   /* узкая карточка: «классы с 5 по 8» над ценой, а не столбиком рядом */
@media (max-width: 809.98px) { .tcard__two dd { font-size: 34px; } .tcard__name { font-size: 20px; } }

/* ---------- сравнение тарифов ---------- */
.cmp { position: relative; border: 1px solid var(--line); background: var(--paper); }
.cmp table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp col.c-item { width: 26%; }
.cmp thead th { position: sticky; top: calc(var(--v-hdr) + var(--v-sub)); z-index: 3; background: var(--paper); vertical-align: bottom; text-align: left; padding: 18px 14px 16px; border-bottom: 1px solid var(--line); font-weight: 400; }
.cmp thead th + th { border-left: 1px solid var(--line); }
.cmp thead .fam-th { position: static; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); background: var(--grid); }
.cmp .th-name { display: block; color: var(--ink); font: 400 15px/1.25 var(--f-text-sb); min-height: 2.5em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }   /* названия колонок — целыми словами, без «фор-ма» */
@media (max-width: 1439.98px) { .cmp .th-name { font-size: 14px; } }   /* 1200–1439: «Индивидуальная» помещается в колонку целиком */
.cmp .th-price { display: block; margin-top: 6px; font: 500 clamp(18px, 1.46vw, 21px)/1.05 var(--f-display); color: var(--ink); white-space: nowrap; }   /* «от 29 800 ₽» одной строкой: кегль по ширине колонки (18 px на 1200, 21 на 1440) */
.cmp .th-unit { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.cmp .th-go { min-height: 44px; margin-top: 8px; font-size: 14.5px; }
.cmp tbody th { text-align: left; font-weight: 500; padding: 14px 14px 14px 18px; color: var(--ink); font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp tbody td { padding: 14px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); vertical-align: top; font-size: 14px; line-height: 1.4; color: var(--text); }
.cmp tbody tr.grp th { padding-top: 26px; padding-bottom: 10px; background: var(--paper); }
.cmp tbody tr.grp th .cap { color: var(--ink); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.cmp-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-m { display: none; border: 1px solid var(--line); background: var(--paper); }
/* сравнение двух тарифов (телефон и планшет; в версии для слабовидящих — на любой ширине): правила вне запроса ширины, показ — ниже */
.cmp-m__pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.cmp-m__pick label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmp-m__pick .cap { font-size: 12.5px; }
.cmp-m__price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px 12px 0; }
.cmp-m__p { display: none; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.cmp-m__p[data-on] { display: flex; }
.cmp-m__n { color: var(--ink); font: 400 14px/1.3 var(--f-text-sb); }
.cmp-m__p .num { font-size: 22px; margin-top: auto; }
.cmp-m__p small { font-size: 14px; color: var(--muted); }
.cmp-m__rows { padding: 4px 0 6px; }
.cmp-m__grp { padding: 18px 14px 6px; }
.cmp-m__row { padding: 12px 14px; border-top: 1px solid var(--line); }
.cmp-m__grp + .cmp-m__row { border-top: 0; }
.cmp-m__item { color: var(--ink); font-size: 15px; line-height: 1.4; }
.cmp-m__vals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.cmp-m__v { display: none; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.35; color: var(--text); }
.cmp-m__v[data-on] { display: flex; }
.cmp-m__v .mk { width: 22px; height: 22px; flex: none; }
/* чей это пункт («Средняя школа онлайн»: есть) — .vh, подсказка для чтения с экрана; на виду только в версии для слабовидящих,
   где колонки идут одна под другой (правило — в конце файла) */
.cmp-m__row.is-same, .cmp-m__grp.is-same { display: none; }
.cmp-m__foot { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
/* таблица из шести тарифов — с 1200 px; уже — два тарифа на выбор (на 1024 названия рвались по слогам, цена обрезалась) */
@media (max-width: 1199.98px) { .cmp { display: none; } .cmp-m { display: block; } }
@media (max-width: 1199.98px) { html.no-js .cmp { display: block; overflow-x: auto; } html.no-js .cmp table { min-width: 860px; } html.no-js .cmp-m { display: none; } }

/* ---------- «ОГЭ и ЕГЭ» на «Тарифах» ---------- */
.ogefacts .cell { flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.big-n { font-size: 40px; line-height: 1; }
.ogefacts dd { margin: 0; }
.subjrow { display: flex; flex-direction: column; gap: 14px; }
.chips--subj { gap: 8px; }

/* ---------- оплата списком 01–04 ---------- */
.pay { border-top: 1px solid var(--line); }
.pay__row { display: grid; grid-template-columns: 72px minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .8fr); gap: 16px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pay__n { font: 500 15px/1.6 var(--f-mono); color: var(--muted); padding-top: 4px; }
.pay__t { font: 400 22px/1.25 var(--f-text-sb); color: var(--ink); letter-spacing: -.01em; }
.pay__x { display: flex; flex-direction: column; gap: 10px; }
.pay__x a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.pay__a { justify-self: end; }
.pay__a .link { margin-top: -10px; }
@media (max-width: 1023.98px) { .pay__row { grid-template-columns: 56px minmax(0, 1fr); } .pay__x, .pay__a { grid-column: 2; } .pay__a { justify-self: start; } }
@media (max-width: 809.98px) { .pay__row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 14px; padding: 22px 0; } .pay__t { font-size: 20px; } .pay__a .link { margin-top: 0; } }

/* ---------- порядок зачисления: лента с точками ---------- */
.enroll-v1 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.enroll-v1__side { position: sticky; top: calc(var(--v-hdr) + var(--v-sub) + 24px); }
.enroll-card { gap: 18px; border: 1px solid var(--line); }
.enroll-card .body { font-size: 16.5px; }
.enroll-card__k { color: var(--forest-m); font: 400 17px/1.3 var(--f-text-sb); }
@media (max-width: 1023.98px) { .enroll-v1 { grid-template-columns: minmax(0, 1fr); } .enroll-v1__side { position: static; order: -1; } }
.tl { position: relative; display: flex; flex-direction: column; }
.tl__item { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; padding-bottom: 34px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__rail { position: relative; display: flex; justify-content: center; }
.tl__rail::before { content: ""; position: absolute; top: 40px; bottom: -6px; left: 50%; width: 2px; margin-left: -1px; background: var(--line); }
.tl__item:last-child .tl__rail::before { display: none; }
.tl__fill { position: absolute; top: 40px; bottom: -6px; left: 50%; width: 2px; margin-left: -1px; background: var(--forest); transform: scaleY(var(--p, 0)); transform-origin: 50% 0; transition: transform .7s var(--ease); }
.tl__item:last-child .tl__fill { display: none; }
.tl__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font: 500 17px/1 var(--f-display); transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.tl__item.is-done .tl__dot { background: var(--forest-m); color: var(--paper); box-shadow: none; }
.tl__item--demo .tl__dot { background: var(--forest-lll); color: var(--forest-m); box-shadow: inset 0 0 0 1.5px var(--forest-ll); }
.tl__body { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.tl__k { color: var(--muted); }
.tl__t { font: 400 21px/1.25 var(--f-text-sb); color: var(--ink); letter-spacing: -.01em; }
.tl__x { max-width: 620px; }
.tl__x a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
@media (max-width: 809.98px) { .tl__item { grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; } .tl__dot { width: 36px; height: 36px; font-size: 15px; } .tl__rail::before, .tl__fill { top: 36px; } .tl__t { font-size: 19px; } }
.addr dd { margin: 8px 0 0; color: var(--ink); font: 400 var(--v-h3)/1.25 var(--f-text-sb); }
.addr dt { color: var(--muted); font: 500 var(--v-cap)/1.25 var(--f-mono); letter-spacing: .04em; }

/* ---------- версия для слабовидящих (общий vision.css подключён после: селекторы здесь сильнее) ----------
   Текст вдвое крупнее, а колонка режима — 960 px: раскладки как на телефоне. Сравнение — двумя выбранными тарифами на любой ширине
   (таблица из шести колонок при крупном шрифте уехала бы вбок), колонки одна под другой, у каждого пункта видно, чей он.
   Закреплённая колонка записи — в потоке. */
html.vision-on body .cmp { display: none; }
html.vision-on body .cmp-m { display: block; border-width: 2px; }
html.vision-on .cmp-m__pick, html.vision-on .cmp-m__price, html.vision-on .cmp-m__vals { grid-template-columns: minmax(0, 1fr); }
html.vision-on .cmp-m__v[data-on] { flex-wrap: wrap; }
html.vision-on body .cmp-m__vt.vh { position: static !important; flex: 1 1 100%; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal !important; font-family: var(--f-text-sb); }
/* калькулятор и карточки — как на планшете: одной колонкой (в три колонки цены при крупном шрифте рвались посреди числа) */
html.vision-on .calc { grid-template-columns: minmax(0, 1fr); }
html.vision-on .calc__res { border-left: 0; border-top: 2px solid var(--vision-fg, currentColor); }
html.vision-on .calc__next { display: none; }
html.vision-on .seg { grid-template-columns: minmax(0, 1fr); }
html.vision-on .tgrid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
html.vision-on .tcard { grid-row: auto; grid-template-rows: none; }
html.vision-on .pay__row { grid-template-columns: 56px minmax(0, 1fr); }
html.vision-on .pay__x, html.vision-on .pay__a { grid-column: 2; }
html.vision-on .pay__a { justify-self: start; }
html.vision-on .pay__a .link { margin-top: 0; }
html.vision-on .famjump { grid-template-columns: minmax(0, 1fr); }
html.vision-on .tcard__two div { flex-direction: column; align-items: flex-start; gap: 4px; }
html.vision-on .enroll-v1 { grid-template-columns: minmax(0, 1fr); }
html.vision-on .enroll-v1__side { position: static; }
