:root {
  --ink: #0b1324;
  --ink-2: #17233b;
  --paper: #f7f5ef;
  --white: #fff;
  --muted: #657187;
  --line: #dfe5ed;
  --blue: #2493ef;
  --blue-dark: #147ecb;
  --blue-light: #dff3ff;
  --gold: #d2a631;
  --success: #4c9a67;
  --error: #c94b4b;
  --shadow: 0 22px 70px rgba(12,29,57,.13);
  --radius: 26px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.section-shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(247,245,239,.92); border-bottom: 1px solid rgba(11,19,36,.08); backdrop-filter: blur(18px); }
.site-header { height: 74px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; flex: none; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(11,19,36,.13); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.site-header nav { display: flex; align-items: center; gap: 22px; color: #34405a; font-size: 14px; font-weight: 750; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; cursor: pointer; border: 1px solid transparent; border-radius: 14px; font-weight: 850; text-decoration: none; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(36,147,239,.3); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 28px rgba(36,147,239,.28); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: #dce5ef; }
.button-danger { color: var(--error); background: #fff; border-color: #efc5c5; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.header-cta { min-height: 42px; font-size: 13px; }
.hero { padding: 72px max(20px, calc((100% - var(--max))/2)) 76px; background: radial-gradient(circle at 13% 5%, rgba(103,194,255,.22), transparent 25%), radial-gradient(circle at 91% 9%, rgba(210,166,49,.15), transparent 22%), linear-gradient(#fbfbf8,#f7f5ef); }
.hero-content { max-width: 930px; }
.eyebrow { margin: 0 0 13px; color: #1979c7; letter-spacing: .11em; text-transform: uppercase; font-size: 12px; font-weight: 850; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 22px; letter-spacing: -.05em; font-size: clamp(43px,6vw,72px); line-height: 1.02; }
h1 span { color: var(--blue); }
.hero-lead { max-width: 740px; margin-bottom: 0; color: #35435b; font-size: clamp(17px,2vw,20px); }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 25px 0 0; padding: 0; list-style: none; color: #33415a; font-size: 14px; font-weight: 800; }
.hero-benefits li { display: flex; align-items: center; gap: 9px; }
.hero-benefits li::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: #fff; background: var(--success); border-radius: 50%; font-size: 12px; }
.hero-card { min-height: 205px; display: grid; place-content: center; padding: 30px; border: 1px solid rgba(11,19,36,.09); border-radius: 28px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); }
.hero-card strong { font-size: 24px; }
.hero-card p { margin: 8px 0 0; color: var(--muted); }
.trainer-shell { margin: 0 auto 70px; padding: 30px; border: 1px solid #e1e7ef; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.trainer-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.trainer-heading h2 { margin: 0; letter-spacing: -.03em; font-size: clamp(28px,4vw,42px); }
.session-badge { padding: 8px 12px; color: var(--blue-dark); background: var(--blue-light); border-radius: 99px; font-size: 12px; font-weight: 850; }
.mode-tabs { display: grid; grid-template-columns: repeat(var(--tab-count,2),1fr); gap: 8px; margin-bottom: 18px; }
.mode-tab { min-height: 66px; padding: 10px 13px; cursor: pointer; text-align: left; color: var(--muted); background: #f7f9fb; border: 1px solid var(--line); border-radius: 14px; }
.mode-tab strong, .mode-tab small { display: block; }
.mode-tab small { margin-top: 3px; font-size: 10px; }
.mode-tab.selected { color: var(--ink); background: #eef8ff; border-color: #91cdf2; box-shadow: inset 0 0 0 1px rgba(36,147,239,.08); }
.settings-panel { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.settings-panel > summary { min-height: 60px; padding: 11px 50px 11px 17px; cursor: pointer; list-style: none; position: relative; display: flex; flex-direction: column; justify-content: center; }
.settings-panel > summary::-webkit-details-marker { display: none; }
.settings-panel > summary::after { content: "+"; position: absolute; right: 18px; top: 10px; color: var(--blue); font-size: 27px; }
.settings-panel[open] > summary::after { content: "−"; }
.settings-panel > summary span { font-size: 14px; font-weight: 900; }
.settings-panel > summary small { color: var(--muted); font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #fbfcfe; border-top: 1px solid var(--line); }
.setting-group { min-width: 0; margin: 0; padding: 18px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setting-group:nth-child(3n) { border-right: 0; }
.setting-group legend { float: left; width: 100%; margin-bottom: 11px; font-size: 13px; font-weight: 850; }
.setting-group label { display: block; color: var(--muted); font-size: 12px; }
.setting-group select, .setting-group input[type="number"] { width: 100%; min-height: 42px; margin-top: 6px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid #ccd6e2; border-radius: 10px; }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 36px; padding: 0 10px; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.chip.selected { color: #fff; background: var(--blue); border-color: var(--blue); }
.switch-line { min-height: 38px; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.switch-line input { width: 18px; height: 18px; accent-color: var(--blue); }
.count-control { clear: both; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.count-control .custom-count { grid-column: 1/-1; }
.count-control .unlimited { grid-column: 1/-1; }
.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 8px; }
.notice { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.notice.good { color: var(--success); font-weight: 800; }
.notice.error { color: var(--error); }
.color-palette { clear: both; display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; margin: 10px 0; }
.color-palette label { min-width: 0; text-align: center; font-size: 9px; }
.color-palette span { display: block; overflow: hidden; text-overflow: ellipsis; }
.color-palette input[type="color"] { width: 100%; min-height: 30px; padding: 2px; cursor: pointer; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.status-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.status-row > div { padding: 12px 15px; background: #fff; }
.status-row span, .status-row strong { display: block; }
.status-row span { color: var(--muted); font-size: 10px; }
.status-row strong { margin-top: 2px; font-size: 18px; }
.task-card { min-height: 145px; display: grid; place-content: center; text-align: center; padding: 22px; border-radius: 18px; background: linear-gradient(145deg,#f5faff,#eef5fb); border: 1px solid #d9e8f4; }
.task-card .task-hint { margin: 0; color: var(--muted); font-size: 12px; }
.task-card .task-value { margin: 7px 0 0; font-size: clamp(30px,5vw,54px); line-height: 1.1; }
.task-card .direction { display: inline-block; margin-left: 10px; color: var(--blue); }
.feedback { min-height: 25px; margin: 10px 0 0; font-weight: 850; }
.feedback.correct { color: var(--success); }
.feedback.wrong { color: var(--error); }
.answer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.answer-grid button { min-height: 43px; min-width: 58px; cursor: pointer; background: #fff; border: 1px solid #ccd8e5; border-radius: 11px; font-weight: 800; }
.answer-grid button:hover { color: var(--blue-dark); border-color: var(--blue); }
.trainer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 18px 0 0; }
.keyboard-scroll { width: 100%; padding: 30px 3px 24px; overflow-x: auto; scrollbar-width: thin; }
.piano { --white-width: 54px; height: 276px; display: flex; position: relative; width: max-content; min-width: 100%; padding-bottom: 12px; perspective: 700px; }
.piano-key { position: relative; padding: 0; cursor: pointer; transform-origin: 50% 0; transition: 80ms ease; }
.piano-key.white { width: var(--white-width); min-width: var(--white-width); height: 258px; background: linear-gradient(90deg,#fdfefe,#eef2f5 75%,#dce2e8); border: 1px solid #7f8a9b; border-top-color: #cbd3dc; border-radius: 0 0 6px 6px; box-shadow: 0 8px #bcc6d0, 0 13px 9px rgba(0,0,0,.25); }
.piano-key.black { z-index: 4; position: absolute; top: 0; width: 33px; height: 170px; color: #fff; background: linear-gradient(90deg,#030812,#293750 58%,#080e1a); border: 1px solid #01040a; border-radius: 0 0 5px 5px; box-shadow: 0 8px #030711, 0 12px 8px rgba(0,0,0,.45); transform: translateX(-50%); }
.piano-key:active, .piano-key.pressed { transform: translateY(9px); box-shadow: 0 2px rgba(0,0,0,.3); }
.piano-key.black:active, .piano-key.black.pressed { transform: translate(-50%,9px); }
.piano-key.target, .piano-key.correct { background: #86d3a0 !important; }
.piano-key.wrong { background: #e87373 !important; }
.piano-key.inactive { color: transparent !important; background: transparent !important; border: 2px dashed #aeb9c8 !important; box-shadow: none !important; opacity: .6; }
.piano-key.black.inactive { background: rgba(247,245,239,.12) !important; border-color: #768397 !important; }
.piano-key .key-label { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #58657a; font-size: 10px; font-weight: 850; }
.piano-key.black .key-label { color: #fff; bottom: 10px; }
.piano-key.inactive .key-label { display: none; }
.octave-caption { display: flex; justify-content: space-around; color: var(--muted); font-size: 10px; font-weight: 750; }
.result-panel { margin-top: 26px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fbfcfe; }
.result-panel[hidden], .share-modal[hidden] { display: none; }
.result-score { font-size: 42px; font-weight: 900; color: var(--blue-dark); }
.result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 18px 0; }
.result-grid > div { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.result-grid strong, .result-grid span { display: block; }
.result-grid span { color: var(--muted); font-size: 10px; }
.mistakes-list { display: grid; gap: 7px; margin: 16px 0; }
.mistakes-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.stats-section { margin-bottom: 75px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stats-grid > div { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { font-size: 28px; }
.stats-grid span { color: var(--muted); font-size: 11px; }
.info-section { margin-bottom: 74px; }
.info-section h2 { font-size: clamp(30px,4vw,50px); letter-spacing: -.04em; }
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.info-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.info-grid p { margin-bottom: 0; color: var(--muted); }
.trainers-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 36px auto 78px; }
.trainer-tile { display: flex; flex-direction: column; min-height: 350px; padding: 28px; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(11,19,36,.07); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.trainer-tile:hover { transform: translateY(-5px); border-color: #acd8f5; box-shadow: 0 22px 52px rgba(11,19,36,.13); }
.trainer-tile:focus-visible { outline: 3px solid rgba(36,147,239,.3); outline-offset: 4px; transform: translateY(-3px); }
.trainer-tile .tile-icon { width: 100%; height: 82px; min-height: 82px; flex: 0 0 82px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 20px; color: inherit; background: transparent; border-radius: 0; overflow: visible; }
.trainer-tile .tile-icon img { display: block; width: auto; height: 100%; max-width: 112px; max-height: 82px; object-fit: contain; }
.trainer-tile h2 { margin-bottom: 10px; }
.tile-benefits { flex: 1; margin: 2px 0 24px; padding: 0; list-style: none; color: var(--muted); }
.tile-benefits li { position: relative; padding-left: 20px; }
.tile-benefits li + li { margin-top: 8px; }
.tile-benefits li::before { content: "•"; position: absolute; left: 2px; top: -.08em; color: var(--blue); font-size: 22px; line-height: 1; }
.trainer-tile .button { width: 100%; margin-top: auto; pointer-events: none; }
.trainer-tile:hover .button { background: var(--blue-dark); box-shadow: 0 16px 34px rgba(36,147,239,.34); }
.trainer-tile.is-development { grid-column: span 3; min-height: 210px; background: rgba(255,255,255,.48); border-style: dashed; box-shadow: none; }
.trainer-tile.is-development .tile-icon { width: 52px; height: 52px; color: #6c778b; background: #e8edf3; border-radius: 16px; }
.development-label { align-self: flex-start; flex: 0 !important; margin: auto 0 0; padding: 8px 12px; color: #59657a !important; background: #e8edf3; border-radius: 999px; font-size: 12px; font-weight: 850; }
.lesson-contact { margin: 0 auto 78px; overflow: hidden; color: #fff; background: linear-gradient(135deg,#0b1324,#162a4d); border-radius: 36px; box-shadow: var(--shadow); }
.teacher-photo { position: relative; margin: 0; background: #080f1e; }
.teacher-photo img { width: 100%; height: auto; }
.teacher-photo figcaption { position: absolute; left: clamp(18px,3vw,34px); bottom: clamp(18px,3vw,32px); display: grid; gap: 2px; max-width: calc(100% - 36px); padding: 13px 17px; color: #fff; background: rgba(5,12,25,.75); border: 1px solid rgba(255,255,255,.18); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(10px); }
.teacher-photo figcaption strong { font-size: clamp(17px,2vw,22px); line-height: 1.2; }
.teacher-photo figcaption span { color: #d4e0ef; font-size: 13px; }
.contact-inner { position: relative; padding: clamp(30px,5vw,54px); }
.contact-inner::after { content: ""; position: absolute; z-index: 0; right: -90px; bottom: -130px; width: 430px; height: 430px; background: rgba(36,147,239,.23); border-radius: 50%; filter: blur(45px); pointer-events: none; }
.contact-intro, .contact-form { position: relative; z-index: 1; width: min(820px,100%); margin-inline: auto; }
.contact-intro { margin-bottom: 25px; text-align: center; }
.contact-intro .eyebrow { color: #45a9fb; }
.contact-intro h2 { margin-bottom: 13px; font-size: clamp(31px,4.5vw,52px); line-height: 1.06; letter-spacing: -.04em; }
.contact-intro > p:last-child { max-width: 700px; margin: 0 auto; color: #c5d1e2; font-size: clamp(16px,2vw,19px); }
.contact-form { display: grid; gap: 15px; padding: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 24px; backdrop-filter: blur(12px); }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: start; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: #f4f7fb; font-size: 13px; font-weight: 850; }
.form-field small { color: #aebbd0; font-size: 12px; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.2); border-radius: 13px; outline: none; font: inherit; font-size: 15px; }
.form-field input { min-height: 52px; }
.form-field textarea { min-height: 88px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: #6fc4ff; box-shadow: 0 0 0 3px rgba(36,147,239,.2); }
.form-field .muted { color: #aebbd0; }
.form-privacy-note { margin: 0; color: #c5d1e2; font-size: 12px; }
.form-privacy-note a, .consent a { color: #83d0ff; }
.age-fields { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 15px; color: #c5d1e2; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.age-fields legend { padding: 0 6px; color: #f4f7fb; font-size: 13px; font-weight: 850; }
.age-fields label, .parent-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; }
.age-fields input, .parent-check input { width: 17px; height: 17px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.parent-check { color: #c5d1e2; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: #c5d1e2; font-size: 12px; line-height: 1.45; }
.consent input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.contact-form > .button { width: 100%; border: 0; }
.contact-form > .button[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-status { min-height: 22px; margin: 0; color: #dce7f5; font-size: 13px; }
.form-status.is-error { color: #ffc1c1; }
.form-status.is-success { color: #b9f6cf; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-fallback { padding: 18px; background: rgba(6,13,26,.56); border: 1px solid rgba(255,255,255,.24); border-radius: 18px; }
.contact-fallback[hidden] { display: none; }
.contact-fallback strong { display: block; font-size: 17px; }
.contact-fallback p { margin: 5px 0 14px; color: #c5d1e2; font-size: 13px; }
.fallback-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.fallback-actions .button { min-height: 48px; padding-inline: 12px; text-align: center; font-size: 13px; }
.site-footer { padding: 25px 0 55px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.footer-links a { color: var(--blue-dark); }
.share-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(3,8,18,.78); backdrop-filter: blur(6px); }
.share-dialog { width: min(560px,100%); max-height: calc(100vh - 36px); overflow: auto; padding: 24px; border-radius: 22px; background: #fff; }
.share-dialog canvas { width: 100%; height: auto; display: block; margin: 14px 0; border-radius: 16px; }
.share-actions { display: flex; gap: 8px; }
.stave-wrap { margin: 18px auto; max-width: 780px; }
.stave-wrap svg { width: 100%; height: auto; display: block; background: #fffdf8; border: 1px solid #e1ded7; border-radius: 16px; }
.staff-tap { stroke: transparent; stroke-width: 10; cursor: pointer; }
.staff-tap:hover { stroke: rgba(36,147,239,.12); }
.rhythm-stage { margin-top: 18px; padding: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fffdf8; }
.rhythm-line { min-width: 720px; display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; align-items: center; min-height: 100px; border-top: 2px solid #657187; position: relative; }
.rhythm-cell { min-height: 74px; display: grid; place-items: center; position: relative; border-radius: 8px; font-size: 35px; }
.rhythm-cell small { display: block; max-width: 90px; color: var(--muted); text-align: center; font-size: 9px; line-height: 1.15; }
.rhythm-cell.current { background: var(--blue-light); box-shadow: inset 0 0 0 2px var(--blue); }
.rhythm-cell.hit { color: var(--success); }
.rhythm-cell.miss { color: var(--error); }
.tempo-light { width: 16px; height: 16px; margin: 10px auto; border-radius: 50%; background: #cbd3dc; }
.tempo-light.on { background: var(--gold); box-shadow: 0 0 18px rgba(210,166,49,.8); }
@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-card { min-height: 150px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .setting-group:nth-child(3n) { border-right: 1px solid var(--line); }
  .setting-group:nth-child(2n) { border-right: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .trainers-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trainer-tile { min-height: 330px; }
}
@media (max-width: 680px) {
  .section-shell, .site-header { width: min(100% - 24px,var(--max)); }
  .site-header { height: 66px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand small, .header-cta { display: none; }
  .hero { padding: 42px 12px 46px; }
  h1 { font-size: clamp(42px,14vw,62px); }
  .trainer-shell { width: 100%; padding: 22px 13px; border-inline: 0; border-radius: 0; }
  .trainer-heading { align-items: flex-start; flex-direction: column; }
  .mode-tabs { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .setting-group, .setting-group:nth-child(2n), .setting-group:nth-child(3n) { border-right: 0; }
  .status-row { grid-template-columns: 1fr 1fr; }
  .status-row > div:last-child { grid-column: 1/-1; }
  .keyboard-scroll { width: calc(100% + 26px); margin-left: -13px; padding-inline: 13px; }
  .result-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .trainers-list { grid-template-columns: 1fr; }
  .trainer-tile { width: 100%; min-height: 0; padding: 23px; }
  .hero-benefits { display: grid; gap: 10px; }
  .lesson-contact { width: min(100% - 24px,var(--max)); border-radius: 26px; }
  .contact-inner { padding: 32px 20px; }
  .contact-form { padding: 18px; }
  .form-row, .fallback-actions { grid-template-columns: 1fr; }
  .teacher-photo figcaption { padding: 10px 13px; }
  .footer-row { display: block; }
  .share-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
