/* =========================================================
   Баскетбольный клуб «Хаски» — paper / scrapbook / editorial
   Палитра (locked): тёплая бумага + navy-ink + husky-blue акцент,
   баскетбольный оранжевый только как «маркерный» hand-drawn акцент.
   Радиусы (locked): фото/карточки 14px, кнопки/чипы — pill.
   ========================================================= */

/* Local brand fonts. They are served with the site, without Google Fonts. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/onest-latin-wght-normal.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;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/unbounded-latin-wght-normal.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;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/caveat-latin-wght-normal.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 {
  /* Мягкий off-white фон + тона логотипа хаски (голубой/синий/navy) */
  --paper: #eef3f8;      /* мягкий прохладный белый (не бьёт в глаза) */
  --paper-card: #ffffff; /* карточки — чистый белый, чтобы «всплывали» */
  --paper-2: #e6f1fa;    /* светло-голубые альт-секции */
  --paper-alt: #d9ebf7;
  --ink: #102f4d;       /* глубокий navy (текст) */
  --ink-2: #486178;

  /* Husky blue — главный UI-акцент */
  --blue: #2e86c8;
  --blue-deep: #17568f;
  --blue-light: #62c4ee; /* небесно-голубой с логотипа */
  --sky-soft: #d3ecf9;

  /* Баскетбольный оранжевый — маркерные hand-drawn акценты */
  --ball: #e2732f;

  --line: rgba(16, 47, 77, 0.12);
  --shadow-sm: 0 6px 18px rgba(23, 86, 143, 0.1);
  --shadow-md: 0 16px 40px rgba(23, 86, 143, 0.14);
  --shadow-lg: 0 28px 70px rgba(23, 86, 143, 0.18);

  /* Локальные фирменные шрифты: страница не обращается к внешнему сервису Google Fonts. */
  --font-display: "Unbounded", Arial, "Arial Narrow", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", Arial, system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --wrap: 1200px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 600px at 85% -8%, rgba(98, 196, 238, 0.22), transparent 60%),
    radial-gradient(900px 520px at -10% 8%, rgba(46, 134, 200, 0.1), transparent 55%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(46, 134, 200, 0.18);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
a, button { touch-action: manipulation; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Бумажное «зерно» отключено на белом фоне (оставлено в разметке на будущее) */
.paper-grain { display: none; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; z-index: 2; }
.section { scroll-margin-top: 82px; }
main { position: relative; z-index: 2; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper-card);
  padding: 10px 16px; border-radius: 10px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: break-word; text-wrap: balance; }
/* защита от grid/flex blowout: элементы могут ужиматься меньше контента */
.hero-grid > *, .about-grid > *, .find-grid > *, .camp-grid > *,
.photo-card, .life-photo, .note-card, .event-note { min-width: 0; }
h1 { font-size: clamp(1.7rem, 7.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }

.kicker {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.5rem; font-weight: 700;
  color: var(--ball);
  transform: rotate(-2deg);
  margin-bottom: 6px;
}
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head .lead { margin: 14px auto 0; }

/* Рукописные наклейки */
.sticker-caveat {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--ball);
  font-size: 1.4rem;
  display: inline-block;
  transform: rotate(-3deg);
}

/* Подчёркивание-скрибл в заголовке */
.ink-mark { position: relative; white-space: nowrap; color: var(--blue-deep); }
.ink-mark .scribble {
  position: absolute; left: 0; right: 0; bottom: -0.35em; width: 100%; height: 0.5em;
  color: var(--ball);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn-lg { padding: 18px 34px; font-size: 1.1rem; }
.btn-primary { background: var(--blue-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: var(--paper-card); color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost:active { transform: translateY(0) scale(0.98); }
.btn-line { color: var(--blue-deep); text-decoration: underline; text-decoration-color: var(--ball); text-underline-offset: 5px; text-decoration-thickness: 2px; padding: 14px 8px; }
.btn-line:hover { color: var(--ball); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--ball); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.header-cta {
  flex-shrink: 0; max-width: 228px; padding: 9px 14px;
  font-size: 0.76rem; line-height: 1.2; text-align: center; white-space: normal;
}

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.burger span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--paper-card); padding: 18px 20px 26px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-menu nav a { padding: 12px 6px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; }

/* ---------- Photo cards / tape ---------- */
.photo-card {
  position: relative;
  background: var(--paper-card);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-card img { border-radius: 8px; width: 100%; height: 100%; object-fit: cover; }
.photo-card figcaption { text-align: center; padding-top: 6px; }
.photo-card:hover { transform: rotate(0deg) translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); z-index: 5; }

.tape {
  position: absolute; z-index: 3;
  background: rgba(191, 220, 241, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(22, 50, 76, 0.12);
}
.tape-top { width: 96px; height: 26px; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.tape-corner { width: 74px; height: 24px; top: -10px; left: -14px; transform: rotate(-38deg); }

/* ---------- HERO (полноэкранная большая картинка) ---------- */
.hero-stage { position: relative; }
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6vh 0 9vh;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 26, 44, 0.88) 0%, rgba(9, 26, 44, 0.63) 38%, rgba(9, 26, 44, 0.18) 68%, rgba(9, 26, 44, 0.04) 100%),
    linear-gradient(0deg, rgba(9, 26, 44, 0.55) 0%, transparent 45%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero-sticker { font-size: 1.6rem; margin-bottom: 8px; color: var(--blue-light); }
.hero-age {
  margin-top: 12px; color: #ffd36a; font-family: var(--font-hand); font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700; line-height: 1.1; transform: rotate(-1.5deg); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}
/* Заголовок hero на тёмном фоне */
.hero .hero-title-top { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); }
.hero .husky-word {
  color: #fff; white-space: nowrap;
  font-size: clamp(3rem, 11vw, 7.2rem);
  text-shadow: 4px 5px 0 var(--blue), 0 6px 30px rgba(0, 0, 0, 0.35);
}

/* Кнопки поверх фото: светлые вторичные */
.hero .btn-ghost { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.2); }
.hero .btn-line { color: #fff; }
.hero .btn-line::after { background: rgba(255,255,255,0.7); }

/* Индикатор «листай вниз» */
.hero-scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.7);
  border-radius: 14px; z-index: 3;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px;
  background: #fff; transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out 3;
}
@keyframes scroll-dot { 0% { opacity: 0; top: 8px; } 30% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ---------- О КЛУБЕ ---------- */
.about {
  z-index: 3; background: var(--paper); border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 48px rgba(16, 47, 77, 0.12);
}
.about-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about-copy h2 { margin: 4px 0 16px; }
.about-lines { display: grid; gap: 12px; margin-top: 22px; }
.about-lines p { padding-left: 22px; position: relative; color: var(--ink-2); }
.about-lines p::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-light); border: 2px solid var(--blue); }
.about-lines b { color: var(--ink); }
.about-collage {
  position: relative;
  min-height: 500px;
  isolation: isolate;
}
.about-collage .photo-card { position: absolute; overflow: visible; }
.about-collage .photo-card img { height: 100%; object-fit: cover; border-radius: 8px; }
.about-main { width: 78%; height: 72%; top: 7%; left: 4%; transform: rotate(-2deg); z-index: 2; }
.about-main figcaption { color: var(--ball); font-size: 1.3rem; padding-top: 7px; }
.about-coach { width: 43%; height: 42%; right: 0; top: 0; transform: rotate(3deg); z-index: 3; }
.about-hoop { width: 48%; height: 38%; right: 3%; bottom: 0; transform: rotate(1.5deg); z-index: 4; }

/* ---------- ПОЧЕМУ МЫ ---------- */
.why { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.note-card {
  background: var(--paper-card); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.note-card:nth-child(2n) { transform: rotate(-1deg); }
.note-card:nth-child(3n) { transform: rotate(1deg); }
.note-card:hover { transform: rotate(0) translateY(-5px); box-shadow: var(--shadow-md); }
.note-number {
  display: block; width: fit-content; margin-bottom: 12px;
  font-size: 1.7rem; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(23, 86, 143, 0.12));
}
.note-card h3 { margin-bottom: 8px; }
.note-card p { color: var(--ink-2); }
.why-cta { display: grid; justify-items: center; gap: 14px; margin: 40px auto 0; text-align: center; }
.why-cta p { color: var(--ink-2); }

/* ---------- ЖИЗНЬ КЛУБА / ИНТЕРАКТИВНОЕ ФОТО ---------- */
.life-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }
.life-tab {
  min-height: 46px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  background: var(--paper-card); border: 2px solid var(--ink);
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.life-tab:nth-child(2n) { transform: rotate(-1deg); }
.life-tab:hover { transform: translateY(-2px) rotate(0); box-shadow: var(--shadow-md); }
.life-tab:active { transform: translateY(1px) scale(0.98); }
.life-tab.is-active { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: 0 10px 28px rgba(23, 86, 143, 0.24); }
.life-mosaic {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense; grid-auto-rows: 180px; gap: 18px;
}
.life-photo {
  position: relative; min-width: 0; padding: 8px; background: var(--paper-card);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}
.life-photo:nth-child(1) { grid-column: span 2; grid-row: span 2; transform: rotate(-1.2deg); }
.life-photo:nth-child(3) { grid-row: span 2; transform: rotate(1deg); }
.life-photo:nth-child(5) { grid-column: span 2; }
.life-photo:nth-child(2n) { transform: rotate(0.8deg); }
.life-photo img {
  width: 100%; height: 100%; border-radius: 8px;
  object-fit: contain; background: var(--paper-2);
  transition: transform 0.45s ease;
}
.life-photo:hover { transform: translateY(-5px) rotate(0); box-shadow: var(--shadow-lg); z-index: 3; }
.life-photo:hover img { transform: scale(1.035); }
.life-mosaic.is-switching .life-photo { opacity: 0; transform: translateY(10px); }

/* ---------- МЕРОПРИЯТИЯ (timeline) ---------- */
.timeline {
  position: relative; display: grid; gap: 22px;
  max-width: 760px; margin: 0 auto; padding-left: 34px;
}
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px;
  background: repeating-linear-gradient(var(--ball) 0 8px, transparent 8px 16px);
  border-radius: 3px; transform-origin: top; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.event-note {
  position: relative; background: var(--paper-card); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.event-note:hover { box-shadow: var(--shadow-md); }
.event-note::before {
  content: ""; position: absolute; left: -30px; top: 26px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ball); border: 3px solid var(--paper);
}
.event-badge {
  display: inline-block; margin-bottom: 8px;
  font-size: 1.55rem; line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(23, 86, 143, 0.12));
}
.event-note h3 { margin-bottom: 4px; }
.event-note p { color: var(--ink-2); }
.js .timeline:not(.is-visible)::before { transform: scaleY(0); }
.js .timeline:not(.is-visible) .event-note { opacity: 0; transform: translate3d(0, 34px, 0); }
.timeline.is-visible .event-note:nth-child(2) { transition-delay: 0.1s; }
.timeline.is-visible .event-note:nth-child(3) { transition-delay: 0.2s; }
.timeline.is-visible .event-note:nth-child(4) { transition-delay: 0.3s; }
.timeline.is-visible .event-note:nth-child(5) { transition-delay: 0.4s; }

/* ---------- ЛЕТНИЙ ЛАГЕРЬ ---------- */
.camp { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.camp-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 76px); align-items: center; }
.camp-gallery { min-width: 0; transform: rotate(-1deg); }
.camp-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; padding: 9px;
  background: var(--paper-card); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.camp-frame::before { content: ""; position: absolute; z-index: 2; top: -1px; left: 50%; width: 94px; height: 26px; background: rgba(195, 226, 245, 0.82); transform: translateX(-50%) rotate(1deg); }
.camp-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; transition: opacity 0.18s ease, transform 0.55s ease; }
.camp-gallery.is-switching .camp-frame img { opacity: 0; transform: scale(1.02); }
.camp-count {
  position: absolute; right: 20px; bottom: 18px; z-index: 3; padding: 7px 11px;
  border-radius: 999px; color: #fff; background: rgba(16, 47, 77, 0.82);
  font-family: var(--font-display); font-size: 0.72rem; font-variant-numeric: tabular-nums;
}
.camp-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.camp-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 1.7rem; line-height: 1; transition: transform 0.18s ease, background 0.18s ease; }
.camp-arrow:hover { transform: translateY(-2px); background: var(--sky-soft); }
.camp-dots { display: flex; align-items: center; gap: 8px; }
.camp-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(23, 86, 143, 0.25); transition: width 0.2s ease, background 0.2s ease; }
.camp-dot.is-active { width: 28px; border-radius: 999px; background: var(--ball); }
.camp-copy h2 { margin: 6px 0 16px; }
.camp-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.camp-tags span {
  background: var(--paper-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}

/* ---------- ПАРТНЁР ---------- */
.partner { padding-top: clamp(72px, 8vw, 112px); padding-bottom: clamp(72px, 8vw, 112px); }
.partner-card {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  min-height: 470px; overflow: hidden; border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: 0 34px 82px rgba(23, 86, 143, 0.22); }
.partner-photo { min-height: 420px; overflow: hidden; }
.partner-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.partner-card:hover .partner-photo img { transform: scale(1.035); }
.partner-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 5vw, 64px); background: linear-gradient(145deg, #ffffff, #edf6ee); }
.partner-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; color: #4b8e50; font-size: 0.75rem; font-weight: 700; }
.partner-logo { width: min(230px, 68%); margin: 18px 0 20px; }
.partner-copy p { max-width: 38ch; color: var(--ink-2); font-size: 1.05rem; }
.partner-link-text { margin-top: 28px; font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--blue-deep); border-bottom: 2px solid #4b8e50; padding-bottom: 3px; }

/* ---------- СОЦСЕТИ ---------- */
.social-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px;
  background: var(--ink); color: var(--paper-card);
  padding: clamp(30px, 5vw, 54px); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.social-inner h2 { color: var(--paper-card); }
.social-inner .lead { color: rgba(251, 247, 238, 0.75); }
.social-links { display: flex; gap: 14px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--paper-card); color: var(--ink);
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-family: var(--font-display);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.social-btn img { width: 26px; height: 26px; }
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------- ГДЕ НАС НАЙТИ ---------- */
.find-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 56px); align-items: center; }
.find-copy h2 { margin: 6px 0 14px; }
.find-copy .btn { margin-top: 22px; }
.area-bases { margin-top: 24px; }
.area-bases-title { font-family: var(--font-display); font-size: 0.94rem; font-weight: 600; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.area-list li { padding: 7px 10px; color: var(--ink); background: var(--paper-card); border: 1px solid var(--line); border-radius: 9px; font-size: 0.88rem; box-shadow: var(--shadow-sm); }
.area-bases-note { max-width: 48ch; margin-top: 12px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.find-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 8px solid var(--paper-card); transform: rotate(-1deg);
}
.find-map iframe { display: block; border: 0; width: 100%; }

/* ---------- ОТЗЫВЫ ---------- */
.reviews { padding-top: clamp(42px, 5vw, 72px); }
.reviews-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(118deg, var(--paper-card) 0%, #f5fbff 100%); box-shadow: var(--shadow-md);
}
.reviews-copy h2 { margin: 6px 0 14px; }
.reviews-copy .lead { max-width: 50ch; }
.reviews-link {
  display: flex; align-items: center; gap: 13px; min-width: 270px; padding: 15px 17px;
  color: var(--ink); background: var(--paper-card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.reviews-link:hover { transform: translateY(-3px); border-color: var(--blue-light); box-shadow: var(--shadow-md); }
.reviews-link strong, .reviews-link small { display: block; }
.reviews-link strong { font-family: var(--font-display); font-size: 0.9rem; }
.reviews-link small { margin-top: 3px; color: var(--ink-2); font-size: 0.8rem; }
.reviews-yandex { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.reviews-arrow { margin-left: auto; color: var(--blue-deep); font-size: 1.35rem; }

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */
.final { padding-block: clamp(72px, 7vw, 104px); text-align: center; }
.final-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr); align-items: center; gap: clamp(28px, 5vw, 64px);
  max-width: 1000px; margin: 0 auto; background: var(--paper-card);
  border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.final-inner h2 { margin: 8px 0 14px; }
.final-support { max-width: 38ch; margin: 0 auto; color: var(--ink-2); font-size: clamp(1rem, 1.8vw, 1.15rem); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 20px; }
.final-actions .btn {
  min-width: min(100%, 318px); min-height: 66px; padding: 16px 28px; border-radius: 16px;
  font-size: 1rem; box-shadow: 0 13px 25px rgba(23, 86, 143, 0.25);
}
.final-actions .btn::after { content: "→"; margin-left: 10px; font-size: 1.18em; transition: transform 0.2s ease; }
.final-actions .btn:hover::after { transform: translateX(4px); }
.final .btn-ghost { color: var(--blue-deep); border-color: var(--blue-deep); }
.final .btn-ghost:hover { color: #fff; background: var(--blue-deep); }
.final-copy, .final-photo { position: relative; z-index: 1; }
.final-photo { min-height: 310px; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-md); transform: rotate(1.25deg); }
.final-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; }
.final-burst { position: absolute; z-index: 0; width: 150px; height: 120px; color: var(--ball); pointer-events: none; }
.final-burst svg { display: block; width: 100%; height: 100%; overflow: visible; }
.final-burst path { stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.final-burst--top { top: -52px; left: -96px; transform: rotate(-12deg); }
.final-burst--bottom { right: -102px; bottom: -52px; transform: rotate(8deg); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--paper-card); padding: 48px 0 30px; position: relative; z-index: 2; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { font-family: var(--font-display); display: block; }
.footer-brand span { font-size: 0.85rem; opacity: 0.75; }
.footer-contacts { display: flex; flex-direction: column; gap: 4px; }
.footer-contacts a:hover { color: var(--blue-light); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); transition: background 0.2s;
}
.footer-socials a:hover { background: rgba(255, 255, 255, 0.22); }
.footer-madeby { display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: rgba(255,255,255,0.66); font-size: 0.8rem; }
.footer-madeby img { width: clamp(170px, 20vw, 245px); height: auto; object-fit: contain; }
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-legal { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-family: var(--font-display); font-size: 0.82rem; color: rgba(255,255,255,0.86); }
.footer-legal-link { padding: 0; color: inherit; text-align: left; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 4px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.footer-legal-link:hover { color: var(--blue-light); text-decoration-color: currentColor; }
.footer-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 22px; }
.footer-copy { color: rgba(255,255,255,0.58); font-size: 0.76rem; line-height: 1.4; }
.footer-entity { max-width: 460px; color: rgba(255,255,255,0.46); font-size: 0.61rem; font-weight: 400; line-height: 1.55; text-align: right; }

/* ---------- COOKIE CONSENT ---------- */
.cookie-consent { position: fixed; z-index: 320; right: 20px; bottom: 20px; width: min(calc(100% - 40px), 460px); padding: 22px; border: 1px solid rgba(23, 86, 143, 0.2); border-radius: 16px; color: var(--ink); background: rgba(255,255,255,0.98); box-shadow: 0 20px 60px rgba(16,47,77,0.24); }
.cookie-consent[hidden] { display: none; }
.cookie-consent-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; }
.cookie-consent p:not(.cookie-consent-title) { margin-top: 8px; color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }
.cookie-consent-policy { margin-top: 8px; color: var(--blue-deep); font-size: 0.82rem; text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie-consent-actions .btn { min-height: 42px; padding: 10px 16px; font-size: 0.78rem; }
.cookie-consent-reject { min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.cookie-consent-reject:hover { border-color: var(--blue); background: var(--paper); }
.cookie-consent-reject:active, .cookie-consent-accept:active { transform: scale(0.98); }

/* ---------- Политика обработки персональных данных ---------- */
.policy-header { position: static; }
.policy-main { padding: clamp(38px, 6vw, 72px) 0; }
.policy-card { max-width: 820px; padding: clamp(26px, 4vw, 48px); background: var(--paper-card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); }
.policy-card h1 { margin: 8px 0 18px; font-size: clamp(2rem, 4vw, 3rem); }
.policy-card h2 { margin: 0 0 12px; font-size: clamp(1.18rem, 2.4vw, 1.45rem); }
.policy-card section { padding: 26px 0; border-top: 1px solid var(--line); }
.policy-card section:first-of-type { margin-top: 30px; }
.policy-card p { max-width: 68ch; color: var(--ink-2); font-size: 1rem; line-height: 1.72; }
.policy-card p + p { margin-top: 12px; }
.policy-card a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.policy-card ul { display: grid; gap: 9px; margin-top: 14px; padding-left: 22px; list-style: disc; color: var(--ink-2); line-height: 1.62; }
.policy-lead { max-width: 57ch; font-size: 1.12rem; }
.legal-placeholder { margin-top: 22px; padding: 13px 16px; border: 1px solid rgba(226, 115, 47, 0.45); border-radius: 12px; background: rgba(226, 115, 47, 0.08); color: var(--ink-2); font-size: 0.94rem; }
.policy-back { margin-left: auto; }
.policy-footer { margin-top: 0; }

/* ---------- МОДАЛКА ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal, .lightbox { overscroll-behavior: contain; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-overlay, .lightbox-overlay { position: absolute; inset: 0; background: rgba(22, 50, 76, 0.55); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 2; background: var(--paper-card);
  width: min(100%, 440px); border-radius: 22px; padding: 34px 30px;
  box-shadow: var(--shadow-lg); animation: pop 0.25s ease;
}
.modal-card h2 { font-size: 1.6rem; margin: 4px 0 8px; }
.modal-card > p { color: var(--ink-2); margin-bottom: 18px; }
.modal-close, .lightbox-close {
  position: absolute; top: 12px; right: 14px; width: 40px; height: 40px;
  font-size: 1.8rem; line-height: 1; color: var(--ink); border-radius: 50%;
}
.modal-close:hover { background: var(--paper-2); }
.modal-actions { display: grid; gap: 10px; }
.contact-row {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  transition: transform 0.15s ease, border-color 0.2s;
}
.contact-row strong { font-family: var(--font-display); }
.contact-row--app { justify-content: flex-start; }
.contact-app-icon { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; }
.contact-row::after { content: "↗"; color: var(--blue-deep); font-size: 1.15rem; line-height: 1; }
.contact-row:hover { transform: translateX(3px); border-color: var(--blue); }

/* ---------- ПРАВОВЫЕ ДОКУМЕНТЫ ---------- */
.legal-modal { position: fixed; inset: 0; z-index: 340; display: block; overflow-y: auto; padding: clamp(52px, 8dvh, 88px) 20px 40px; overscroll-behavior: contain; }
.legal-modal[hidden] { display: none; }
.legal-modal-overlay { position: fixed; inset: 0; background: rgba(7, 27, 49, 0.8); backdrop-filter: blur(5px); }
.legal-modal-sheet { position: relative; z-index: 1; width: min(100%, 960px); margin: 0 auto; background: var(--paper-card); border-radius: 10px; box-shadow: 0 24px 70px rgba(5, 22, 40, 0.36); animation: legal-sheet-rise 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.legal-modal-head { position: static; padding: 0; border: 0; }
.legal-modal-kicker,
.legal-modal-head h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.legal-modal-close { position: fixed; z-index: 2; top: 20px; right: clamp(18px, 3vw, 48px); display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255,255,255,0.72); border-radius: 50%; color: #fff; font-size: 1.9rem; line-height: 1; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.legal-modal-close:hover { color: var(--ink); background: #fff; border-color: #fff; }
.legal-modal-scroll { padding: clamp(28px, 4vw, 46px) clamp(28px, 5vw, 52px) clamp(32px, 4vw, 46px); }
.legal-document { max-width: 98ch; margin: 0 auto; color: var(--ink); font-size: clamp(0.72rem, 0.86vw, 0.82rem); line-height: 1.48; }
.legal-document[hidden] { display: none; }
.legal-document h3 { margin: 0 0 9px; color: var(--ink); font-family: var(--font-body); font-size: 0.84rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.legal-document h4 { margin: 17px 0 5px; color: var(--ink); font-family: var(--font-body); font-size: 0.78rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.legal-document p + p { margin-top: 6px; }
.legal-document a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { display: none; }
.legal-placeholder { margin: 0 0 12px; color: var(--ink-2); font-size: 0.92em; }
.legal-note { margin-top: 12px; padding: 8px 10px; border-left: 3px solid var(--ball); border-radius: 0 6px 6px 0; background: var(--paper); font-size: 0.92em; }
@keyframes legal-sheet-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- ЛАЙТБОКС ---------- */
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2.4rem; z-index: 4; }
.lightbox-figure {
  position: relative; z-index: 2; display: grid; place-items: center;
  width: min(86vw, 1200px); height: 84dvh;
  max-height: calc(100dvh - 40px); margin: 0;
}
.lightbox-figure img {
  width: auto; height: auto;
  max-width: min(86vw, 1200px);
  max-height: 84dvh;
  object-fit: contain; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lightbox-nav {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; color: var(--ink);
  background: var(--paper-card); box-shadow: var(--shadow-md); display: grid; place-items: center;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav:hover { background: #fff; }

.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;
}

/* ---------- Анимации ---------- */
.reveal,
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

@keyframes hero-enter {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: hero-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .hero-copy > :nth-child(1) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.28s; }
}

@media (min-width: 861px) {
  .hero-stage { height: 132svh; }
  .hero { position: sticky; top: 0; height: 100svh; }
}

.rating-strip {
  position: relative;
  z-index: 4;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.rating-strip-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.rating-strip-label {
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 600;
}
.yandex-rating-badge {
  display: block;
  width: 150px;
  height: 50px;
  border: 0;
  flex: 0 0 150px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid, .camp-grid, .find-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-collage { min-height: 560px; max-width: 720px; width: 100%; margin-inline: auto; }
  .camp-gallery { width: min(100%, 620px); margin-inline: auto; }
  .camp-frame { aspect-ratio: 16 / 11; }
  .partner-card { grid-template-columns: 1fr; }
  .partner-photo { min-height: 400px; max-height: 560px; }
  .reviews-card { grid-template-columns: 1fr; }
  .reviews-link { width: min(100%, 360px); }
  .final-inner { grid-template-columns: 1fr; max-width: 720px; }
  .final-photo { min-height: 260px; transform: rotate(-0.75deg); }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }

  .hero {
    min-height: calc(100svh - 68px);
    padding: 48px 0 72px;
  }

  .hero-copy { max-width: 100%; }
  .hero-bg img { object-position: 50% 58%; }
  .hero .husky-word { font-size: clamp(3.2rem, 15vw, 5.6rem); }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(9, 26, 44, 0.92) 0%, rgba(9, 26, 44, 0.68) 72%, rgba(9, 26, 44, 0.42) 100%),
      linear-gradient(0deg, rgba(9, 26, 44, 0.58) 0%, transparent 52%);
  }

  /* Коллаж героя -> статичный поток без absolute (нет вылезаний) */
  .hero-collage { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 8px; }
  .hero-collage .photo-card { position: static; width: 100%; animation: none; }
  .hero-collage .card-a { grid-column: 1 / -1; transform: rotate(-2deg); }
  .hero-collage .card-a img { aspect-ratio: 16 / 10; }
  .hero-collage .card-b { transform: rotate(2deg); }
  .hero-collage .card-c { transform: rotate(-2deg); }
  .hero-badge { position: static; margin: 10px auto 0; width: max-content; }

  .rating-strip-inner { justify-content: center; min-height: 70px; }

  .why-grid { grid-template-columns: 1fr; }
  .life-mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 190px; }
  .life-photo:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .life-photo:nth-child(1), .life-photo:nth-child(6) { grid-column: span 2; }
  .life-photo:nth-child(1) { grid-row: span 2; }
  .social-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .social-links { width: 100%; }
  .social-btn { flex: 1; justify-content: center; }
}

@media (max-width: 1120px) and (min-width: 861px) {
  .nav { gap: 16px; }
}

@media (max-width: 460px) {
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .header-inner { height: 64px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.12rem; }
  .hero-age { font-size: 1.4rem; }
  .rating-strip-inner { gap: 10px; }
  .rating-strip-label { font-size: 0.78rem; }
  .final-actions .btn { width: 100%; }
  .final-burst { display: none; }
  .about-collage { min-height: 410px; }
  .about-main { width: 84%; height: 66%; left: 0; }
  .about-coach { width: 45%; height: 35%; }
  .about-hoop { width: 52%; height: 32%; }
  .life-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 30px; }
  .life-tab { width: 100%; padding-inline: 10px; font-size: 0.78rem; }
  .life-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .life-mosaic { grid-template-columns: 1fr; }
  .life-mosaic { grid-auto-rows: 250px; gap: 14px; }
  .life-photo:nth-child(n) { grid-column: span 1; grid-row: span 1; transform: none; }
  .camp-frame { aspect-ratio: 4 / 5; }
  .partner-card { border-radius: 20px; }
  .partner-photo { min-height: 300px; }
  .partner-copy { padding: 30px 24px 34px; }
  .partner-logo { width: 180px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-madeby { justify-content: flex-start; }
  .footer-bottom { display: flex; align-items: flex-start; flex-direction: column; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-entity { max-width: none; text-align: left; }
  .legal-modal { padding: 64px 12px 28px; }
  .legal-modal-sheet { border-radius: 10px; }
  .legal-modal-scroll { padding: 24px 20px 28px; }
  .legal-document { font-size: 0.74rem; line-height: 1.5; }
  .legal-document h3 { font-size: 0.79rem; }
  .legal-document h4 { margin-top: 15px; font-size: 0.75rem; }
  .contact-row { align-items: flex-start; flex-direction: column; }
  .contact-row--app { align-items: center; flex-direction: row; }
  .contact-row::after { position: absolute; right: 18px; }
  .lightbox-nav { width: 46px; height: 46px; }
}

@media (max-width: 460px) {
  .cookie-consent { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
  .cookie-consent-actions { flex-direction: column-reverse; }
  .cookie-consent-actions > * { width: 100%; justify-content: center; }
}

/* ---------- Hero: заголовок «Баскетбольный клуб / HUSKY» ---------- */
.hero-title { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 20px; }
.hero-title-top {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 2.05rem); letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.05;
}
.husky-word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.8rem, 13vw, 8.5rem);
  line-height: 0.86;
  color: var(--blue-deep);
  letter-spacing: 0.005em;
  text-shadow: 3px 4px 0 var(--blue-light);
  padding-bottom: 6px;
}

/* ---------- Скролл-анимация: мяч → кольцо (фиксировано справа) ---------- */
.court-fx {
  position: fixed; top: 0; right: clamp(6px, 3vw, 48px);
  width: clamp(72px, 10vw, 132px); height: 100dvh;
  z-index: 60; pointer-events: none;
  transition: opacity 0.5s ease;
}
.court-hoop {
  position: absolute; top: 60dvh; right: 0;
  width: clamp(78px, 9vw, 124px);
  filter: drop-shadow(0 8px 16px rgba(23, 86, 143, 0.22));
  transition: opacity 0.5s ease 0.45s;
}
.court-net { transform-box: fill-box; transform-origin: center; }
.court-fx.is-scored .court-net { animation: court-swish 0.55s ease-out; }
@keyframes court-swish {
  0% { transform: scaleY(1) skewX(0); }
  35% { transform: scaleY(1.3) skewX(7deg); }
  60% { transform: scaleY(0.9) skewX(-5deg); }
  100% { transform: scaleY(1) skewX(0); }
}
/* Мяч летит к кольцу один раз, когда пользователь доходит до блока «О клубе». */
.court-ball {
  position: absolute; right: clamp(8px, 2vw, 24px); top: 12dvh;
  width: clamp(46px, 6vw, 74px); height: auto;
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 14px rgba(226, 115, 47, 0.42));
  transition: opacity 0.45s ease 0.2s;
}
.court-fx.is-in-flight .court-ball { animation: court-shot 1.15s cubic-bezier(0.22, 0.72, 0.2, 1) forwards; }
@keyframes court-shot {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  58% { transform: translate3d(-18px, 23dvh, 0) rotate(330deg); }
  100% { transform: translate3d(0, 45dvh, 0) rotate(620deg); }
}
/* Попадание: сетка вздрагивает, огонёк вспыхивает, мяч и кольцо гаснут */
.court-fx.is-scored .court-ball { opacity: 0; }
.court-fx.is-scored .court-hoop { opacity: 0; }
.court-spark {
  position: absolute; top: 58dvh; right: clamp(4px, 2vw, 20px);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  opacity: 0; transform: scale(0.3);
  filter: drop-shadow(0 0 10px rgba(226, 115, 47, 0.7));
}
.court-fx.is-scored .court-spark { animation: spark-pop 0.9s ease-out forwards; }
@keyframes spark-pop {
  0% { opacity: 0; transform: scale(0.3) translateY(0); }
  25% { opacity: 1; transform: scale(1.25) translateY(-6px); }
  60% { opacity: 1; transform: scale(1.1) translateY(-16px); }
  100% { opacity: 0; transform: scale(0.9) translateY(-44px); }
}
@media (max-width: 860px) { .court-fx { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .legal-modal-sheet { animation: none; }
  .court-fx { display: none; }
}

.life,
.events,
.camp,
.partner,
.social,
.find,
.reviews,
.final,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
