:root {
  color-scheme: dark;
  --color-bg: #0b0b0f;
  --color-surface: #18181f;
  --color-surface-2: #1f1f28;
  --color-surface-3: #272733;
  --color-border: #2b2b38;
  --color-text: #f4f4f5;
  --color-text-muted: #adadb6;
  --color-text-soft: #81818b;
  --color-primary: #6c5cff;
  --color-primary-hover: #7c6dff;
  --color-primary-soft: rgba(108, 92, 255, .15);
  --color-primary-border: rgba(108, 92, 255, .38);
  --color-success: #b8ff3d;
  --color-warning: #ffb454;
  --color-danger: #ff7088;
  --radius-button: 14px;
  --radius-card: 18px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, .22);
  --shadow-primary: 0 12px 30px rgba(108, 92, 255, .24);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--color-bg); scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% -12%, rgba(108, 92, 255, .18), transparent 32rem),
    radial-gradient(circle at -12% 76%, rgba(184, 255, 61, .035), transparent 25rem);
}

.app-shell {
  position: relative;
  width: min(100% - 32px, 860px);
  min-height: 100dvh;
  margin: auto;
  padding: 26px 0 64px;
  outline: none;
}

.site-header { display: flex; align-items: center; margin-bottom: 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.brand strong { font-weight: 850; }
a.back-link, a.back-link:visited { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 5px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0; text-decoration: none; text-decoration-line: none; }
a.back-link .button-arrow { font-size: 26px; font-weight: 700; line-height: 1; }
a.back-link:hover, a.back-link:focus-visible, a.back-link:active { color: #fff; opacity: .72; text-decoration: none; }

.hero { max-width: 800px; margin-bottom: clamp(22px, 4vw, 36px); }
.section-kicker, .card-label { margin: 0; color: #a99fff; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 10px 0 16px; font-size: clamp(36px, 6vw, 54px); font-weight: 700; line-height: .99; letter-spacing: -.065em; }
.lead { max-width: 700px; margin: 0; color: var(--color-text-muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.55; }

.wizard-progress { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; color: var(--color-text-muted); font-size: 13px; }
.wizard-progress strong { color: var(--color-text); font-weight: 800; }
.progress-dots { display: flex; align-items: center; gap: 6px; }
.progress-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-surface-3); transition: background .16s ease, transform .16s ease; }
.progress-dots span.is-complete { background: var(--color-success); }
.progress-dots span.is-active { background: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); transform: scale(1.08); }

.calculator-form { display: grid; gap: 14px; min-width: 0; }
.step-panel, .result-panel { min-width: 0; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.step-panel.is-active { animation: panel-in .22s ease-out both; }
.step-heading { max-width: 680px; margin-bottom: 28px; }
.step-panel[data-step-panel="1"] .step-heading { margin-bottom: 22px; }
.step-panel[data-step-panel="1"] .step-heading h2 { margin-top: 0; }
.step-heading h2 { margin: 5px 0 8px; font-size: clamp(27px, 5vw, 36px); line-height: 1.08; letter-spacing: -.05em; }
.step-heading > p:last-child { margin: 0; color: var(--color-text-muted); font-size: 16px; line-height: 1.5; }
.section-kicker { font-size: 10px; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-grid > .choice-fieldset legend { margin-bottom: 7px; }
.profile-grid .choice-content { min-height: 54px; align-items: center; justify-content: center; text-align: center; }
.profile-grid .choice-dot { margin-top: 0; transform: translateX(-10px); }
.choice-fieldset + .choice-fieldset { margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--color-border); }
.step-panel[data-step-panel="2"] .choice-fieldset + .choice-fieldset { margin-top: 22px; padding-top: 0; border-top: 0; }
.step-panel[data-step-panel="2"] .choice-fieldset legend { margin-bottom: 12px; }
legend, .field > span:first-child, .field-label { display: block; margin-bottom: 9px; color: var(--color-text); font-size: 14px; font-weight: 700; }
.legend-hint { max-width: 700px; margin: -1px 0 14px; color: var(--color-text-soft); font-size: 13px; line-height: 1.45; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; display: flex; min-width: 0; cursor: pointer; }
.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-content { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 66px; padding: 14px 13px; border: 1px solid var(--color-border); border-radius: 13px; background: var(--color-surface-2); transition: border-color .14s ease, background .14s ease, transform .14s ease; }
.choice-card:hover .choice-content { border-color: var(--color-primary-border); background: #22222c; transform: translateY(-1px); }
.choice-card input:checked + .choice-content { border-color: var(--color-primary); background: var(--color-primary-soft); box-shadow: 0 0 0 1px var(--color-primary); }
.choice-card input:focus-visible + .choice-content { outline: 3px solid rgba(108, 92, 255, .48); outline-offset: 3px; }
.choice-dot { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; border: 1px solid #626276; border-radius: 50%; background: transparent; }
.choice-card input:checked + .choice-content .choice-dot { border: 4px solid var(--color-primary); background: var(--color-text); }
.choice-content strong { display: block; color: var(--color-text); font-size: 14px; line-height: 1.3; }
.choice-content small { display: block; margin-top: 5px; color: var(--color-text-soft); font-size: 13px; line-height: 1.4; }
.activity-grid { align-items: stretch; }
.activity-grid .choice-content { min-height: 90px; align-items: center; }
.training-grid .choice-content { min-height: 58px; align-items: center; }
.training-grid .choice-dot { margin-top: 0; }
.goal-grid .choice-content { align-items: center; }
.goal-grid .choice-dot { margin-top: 0; }
.choice-card--wide { grid-column: 1 / -1; }
.field-error { min-height: 0; margin: 6px 0 0; color: var(--color-danger); font-size: 12px; line-height: 1.35; }

.input-with-suffix { display: flex; align-items: center; min-height: 49px; padding: 0 13px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-2); transition: border-color .14s ease, box-shadow .14s ease; }
.input-with-suffix:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.input-with-suffix input { width: 100%; min-width: 0; height: 45px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font-size: 16px; font-weight: 650; }
.input-with-suffix > span { flex: 0 0 auto; color: var(--color-text-soft); font-size: 13px; }
.field > small { display: block; margin-top: 5px; color: var(--color-text-soft); font-size: 12px; line-height: 1.35; }
.field-inline-hint { display: inline !important; margin-left: 3px; color: var(--color-text-soft); font-size: 12px; font-weight: 500; white-space: nowrap; }
.field input[aria-invalid="true"], .field:has(input[aria-invalid="true"]) .input-with-suffix { border-color: var(--color-danger); }

.step-button { margin-top: 28px; }
.step-panel[data-step-panel="1"] .step-button { margin-top: 20px; }
.step-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-button); cursor: pointer; font-size: 15px; font-weight: 800; transition: background .14s ease, border-color .14s ease, transform .14s ease, box-shadow .14s ease; }
.button:focus-visible, .segmented-control button:focus-visible, summary:focus-visible { outline: 3px solid rgba(108, 92, 255, .48); outline-offset: 3px; }
.button.primary { width: 100%; background: var(--color-primary); color: white; box-shadow: var(--shadow-primary); }
.button.primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.button.secondary { background: var(--color-surface-2); border-color: var(--color-border); color: var(--color-text); }
.button.secondary:hover { border-color: var(--color-primary-border); background: var(--color-surface-3); }
.text-button { min-height: 44px; padding: 0 5px; background: transparent; color: #c9c4ff; }
.text-button:hover { color: white; }
.button-arrow { color: #d7d3ff; font-size: 20px; line-height: 0; }

.result-panel { animation: panel-in .24s ease-out both; }
.result-intro { margin-bottom: 18px; }
.result-intro h2 { margin: 5px 0 7px; font-size: clamp(29px, 5vw, 42px); line-height: 1.05; letter-spacing: -.055em; }
.result-intro > p:last-child { max-width: 650px; margin: 0; color: var(--color-text-muted); font-size: 16px; line-height: 1.5; }
.food-grid { display: grid; gap: 10px; }
.food-card { display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid var(--color-primary-border); border-radius: var(--radius-card); background: linear-gradient(145deg, rgba(108,92,255,.12), var(--color-surface)); }
.food-card--carbs { background: linear-gradient(145deg, rgba(108,92,255,.08), var(--color-surface)); }
.food-card--produce { border-color: rgba(184,255,61,.18); background: linear-gradient(145deg, rgba(184,255,61,.07), var(--color-surface)); }
.food-card--info { border-color: rgba(255,180,84,.28); background: linear-gradient(145deg, rgba(255,180,84,.07), var(--color-surface)); }
.food-card--review { margin-top: 14px; }
.food-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.food-card .card-label { max-width: 240px; color: #beb8ff; font-size: 10px; letter-spacing: .1em; line-height: 1.25; }
.food-card--produce .card-label { color: #d0f68a; }
.food-card--info .card-label { color: #ffd094; }
.food-card--review .card-label { max-width: none; }
.food-amount { display: flex; align-items: baseline; gap: 7px; margin: 16px 0 8px; color: var(--color-success); font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.07em; line-height: .95; }
.food-amount small { color: var(--color-text-muted); font-size: 13px; font-weight: 650; letter-spacing: 0; }
.food-per-meal { min-height: 18px; margin: 0 0 12px; color: var(--color-text-soft); font-size: 13px; font-weight: 650; line-height: 1.3; }
.food-card > p:not(.food-amount):not(.food-per-meal):not(.carb-warning) { min-height: 0; margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.food-card--info h3 { margin: 17px 0 11px; color: var(--color-text); font-size: clamp(20px, 3vw, 25px); line-height: 1.1; letter-spacing: -.045em; }
.food-card--info > p:not(.food-amount):not(.food-per-meal):not(.carb-warning) { min-height: 0; }
.food-card--review .button { width: 100%; margin-top: 20px; }
.carb-warning { margin: 12px 0 0; padding: 10px; border-radius: 10px; background: rgba(255,180,84,.1); color: var(--color-warning); font-size: 12px; line-height: 1.45; }

.meal-card { margin-top: 14px; padding: 19px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.meal-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.meal-card__header > div:first-child { min-width: 0; }
.meal-card h3 { margin: 4px 0 0; font-size: 20px; line-height: 1.15; letter-spacing: -.035em; }
.segmented-control { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-surface-2); }
.segmented-control button { min-width: 36px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 14px; font-weight: 800; }
.segmented-control button.is-selected { background: var(--color-primary); color: white; box-shadow: 0 5px 12px rgba(108,92,255,.24); }
.meal-caption { margin: 19px 0 11px; color: var(--color-text-soft); font-size: 13px; }
.meal-list { display: grid; gap: 9px; margin-top: 16px; }
.meal-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 13px; }
.meal-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.meal-list strong { color: var(--color-text); font-size: 15px; }
.meal-note { margin: 17px 0 0; color: var(--color-text-soft); font-size: 12px; line-height: 1.45; }

.expert-settings, .advanced-settings, .result-details, .plate-examples { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.expert-settings { margin-top: 16px; box-shadow: none; }
.advanced-settings { margin-top: 14px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 53px; padding: 0 17px; cursor: pointer; list-style: none; color: #c9c4ff; font-size: 14px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
.plate-examples { margin-top: 10px; box-shadow: none; }
.plate-examples-body { padding: 0 17px 18px; }
.plate-examples-intro { margin: 0 0 16px; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.plate-example-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plate-example { min-width: 0; overflow: hidden; padding: 10px; border: 1px solid var(--color-border); border-radius: 13px; background: var(--color-surface-2); }
.plate-example__image { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: var(--color-surface-3); color: var(--color-text-soft); }
button.plate-example__image { cursor: zoom-in; }
.plate-example__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .16s ease; }
button.plate-example__image:hover img { transform: scale(1.03); }
.plate-example__image--placeholder { border: 1px dashed #4a4a5b; font-size: 13px; }
.plate-example ul { display: grid; gap: 5px; margin: 12px 0 2px; padding-left: 19px; color: var(--color-text-muted); font-size: 13px; line-height: 1.35; }
.plate-image-dialog { width: min(92vw, 720px); max-height: 88dvh; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.plate-image-dialog::backdrop { background: rgba(0, 0, 0, .68); }
.plate-image-dialog img { display: block; width: auto; max-width: 100%; max-height: min(70dvh, 560px); margin: 28px auto 0; border-radius: 11px; object-fit: contain; }
.plate-image-dialog__close { position: absolute; top: 9px; right: 11px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--color-surface-3); color: var(--color-text); cursor: pointer; font-size: 24px; line-height: 1; }
.contact-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(5px); }
.contact-dialog { position: relative; width: min(100%, 420px); padding: 26px; border: 1px solid var(--color-primary-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-card); }
.contact-dialog h2 { padding-right: 34px; font-size: 24px; }
.contact-dialog > p { margin: 10px 0 0; color: var(--color-text-muted); line-height: 1.5; }
.contact-dialog-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 28px; line-height: 1; }
.contact-dialog-close:hover { background: var(--color-surface-3); color: var(--color-text); }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.contact-options .button { width: 100%; text-decoration: none; }
.expert-body { padding: 2px 17px 18px; }
.expert-body > p { margin: 0 0 17px; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.expert-body > p strong { color: var(--color-text); font-weight: 800; }
.advanced-body { padding: 2px 17px 18px; }
.advanced-intro { margin: 0 0 18px; color: var(--color-text-soft); font-size: 13px; line-height: 1.45; }
.advanced-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.result-actions { margin-top: 14px; }
.result-actions .button { width: 100%; }
.result-actions .reset-button { border-color: var(--color-border); background: transparent; color: var(--color-text); box-shadow: none; }
.result-actions .reset-button:hover { background: var(--color-surface-2); }
.result-details { margin-top: 10px; box-shadow: none; }
.details-body { padding: 0 17px 18px; }
.technical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 15px; }
.technical-grid > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 9px; border-top: 1px solid var(--color-border); }
.technical-grid span { color: var(--color-text-soft); font-size: 12px; }
.technical-grid strong { color: var(--color-text); font-size: 15px; }
.technical-grid small { color: var(--color-text-soft); font-size: 11px; line-height: 1.35; }
.copy-body p { margin: 0 0 11px; color: var(--color-text-muted); font-size: 13px; line-height: 1.55; }
.copy-body p:last-child { margin-bottom: 0; }
.copy-body cite { color: #d3d0ff; font-style: normal; }
.copy-body .details-muted { color: var(--color-text-soft); }
.warning-note { margin-top: 14px; padding: 17px; border: 1px solid rgba(255,180,84,.28); border-radius: var(--radius-card); background: rgba(255,180,84,.07); }
.warning-note strong { color: var(--color-warning); font-size: 14px; }
.warning-note p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 12px; line-height: 1.55; }
.warning-note p + p { margin-top: 8px; }

@media (min-width: 641px) {
  #age, #height { appearance: textfield; -moz-appearance: textfield; }
  #age::-webkit-inner-spin-button, #age::-webkit-outer-spin-button,
  #height::-webkit-inner-spin-button, #height::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
}

#fat, #produce { appearance: textfield; -moz-appearance: textfield; }
#fat::-webkit-inner-spin-button, #fat::-webkit-outer-spin-button,
#produce::-webkit-inner-spin-button, #produce::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  .food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .food-card--info { grid-column: 1 / -1; }
  .food-card--info > p:not(.food-amount):not(.food-per-meal):not(.carb-warning) { max-width: 700px; }
  .food-per-meal { white-space: nowrap; }
}

@media (max-width: 719px) {
  .profile-grid { grid-template-columns: 1fr; }
  .advanced-grid { grid-template-columns: 1fr; gap: 10px; }
  .plate-example-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-shell { width: min(100% - 24px, 600px); padding-top: 18px; padding-bottom: 42px; }
  .site-header { margin-bottom: 30px; }
  .back-link { transform: translateY(-2px); }
  .hero h1 { margin-top: 8px; font-size: 36px; }
  .step-panel, .result-panel { padding: 19px; }
  .step-heading { margin-bottom: 24px; }
  .step-panel[data-step-panel="1"] .step-heading { margin-bottom: 18px; }
  .step-heading h2 { font-size: 28px; }
  .profile-grid { gap: 12px; }
  .choice-grid { gap: 8px; }
  .choice-content { padding: 13px 11px; }
  .choice-content strong { font-size: 14px; }
  .choice-content small { font-size: 13px; }
  .activity-grid .choice-content { min-height: 90px; }
  .food-card { padding: 16px; }
  .food-card > p:not(.food-amount):not(.food-per-meal):not(.carb-warning) { min-height: 0; }
  .food-per-meal { font-size: 13px; }
  .meal-card { padding: 16px; }
  .meal-card__header { align-items: center; gap: 9px; }
  .meal-card h3 { font-size: 18px; }
  .segmented-control button { min-width: 33px; min-height: 33px; }
  .advanced-body, .details-body, .plate-examples-body { padding-right: 15px; padding-left: 15px; }
  .expert-body { padding-right: 15px; padding-left: 15px; }
  .contact-modal { align-items: center; padding: 12px; }
  .contact-dialog { width: 100%; padding: 24px 20px; }
  .contact-options { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .app-shell { width: min(100% - 20px, 600px); }
  .wizard-progress { margin-bottom: 11px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-grid .choice-content { min-height: 90px; }
  .training-grid .choice-card--wide { grid-column: auto; }
  .food-grid { grid-template-columns: 1fr; }
  .food-per-meal { white-space: normal; }
  .food-card--info h3 { font-size: 23px; }
  .meal-card__header { align-items: flex-start; }
  .meal-card h3 { font-size: 17px; }
  .technical-grid { grid-template-columns: 1fr; }
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer a { color: var(--color-text-muted); text-underline-offset: 3px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--color-text); }

/* Единый ритм и выравнивание ссылки «Назад». */
.app-shell { padding-top: 24px; }
.site-header { margin-bottom: 28px; }
a.back-link .button-arrow { transform: translateY(-1px); }
.hero h1 { margin-top: 0; }

@media (max-width: 640px) {
  .app-shell { padding-top: 20px; }
  .site-header { margin-bottom: 24px; }
  .back-link { transform: none; }
  a.back-link .button-arrow { transform: translateY(-2px); }
}
