:root {
  color-scheme: light;
  --ink: #292633;
  --muted: #625d70;
  --line: #e9dfd1;
  --paper: #fffdf8;
  --background: #fff8ed;
  --accent: #db5439;
  --accent-dark: #b83e28;
  --violet: #6859ba;
  --teal: #278d84;
  --mint: #dff2e4;
  --sun: #ffc74f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 5%, #ffe4bb 0 5%, transparent 22%),
    radial-gradient(circle at 0 42%, #e9e2ff 0 4%, transparent 20%),
    var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-header, main, .site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { font-size: 21px; font-weight: 850; letter-spacing: -.055em; }
.logo span { color: var(--violet); }

nav { display: flex; align-items: center; gap: 26px; color: #514a5b; font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
  align-items: center;
  gap: 72px;
  min-height: 590px;
  padding: 50px 0 80px;
}

.eyebrow { color: #c14832; font-size: 13px; font-weight: 850; letter-spacing: .12em; margin: 0 0 16px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; font-size: clamp(43px, 5vw, 70px); letter-spacing: -.065em; line-height: .98; margin-bottom: 24px; }
h2 { font-size: clamp(31px, 4vw, 48px); letter-spacing: -.05em; line-height: 1.03; margin-bottom: 0; }
h3 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 9px; }
.title-accent { color: var(--violet); }
.section-heading h2, .cta-section h2 { color: #362b4e; }
.lead { color: var(--muted); font-size: 20px; line-height: 1.5; max-width: 610px; }
.note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { border-radius: 999px; display: inline-flex; font-weight: 800; justify-content: center; padding: 14px 20px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #e2b64d; box-shadow: 0 5px 0 #ad8021; color: #372a10; }
.button-primary:hover { background: #efc862; box-shadow: 0 3px 0 #ad8021; transform: translateY(0); }
.button-primary:focus-visible { outline: 3px solid #302942; outline-offset: 4px; }
.button-primary:disabled,
.button-primary[aria-disabled="true"] { cursor: not-allowed; opacity: .58; box-shadow: 0 3px 0 #ad8021; }
.button-secondary { background: var(--paper); border: 1px solid #ddcdb9; }

.formula-card { background: linear-gradient(135deg, #302942 0%, #3a3153 52%, #493c66 100%); border: 3px solid #221d31; border-radius: 42px 22px 42px 22px; box-shadow: 10px 12px 0 #d8cdef, 0 22px 48px #30274426; color: white; min-height: 350px; overflow: hidden; padding: 30px; position: relative; transform: rotate(1.2deg); }
.card-label { color: #ddd8ec; font-size: 14px; font-weight: 800; position: relative; z-index: 1; }
.equation { border-bottom: 1px solid #83789c; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); padding: 37px 0; position: relative; text-align: center; z-index: 1; }
.answer-row { align-items: center; display: flex; gap: 12px; padding: 24px 0 12px; position: relative; z-index: 1; }
.answer-row span { color: #ddd8ec; }
.answer-row strong { font-size: 24px; }
.answer-row .check { align-items: center; background: var(--sun); border-radius: 50%; color: #473712; display: inline-flex; font-weight: 900; height: 23px; justify-content: center; margin-left: auto; width: 23px; }
.formula-card > p:last-child { color: #e5e1ee; font-size: 14px; line-height: 1.5; position: relative; z-index: 1; }

.section { padding: 92px 0; }
.section-heading { max-width: 680px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.steps article, .topic-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px 14px 24px 14px; padding: 25px; }
.steps article:nth-child(2) { border-radius: 14px 24px 14px 24px; }
.steps span { color: var(--accent); font-size: 14px; font-weight: 850; }
.steps h3 { margin-top: 42px; }
.steps p, .topic-card p { color: var(--muted); line-height: 1.52; margin-bottom: 0; }

.topics { border-top: 1px solid var(--line); }
.topic-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 42px; }
.topic-card { min-height: 200px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.topic-card:hover { border-color: #d9b68d; box-shadow: 0 12px 26px #7f634410; transform: translateY(-3px) rotate(-.4deg); }
.topic-card:nth-child(3n + 2) { background: #f4f0ff; }
.topic-card:nth-child(3n) { background: #eff9ee; }
.topic-card span { color: var(--accent); font-weight: 850; }
.topic-card h3 { margin: 27px 0 8px; }
.topic-card b { color: var(--accent); display: inline-block; font-size: 14px; margin-top: 20px; }

.cta-section { background: var(--mint); border: 2px dashed #8cbd9a; border-radius: 32px 17px 32px 17px; margin: 36px 0 92px; max-width: 900px; padding: clamp(30px, 6vw, 62px); }
.cta-section p:last-child { color: #3f5e50; font-size: 18px; line-height: 1.55; margin: 20px 0 0; max-width: 670px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 14px; justify-content: space-between; padding: 28px 0 40px; }
.breadcrumbs { color: var(--muted); display: flex; font-size: 14px; gap: 9px; padding-top: 30px; }
.breadcrumbs a:hover { color: var(--accent); }
.topic-hero { max-width: 780px; padding: 76px 0 50px; }
.topic-intro { color: var(--muted); font-size: 18px; line-height: 1.58; margin: 28px 0 30px; max-width: 690px; }
.topic-example { border-top: 1px solid var(--line); padding: 54px 0 72px; }
.topic-example h2 { color: #362b4e; font-size: clamp(29px, 4vw, 42px); margin-bottom: 24px; }
.topic-example-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px 14px 24px 14px; box-shadow: 7px 8px 0 #eee0ce; margin-bottom: 28px; max-width: 820px; padding: clamp(22px, 4vw, 38px); }
.task-card { background: #f7f3ff !important; border: 2px solid #ded5ef !important; border-radius: 18px !important; box-shadow: 0 8px 0 #e8e0f5 !important; }
.topic-example-card p { font-size: 21px; line-height: 1.5; margin-bottom: 18px; }
.topic-example-card .math-expression { margin: 20px 0; }
.topic-example-image { border: 1px solid #ded5ef; border-radius: 16px; display: block; height: auto; margin: 20px 0; max-width: 100%; }
.topic-example-note { color: var(--muted); font-size: 14px; }
.topic-next { border-top: 1px solid var(--line); }
.demo-page { max-width: 900px; }
.demo-heading { max-width: 760px; padding: 72px 0 34px; }
.task-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 30px 17px 30px 17px; box-shadow: 10px 11px 0 #eee0ce; padding: clamp(28px, 5vw, 56px); }
.task-meta { color: var(--violet); display: flex; font-size: 14px; font-weight: 850; gap: 14px; letter-spacing: .04em; text-transform: uppercase; }
.task-meta span + span { border-left: 1px solid #cfc4e8; padding-left: 14px; }
.task-sheet h2 { font-size: clamp(24px, 3.5vw, 36px); line-height: 1.25; margin: 30px 0 16px; }
.math-expression { background: #f3f0fa; border: 1px solid #ded5ef; border-radius: 17px; color: #33284b; font-size: clamp(29px, 5vw, 48px); margin: 28px 0 38px; overflow-x: auto; padding: 24px; }
.math-expression.text-expression { font-size: 21px; line-height: 1.5; text-align: left; }
.math-expression .math-native-root { color: inherit; display: inline-block; font-size: 1em; vertical-align: middle; }
.math-native-root { color: inherit; display: inline-block; vertical-align: middle; }
.math-expression .math-fraction { display: inline-flex; flex-direction: column; line-height: 1.05; text-align: center; vertical-align: middle; }
.math-expression .math-fraction > span:first-child { border-bottom: 2px solid currentColor; padding: 0 6px 3px; }
.math-expression .math-fraction > span:last-child { padding: 3px 6px 0; }
.task-choices .math-fraction { display: inline-flex; flex-direction: column; line-height: 1.05; text-align: center; vertical-align: middle; }
.task-choices .math-fraction > span:first-child { border-bottom: 2px solid currentColor; padding: 0 4px 2px; }
.task-choices .math-fraction > span:last-child { padding: 2px 4px 0; }
.task-choices .math-native-root { color: inherit; display: inline-block; vertical-align: middle; }
.answer-form { border-top: 1px solid var(--line); padding-top: 30px; }
.answer-form label { display: block; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.answer-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.answer-controls input { background: #fffefa; border: 1px solid #cfc2b0; border-radius: 999px; color: var(--ink); font: inherit; font-size: 19px; max-width: 280px; outline: none; padding: 14px 18px; width: 100%; }
.answer-controls input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px #ded8f5; }
.answer-hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.answer-result { font-weight: 750; margin: 20px 0 0; min-height: 24px; }
.answer-result.is-correct { color: var(--teal); }
.answer-result.is-wrong { color: #bb4935; }
.answer-result.is-error { color: #a04b2b; }
.button-primary.is-loading { cursor: wait; opacity: .72; }
.demo-note { border-left: 4px solid var(--sun); color: #4f4959; line-height: 1.55; margin: 52px 0 80px; padding: 4px 0 4px 18px; }
.diagnostic-form { display: grid; gap: 24px; margin-bottom: 80px; min-width: 0; }
.diagnostic-progress { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; margin: 0 0 22px; padding: 14px 16px; }
.diagnostic-progress > div:first-child { align-items: center; display: flex; justify-content: space-between; }.diagnostic-progress span { color: var(--muted); font-size: 14px; }.diagnostic-progress strong { color: var(--ink); font-size: 14px; }.diagnostic-progress-track { background: #e2dced; border-radius: 99px; height: 8px; margin-top: 10px; overflow: hidden; }.diagnostic-progress-track span { background: var(--violet); border-radius: inherit; display: block; height: 100%; transition: width .2s ease; }
.diagnostic-task { max-width: 100%; min-width: 0; padding: clamp(24px, 4vw, 42px); width: 100%; }
.diagnostic-task h2 { font-size: clamp(23px, 3.5vw, 32px); }
.diagnostic-task label { display: block; font-size: 16px; font-weight: 800; margin: 24px 0 9px; }
.diagnostic-task input { background: #fffefa; border: 1px solid #cfc2b0; border-radius: 999px; color: var(--ink); font: inherit; font-size: 18px; max-width: 300px; outline: none; padding: 13px 17px; width: 100%; }
.diagnostic-task input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px #ded8f5; }
.diagnostic-text-task { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.diagnostic-text-task .task-content-box { background: #f7f3ff; border: 1px solid #ded5ef; border-radius: 22px; max-width: 100%; min-width: 0; padding: clamp(22px, 4vw, 38px); }
.diagnostic-text-task .task-content-box h2 { margin-top: 0; }
.diagnostic-text-task .task-content-box .math-expression { background: transparent; border: 0; margin-top: 0; padding-left: 0; padding-right: 0; }
.diagnostic-text-task .task-content-box .task-choices { background: #fffefa; border: 1px solid #ded5ef; border-radius: 15px; margin-bottom: 0; padding: 14px 20px 14px 46px; }
.diagnostic-text-task > label { margin-top: 24px; }
.diagnostic-results { border-top: 1px solid var(--line); list-style: none; margin: 28px 0; padding: 0; }
.diagnostic-results li { align-items: center; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; padding: 13px 0; }
.diagnostic-results small { color: var(--muted); display: block; flex-basis: 100%; font-weight: 400; margin-top: 5px; }
.diagnostic-map { background: #f7f3ff; border: 1px solid #ded5ef; border-radius: 18px; margin: 26px 0; padding: 20px; }.diagnostic-map h2 { font-size: 21px; margin: 0 0 14px; }.diagnostic-map p { color: #514a5b; line-height: 1.5; margin: 16px 0 0; }.diagnostic-map-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }.diagnostic-map-item { align-items: center; background: #fffefa; border-radius: 10px; display: flex; gap: 8px; justify-content: space-between; padding: 11px 12px; }.diagnostic-map-item strong { font-size: 14px; }.diagnostic-map-item span { font-size: 14px; font-weight: 800; white-space: nowrap; }.diagnostic-map-item.is-good { border-left: 4px solid var(--teal); }.diagnostic-map-item.is-focus { border-left: 4px solid var(--sun); }
.answer-options { border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; margin: 18px 0 4px; min-width: 0; padding: 12px 14px; width: 100%; }
.answer-options legend { color: var(--muted); font-size: 14px; padding: 0 5px; }
.answer-options label { align-items: flex-start; background: var(--paper); border-radius: 10px; cursor: pointer; display: flex; font-size: 16px; font-weight: 650; gap: 12px; line-height: 1.45; margin: 0; padding: 14px 16px; }
.answer-options input[type="radio"], .answer-options input[type="checkbox"] { appearance: auto; background: initial; border: 0; border-radius: 0; box-shadow: none; flex: 0 0 20px; height: 20px; margin: 2px 0 0; max-width: none; min-height: 0; min-width: 0; padding: 0; width: 20px; }
.answer-options label > span { flex: 1 1 auto; min-width: 0; }
.answer-options .math-fraction { display: inline-flex; flex-direction: column; line-height: 1.05; text-align: center; vertical-align: middle; }.answer-options .math-fraction > span:first-child { border-bottom: 2px solid currentColor; padding: 0 4px 2px; }.answer-options .math-fraction > span:last-child { padding: 2px 4px 0; }.answer-options .math-native-root { color: inherit; display: inline-block; vertical-align: middle; }
.matching-options { border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 9px; margin: 18px 0 4px; min-width: 0; padding: 12px 14px; width: 100%; }
.matching-options legend { color: var(--muted); font-size: 14px; padding: 0 5px; }
.matching-options label { align-items: center; display: grid; gap: 10px; grid-template-columns: 26px minmax(0, 1fr); }
.matching-options select { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; font: inherit; min-height: 42px; padding: 0 10px; }
.result-good { color: var(--teal); }
.result-needs-work { color: var(--accent); }
.status-card { align-items: center; background: #f4f0ff; border: 1px solid #ded5ef; border-radius: 18px; color: #514a5b; display: flex; gap: 12px; line-height: 1.5; margin: 30px 0 38px; max-width: 780px; padding: 17px 20px; }
.status-card p { margin: 0; }
.status-dot { background: var(--violet); border-radius: 50%; box-shadow: 0 0 0 5px #e5def8; flex: 0 0 9px; height: 9px; width: 9px; }
.cabinet-page { max-width: 1000px; }
.cabinet-heading { max-width: 700px; padding: 68px 0 42px; }
.cabinet-intro { background: #fffaf0; border-left: 4px solid var(--sun); border-radius: 0 14px 14px 0; color: #4f4959; font-size: 17px; line-height: 1.55; margin: 22px 0 0; padding: 13px 18px; }
.cabinet-logout { color: var(--violet); font-size: 14px; font-weight: 800; }
.cabinet-preview { background: #f4f0ff; border: 1px solid #ded5ef; border-radius: 30px 17px 30px 17px; padding: clamp(24px, 5vw, 48px); }
.cabinet-preview-head { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; }
.cabinet-preview-head h2 { color: #362b4e; font-size: clamp(27px, 4vw, 40px); }
.preview-badge { background: #fffdf8; border: 1px solid #ded5ef; border-radius: 999px; color: var(--violet); font-size: 12px; font-weight: 850; padding: 9px 12px; white-space: nowrap; }
.cabinet-grid { display: grid; gap: 14px; grid-template-columns: 1.15fr .85fr .85fr; margin-top: 30px; }
.daily-route { background: var(--paper); border: 1px solid #d8d0e9; border-radius: 24px; box-shadow: 8px 9px 0 #e6ddf3; margin-top: 30px; overflow: hidden; padding: clamp(24px, 4vw, 38px); }
.daily-route-head { align-items: flex-start; display: flex; gap: 28px; justify-content: space-between; }
.daily-route-head h3 { color: var(--ink); font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; margin: 12px 0 8px; }
.daily-route-head p { color: var(--muted); line-height: 1.5; margin: 0; max-width: 620px; }
.route-time { align-items: center; background: #fff7dd; border: 1px solid #ead39a; border-radius: 18px; display: flex; flex: 0 0 auto; flex-direction: column; min-width: 88px; padding: 13px 16px; }
.route-time strong { color: #704f00; font-size: 25px; line-height: 1; }
.route-time span { color: #8b6d22; font-size: 12px; font-weight: 750; margin-top: 5px; text-transform: uppercase; }
.route-progress { background: #f7f4fc; border-radius: 16px; margin: 25px 0 18px; padding: 15px 17px; }
.route-progress-copy { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.route-progress-copy strong { font-size: 15px; }
.route-progress-copy span { color: var(--muted); font-size: 13px; }
.route-progress-track { background: #e2dced; border-radius: 999px; height: 8px; margin-top: 11px; overflow: hidden; }
.route-progress-track span { background: linear-gradient(90deg, var(--violet), #7763d9); border-radius: inherit; display: block; height: 100%; }
.route-steps { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.route-steps li { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; grid-template-columns: 36px minmax(0, 1fr) auto; min-height: 68px; padding: 11px 13px; }
.route-steps li.is-priority { background: #fff8e9; border-color: #e5c777; }
.route-step-number { align-items: center; background: #eee9f8; border-radius: 50%; color: var(--violet); display: flex; font-size: 14px; font-weight: 850; height: 34px; justify-content: center; width: 34px; }
.route-steps a { color: var(--ink); display: block; font-size: 15px; font-weight: 800; line-height: 1.25; text-decoration: none; }
.route-steps small { color: var(--muted); display: block; font-size: 12px; margin-top: 4px; }
.route-steps b { background: #f4df9f; border-radius: 999px; color: #6b5008; font-size: 10px; padding: 5px 7px; text-transform: uppercase; }
.daily-route-action { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; margin-top: 22px; padding-top: 22px; }
.daily-route-action .button { margin: 0; min-width: 210px; text-align: center; }
.daily-route-action span { color: var(--muted); font-size: 13px; }
.daily-route > .button { margin-top: 24px; }
.cabinet-support-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.cabinet-stat-card, .cabinet-advanced-card { min-height: 200px; }
.cabinet-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px 13px 22px 13px; min-height: 220px; padding: 24px; }
.cabinet-card-focus { background: #fff9e9; border-color: #ead39a; }
.cabinet-card-label { color: var(--accent); display: block; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.cabinet-card h3 { margin-top: 32px; }
.cabinet-card p { color: var(--muted); line-height: 1.52; }
.training-preview { color: var(--muted); line-height: 1.7; margin: 16px 0 0; padding-left: 22px; }
.training-preview a { color: var(--violet); font-weight: 750; }
.training-progress { color: var(--ink); font-size: 14px; font-weight: 750; margin: 18px 0 0 !important; }
.training-preview li { padding-left: 4px; }
.training-preview li span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .04em; margin-right: 6px; text-transform: uppercase; }
.training-preview li small { color: var(--muted); display: block; font-size: 12px; margin-top: 1px; }
.training-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.training-modes a { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; font-weight: 750; padding: 8px 12px; text-decoration: none; }
.training-modes a.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.task-choices { color: var(--ink); line-height: 1.6; margin: 18px 0; padding-left: 28px; }
.cabinet-card .button { margin-top: 10px; }
.cabinet-metric { color: var(--violet); display: block; font-size: 44px; letter-spacing: -.06em; margin: 28px 0 8px; }
.cabinet-empty { border-top: 1px solid var(--line); margin: 64px 0 90px; padding: 52px 0 0; }
.cabinet-empty h2 { font-size: clamp(28px, 4vw, 40px); }
.cabinet-empty p { color: var(--muted); line-height: 1.55; max-width: 650px; }
.cabinet-empty .button { margin-top: 12px; }
.auth-page { max-width: 720px; }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 30px 17px 30px 17px; box-shadow: 9px 10px 0 #eee0ce; margin: 56px 0 100px; padding: clamp(28px, 6vw, 58px); }
.auth-card h1 { font-size: clamp(34px, 6vw, 54px); }
.auth-lead { color: var(--muted); line-height: 1.55; max-width: 560px; }
.auth-error { background: #fff0eb; border: 1px solid #e9b8aa; border-radius: 12px; color: #9a3d2c; font-size: 14px; line-height: 1.45; padding: 12px 14px; }
.auth-form { display: grid; gap: 10px; margin-top: 30px; }
.auth-form label:not(.check-row) { font-size: 14px; font-weight: 800; margin-top: 8px; }
.auth-form input:not([type="checkbox"]) { background: #fffefa; border: 1px solid #cfc2b0; border-radius: 14px; color: var(--ink); font: inherit; font-size: 17px; outline: none; padding: 14px 16px; width: 100%; }
.auth-form input:not([type="checkbox"]):focus { border-color: var(--violet); box-shadow: 0 0 0 4px #ded8f5; }
.check-row { align-items: flex-start; color: var(--muted); display: flex; font-size: 13px; gap: 9px; line-height: 1.4; margin-top: 8px; }
.check-row input { accent-color: var(--violet); margin-top: 2px; }
.auth-form .button { border: 0; cursor: pointer; margin-top: 12px; }
.auth-footnote { border-left: 3px solid var(--sun); color: var(--muted); font-size: 13px; line-height: 1.5; margin: 28px 0 0; padding-left: 14px; }
.auth-switch { color: var(--muted); font-size: 14px; margin: 24px 0 0; }
.auth-switch a { color: var(--violet); font-weight: 800; }
.confirm-card .button { margin-top: 18px; }
.confirm-card form { margin: 0; }

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 1160px); }
  .site-header { min-height: 70px; }
  .site-header > nav { display: none; }
  .hero { display: block; min-height: auto; padding: 54px 0 66px; }
  h1 { font-size: clamp(40px, 12vw, 58px); }
  .lead { font-size: 18px; }
  .formula-card { margin: 54px 4px 0; transform: none; }
  .section { padding: 65px 0; }
  .steps, .topic-grid { grid-template-columns: 1fr; }
  .steps { margin-top: 30px; }
  .topic-grid { margin-top: 30px; }
  .topic-card { min-height: 0; }
  .breadcrumbs { padding-top: 20px; }
  .topic-hero { padding: 55px 0 25px; }
  .demo-heading { padding: 52px 0 28px; }
  .task-sheet { box-shadow: 5px 6px 0 #eee0ce; }
  .answer-controls { display: grid; grid-template-columns: 1fr; }
  .answer-controls input { max-width: none; }
  .cta-section { margin: 18px 0 65px; }
  .cabinet-heading { padding: 52px 0 28px; }
  .cabinet-preview-head { display: block; }
  .preview-badge { display: inline-block; margin-top: 8px; }
  .cabinet-grid { grid-template-columns: 1fr; }
  .daily-route-head, .daily-route-action { align-items: stretch; display: grid; }
  .route-time { align-items: baseline; flex-direction: row; gap: 6px; justify-content: flex-start; justify-self: start; min-width: 0; padding: 10px 14px; width: auto; }
  .route-steps { grid-template-columns: 1fr; }
  .daily-route-action .button { width: 100%; }
  .daily-route > .button { margin-top: 20px; }
  .cabinet-support-grid { grid-template-columns: 1fr; }
  .cabinet-card { min-height: 0; }
  .cabinet-empty { margin: 48px 0 65px; padding-top: 38px; }
  .auth-card { margin: 40px 0 65px; }
  .diagnostic-task { padding: 22px 18px; }
  .diagnostic-task h2 { font-size: clamp(24px, 7vw, 30px); }
  .math-expression { font-size: clamp(25px, 9vw, 36px); margin: 22px 0 28px; padding: 18px; }
  .diagnostic-text-task .task-content-box { padding: 22px 18px; }
  .diagnostic-text-task .task-content-box .task-choices { padding: 12px 14px 12px 38px; }
  .answer-options { padding: 10px; }
  .answer-options label { font-size: 15px; padding: 13px 12px; }
  .diagnostic-results li { align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
