/* Главная в языке V1 (17.11.2026): первый экран с ценами и «Неделей ученика» справа, «Стоимость обучения» строками двух
   семей, «Для кого», учителя лентой (v1.css), платформы и демо-доступ. Разделы ниже — прежние, в языке teak (blocks/*.css). */

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: 52px; padding-bottom: 8px; overflow-x: clip; }
.hero__grid { inset: calc(-1 * var(--v-hdr)) 0 -40px 0; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%); }
.hero > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: 56px; align-items: center; }
.hero__main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hero__tab { padding: 8px 16px; min-height: 40px; }
.hero__tab .cap { color: var(--text); }
.hero__t { font-size: 58px; line-height: 1.03; }
.hl { background: var(--gold-ll); padding: 0 .1em; margin: 0 -.02em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__sub { max-width: 600px; }
.hero__prices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; max-width: 640px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.hero__prices a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 48px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s var(--ease); }
.hero__prices .num { font-size: 34px; line-height: 1; white-space: nowrap; }
.hero__pc { color: var(--text); }
.hero__fam a { background: var(--gold-lll); }
.hero__pl--short { display: none; }
.hero__pl { font-size: 14.5px; line-height: 1.35; color: var(--text); }
.hero__prices .arr { position: absolute; right: 18px; top: 22px; color: var(--muted); transition: transform .22s var(--ease), color .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .hero__prices a:hover { background: var(--paper); } .hero__prices a:hover .arr { transform: translateX(3px); color: var(--ink); } }
.hero__act { margin-top: 2px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text); font-size: 14px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust b { font-family: var(--f-display); font-weight: 500; font-size: 16.5px; color: var(--ink); }
.hero__trust .i { color: var(--gold); }
.hide-m { display: inline; }
@media (max-width: 1439.98px) { .hero__t { font-size: 52px; } }
@media (max-width: 1199.98px) { .hero__t { font-size: 46px; } .hero > .wrap { gap: 40px; } }
@media (max-width: 1023.98px) { .hero > .wrap { grid-template-columns: minmax(0, 1fr); } .hero__aside { width: 100%; max-width: 560px; } }
@media (max-width: 809.98px) {
  .hero { padding-top: 14px; padding-bottom: 0; }
  .hero__main { gap: 14px; }
  .hero__tab { order: 1; min-height: 34px; padding: 6px 12px; }
  .hero__t { order: 2; font-size: 31px; line-height: 1.06; letter-spacing: -.02em; }
  .hero__prices { order: 3; }
  .hero__act { order: 4; width: 100%; margin-top: 2px; }
  .hero__act .btn { width: 100%; }
  .hero__act .link { min-height: 44px; }
  .hero__sub { order: 5; font-size: 16px; }
  .hero__trust { order: 6; font-size: 14px; }
  .hero__prices a { padding: 12px 34px 13px 12px; gap: 4px; }
  .hero__prices .num { font-size: 22px; }
  .hero__pl { font-size: 15px; line-height: 1.3; }
  .hero__pl--full { display: none; }
  .hero__pl--short { display: block; }
  .hero__pc { font-size: 13.5px; letter-spacing: .02em; white-space: nowrap; }
  .hero__pc .hero__pl--short { display: inline; }
  .hero__prices .arr { right: 10px; top: 14px; width: 16px; height: 16px; }
  .hero__aside { margin-top: 18px; }
  .hide-m { display: none; }
}
@media (max-width: 380px) { .hero__t { font-size: 29px; } .hero__prices .num { font-size: 20px; } }
@media (max-width: 809.98px) and (max-height: 600px) { .hero { padding-top: 10px; } .hero__main { gap: 11px; } .hero__t { font-size: 27px; } }

/* «Неделя ученика» справа: рисованные экраны урока (вместо игровой мозаики «Урок пройден») */
.hart { position: relative; height: 500px; }
.hart__sq { position: absolute; width: 41px; height: 41px; }
.hart__sq--1 { left: 0; top: 0; background: var(--gold-ll); }
.hart__sq--2 { left: 84px; top: 294px; background: var(--rose-l); }
.hart__sq--3 { left: 378px; top: 42px; background: var(--forest-ll); }
html.js .hart__sq { animation: sqIn .6s var(--ease) both; }
html.js .hart__sq--1 { animation-delay: .2s; } html.js .hart__sq--2 { animation-delay: .35s; } html.js .hart__sq--3 { animation-delay: .5s; }
.hart__card { position: absolute; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.hart__card--list { left: 8%; top: 30px; width: 78%; padding: 18px 18px 10px; }
.hart__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hart__head .cap { white-space: nowrap; }
.hart__days { display: flex; gap: 3px; }
.hart__days i { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; font: 500 11.5px/1 var(--f-mono); font-style: normal; color: var(--muted); background: var(--paper); }
.hart__days i.on { background: var(--ink); color: var(--paper); }
.hart__h { margin: 14px 0 6px; color: var(--ink); font: 400 16px/1.2 var(--f-text-sb); }
.hart__row { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 15px/1.2 var(--f-text); }
.hart__row:last-child { border-bottom: 0; }
.hart__row .badge { margin-left: auto; }
html.js .hart__row { animation: rowIn .5s var(--ease) both; animation-delay: calc(.35s + var(--k) * 90ms); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.hart__card--note { right: -8px; top: 372px; width: 64%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.hart__card--note .menu__ico { width: 44px; height: 44px; }
.hart__card--note .menu__ico svg { width: 44px; height: 44px; }
.hart__nt { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.3; color: var(--text); }
.hart__nt b { color: var(--ink); font-size: 15px; }
.hart__card--kur { left: 0; bottom: -6px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 999px; color: var(--forest-m); }
.hart__card--kur > span { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.25; color: var(--text); }
.hart__card--kur b { color: var(--ink); font-size: 14.5px; }
html.js .hart__card--note { animation: cardIn .7s var(--ease) 1.1s both; }
html.js .hart__card--kur { animation: cardIn .7s var(--ease) .7s both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
html.js .hart__card--note .menu__ico { animation: ping 1.8s var(--ease) 2.2s 2; }
@keyframes ping { 0%, 100% { transform: none; } 12% { transform: rotate(-8deg); } 24% { transform: rotate(7deg); } 36% { transform: rotate(-4deg); } 48% { transform: none; } }
@media (max-width: 1199.98px) { .hart__card--note { width: 72%; } .hart__sq--3 { left: 336px; } }
/* узкая колонка рисунка — телефон и 1024–1199 (справа от заголовка места столько же): дни мельче, карточки шире, без третьего квадрата */
@media (max-width: 809.98px), (min-width: 1024px) and (max-width: 1199.98px) {
  .hart { height: 476px; margin: 0 -4px; }
  .hart__sq--3 { display: none; }
  .hart__card--list { left: 0; top: 10px; width: 92%; }
  .hart__card--note { top: 340px; right: 0; width: 84%; }
  .hart__card--kur { bottom: 0; }
  .hart__days i { width: 22px; height: 22px; font-size: 10.5px; }
  .hart__head .cap { white-space: normal; }
}
@media (max-width: 359.98px) { .hart__days { display: none; } }

/* ---------- «Стоимость обучения»: строки двух семей ---------- */
.hfam { display: flex; flex-direction: column; align-items: flex-start; }
.hfam + .hfam { margin-top: 8px; }
.hfam__note { margin-top: 12px; color: var(--text); }
.hrows { width: 100%; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--paper); }
.hrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 210px auto; align-items: center; gap: 12px 28px; padding: 20px 24px; border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease); }
.hrow .chip { justify-self: start; white-space: normal; }
.hrow__n { color: var(--ink); font: 400 19px/1.3 var(--f-text-sb); letter-spacing: -.01em; text-wrap: balance; }
.hrow__p { display: flex; flex-direction: column; gap: 2px; }
.hrow__p .num { font-size: 28px; line-height: 1; white-space: nowrap; }
.hrow__a { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.hrow:target { background: var(--white); }
.hfam__go { gap: 4px 28px; }
@media (max-width: 1199.98px) { .hrow { grid-template-columns: 150px minmax(0, 1fr) 170px; } .hrow__a { grid-column: 2 / -1; } }
@media (max-width: 1023.98px) { .hrow { grid-template-columns: minmax(0, 1fr) auto; } .hrow .chip { grid-column: 1 / -1; } .hrow__a { grid-column: 1 / -1; } }
@media (max-width: 809.98px) { .hrow { padding: 18px 16px; } .hrow__n { font-size: 17px; } .hrow__p .num { font-size: 22px; } }

/* ---------- «Для кого школа» ---------- */
.fw { gap: 18px; }
.fw__h { display: flex; align-items: baseline; gap: 12px; color: var(--ink); font: 400 22px/1 var(--f-text-sb); }
.fw__h .num { font-size: 64px; line-height: .9; letter-spacing: -.02em; }
.fw .btn { margin-top: auto; }
@media (max-width: 809.98px) { .fw__h .num { font-size: 48px; } }

/* ---------- платформы и демо-доступ ---------- */
.plat { display: flex; flex-direction: column; align-items: flex-start; }
.plat__row { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; border: 1px solid var(--line); background: var(--white); }
.plat__row li { display: grid; place-items: center; min-height: 104px; padding: 18px; border-right: 1px solid var(--line); }
.plat__row li:last-child { border-right: 0; }
.plat__row img { max-height: 30px; width: auto; max-width: 100%; }
@media (max-width: 809.98px) { .plat__row { grid-template-columns: 1fr 1fr; } .plat__row li { min-height: 76px; border-bottom: 1px solid var(--line); } .plat__row li:nth-child(2n) { border-right: 0; } .plat__row li:nth-child(n+3) { border-bottom: 0; } .plat__row img { max-height: 24px; max-width: 120px; } }
.demo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 48px; align-items: end; padding: var(--v-pad); background: var(--forest-lll); border: 1px solid var(--forest-ll); border-top: 0; }
.demo .h2 { font-size: calc(var(--v-h2) * .72); }
.demo__r { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.demo__r .body { color: var(--text); }
@media (max-width: 809.98px) { .demo { grid-template-columns: minmax(0, 1fr); } .demo .h2 { font-size: 24px; } .demo .btn { width: 100%; } }

/* ---------- разделы главной в языке teak: ритм и вид кнопок V1 ---------- */
.page--home .cards__cta, .page--home .cards__btn, .page--home .setup__cta { align-self: flex-start; }
.page--home .bento__more, .page--home .features__more, .page--home .cards__faq { min-height: 44px; }

/* ---------- версия для слабовидящих (общий vision.css подключён после: селекторы здесь сильнее) ----------
   Первый экран одной колонкой: справа только рисунок недели, а его режим прячет — без этого заголовок жался в половину ширины.
   Цены первого экрана — одна под другой («от» может уйти строкой выше, число целиком). */
html.vision-on .hero > .wrap { grid-template-columns: minmax(0, 1fr); }
html.vision-on .hero__aside { display: none; }
html.vision-on .hero__prices { grid-template-columns: minmax(0, 1fr); max-width: none; border-width: 2px; }
/* строки тарифов: название, цена и кнопки — одно под другим (рядом с ценой название сжималось до буквы в строке) */
html.vision-on .hrow { grid-template-columns: minmax(0, 1fr); }
html.vision-on .hrow > * { grid-column: 1 / -1; }
