:root {
  color-scheme: light;
  --paper: #f2eee4;
  --ink: #242a24;
  --muted: #56594e;
  --accent: #9b3c2a;
  --sand: #f4ddac;
  --dark: #26352e;
  --line: #d3cbb8;
  --green: #2b5143;
  font: 100%/1.55 "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
a, button, select, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4b9d56; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.03; letter-spacing: -.055em; }
h2 { font-size: clamp(2.45rem, 5.2vw, 4.8rem); }
h3 { font-size: clamp(2rem, 4vw, 3.3rem); }
.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.top { color: var(--ink); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { font-size: 1.15rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.mark { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border: 2px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper); background: var(--accent); }
nav { display: flex; gap: clamp(12px, 2.7vw, 36px); flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-size: .96rem; }
nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
#progress { border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; color: var(--green); font-size: .88rem; white-space: nowrap; }
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(26px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 7vw, 110px); }
.hero h1 { font-size: clamp(3.7rem, 6.8vw, 7.2rem); margin: 14px 0 23px; line-height: .9; }
.hero h1 span { color: var(--accent); }
.eyebrow { color: var(--green); font: 650 .88rem/1.5 "Consolas", monospace; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 13px; }
.hero .eyebrow { color: var(--accent); }
.hero-text { color: var(--muted); max-width: 440px; font-size: clamp(1rem, 1.45vw, 1.16rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 29px; }
.hero-secondary { color: var(--green); text-underline-offset: 5px; font-weight: 700; padding-block: 8px; }
.hero-secondary:hover { color: var(--accent); }
.hero-facts { color: var(--muted); margin-top: 23px; font-size: .91rem; }
.button, .chip-row button, .quiet { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: 9px 18px; border: 1px solid transparent; border-radius: 4px; background: var(--accent); color: white; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: #7e3123; }
.button.small { background: var(--green); }
.button.small:hover { background: #254538; }
.contact-sheet { padding: 10px; background: #28352d; box-shadow: 0 16px 34px -22px #29332990; }
.plate-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.plate-pair div { position: relative; min-width: 0; }
.plate-pair img { display: block; width: 100%; height: clamp(250px, 42vw, 470px); object-fit: cover; object-position: 43% 47%; }
.plate-pair span { position: absolute; bottom: 9px; left: 9px; padding: 3px 7px; font: 700 .87rem/1.4 Consolas, monospace; background: var(--sand); color: #302820; }
.contact-sheet figcaption { padding: 10px 2px 0; border: 0; color: #eee9d8; font-size: .86rem; }
.block { padding-block: clamp(57px, 7vw, 107px); }
.lead { max-width: 690px; font-size: clamp(1.07rem, 1.8vw, 1.29rem); margin-top: 18px; color: var(--muted); }
.mission { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; align-items: center; }
.route { margin: 0; padding: 12px clamp(20px, 4vw, 39px) 12px clamp(41px, 5vw, 64px); background: #eef2e6; border: 1px solid #d3ddce; border-radius: 16px; }
.route li { border-bottom: 1px solid var(--line); padding: 12px 0 13px 8px; }
.route li:last-child { border-bottom: 0; }
.route li::marker { color: var(--green); font-family: Consolas, monospace; }
.route strong, .route span { display: block; }
.route span, figcaption { color: var(--muted); font-size: .92rem; }
.roles-band { background: #eae7db; border-block: 1px solid var(--line); }
.role-nav, .source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.role-nav a, .source-grid a { display: grid; align-content: start; gap: 9px; padding: 20px; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; background: #f9f7ef; }
.role-nav a { border-top: 3px solid #9b3c2a; }
.role-nav a:nth-child(2) { border-top-color: #526c54; }
.role-nav a:nth-child(3) { border-top-color: #98724a; }
.role-nav a:hover, .source-grid a:hover { border-color: #9a6b53; background: #f4ecda; }
.role-nav span, .source-grid small { color: var(--green); font: 600 .87rem/1.4 Consolas, monospace; }
.role-nav strong, .source-grid strong { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.2; }
.source-grid span { color: var(--muted); }
.station { background: #f9f7ef; border: 1px solid var(--line); border-radius: 4px; padding: clamp(19px, 4.5vw, 55px); margin-top: 24px; }
.station-head { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 26px; align-items: start; }
.station-head ol { margin: 0 0 8px; padding-left: 1.3em; }
.station-head li + li { margin-top: 6px; }
.source-link { font-weight: 700; color: var(--green); text-underline-offset: 3px; }
.comparison-panel { max-width: 690px; margin: 0 auto 22px; overflow: hidden; border: 1px solid #50665b; border-radius: 4px; background: #24362f; color: #f3f7ee; }
.compare { position: relative; overflow: hidden; aspect-ratio: 1; background: #24362f; --split: 50%; }
.compare img { display: block; width: 100%; }
.compare .after { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--split)); }
.divider { position: absolute; inset: 0 auto 0 var(--split); width: 2px; background: #fff; }
.date { position: absolute; top: 12px; color: #fff; background: #101817; padding: 4px 9px; border-radius: 4px; font: 600 .84rem/1.5 Consolas, monospace; }
.date-old { left: 12px; } .date-new { right: 12px; }
.range { display: grid; grid-template-columns: auto 1fr 45px; gap: 12px; align-items: center; padding: 12px 16px; }
.range input { width: 100%; min-width: 0; accent-color: var(--sand); }
.map-tools { display: flex; flex-wrap: wrap; gap: 9px 14px; align-items: center; padding: 0 16px 12px; font-size: .92rem; }
.map-tools .quiet { min-height: 37px; padding: 5px 10px; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; padding: 4px 6px; font: 700 clamp(.72rem, 2.4vw, .92rem)/1.2 "Segoe UI", Arial, sans-serif; color: #fff; background: #2c3429; border: 1px solid #ead7a4; }
.map-label.north { left: 47%; top: 13%; }
.map-label.west { left: 10%; top: 43%; }
.map-label.east { left: 43%; top: 56%; }
figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid #50665b; padding: 10px 16px; color: #d4e2d7; }
.comparison-panel .source-link { color: var(--sand); }
.source-band { background: var(--paper); color: var(--ink); }
.source-band .source-grid a { border-left: 3px solid var(--accent); }
.source-band .source-grid small { color: var(--accent); }
.exercise { padding: clamp(15px, 3vw, 30px); border: 1px solid #d2ddd0; border-radius: 11px; background: #edf2e9; }
.learning-app { margin-bottom: 22px; border: 1px solid #d2ddd0; border-radius: 11px; overflow: hidden; background: #edf2e9; }
.learning-app-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 20px; padding: clamp(15px, 3vw, 30px); }
.learning-app-header .eyebrow { margin-bottom: 4px; }
.learning-app-header h4 { margin: 0 0 5px; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -.03em; }
.learning-app iframe { display: block; width: 100%; height: 500px; border: 0; border-top: 1px solid #d2ddd0; background: white; }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 760; font-size: 1.15rem; margin: 0 0 12px; padding: 0; }
.choice { display: flex; min-height: 38px; gap: 8px; align-items: center; }
.choice input { accent-color: #28543a; width: 17px; height: 17px; flex: none; }
.action-row, .chip-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.chip-row button, .quiet { color: var(--ink); background: #fff; border-color: #b6c6b8; }
.chip-row button:hover, .quiet:hover { background: #dfead9; }
.chip-row button:disabled { opacity: .55; cursor: default; }
#sequence { min-height: 33px; padding-left: 26px; margin: 0 0 12px; }
#sequence:empty::after { content: "Здесь появятся выбранные карточки"; color: var(--muted); }
.feedback { margin: 8px 0 0; font-weight: 650; }
.feedback[data-result="good"] { color: #245735; }
.feedback[data-result="retry"] { color: #803a23; }
.classify { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: center; margin-bottom: 10px; }
select, textarea { width: 100%; min-width: 0; border: 1px solid #819586; border-radius: 6px; padding: 9px; color: var(--ink); background: white; font: inherit; }
.brief-band { color: #f3f7ee; background: var(--dark); }
.brief-band .eyebrow, .brief-band .feedback { color: var(--sand); }
.brief-band .button { background: var(--sand); color: var(--ink); }
.brief-band .button:hover { background: #ffecc4; }
.brief-band .lead, .rubric dd, .rubric p { color: #d9e6db; }
.brief-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 25px; }
.brief-form label { display: grid; gap: 6px; font-weight: 650; }
textarea { font-weight: 400; resize: vertical; }
.brief-form .action-row { grid-column: 1 / -1; }
.rubric { border-top: 1px solid #627b6c; padding-top: 23px; margin-top: 47px; }
.rubric h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-bottom: 10px; }
.rubric dl { display: grid; grid-template-columns: minmax(130px, .7fr) 3fr; gap: 13px 20px; }
.rubric dt { font-weight: 740; }
.rubric dd { margin: 0; }
footer { border-top: 1px solid var(--line); color: var(--ink); padding-block: 20px; }
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { flex-wrap: wrap; gap: 9px; padding-block: 12px; }
  nav { order: 3; flex-basis: 100%; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 40px 36px; }
  .hero h1 br { display: none; }
  .plate-pair img { height: clamp(210px, 52vw, 375px); }
  .mission, .station-head { grid-template-columns: 1fr; gap: 19px; }
  .role-nav, .source-grid { grid-template-columns: 1fr; gap: 7px; }
  .role-nav a { grid-template-columns: 1fr 1fr; align-items: center; padding: 13px; }
  .classify, .brief-form { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr 45px; }
  .range label { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
  .hero h1 { font-size: clamp(3.35rem, 14vw, 4.2rem); }
  .learning-app iframe { height: 520px; }
  .rubric dl { grid-template-columns: 1fr; gap: 3px; }
  .rubric dd + dt { margin-top: 10px; }
}
