/* Кабинет: сверху — «что у меня есть и что делать дальше», ниже — всё остальное по полкам.
   Данные на странице — ПРИМЕР (вымышленный ученик); состояния тарифа переключаются в верхней полосе. */
.cab { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 34px; padding: 30px 0 80px; align-items: start; }
.who { display: flex; align-items: center; gap: 14px; padding: 26px 0 0; }
.who .ava { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, #6D7FF3, #8B5CFF); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 19px; flex: none; }
.who h1 { font-size: 24px; letter-spacing: -.02em; }
.who p { color: var(--ink2); font-size: 14px; font-weight: 600; }
.who .out { margin-left: auto; }
.sec { scroll-margin-top: 84px; margin-bottom: 16px; padding: 24px; }
.sec > h2 { font-size: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sec > .sub { color: var(--ink2); font-size: 14px; margin-top: 4px; }
.sec > .in { margin-top: 18px; }
/* тариф */
.plan { background: #111827; color: #fff; border-radius: 22px; padding: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; position: relative; overflow: hidden; margin-bottom: 16px; }
.plan::after { content: ''; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 255, .55), transparent 70%); pointer-events: none; }
.plan > * { position: relative; z-index: 1; }
.plan .k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #A5B0C5; }
.plan .name { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-top: 4px; }
.plan .till { color: #C9D1E0; font-size: 14.5px; margin-top: 6px; font-weight: 600; }
.plan .bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .16); margin-top: 16px; overflow: hidden; max-width: 420px; }
.plan .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22E3D3, #8B5CFF); }
.plan .acts { display: grid; gap: 8px; }
.plan .pill.lite { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
/* дальше */
.next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; margin-bottom: 16px; }
.next .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--vio-bg); color: var(--vio); display: grid; place-items: center; }
.next b { font-size: 17px; font-weight: 800; display: block; }
.next span { color: var(--ink2); font-size: 14px; }
/* доступы */
.acc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acc a { border: 1px solid var(--line); background: rgba(255, 255, 255, .72); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; transition: transform .15s, border-color .15s; }
.acc a:hover { transform: translateY(-2px); border-color: var(--line2); }
.acc .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--vio-bg); color: var(--vio); display: grid; place-items: center; margin-bottom: 4px; }
.acc b { font-weight: 800; font-size: 15.5px; }
.acc small { color: var(--ink2); font-size: 13px; line-height: 1.4; }
.acc .st { margin-top: 6px; justify-self: start; }
.acc a.off { background: rgba(255, 255, 255, .4); }
.acc a.off .ic { background: #FBF1D3; color: #6B4A00; }
/* варианты */
.vars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.var { border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .72); padding: 10px 8px; text-align: center; display: grid; gap: 2px; }
.var b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.var small { font-size: 11px; font-weight: 700; color: var(--ink3); }
.var.done { background: var(--okbg); border-color: #BFE5D2; }
.var.done small { color: var(--ok); }
.var.open { border-color: var(--vio); box-shadow: inset 0 0 0 1px var(--vio); }
.var.open small { color: var(--vio); }
.var.lock { opacity: .55; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink2); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); font-weight: 800; padding: 0 10px 8px 0; }
.tbl td { padding: 11px 10px 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td:last-child, .tbl th:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-weight: 800; }
.code { display: flex; gap: 8px; max-width: 460px; }
.code input { flex: 1; min-width: 0; border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 14px; font: 700 15px var(--font); background: rgba(255, 255, 255, .8); }
.code input:focus { outline: none; border-color: var(--vio); }
.dev { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.dev:first-child { border-top: 0; padding-top: 0; }
.dev b { font-weight: 800; display: block; }
.dev small { color: var(--ink3); }
.link { border: 0; background: none; color: var(--vio); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
details.quiet summary { cursor: pointer; font-weight: 800; font-size: 15px; color: var(--ink2); list-style: none; }
details.quiet summary::-webkit-details-marker { display: none; }
details.quiet p { color: var(--ink2); font-size: 14px; margin: 10px 0 14px; max-width: 64ch; }
@media (max-width: 900px) {
  .cab { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .plan { grid-template-columns: 1fr; }
  .plan .acts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .plan .acts .pill { white-space: normal; text-align: center; }
  .acc { grid-template-columns: 1fr 1fr; }
  .vars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .next { grid-template-columns: auto minmax(0, 1fr); }
  .next .pill { grid-column: 1 / -1; }
  .sec { padding: 20px 18px; scroll-margin-top: 128px; }
}
@media (max-width: 520px) { .acc { grid-template-columns: 1fr; } .who .out { display: none; } .tbl th:nth-child(2), .tbl td:nth-child(2) { display: none; } }
/* видеоуроки: группы по разделам теста */
.lgroups { display: grid; gap: 8px; }
.lg { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); padding: 0 16px; }
.lg summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 15.5px; }
.lg summary::-webkit-details-marker { display: none; }
.lg summary b { font-weight: 800; }
.lg ol { padding: 0 0 12px; display: grid; gap: 0; }
.lg li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.lg li .num { font: 600 12px var(--mono); color: var(--ink3); }
.lg li .ico { width: 14px; height: 14px; color: #9A6F10; }
/* мой список вузов */
.my { display: grid; gap: 0; }
.my a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.my a:first-child { border-top: 0; padding-top: 0; }
.my .logo { width: 42px; height: 42px; border-radius: 12px; padding: 5px; }
.my b { font-weight: 800; font-size: 15px; display: block; }
.my small { color: var(--ink2); font-size: 13px; }
.lg .th { position: relative; width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--vio-bg); }
.lg .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg .th.off img { filter: saturate(.55) brightness(.92); }
.lg .tt b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.lg .tt small { color: var(--ink3); font: 600 12px var(--mono); }
@media (max-width: 520px) { .lg li { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; } .lg .th { width: 88px; } }
/* тарифы */
.tplans { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 14px; align-items: start; }
.tplan { position: relative; background: var(--card); border: 1px solid rgba(255, 255, 255, .85); border-radius: 22px; box-shadow: var(--sh2); padding: 24px; display: grid; gap: 12px; backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
.tplan.hot { background: #111827; color: #fff; border-color: #111827; box-shadow: 0 30px 50px -24px rgba(17, 24, 39, .6); }
.tplan h3 { font-size: 19px; font-weight: 800; }
.tlbl { position: absolute; top: -12px; left: 24px; background: linear-gradient(135deg, #6D7FF3, #8B5CFF); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.tprice { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tprice small { font-size: 16px; font-weight: 700; color: var(--ink3); letter-spacing: 0; }
.tplan.hot .tprice small, .tplan.hot .tnote { color: #A5B0C5; }
.tnote { font-size: 13.5px; color: var(--ink2); font-weight: 600; }
.tgroup { border-top: 1px solid var(--line); padding-top: 12px; }
.tplan.hot .tgroup { border-color: rgba(255, 255, 255, .14); }
.tgroup b { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vio); }
.tplan.hot .tgroup b { color: #A9B4FF; }
.tgroup ul, .tfree ul { display: grid; gap: 6px; margin-top: 8px; }
.tgroup li, .tfree li { display: flex; gap: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.tgroup li .ico, .tfree li .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--ok); stroke-width: 2.6; flex: none; }
.tplan.hot li .ico { color: #22E3D3; }
.tplan .pill { margin-top: 4px; }
.tplan.hot .pill { background: linear-gradient(135deg, #6D7FF3, #8B5CFF); color: #fff; }
.tfree { margin-top: 14px; border: 1px dashed var(--line2); border-radius: 18px; padding: 18px 22px; background: rgba(255, 255, 255, .45); }
.tfree b { font-weight: 800; }
.tfree ul { grid-template-columns: 1fr 1fr; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 11px 10px; border-top: 1px solid var(--line); text-align: center; }
.cmp th:first-child, .cmp td:first-child { text-align: left; padding-left: 0; font-weight: 600; }
.cmp thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); font-weight: 800; }
.cmp thead th.y { color: var(--vio); }
.cmp td.y { background: rgba(109, 127, 243, .07); font-weight: 800; }
.cmp .g td { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); padding-top: 18px; }
.cmp .yes { color: var(--ok); font-weight: 800; }
.cmp .no { color: var(--line2); }
@media (max-width: 900px) { .tplans { grid-template-columns: 1fr; } .tplan.hot { order: -1; } .tfree ul { grid-template-columns: 1fr; } .cmp { font-size: 13px; } .cmp th, .cmp td { padding: 9px 5px; } }
.rtbl td:first-child { width: 90px; } .rtbl td:last-child, .rtbl th:last-child { text-align: left !important; font-weight: 600 !important; white-space: normal !important; }
/* вход в раздел ОРТ: три карточки с героями */
.ohead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; padding: 34px 0 26px; }
.ohead h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.ohead .lead { margin-top: 8px; }
.oseg { padding: 4px; }
.oseg button { padding: 9px 18px; font-size: 15px; }
.oseg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--sh2); }
.ocards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
/* картинки 16:9, герой — в правой трети, слева пустое место под заголовок */
.ocard { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; padding: 30px 30px; display: flex; flex-direction: column; color: #10241c;
  background: linear-gradient(90deg, rgba(232, 242, 237, .92) 0 30%, rgba(232, 242, 237, 0) 58%), var(--img) center / cover no-repeat, #E7EEEA;
  box-shadow: var(--sh2); transition: transform .18s, box-shadow .18s; }
.ocard:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 6; background-position: 0 0, right 0 top 32%, 0 0; }
.ocard:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.ocard h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; max-width: 12ch; }
.ocard:first-child h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; }
.ocard p { margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: #2c3b35; max-width: 44%; font-weight: 500; }
.ocard:first-child p { max-width: 38ch; }
.obtn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; background: #12261f; color: #fff; border-radius: 12px; padding: 15px 22px; font-weight: 800; font-size: 15.5px; }
.obtn .ico { width: 18px; height: 18px; }
.vtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.vtop .back { margin-bottom: 0; }
#view .sec { padding: 26px; }
@media (max-width: 980px) { .ocards { grid-template-columns: 1fr; } .ocard, .ocard:first-child { aspect-ratio: 16 / 8; } }
@media (max-width: 560px) { .ocard, .ocard:first-child { aspect-ratio: auto; min-height: 250px; padding: 22px 20px; background: linear-gradient(90deg, rgba(232, 242, 237, .95) 0 34%, rgba(232, 242, 237, 0) 66%), var(--img) right 28% center / auto 100% no-repeat, #E7EEEA; }
  .ocard h2, .ocard:first-child h2 { font-size: 1.45rem; max-width: 9ch; } .ocard p, .ocard:first-child p { max-width: 52%; font-size: 13.5px; } .obtn { padding: 12px 18px; font-size: 14.5px; } .ohead { padding-top: 24px; } }
/* кабинет: прогресс уроков, синхронизация */
.lstat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lstat > div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .7); }
.lstat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.lstat span { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.lps { display: grid; gap: 12px; margin-top: 18px; }
.lp-h { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 6px; }
.lp-h b { font-weight: 800; } .lp-h span { color: var(--ink2); font-weight: 700; }
.lp-bar { position: relative; display: flex; height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lp-bar i { background: linear-gradient(90deg, #22E3D3, #6D7FF3); }
.lp-bar s { margin-left: auto; background: repeating-linear-gradient(45deg, #EBD9A2 0 5px, #F6EBC9 5px 10px); }
.lnext { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .75); }
.lnext .th { width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.lnext .th img { width: 100%; height: 100%; object-fit: cover; }
.lnext small { display: block; font-size: 12px; font-weight: 800; color: var(--vio); text-transform: uppercase; letter-spacing: .05em; }
.lnext b { font-weight: 800; font-size: 15px; }
.lnext .ico { width: 18px; height: 18px; }
.sync { display: flex; gap: 12px; align-items: center; border: 1px solid #BFE5D2; background: var(--okbg); border-radius: 14px; padding: 12px 16px; }
.sync .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px rgba(14, 126, 100, .15); flex: none; }
.sync b { font-weight: 800; display: block; } .sync small { color: var(--ink2); font-size: 13px; }
.acc .cell { border: 1px solid var(--line); background: rgba(255, 255, 255, .72); border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.acc .cell .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--vio-bg); color: var(--vio); display: grid; place-items: center; margin-bottom: 4px; }
.acc .cell b { font-weight: 800; font-size: 15.5px; } .acc .cell small { color: var(--ink2); font-size: 13px; line-height: 1.4; }
.tg { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; }
.tg input { width: 17px; height: 17px; accent-color: var(--vio); }
@media (max-width: 520px) { .lstat b { font-size: 21px; } .lnext { grid-template-columns: 88px minmax(0, 1fr) auto; } .lnext .th { width: 88px; } }
