/* «Ай-Шах» — стили сайта.
   Цвета из логотипа: бирюзовый (дети) — основной, красный (надпись), фиолетовый (кольцо).
   Три группы = три цвета: Балапан (красный), Балдырған (бирюзовый), Болашақ (фиолетовый). */

:root {
  --ink: #10393b;
  --ink-2: #33585a;
  --muted: #587274;
  --paper: #ffffff;
  --mist: #eff7f6;
  --line: #d7e9e7;
  --line-strong: #a8cecb;

  --brand: #0a8483;
  --brand-deep: #076664;

  --rose: #e3302f;
  --sun: #e07a0c;
  --grass: #2f9450;
  --sea: #0a8483;
  --violet: #723a8e;
  --pink: #f86a8a;

  /* Rubik и Golos Text содержат все буквы казахского алфавита (проверено) */
  --font-display: 'Rubik', 'Golos Text', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --wrap: 1180px;
  --gutter: 16px;
  color-scheme: light;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

.tone-rose { --tone: var(--rose); }
.tone-sun { --tone: var(--sun); }
.tone-grass { --tone: var(--grass); }
.tone-sea { --tone: var(--sea); }
.tone-violet { --tone: var(--violet); }
.tone-muted { --tone: #bfd4d1; }

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}
.skip:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.topbar__tools { display: flex; align-items: center; gap: 0.75rem; }

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.a11y-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.a11y-toggle[aria-pressed='true'] { background: #fff; color: var(--ink); }

.lang { display: flex; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; overflow: hidden; }
.lang a { padding: 0.2rem 0.65rem; font-weight: 600; letter-spacing: 0.04em; }
.lang a[aria-current='true'] { background: #fff; color: var(--ink); }
.lang a[aria-current='true']:hover { text-decoration: none; color: var(--ink); }

/* ---------- Шапка ---------- */
.masthead { background: var(--paper); position: relative; }
.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__logo { width: 62px; height: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand__kind { font-size: 0.85rem; color: var(--muted); }

.masthead__aside { display: none; align-items: center; gap: 1rem; }
.masthead__schedule { font-size: 0.9rem; color: var(--muted); }

.nav-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
.nav-toggle svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle[aria-expanded='true'] { background: var(--ink); color: #fff; }

/* Навигация: мобильная версия — раскрывающийся список */
.nav { display: none; border-top: 1px solid var(--line); background: var(--mist); }
.nav.is-open { display: block; }
.nav__list { margin: 0; padding: 0.5rem 0 1rem; list-style: none; }
.nav__item { border-bottom: 1px solid var(--line); }
.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.25rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: 500 1rem/1.3 var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.nav__link[aria-current='page'],
.nav__item.is-active > .nav__link { color: var(--brand-deep); font-weight: 700; }
.nav__caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.15s; }
.nav__item--sub.is-open .nav__caret { transform: rotate(180deg); }
.nav__sub { margin: 0; padding: 0 0 0.6rem 1rem; list-style: none; }
.nav__sub a {
  display: block;
  padding: 0.45rem 0.25rem;
  color: var(--ink-2);
  text-decoration: none;
}
.nav__sub a[aria-current='page'] { color: var(--brand-deep); font-weight: 700; }
@media (max-width: 1023.98px) {
  .nav__sub { display: none; }
  .nav__item--sub.is-open .nav__sub,
  .nav__item--sub.is-active .nav__sub { display: block; }
}

/* Фирменная лента: по полосе на каждую группу */
.bands { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 6px; }
.bands span { background: var(--tone); }

@media (min-width: 1024px) {
  .masthead__aside { display: flex; }
  .nav-toggle { display: none; }
  .brand__logo { width: 80px; }
  .brand__name { font-size: 1.7rem; }

  .nav { display: block; background: var(--paper); }
  .nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 0 0.7rem;
  }
  .nav__item { border: 0; position: relative; }
  .nav__link {
    width: auto;
    min-height: 40px;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .nav__link:hover { background: var(--mist); color: var(--ink); }
  .nav__link[aria-current='page'],
  .nav__item.is-active > .nav__link { background: var(--brand); color: #fff; font-weight: 600; }

  .nav__sub {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 20;
    min-width: 260px;
    padding: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 40px -12px rgba(18, 54, 59, 0.22);
  }
  .nav__item--sub:hover .nav__sub,
  .nav__item--sub:focus-within .nav__sub,
  .nav__item--sub.is-open .nav__sub { display: block; }
  .nav__sub a { padding: 0.55rem 0.75rem; border-radius: 10px; }
  .nav__sub a:hover { background: var(--mist); }
}

.hide-sm { display: none; }
@media (min-width: 760px) {
  .hide-sm { display: initial; }
}

/* ---------- Главная: первый экран ---------- */
.hero { background: var(--mist); overflow: hidden; }
.hero__in {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem 3rem;
  align-items: center;
}
.hero__art { order: -1; max-width: 460px; width: 100%; margin-inline: auto; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.hero__title {
  margin: 0.5rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 11vw, 5.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--rose);
}
.hero__place { font-size: 1.125rem; color: var(--ink-2); max-width: 36ch; }
.hero__schedule {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 500;
  font-size: 0.95rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.05fr 1fr; padding-block: 4rem 4.5rem; }
  .hero__art { order: 0; max-width: 520px; }
}

/* Радуга групп */
.rainbow { width: 100%; height: auto; overflow: visible; }
.arc {
  fill: none;
  stroke: var(--tone);
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.arc__label {
  fill: #fff;
  font: 700 12px var(--font-body);
  letter-spacing: 0.03em;
}
.rainbow__big { fill: var(--ink); font: 700 24px var(--font-display); letter-spacing: -0.02em; }
.rainbow__small { fill: var(--muted); font: 500 13px var(--font-body); }

@media (prefers-reduced-motion: no-preference) {
  .arc { animation: arc-draw 0.9s cubic-bezier(0.3, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 0.12s); }
  .arc__label { animation: fade-in 0.5s ease-out both; animation-delay: calc(0.6s + var(--i) * 0.12s); }
  @keyframes arc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Секции ---------- */
.section { padding-block: 3rem; }
.section--mist { background: var(--mist); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
}
.section > .wrap > .section__title { margin-bottom: 1.5rem; }
.link-more { font-weight: 600; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .section { padding-block: 4.5rem; }
}

/* Приветствие */
.welcome__in { display: grid; gap: 1.5rem; }
.welcome__text {
  display: grid;
  gap: 1rem;
  max-width: 68ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}
.welcome__text p:first-child { font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
@media (min-width: 900px) {
  .welcome__in { grid-template-columns: 1fr 2fr; gap: 3rem; }
}

/* Коротко о садике */
.passport {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--ink);
}
.passport > div {
  padding: 1rem 0.75rem 1.1rem 0;
  border-bottom: 1px solid var(--line-strong);
}
.passport dt { font-size: 0.85rem; color: var(--muted); }
.passport dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .passport { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .passport > div { padding-right: 1.5rem; }
}

.mainphoto { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }

/* ---------- Нет данных ---------- */
.missing {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(15, 122, 133, 0.05) 12px 24px);
  color: var(--muted);
  font-weight: 500;
}
.missing__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px; height: 30px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font: 700 0.95rem/1 var(--font-display);
}
.missing--photo {
  justify-content: center;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 3 / 1;
}
.missing-inline {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92em;
  font-weight: 500;
  white-space: nowrap;
  justify-self: start;
}

/* ---------- Внутренние страницы ---------- */
.pagehead { background: var(--mist); padding-block: 1.75rem 2.25rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.pagehead__title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -0.025em;
  max-width: 24ch;
}

.page { padding-block: 2.5rem 4rem; }
.page__body { display: grid; gap: 2.75rem; min-width: 0; }
.block { scroll-margin-top: 1rem; }
.block__title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  letter-spacing: -0.01em;
}
.prose { display: grid; gap: 0.9rem; max-width: 70ch; }

.toc { display: none; }
@media (min-width: 1024px) {
  .page--toc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .toc { display: block; position: sticky; top: 1.5rem; }
  .toc ul { margin: 0; padding: 0 0 0 1rem; list-style: none; border-left: 2px solid var(--line); }
  .toc li + li { margin-top: 0.6rem; }
  .toc a { color: var(--ink-2); font-size: 0.92rem; text-decoration: none; line-height: 1.35; display: block; }
  .toc a:hover { color: var(--brand-deep); text-decoration: underline; }
}

/* Список «название — значение» */
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts__row {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts__row { grid-template-columns: minmax(180px, 2fr) 3fr; gap: 1.5rem; }
}

/* Группы */
.groups { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.group {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.group__band { align-self: stretch; border-radius: 999px; background: var(--tone); }
.group__name { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.group__age { color: var(--ink-2); text-align: right; }

/* Состав педагогов */
.staffmix { display: grid; gap: 1.5rem; }
.staffmix__total { display: flex; align-items: baseline; gap: 0.75rem; }
.staffmix__total strong { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; }
.staffmix__total span { color: var(--ink-2); }
.staffmix__dots { display: flex; flex-wrap: wrap; gap: 6px; }
.staffmix__dots span { width: 28px; height: 28px; border-radius: 8px; background: var(--tone); }
.staffmix__cols { display: grid; gap: 1.5rem; }
.staffmix__cols h3 { margin-bottom: 0.5rem; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
@media (min-width: 640px) {
  .staffmix__cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.legend { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.legend li strong { margin-left: auto; font-family: var(--font-display); font-weight: 500; }
.legend__swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--tone); flex: none; }

/* Текст из панели управления */
.prose ul { display: grid; gap: 0.35rem; margin: 0; padding-left: 1.25rem; }
.prose a { overflow-wrap: anywhere; }
.block > * + * { margin-top: 1.25rem; }
.block > .block__title + * { margin-top: 0; }

/* Документы */
.docs { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.doc {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.15rem 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.doc:hover { border-color: var(--brand); background: var(--mist); color: var(--ink); }
.doc__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 52px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 700 0.72rem var(--font-body);
  letter-spacing: 0.04em;
}
.doc__title { font-weight: 600; overflow-wrap: anywhere; }
.doc__meta { font-size: 0.85rem; color: var(--muted); }

/* Фото и видео */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__item { display: grid; gap: 0.4rem; }
.gallery__item img,
.gallery__item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--mist);
}
.gallery__item a { display: block; border-radius: 14px; }
.gallery__caption { font-size: 0.9rem; color: var(--ink-2); }

/* Сотрудники */
.people { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.person {
  display: grid;
  gap: 1rem 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: 1rem;
}
.person__photo img,
.person__initials {
  width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}
.person__initials {
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--brand-deep);
  font: 700 2rem var(--font-display);
}
.person__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.person__role { margin-top: 0.2rem; color: var(--brand-deep); font-weight: 600; }
.person__facts { display: grid; gap: 0.55rem; margin: 0.9rem 0 0; }
.person__facts dt { font-size: 0.85rem; color: var(--muted); }
.person__facts dd { margin: 0.1rem 0 0; }
.person__facts dd p + p { margin-top: 0.4rem; }
@media (min-width: 640px) {
  .person { grid-template-columns: 140px 1fr; }
}

.teamstrip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teamcard { display: grid; gap: 0.25rem; color: var(--ink); text-decoration: none; }
.teamcard__photo img,
.teamcard__photo .person__initials { width: 100%; aspect-ratio: 3 / 4; border-radius: 16px; object-fit: cover; }
.teamcard__name { margin-top: 0.5rem; font-weight: 600; line-height: 1.3; }
.teamcard__role { font-size: 0.9rem; color: var(--muted); }
a.teamcard:hover .teamcard__name { color: var(--brand-deep); text-decoration: underline; }

/* Новости */
.newslist { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.newsitem { display: grid; gap: 0.6rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.newsitem__date, .newscard time { font-size: 0.85rem; font-weight: 600; color: var(--brand-deep); }
.newsitem__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }

.newscards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.newscard {
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
a.newscard:hover { border-color: var(--brand); }
.newscard__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.newscard__body { display: grid; align-content: start; gap: 0.35rem; padding: 1rem 1.1rem 1.2rem; }
.newscard__title { font-weight: 700; line-height: 1.35; }
.newscard__text { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #e2f0ee; font-size: 0.95rem; }
.footer a { color: #fff; }
.footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
.footer__brand img { width: 132px; border-radius: 16px; background: #fff; }
.footer__name { margin-top: 0.85rem; font-weight: 600; color: #fff; max-width: 28ch; }
.footer__muted { color: #a7c8c4; }
.footer__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: #fff;
}
.footer__list { display: grid; gap: 0.6rem; font-style: normal; }
.footer__nav { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.footer__nav a { text-decoration: none; color: #e2f0ee; }
.footer__nav a:hover { text-decoration: underline; color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #a7c8c4;
  font-size: 0.85rem;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr; }
}

/* ---------- 404 ---------- */
.notfound__in { display: grid; justify-items: center; gap: 1rem; padding-block: 4rem; text-align: center; }
.notfound__in .rainbow { max-width: 360px; }
.notfound__in .btn { margin: 0.25rem; }

/* ---------- Версия для слабовидящих ---------- */
html.a11y { font-size: 125%; }
html.a11y body { --muted: #12363b; --ink-2: #12363b; --mist: #ffffff; --line: #12363b; --line-strong: #12363b; }
html.a11y a { text-decoration: underline; }
html.a11y .missing { background: #fff; }
html.a11y .arc__label { font-size: 13px; }
html.a11y :focus-visible { outline-width: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
