:root {
  color-scheme: light;
  --surface: #fff;
  --field-bg: #fff;
  --field-border: #b8c6d9;
  --action: #245add;
  --action-text: #fff;
  --shorts-top: #f7faff;
  --shorts-bottom: #fff;
  --cta-start: #eff5fd;
  --cta-end: #fff;
  --arrow-border: #c9d8ed;
  --card-shadow: 0 12px 30px #1932540d;
  --arrow-shadow: 0 5px 18px #19325413;
  --focus: #b66b00;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4ff;
  --blue: #a6c1ff;
  --paper: #0e192b;
  --muted: #bbcade;
  --line: #38506c;
  --soft: #192b44;
  --surface: #17273e;
  --field-bg: #102038;
  --field-border: #637896;
  --action: #426fdb;
  --action-text: #fff;
  --shorts-top: #192c47;
  --shorts-bottom: #0e192b;
  --cta-start: #1d3656;
  --cta-end: #17273e;
  --arrow-border: #637896;
  --card-shadow: 0 12px 30px #02091466;
  --arrow-shadow: 0 5px 18px #02091466;
  --focus: #ffd16a;
}
nav button,
.pricing article,
.form-message,
.contact-unset,
.skip-link {
  background: var(--surface);
  color: var(--ink);
}
.primary { background: var(--action); color: var(--action-text); }
.field input,.field select,.field textarea {
  background: var(--field-bg);
  border-color: var(--field-border);
}
.portrait { background: var(--soft); }
.portrait figcaption { color: #193254; }
.mark { background: #193254; color: #ffd16a; }
html[data-theme="dark"] .mark { background: #29446b; border: 1px solid #637896; }
.preview { background: #193254; color: #fff; }
.brand img { display:block; width:300px; max-width:100%; height:auto; }
body[data-page="classes"] header { justify-content:flex-end; }
.classes-logo { margin:0 auto 24px; text-align:center; }
.classes-logo img { display:block; width:min(100%,640px); height:auto; margin:auto; }
.about-visual { position:relative; }
.about-visual>img:first-child { display:block; }
.about img.about-sticker {
  position:absolute;
  right:10px;
  bottom:-26px;
  width:126px;
  height:auto;
  border-radius:0;
  filter:drop-shadow(0 8px 12px #0e192b33);
}
.footer-logo { display:block; width:136px; height:auto; }
footer { align-items:center; gap:24px; }
.shorts-section { background: linear-gradient(180deg,var(--shorts-top),var(--shorts-bottom)); }
.shorts-arrow {
  background: var(--surface);
  border-color: var(--arrow-border);
  box-shadow: var(--arrow-shadow);
}
.short-card { background: var(--surface); box-shadow: var(--card-shadow); }
.method-cta {
  border-color: var(--line);
  background: linear-gradient(105deg,var(--cta-start),var(--cta-end));
}
:focus-visible { outline-color: var(--focus); }
#theme { display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; }
.theme-icon { font-size:18px; line-height:1; }
@media(max-width:800px) {
  header { gap:10px; flex-wrap:nowrap; }
  .brand { min-width:0; }
  .brand img { width:190px; }
  body[data-page="classes"] nav { margin-left:auto; }
  .classes-logo img { width:min(100%,460px); }
  nav { gap:8px; flex:none; }
  nav button { padding:7px 10px; }
  #theme { width:38px; height:38px; padding:0; }
  .theme-label { display:none; }
}
@media(max-width:380px) {
  header { padding:16px 12px; gap:7px; }
  .brand { font-size:16px; gap:6px; }
  .brand img { width:170px; }
  .mark { width:38px; height:38px; font-size:25px; }
  nav { gap:6px; }
  nav button { font-size:13px; padding:6px 8px; }
  #theme { width:36px; height:36px; padding:0; }
}
