/* Пробная главная клуба имени Григория Доронькина (NEMZO). Светлая тема, mobile-first. */

/* Шрифт Nunito (SIL Open Font License 1.1) лежит на сайте — запросов к Google нет.
   Файлы с fonts.gstatic.com (v32), вариативные: одни и те же на веса 400–800. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #FAF7EF;
  --surface: #FFFFFF;
  --tint-green: #E7F2E6;
  --tint-blue: #E8EFF9;
  --tint-gold: #FBF0D4;
  --ink: #16251C;
  --muted: #4A5950;
  --line: #DCE4D8;
  --green: #2F7D4E;
  --green-dark: #1D5A37;
  --green-deep: #133D26;
  --blue: #1F4F8F;
  --blue-dark: #173D70;
  --gold: #E3A92C;
  --gold-light: #F2C14E;
  --gold-ink: #6E4D00;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(19, 61, 38, .05), 0 10px 28px rgba(19, 61, 38, .07);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --header-h: 68px; /* высота шапки целиком — для отступа якорей */
}
/* на телефоне и планшете под шапкой строка меню */
@media (max-width: 959px) {
  :root { --header-h: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--green-deep); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
/* Телефон — один формат на всём сайте: 8 (81367) 5-52-48, ссылка tel:+78136755248.
   inline-block: номер уходит на новую строку целиком, а при очень крупном тексте переносится по пробелам. */
.phone-num { display: inline-block; max-width: 100%; }

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

/* прячем сдвигом на собственную высоту: при крупном тексте ссылка тоже не выглядывает */
.skip-link {
  position: absolute;
  left: 12px; top: 0;
  max-width: calc(100% - 24px);
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: translateY(12px); color: #fff; }

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

/* Крупный текст (200 %): колонки и строки не раздуваются от длинных слов, а переносят их.
   Одноколоночные сетки — minmax(0, 1fr); у текстовых частей flex-строк — min-width: 0.
   Многоколоночные варианты ниже в медиазапросах переопределяют это. */
.hero-inner, .cards-3, .coach-grid, .tour-grid, .cab-grid, .contact, .contact-list, .foot-inner, .memory {
  grid-template-columns: minmax(0, 1fr);
}
.coach-head > div, .contact-list li > div, .cab-item > div { min-width: 0; }
h2, h3, .contact-value, .ticks li, .timeline p, .cab-item p, .card p { overflow-wrap: break-word; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--blue-dark); border-color: var(--blue); }
.btn-secondary:hover { background: var(--tint-blue); color: var(--blue-dark); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: .9375rem; }
@media (min-width: 420px) { .btn-sm { padding-inline: 18px; } }

/* ---------- Шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .top { background: rgba(250, 247, 239, .82); backdrop-filter: blur(8px); }
}
/* Низкое окно (телефон боком) или очень крупный текст в настройках браузера (em здесь — от шрифта
   браузера): шапка с меню заняла бы четверть экрана, поэтому она не липнет, а уходит вверх со страницей. */
@media (max-height: 30em) {
  .top { position: relative; }
  :root { --header-h: 0px; }
}
.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  min-height: 68px;
}
@media (max-width: 959px) {
  .top-inner { min-height: 60px; padding-top: 8px; row-gap: 6px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  /* основа 10rem: на обычном размере название делит строку с кнопкой (и переносится само),
     при очень крупном тексте кнопка уходит на строку ниже, а не сжимает название в столбик */
  flex: 1 1 10rem;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  background:
    conic-gradient(var(--green-dark) 0 25%, var(--gold-light) 0 50%, var(--green-dark) 0 75%, var(--gold-light) 0)
    0 0 / 15px 15px;
  box-shadow: inset 0 0 0 2px rgba(19, 61, 38, .15);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
/* без nowrap: при крупном тексте название переносится, а не наезжает на кнопку */
.brand-name { font-weight: 800; font-size: .9rem; line-height: 1.2; color: var(--green-deep); overflow-wrap: break-word; }
.brand-sub { font-size: .78rem; color: var(--muted); line-height: 1.25; }
@media (min-width: 420px) {
  .brand-name { font-size: .98rem; }
  .brand-sub { font-size: .8125rem; }
}
/* узкие телефоны: название не должно наезжать на кнопку «Позвонить» */
@media (max-width: 399px) {
  .top-inner { column-gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 26px; height: 26px; background-size: 13px 13px; }
  .brand-name { font-size: .85rem; }
  .brand-sub { font-size: .75rem; }
  .top .btn-sm { padding-inline: 12px; font-size: .875rem; }
}
@media (max-width: 349px) {
  .brand-sub { display: none; }
}

/* Кнопка звонка в шапке: на телефоне — «Позвонить», на широком экране — сам номер
   (с компьютера по ссылке tel: не позвонишь, номер нужно видеть). */
.top-call { flex: none; }
.top-call svg { display: none; }
.top-call .call-long { display: none; }
@media (min-width: 600px) {
  .top-call svg { display: block; }
}
@media (min-width: 1100px) {
  .top-call .call-short { display: none; }
  .top-call .call-long { display: inline; }
}

/* Меню. До 960 px — строка ссылок под шапкой: листается вбок пальцем,
   страница при этом вбок не ездит. С 960 px — обычное меню в шапке. */
.top-nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  gap: 6px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.top-nav a:hover { background: var(--tint-green); color: var(--green-deep); }
.top-nav a:focus-visible { outline-offset: -3px; }

@media (min-width: 960px) {
  .top-nav {
    order: 0;
    flex: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .top-nav a { padding: 0 12px; background: none; border: 0; font-size: .95rem; }
  .top-call { order: 1; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 85% 30%, var(--tint-green) 0%, rgba(231, 242, 230, 0) 60%),
    var(--bg);
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 8px;
  padding-block: 28px 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px 6px 8px;
  background: var(--tint-gold);
  color: var(--gold-ink);
  border: 1px solid #EED79A;
  border-radius: 999px;
  font-weight: 800;
  font-size: .95rem;
}
.badge-dot {
  width: 20px; height: 20px;
  border-radius: 6px;
  background:
    conic-gradient(var(--gold) 0 25%, #fff 0 50%, var(--gold) 0 75%, #fff 0)
    0 0 / 10px 10px;
}
.hero-text { min-width: 0; }
.hero h1 {
  font-size: clamp(1.95rem, 1.1rem + 3.9vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.08;
  max-width: 16ch;
  /* при крупном тексте длинное слово переносится, а не обрезается: в «Доронь&shy;кина» есть мягкий
     перенос, остальное — overflow-wrap. hyphens:auto не ставим — он рвёт слова и на обычном размере */
  overflow-wrap: break-word;
}
.lead {
  margin-top: 14px;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34ch;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.btn > span { min-width: 0; }
@media (max-width: 399px) {
  .actions .btn, .contact-actions .btn { padding-inline: 16px; }
}
@media (min-width: 520px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}

.hero-los {
  position: relative;
  isolation: isolate; /* иначе подложка с z-index:-1 уходит под фон .hero и не видна */
  margin: 8px auto 0;
  width: min(250px, 68vw);
}
.hero-los::before {
  /* мягкий круг-подложка в клетку — намёк на доску */
  content: "";
  position: absolute;
  inset: 10% -14% 0;
  z-index: -1;
  border-radius: 50%;
  /* зелёная клетка на зелёном круге — серо-голубая читалась как «прозрачный фон» из редактора */
  background:
    repeating-conic-gradient(rgba(47, 125, 78, .11) 0 25%, transparent 0 50%) 0 0 / 44px 44px,
    var(--tint-green);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero-los img { width: 100%; }
/* Лось «живой» (19.10.2026): дышит и чуть покачивается; по нажатию — прыжок.
   Только когда человек не просил меньше движения. */
@media (prefers-reduced-motion: no-preference) {
  .hero-los picture { display: block; transform-origin: 50% 92%; animation: los-idle 4.2s ease-in-out infinite; }
  .hero-los { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .hero-los.hop picture { animation: los-hop .7s cubic-bezier(.3,.7,.4,1) 1, los-idle 4.2s ease-in-out .7s infinite; }
}
@keyframes los-idle {
  0%, 100% { transform: translateY(0) rotate(0) scale(1, 1); }
  25%      { transform: translateY(-4px) rotate(-1.2deg) scale(1.005, .995); }
  50%      { transform: translateY(-7px) rotate(0) scale(.995, 1.01); }
  75%      { transform: translateY(-4px) rotate(1.2deg) scale(1.005, .995); }
}
@keyframes los-hop {
  0%   { transform: translateY(0) scale(1, 1); }
  18%  { transform: translateY(2px) scale(1.06, .92); }
  45%  { transform: translateY(-34px) scale(.96, 1.05) rotate(-3deg); }
  70%  { transform: translateY(0) scale(1.04, .95); }
  85%  { transform: translateY(-6px) scale(.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: 32px;
    padding-block: 56px 64px;
  }
  .hero-los { width: min(360px, 100%); margin: 0 auto; }
}

/* полоска «доска» между блоками */
.checker-strip {
  height: 14px;
  background:
    conic-gradient(var(--blue) 0 25%, var(--bg) 0 50%, var(--blue) 0 75%, var(--bg) 0)
    0 0 / 14px 14px;
  opacity: .9;
}

/* ---------- Секции ---------- */
.section { padding-block: 48px; }
.section-band { background: var(--surface); border-block: 1px solid var(--line); }
.section-green { background: var(--tint-green); }
@media (min-width: 900px) {
  .section { padding-block: 72px; }
}
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.005em;
  margin-bottom: 20px;
}
.section-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 60ch;
  margin-bottom: 24px;
}
/* номер в тексте «Как записаться»: зона нажатия 44 px, строка не раздвигается */
.zapis-lead a { font-weight: 800; padding-block: 9px; margin-block: -9px; }

/* ---------- Цифры ---------- */
/* Сетка сама решает, сколько колонок помещается: обычно 2 (с 900 px — 4),
   при крупном тексте — меньше, без обрезки. max(…) не даёт колонок больше, чем 2 / 4. */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9.25rem, (100% - 12px) / 2)), 1fr));
  gap: 12px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { min-width: 0; }
.stat-num {
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--green-dark);
  overflow-wrap: break-word;
}
.stat-text { font-size: .95rem; color: var(--muted); line-height: 1.4; overflow-wrap: break-word; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(12rem, (100% - 60px) / 4)), 1fr)); gap: 20px; }
  .stat { padding: 24px 22px; }
}

/* «50 лет» — широкая золотая карточка первой строкой «Клуба в цифрах». */
.stat-wide { grid-column: 1 / -1; background: var(--tint-gold); border-color: rgba(200, 150, 40, .35); flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.stat-wide .stat-num { display: inline-flex; align-items: center; gap: 10px; }
.stat-wide .badge-dot { width: 26px; height: 26px; border-radius: 7px; background-size: 13px 13px; }

/* ---------- Карточки ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.section-band .card { background: var(--bg); box-shadow: none; }
.cards-3 { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.card h3 { font-size: 1.3rem; font-weight: 800; margin: 14px 0 8px; }
.card p { color: var(--muted); }
.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--tint-green);
  color: var(--green-dark);
}
.card-icon svg { width: 30px; height: 30px; }
.card-icon-blue { background: var(--tint-blue); color: var(--blue); }

.text-link {
  display: inline-block;
  padding-block: 10px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--blue);
}
.text-link svg {
  display: inline-block;
  width: 16px; height: 16px;
  margin-left: 6px;
  vertical-align: -2px;
}
.card .text-link { margin-top: 6px; }

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--tint-gold);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--gold-ink); }
.note > span { min-width: 0; }
/* номер не рвётся на обычном размере (неразрывные пробелы), а при крупном тексте переносится целиком */
.note a { font-weight: 800; display: inline-block; max-width: 100%; padding-block: 9px; margin-block: -9px; overflow-wrap: anywhere; }

/* ---------- Тренеры ---------- */
.coach-grid { display: grid; gap: 14px; align-items: start; }
@media (min-width: 900px) {
  .coach-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; }
}
.coach-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.coach-head > div { flex: 1 1 12rem; }
.coach-head h3 { margin: 0; font-size: 1.3rem; }
.coach-role { color: var(--green); font-weight: 700; margin-top: 2px; }
.coach-ava {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--green-dark);
}
.coach-ava svg { width: 32px; height: 32px; }
.coach-ava-gold { background: var(--tint-gold); color: var(--gold-ink); }

.ticks { margin-top: 16px; display: grid; gap: 8px; }
.ticks li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: .5em;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--gold);
}

.ratings {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.ratings-title { font-weight: 800; font-size: .95rem; color: var(--green-deep); margin-bottom: 8px; }
/* три ячейки в ряд; при крупном тексте ячейки не сжимаются меньше 4.5rem и уходят на новую строку */
.ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.ratings-row div {
  flex: 0 0 calc((100% - 16px) / 3);
  min-width: min(100%, 4.5rem);
  padding: 8px 6px;
  background: var(--surface);
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--line);
}
.ratings-row dt { font-size: .8125rem; color: var(--muted); }
.ratings-row dd { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--green-dark); }
.ratings-date { font-size: .875rem; color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }

/* ---------- Турниры ---------- */
.tour-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .tour-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
}
.link-list { display: grid; gap: 2px; }
.link-list { margin-top: -6px; }
.tour-year {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tour-year-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.timeline { display: grid; gap: 0; }
.timeline li {
  position: relative;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 0 18px 26px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--blue);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 9px; top: 24px; bottom: 2px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.tl-month {
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.timeline p { color: var(--muted); }
.timeline b { color: var(--ink); }

/* ---------- Имя клуба ---------- */
.memory {
  display: grid;
  gap: 16px;
  padding: 26px 22px;
  background: var(--tint-blue);
  border-radius: var(--radius);
  border-left: 6px solid var(--blue);
}
.memory .section-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin-bottom: 14px; color: var(--blue-dark); }
.memory p { max-width: 62ch; }
.memory p + p { margin-top: 10px; }
.memory-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
}
.memory-icon svg { width: 30px; height: 30px; }
@media (min-width: 700px) {
  .memory { grid-template-columns: auto 1fr; gap: 24px; padding: 36px; }
}

/* ---------- Кабинет семьи ---------- */
.cab-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
/* 2 колонки с 600 px, 4 — с 1000 px; при крупном тексте колонок меньше (как у цифр клуба) */
@media (min-width: 600px) { .cab-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(14rem, (100% - 12px) / 2)), 1fr)); } }
@media (min-width: 1000px) { .cab-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(12rem, (100% - 48px) / 4)), 1fr)); gap: 16px; } }
.cab-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #CFE3CF;
}
.cab-item h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.cab-item p { color: var(--muted); font-size: .98rem; }
.cab-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tint-green);
  color: var(--green-dark);
}
.cab-icon svg { width: 24px; height: 24px; }

/* Приложение для Android. Flex с переносом: на телефоне кнопка на всю ширину под текстом,
   на широком экране всё в одну строку; при крупном тексте текст уходит под значок. */
.app-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid #CFE3CF;
  border-radius: var(--radius);
}
.app-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 2px 8px rgba(19, 61, 38, .18); }
.app-text { flex: 1 1 11rem; min-width: 0; }
.app-text h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.app-text p { color: var(--muted); font-size: .98rem; max-width: 52ch; overflow-wrap: break-word; }
.app-btn { flex: 1 1 100%; min-width: 0; }
.app-btn span { overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .app-card { padding: 22px 26px; }
  .app-text { flex-basis: 16rem; }
  .app-btn { flex: 0 1 auto; }
}

/* ---------- Контакты ---------- */
.contact { display: grid; gap: 20px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > div { flex: 1; }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tint-blue);
  color: var(--blue);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { font-size: .875rem; color: var(--muted); font-weight: 700; }
.contact-value { font-size: 1.0625rem; overflow-wrap: anywhere; }
/* inline-block, а не inline-flex: так длинная почта при крупном тексте переносится, а не вылезает */
.contact-value a {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  padding-block: 9px;
  font-weight: 800;
}
.contact-list li:has(a) .contact-label { margin-bottom: -6px; }
.hours { display: grid; gap: 2px; margin-top: 2px; font-weight: 700; overflow-wrap: anywhere; }
.hours li { display: flex; flex-wrap: wrap; gap: 0 8px; }
.hours span { min-width: min(6.5em, 100%); font-weight: 400; color: var(--muted); }
.contact-hint { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) {
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; padding: 32px; }
  .contact-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(13rem, (100% - 28px) / 2)), 1fr)); gap: 20px 28px; }
  .contact-actions { flex-direction: column; }
}

/* ---------- Подвал ---------- */
.foot {
  background: var(--green-deep);
  color: #DCEADF;
  padding-block: 36px 40px;
  font-size: .95rem;
}
.foot a { color: #FFFFFF; font-weight: 700; }
.foot a:hover { color: var(--gold-light); }
.foot :focus-visible { outline-color: var(--gold-light); }
.foot-inner { display: grid; gap: 24px; }
.foot-name { font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
/* ссылка NEMZO в тексте: зона нажатия 44 px по высоте, строка не раздвигается */
.foot p a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.foot p + p { margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 600;
  color: #C9DCCD;
}
.foot-year { color: #A9C2AF; font-size: .875rem; }
@media (min-width: 900px) {
  .foot-inner { grid-template-columns: 1fr auto; align-items: end; }
  .foot-side { text-align: right; }
  .foot-links { justify-content: flex-end; }
}
