/* ================================================================
   ПРОСТО УРОК · слой лендинга и оболочки приложения
   Работает поверх style.css и использует его дизайн-токены.
   ================================================================ */

/* ── Общие мелочи ── */
.link-plain { text-decoration: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-xl);
  background: var(--accent-light); color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Появление секций при прокрутке ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Герой: бейджи-факты под кнопками ── */
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-fact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--r-xl);
  background: var(--surface); border: 1.5px solid var(--hairline);
  font-size: 13.5px; font-weight: 600; color: var(--text2);
  box-shadow: var(--shadow-sm);
}
.hero-fact .ic { width: 16px; height: 16px; color: var(--accent); }
.hero-fact b { color: var(--ink); font-weight: 800; }

/* ── Герой: мини-тест в мокапе ── */
.mock-quiz {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm);
  background: var(--bg-alt); border: 1.5px solid var(--hairline);
}
.mock-quiz-cap { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.mock-quiz-q { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.mock-quiz-a { display: flex; gap: 8px; flex-wrap: wrap; }
.mock-quiz-a span {
  padding: 6px 14px; border-radius: var(--r-xl); background: var(--surface);
  border: 1.5px solid var(--border); font-size: 12.5px; font-weight: 600; color: var(--text2);
}
.mock-quiz-a span.right { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }

/* ── Предметы: плитки с иконками ── */
.subject-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.subject-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 18px;
  border-radius: var(--r-md); background: var(--surface);
  border: 1.5px solid var(--hairline); box-shadow: var(--shadow-sm);
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.subject-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(44,40,51,0.10); border-color: var(--border); }
.subject-tile-icon {
  width: 64px; height: 64px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .25s ease;
  overflow: hidden;
}
.subject-tile-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.subject-tile:hover .subject-tile-icon { transform: scale(1.08) rotate(-3deg); }
.subject-tile-icon .ic { width: 22px; height: 22px; }
.subject-tile b { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); }
.subject-tile span { font-size: 12px; color: var(--text2); line-height: 1.5; }
/* фирменные цвета плиток — тёплый набор */
.tile-c1 { background: linear-gradient(135deg, #FF8A5C, #E8543F); }
.tile-c2 { background: linear-gradient(135deg, #2BB18C, #1E8E6C); }
.tile-c3 { background: linear-gradient(135deg, #F5B840, #E09420); }
.tile-c4 { background: linear-gradient(135deg, #D66BA0, #C0498A); }
.tile-c5 { background: linear-gradient(135deg, #5B8DEF, #3F6FD8); }

/* ── Блок «ОГЭ и ЕГЭ»: сплит с мокапом сетки заданий ── */
.exam-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: 40px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--hairline); box-shadow: var(--shadow-card);
}
.exam-split h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 14px; }
.exam-split-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 28px; }
.exam-split-item { display: flex; gap: 14px; align-items: flex-start; }
.exam-split-item .dot {
  width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  overflow: hidden;
}
.exam-split-item .dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.exam-split-item .dot .ic { width: 17px; height: 17px; }
.exam-split-item b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.exam-split-item span { font-size: 13.5px; color: var(--text2); line-height: 1.6; }
.exam-mock {
  padding: 22px; border-radius: var(--r-md); background: var(--bg-alt);
  border: 1.5px solid var(--hairline);
}
.exam-mock-head { display: flex; gap: 8px; margin-bottom: 16px; }
.exam-mock-head span {
  padding: 8px 22px; border-radius: var(--r-xl); font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1.5px solid var(--hairline); color: var(--text2);
}
.exam-mock-head span.on { background: linear-gradient(135deg, #FF7A59, #E8543F); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(232,84,63,0.25); }
.exam-mock-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.exam-mock-grid i {
  font-style: normal; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; height: 40px;
  border-radius: 10px; background: var(--surface); border: 1.5px solid var(--hairline); color: var(--text);
}
.exam-mock-grid i.done { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.exam-mock-grid i.now { background: linear-gradient(135deg, #FF7A59, #E8543F); border-color: transparent; color: #fff; }
.exam-mock-bar { margin-top: 16px; height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.exam-mock-bar i { display: block; height: 100%; width: 46%; border-radius: 999px; background: linear-gradient(90deg, #FF8A5C, #E8543F); }
.exam-mock-cap { margin-top: 10px; font-size: 12px; color: var(--label); font-weight: 600; }

/* ── Принципы ── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle {
  padding: 30px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--hairline); box-shadow: var(--shadow-sm);
}
.principle .p-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); display: block; margin-bottom: 14px; letter-spacing: .06em; }
.principle h3 { font-size: 17.5px; margin-bottom: 8px; }
.principle p { font-size: 14.5px; color: var(--text2); line-height: 1.7; }

/* ── Тарифы ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--hairline); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(44,40,51,0.10); }
.price-card .plan { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.price-card .price { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1; }
.price-card .price small { font-size: 14px; font-weight: 600; color: var(--label); }
.price-card .price-note { font-size: 13.5px; color: var(--text2); margin: 10px 0 20px; line-height: 1.6; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.55; }
.price-card li .ic { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.price-card li.off { color: var(--label); }
.price-card li.off .ic { color: var(--label); }
.price-card .btn-primary, .price-card .btn-ghost { width: 100%; justify-content: center; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 14px 40px rgba(232,84,63,0.14); }
.price-card .plan-badge {
  position: absolute; top: -13px; right: 24px;
  padding: 5px 14px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #FF7A59, #E8543F); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 4px 14px rgba(232,84,63,0.30);
}
.pricing-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--label); }

/* ── Оболочка страниц приложения ── */
.page-shell { min-height: 100vh; padding: 24px; align-items: center; justify-content: center; }
.page-shell:not(.screen) { display: flex; }
.page-card { width: 100%; }
.page-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline);
}
.page-brand .nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.page-brand .nav-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; }
.page-brand .nav-logo:hover .nav-name { color: var(--accent); }
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 16px rgba(232,84,63,0.28)); }
.page-brand .auth-title { margin-bottom: 2px; font-size: 22px; }
.page-brand .auth-sub { margin-bottom: 0; }

.auth-consent { display: none; font-size: 12px; color: var(--label); text-align: center; margin-top: 4px; line-height: 1.6; }
.auth-consent a { color: var(--text2); text-decoration: underline; text-underline-offset: 2px; }
.auth-consent a:hover { color: var(--accent); }

.onboarding-row { display: flex; align-items: center; gap: 12px; }
.onb-grade-hint { font-size: 13px; color: var(--label); margin: 2px 0 14px; }
.welcome-btn.full-width { width: 100%; margin-top: 24px; }

.subjects-card {
  width: 100%; max-width: 640px; background: var(--surface);
  border: 1.5px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 32px;
}
.subjects-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.subjects-greeting { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--ink); letter-spacing: -0.015em; }
.subjects-sub { color: var(--text2); font-size: 14.5px; margin-bottom: 20px; }

.exam-switcher { display: flex; gap: 8px; margin-bottom: 20px; }
.exam-card-wide { max-width: 640px; }
.theory-card-wide { max-width: 760px; }
.theory-link { display: none; text-decoration: none; text-align: center; }
.topbar-title-inline { display: flex; align-items: center; gap: 8px; }

/* ── Медиа ── */
@media (max-width: 1024px) {
  .subject-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .exam-split { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .principles, .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
}
@media (max-width: 640px) {
  .subject-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .subject-tile { padding: 16px 14px; }
  .page-shell { padding: 12px; }
  .subjects-card { padding: 24px 18px; border-radius: var(--r-md); }
  .exam-mock-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-facts { gap: 8px; }
  .hero-fact { font-size: 12.5px; padding: 8px 12px; }
}

/* ── Логотип в шапке и аватарах ── */
.brand-svg { display: inline-flex; flex-shrink: 0; }
.brand-svg svg { width: 100%; height: 100%; display: block; }
.nav-brand-svg { width: 38px; height: 38px; filter: drop-shadow(0 4px 12px rgba(232,84,63,0.28)); transition: transform .2s ease; }
.nav-logo:hover .nav-brand-svg { transform: rotate(-6deg) scale(1.06); }
.av.ai .ic { width: 19px; height: 19px; color: #fff; stroke-width: 1.7; }
.mock-av .ic { width: 16px; height: 16px; color: #fff; }

/* ── Юридические страницы ── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal-main h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.legal-updated { font-size: 13px; color: var(--label); margin-bottom: 34px; }
.legal-main h2 { font-size: 19px; font-weight: 800; margin: 34px 0 10px; }
.legal-main p, .legal-main li { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.legal-main ul { padding-left: 22px; margin-bottom: 14px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 14px; font-weight: 600; color: var(--text2); }
.legal-back:hover { color: var(--accent); }

/* ── Баннер согласия (левый нижний угол, компактная карточка) ── */
.consent-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 300;
  width: 340px; max-width: calc(100vw - 40px);
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--hairline);
  box-shadow: 0 12px 40px rgba(44,40,51,0.14), 0 2px 8px rgba(44,40,51,0.06);
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.consent-bar.show { opacity: 1; transform: translateY(0); }
.consent-icon-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.01em;
}
.consent-shield {
  width: 22px; height: 22px; flex-shrink: 0;
  stroke: var(--accent); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.consent-body {
  font-size: 13.5px; line-height: 1.65; color: var(--text2); margin: 0;
}
.consent-body a { color: var(--accent); font-weight: 600; }
.consent-actions { display: flex; flex-direction: column; gap: 8px; }
.consent-bar .consent-continue {
  width: 100%; border: none; border-radius: var(--r-xl); padding: 12px 20px;
  background: linear-gradient(135deg, #FF7A59, #E8543F); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font-ui);
  box-shadow: 0 4px 14px rgba(232,84,63,0.25); transition: transform .2s ease, box-shadow .2s ease;
  text-align: center; letter-spacing: -0.01em;
}
.consent-bar .consent-continue:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,84,63,0.35); }
.consent-bar .consent-reject {
  width: 100%; border: none; border-radius: var(--r-xl); padding: 10px 20px;
  background: var(--bg-alt); color: var(--text2);
  font-weight: 600; font-size: 13px; cursor: pointer; font-family: var(--font-ui);
  transition: background .2s ease, color .2s ease; text-align: center; letter-spacing: -0.01em;
}
.consent-bar .consent-reject:hover { background: var(--accent-light); color: var(--accent); }
@media (max-width: 480px) {
  .consent-bar { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 18px 16px; }
}

/* заголовок героя: не разрывать «по-человечески» */
.hero-title em { white-space: nowrap; }

/* =======================================================
   ����� ������ ������� � ��������, ���������, ��������-����,
   ������� ��������, ����������, ����� ��� ������� �������
   ======================================================= */

/* -- ����������� � ���������� -- */
.dash-greeting {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px; margin-bottom: 18px;
  border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.dash-mascot { width: 90px; height: 76px; flex-shrink: 0; }
.dash-mascot svg { width: 100%; height: 100%; display: block; }
.dash-greeting-text { flex: 1; }
.dash-hi { margin-bottom: 4px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 27px); font-weight: 800; color: var(--ink); letter-spacing: -0.015em; }
.dash-subhi { font-size: 14.5px; color: var(--text2); line-height: 1.5; }
.dash-greeting-actions { flex-shrink: 0; }
.dash-grade-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-xl);
  background: var(--accent-light); border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dash-grade-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.dash-grade-badge .ic { width: 17px; height: 17px; }

/* -- ��������� ����� -- */
.dash-streak-calendar {
  padding: 18px 22px; margin-bottom: 14px;
  border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.streak-calendar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.streak-calendar-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text2);
}
.streak-calendar-title .ic { width: 18px; height: 18px; color: var(--accent); }
.streak-calendar-head strong {
  font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--accent);
}
.streak-days {
  display: flex; gap: 10px; justify-content: space-between;
}
.streak-day {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1;
}
.streak-day-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--hairline);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.streak-day.today .streak-day-dot { border-color: var(--accent); border-width: 2.5px; }
.streak-day.filled .streak-day-dot {
  background: linear-gradient(135deg, #FF8A5C, #E8543F);
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(232,84,63,0.28);
  animation: streakPop .35s ease;
}
.streak-day-name { font-size: 11px; font-weight: 600; color: var(--label); }
.streak-day.today .streak-day-name { color: var(--accent); font-weight: 700; }
@keyframes streakPop {
  0% { transform: scale(0.7); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* -- ������� ���� -- */
.dash-daily-goal {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--ok-bg); border: 1.5px solid var(--ok);
}
.daily-goal-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.daily-goal-icon .ic { width: 20px; height: 20px; color: var(--ok); }
.daily-goal-icon.goal-achieved { background: var(--ok); }
.daily-goal-icon.goal-achieved .ic { color: #fff; }
.daily-goal-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.daily-goal-label { font-size: 11.5px; font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; }
.daily-goal-desc { font-size: 14px; font-weight: 700; color: var(--ink); }
.daily-goal-status .goal-done {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ok); display: flex; align-items: center; justify-content: center;
}
.daily-goal-status .goal-done .ic { width: 17px; height: 17px; color: #fff; stroke-width: 3; }

/* -- ������� �������� -- */
.dash-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 22px;
}
.dash-action-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 18px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--hairline);
  text-decoration: none; cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dash-action-card:hover { transform: translateY(-3px); border-color: var(--border); box-shadow: 0 8px 24px rgba(44,40,51,0.09); }
.action-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; overflow: hidden;
}
.action-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.action-icon .ic { width: 22px; height: 22px; color: #fff; }
.action-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.action-sub { font-size: 12px; color: var(--text2); }

/* -- ������ ���� ��������� -- */
.dash-subjects, .dash-achievements {
  margin-bottom: 22px;
}
.dash-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.dash-section-head h2 {
  font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink);
}
.ach-count { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); }

/* -- �������� ��������� � ��������-����� -- */
.subjects-list-new { display: flex; flex-direction: column; gap: 8px; }
.subject-card-new {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--hairline);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.subject-card-new:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.subject-card-left {
  flex: 1; display: flex; align-items: center; gap: 14px;
  cursor: pointer; text-decoration: none; min-width: 0;
}
.subject-card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.subject-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.subject-card-icon .ic { width: 22px; height: 22px; color: #fff; }
.subject-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.subject-card-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.subject-card-note { font-size: 12px; color: var(--label); }
.subject-card-bar {
  width: 100%; height: 5px; border-radius: 999px; background: var(--bg-alt);
  margin-top: 2px;
}
.subject-card-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2BB18C, #1E8E6C);
  transition: width .5s ease;
}
.subject-card-del {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent;
  color: var(--label); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color .2s ease, background .2s ease;
}
.subject-card-del:hover { color: var(--err); background: var(--err-bg); }

/* -- ������ ���������� ��������� -- */
.add-panel-new {
  display: none; margin-top: 12px; padding: 16px;
  border-radius: var(--r-md); background: var(--bg-alt);
  border: 1.5px solid var(--hairline);
}
.add-panel-new.open { display: block; }
.add-panel-new p { font-size: 13.5px; color: var(--text2); margin-bottom: 12px; }
.subject-grid-new { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-option-new {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-xl);
  background: var(--surface); border: 1.5px solid var(--hairline);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.subject-option-new:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.so-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; }
.so-icon img { width: 100%; height: 100%; object-fit: cover; }
.so-icon .ic { width: 18px; height: 18px; color: var(--accent); }

/* -- ���������� -- */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ach-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--hairline);
  transition: transform .2s ease, border-color .2s ease;
}
.ach-card.unlocked { border-color: var(--ok); background: var(--ok-bg); }
.ach-card:not(.unlocked) { opacity: 0.55; }
.ach-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
}
.ach-card.unlocked .ach-icon { background: linear-gradient(135deg, #2BB18C, #1E8E6C); }
.ach-card.unlocked .ach-icon .ic { color: #fff; width: 18px; height: 18px; }
.ach-card:not(.unlocked) .ach-icon .ic { color: var(--label); width: 18px; height: 18px; }
.ach-title { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }

/* -- ����� ���������� -- */
.ach-popup {
  position: fixed; top: 10%; left: 50%; z-index: 500;
  transform: translate(-50%, 0) scale(0.7);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 36px; border-radius: var(--r-lg);
  background: var(--surface); border: 2px solid var(--ok);
  box-shadow: 0 16px 48px rgba(44,40,51,0.18);
  opacity: 0; transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}
.ach-popup.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ach-popup-icon { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #2BB18C, #1E8E6C); display: flex; align-items: center; justify-content: center; }
.ach-popup-icon .ic { width: 26px; height: 26px; color: #fff; }
.ach-popup-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); }
.ach-popup-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }

/* -- ����� ������� ������� -- */
.dash-kid-start { margin-bottom: 16px; margin-top: 16px; }
.dash-kid-links {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 16px 0; font-size: 13px;
}
.dash-kid-links a { color: var(--text2); font-weight: 600; text-decoration: none; }
.dash-kid-links a:hover { color: var(--accent); }
.dash-kid-links span { color: var(--label); }

/* -- ���������� ������� -- */
.dashboard-shell { max-width: 680px; }
@media (max-width: 720px) {
  .dash-greeting { padding: 16px 18px; gap: 12px; }
  .dash-mascot { width: 70px; height: 60px; }
  .dash-hi { font-size: 18px; }
  .dash-subhi { font-size: 13px; }
  .dash-actions { grid-template-columns: 1fr; }
  .dash-action-card { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .streak-days { gap: 6px; }
  .streak-day-dot { width: 28px; height: 28px; }
}

/* -- ����� ������ ��������� � ��������� -- */
.subject-card-icon[data-subj="����������"],
.subject-card-icon[data-subj="�����������"] { background: linear-gradient(135deg, #FF8A5C, #E8543F); }
.subject-card-icon[data-subj="������"],
.subject-card-icon[data-subj="���������"] { background: linear-gradient(135deg, #5B8DEF, #3F6FD8); }
.subject-card-icon[data-subj="�����"],
.subject-card-icon[data-subj="��������"] { background: linear-gradient(135deg, #2BB18C, #1E8E6C); }
.subject-card-icon[data-subj="�������"],
.subject-card-icon[data-subj="����������"] { background: linear-gradient(135deg, #D66BA0, #C0498A); }
.subject-card-icon[data-subj="����������"],
.subject-card-icon[data-subj="��������������"] { background: linear-gradient(135deg, #F5B840, #E09420); }

/* -- �������� -- */
.contacts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card {
  padding: 24px 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: transparent; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.contact-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.contact-icon .ic { width: 20px; height: 20px; color: var(--accent); }
.contact-label { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-value { display: inline-block; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.contact-value:hover { color: var(--accent); }
.contact-note { font-size: 13px; color: var(--text2); line-height: 1.5; }
.contacts-legal { margin-top: 18px; }
.contacts-owner {
  padding: 18px 22px; border-radius: var(--r-md);
  background: var(--bg-alt); border: 1.5px solid var(--hairline);
}
.contacts-owner strong { font-size: 14px; color: var(--ink); display: block; margin-bottom: 6px; }
.contacts-owner p { font-size: 13.5px; color: var(--text2); line-height: 1.6; margin: 0; }
@media (max-width: 600px) {
  .contacts-grid { grid-template-columns: 1fr; }
}
