/* Сайт школы на корне домена (ADR 0079). Цвета — из @mea/design-tokens: полоса — brandDeep, как
   экран «Привет» и иконка приложения, фон — canvas, текст — ink и ink2, карточка — скругление 20
   без тени, как в макете. Без скриптов и внешних адресов: CSP сайта — только свои стили и картинки */
:root {
  --brand-deep: #0e7a3d;
  --canvas: #f3f3f8;
  --card: #ffffff;
  --ink: #1c1c1e;
  --ink-2: #636366;
  --line: #e5e5ea;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font:
    16px / 1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

.band {
  display: flex;
  justify-content: center;
  padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px
    max(16px, env(safe-area-inset-left, 0px));
  background: var(--brand-deep);
}

.logo {
  display: block;
  width: 220px;
  max-width: 60vw;
  height: auto;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px
    max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--card);
}

h1,
h2 {
  margin: 0 0 12px;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: 24px;
  font-weight: 700;
}

h2 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--ink-2);
}

/* Кнопка — 52 px, как `.btn` приложения; белый на brandDeep читается лучше, чем на brand */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--brand-deep);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 2px;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li + li {
  border-top: 1px solid var(--line);
}

/* Строка списка — от 48 px: зона нажатия по ТЗ 10 */
.links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--brand-deep);
  font-weight: 500;
  text-decoration: none;
}

.links a:hover,
.foot a:hover {
  text-decoration: underline;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 32px
    max(16px, env(safe-area-inset-left, 0px));
  color: var(--ink-2);
  font-size: 14px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
}
