/* =========================================================
   Муз-Зачёт — landing rebuilt from the Figma design
   Fonts: Raleway (self-hosted)  |  No build step, no deps
   Design canvas: 1250px, implemented at 1440px desktop (×1.15)
   ========================================================= */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600i.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700i.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-800i.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --pink: #ec1b73;
  --pink-hot: #f5006e;
  --pink-deep: #d8156d;
  --yellow: #eeee37;
  --yellow-2: #f5ef3b;
  --cyan: #2fb3e5;
  --cyan-light: #59e4ff;
  --paper: #f6f5f2;
  --ink: #1c1c1c;

  --grad-hero: linear-gradient(100deg, #b93a97 0%, #a541a5 20%, #7f66b7 45%, #5b81ca 70%, #2ba6e8 100%);
  --grad-strip: linear-gradient(96deg, #b2196d 0%, #a02a78 28%, #743376 52%, #554c83 74%, #3280b5 100%);
  --grad-card: linear-gradient(96deg, #f60a74 0%, #e5107a 26%, #b03388 48%, #6e7fc0 64%, #2fb3e5 100%);
  --grad-form: linear-gradient(100deg, #34a6e3 0%, #6e7ac4 40%, #a848a2 64%, #c32f91 100%);

  --wrap: 1240px;
  --pad: 30px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--white {
  background: #fff;
  color: #ef0068;
  font-size: 24px;
  padding: 23px 48px;
  box-shadow: 0 16px 34px rgba(60, 0, 40, .18);
}

.btn--pink {
  background: var(--pink-hot);
  color: #fff;
  font-size: 23px;
  padding: 20px 54px;
  box-shadow: 0 14px 30px rgba(213, 0, 96, .28);
}

/* ---------- header ---------- */
.site-head {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  padding: 30px 0;
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 50px;
}

.logo img,
.logo .custom-logo,
.custom-logo-link img {
  height: 34px;
  width: auto;
}

.custom-logo-link {
  display: block;
}

.nav {
  margin-left: auto;
  margin-right: 10px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__close { display: none; }

.nav a {
  color: #fff;
  font-size: 19px;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.nav a:hover { border-bottom-color: rgba(255, 255, 255, .7); }

.site-head__addr {
  display: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}

.burger {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.burger span {
  display: block;
  width: 21px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink);
  transition: transform .25s ease, opacity .2s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 650px;
  background-image: linear-gradient(100deg, #a34aa3 0%, #8c5aaf 30%, #7f66b7 50%, #6a78c2 72%, #5786cd 100%);
  overflow: hidden;
  isolation: isolate;
}

/* нижний «тёплый» слой градиента, плавно проявляется к низу */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, #cd278a 0%, #b33e9a 20%, #94509f 46%, #6e77be 74%, #24afe9 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 96%);
  z-index: -1;
}

.hero__bird {
  position: absolute;
  bottom: 0;
  left: max(0px, calc(50% - 680px));
  width: min(47vw, 600px);
  filter: drop-shadow(0 24px 44px rgba(40, 0, 40, .22));
  z-index: 1;
}

.hero__in {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 90px;
  z-index: 2;
}

.hero__content {
  width: 500px;
  text-align: center;
  padding: 26px 0 0;
}

.hero__logo {
  width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 8px 20px rgba(60, 0, 40, .18));
}

.hero__sub {
  margin: 20px 0 34px;
  font-size: 28px;
  line-height: 1.14;
  font-weight: 600;
  color: var(--yellow);
  text-shadow: 0 2px 14px rgba(70, 0, 50, .18);
}

/* ---------- schedule ---------- */
.schedule {
  background: var(--grad-strip);
  color: #fff;
}

.schedule__in {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.05fr;
  align-items: stretch;
}

.schedule__lead {
  padding: 30px 30px 32px 0;
}

.schedule__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.12;
}

.schedule__note {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  opacity: .95;
}

.schedule__addr {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  opacity: .95;
}

.schedule__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px 70px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.schedule__icon {
  order: 3;
  width: 46px;
  height: auto;
  margin: auto auto 0;
  padding-top: 12px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
}

.schedule__date {
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  color: var(--yellow-2);
  line-height: 1.2;
}

.schedule__game {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- paper sections ---------- */
/* Возврат к прежнему виду: бумага — фон секции, рваные края — полосами сверху и снизу. */
.paper {
  position: relative;
  z-index: 1;
  padding: 96px 0 110px;
  background-color: #f2f1ee;
  background-image: url("../img/paper-tile.webp");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat;
}

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 42px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 3;
}

.paper::before {
  top: -40px;
  background-image: url("../img/paper-top.webp");
}

.paper::after {
  bottom: -46px;
  height: 47px;
  background-image: url("../img/paper-bottom.webp");
}

.paper--first { padding-top: 96px; }

.h2 {
  font-size: 44px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.06;
  text-align: center;
  color: var(--pink);
  letter-spacing: -.005em;
}

.h2--white { color: #fff; text-align: left; }

/* about card */
.about-card {
  position: relative;
  max-width: 944px;
  margin: 28px auto 0;
  padding: 30px 40px;
  border: 6px solid #f5f13c;
  border-radius: 30px;
  background: var(--grad-card);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.42;
  text-align: center;
  text-shadow: 0 1px 2px rgba(120, 0, 60, .16);
}

.hl-y { color: var(--yellow-2); font-weight: 700; }
.hl-c { color: var(--cyan-light); font-weight: 700; }
.note-emoji { white-space: nowrap; }

/* features */
.features {
  display: flex;
  justify-content: center;
  gap: 62px;
  margin-top: 42px;
  text-align: center;
}

.features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 150px;
  text-align: center;
}

.features__icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 96px;
}

.features img {
  width: 112px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(120, 40, 160, .16));
}

.features__label {
  display: block;
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.1;
  color: var(--pink);
}

/* moments / gallery */
.moments { margin-top: 72px; }

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 32px 0 34px;
}

.gal-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}

.gal-track::-webkit-scrollbar { display: none; }

.moments__body {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

/* Карточка видео: белая, с розовой рамкой — как в макете */
.moments__video {
  flex: 0 0 330px;
  aspect-ratio: 265 / 540;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 40px rgba(90, 0, 60, .18);
}

.moments__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Правая часть: карусель + кнопка под ней */
.moments__main {
  flex: 1 1 auto;
  min-width: 0;
}

.moments__btn {
  display: block;
  width: fit-content;
  margin: 38px auto 0;
}

/* лайтбокс */
.mz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 0, 20, .9);
}

.mz-lightbox.is-open { display: flex; }

.mz-lightbox__img {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  display: block;
}

.mz-lightbox__close,
.mz-lightbox__prev,
.mz-lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}

.mz-lightbox__close:hover,
.mz-lightbox__prev:hover,
.mz-lightbox__next:hover { background: rgba(255, 255, 255, .34); }

.mz-lightbox__close { top: 20px; right: 20px; }
.mz-lightbox__prev { left: 20px; top: 50%; margin-top: -24px; }
.mz-lightbox__next { right: 20px; top: 50%; margin-top: -24px; }

body.mz-lightbox-open { overflow: hidden; }

.gal-item__link { display: block; width: 100%; height: 100%; cursor: zoom-in; }

.gal-item {
  flex: 0 0 288px;
  height: 276px;
  border: 3px solid var(--pink-hot);
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: center;
  background: #ddd;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gal-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 54px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink-hot);
  cursor: pointer;
  opacity: .95;
  transition: transform .15s ease, opacity .15s ease;
}

.gal-arrow:hover { transform: scale(1.12); opacity: 1; }
.gal-arrow svg { width: 100%; height: 100%; }

.moments .btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* ---------- signup ---------- */
.signup {
  position: relative;
  /* снизу больше воздуха: бумага и барабаны отходят от формы */
  padding: 80px 0 110px;
  background: var(--grad-form);
  overflow: hidden;
  isolation: isolate;
}

.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 82% 8%, rgba(255, 255, 255, .12), transparent 62%);
  z-index: -1;
}

.signup__in { position: relative; }

.signup__in .h2--white { padding-left: 190px; }

.signup__grid {
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 30px;
  align-items: end;
  margin-top: 26px;
  padding-left: 56px;
}

/* form */
.form-card {
  position: relative;
  padding: 30px 34px 32px;
  border: 5px solid #f5f13c;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 52px rgba(80, 0, 60, .18);
}

.form-card__title {
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  color: var(--pink);
}

.field {
  position: relative;
  margin-bottom: 13px;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid #e4007e;
  border-radius: 999px;
  background: #fff;
  color: var(--pink);
  font-family: inherit;
  font-size: 15.5px;
  font-style: italic;
  font-weight: 600;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}

.field select { cursor: pointer; padding-right: 52px; }

.field input::placeholder { color: #e4007e; opacity: .95; }

.field input:focus,
.field select:focus {
  border-color: #b3005f;
  box-shadow: 0 0 0 3px rgba(228, 0, 126, .14);
}

.field__chevron {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 22px;
  height: 14px;
  margin-top: -7px;
  color: var(--pink);
  pointer-events: none;
}

/* team size */
.sizes {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.sizes__legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
  color: var(--pink);
}

.sizes__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.sizes__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.size {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f8237f, #d4005f);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.size:hover { transform: translateY(-2px); }

.size.is-active {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(245, 0, 110, .55);
}

.sizes__badge {
  display: inline-block;
  padding: 8px 14px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
  border-radius: 13px;
  background: linear-gradient(140deg, #f8237f, #c4006f);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
  white-space: nowrap;
}

.sizes__badge:hover { transform: translateY(-1px); }

.sizes__badge[aria-pressed="true"] {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(245, 0, 110, .55);
}

/* consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 20px;
  cursor: pointer;
}

.consent input { position: absolute; opacity: 0; width: 0; height: 0; }

.consent__box {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid #e4007e;
  border-radius: 6px;
  background: #fff;
  position: relative;
}

.consent input:checked + .consent__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 6px;
  height: 13px;
  border: solid #e4007e;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(43deg);
}

.consent input:focus-visible + .consent__box {
  box-shadow: 0 0 0 3px rgba(228, 0, 126, .3);
}

.consent__text {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #b0136a;
}

.consent__link {
  display: block;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-card__submit {
  display: block;
  width: 100%;
  font-size: 19px;
  padding: 18px 20px;
}

.form-card__msg {
  min-height: 0;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--pink);
}

.form-card__msg.is-error { color: #d1003f; }
.form-card__msg.is-ok { color: #0a8f4c; }

.field.is-invalid input,
.field.is-invalid select { border-color: #d1003f; box-shadow: 0 0 0 3px rgba(209, 0, 63, .12); }

/* mascot */
.signup__mascot {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  /* барабан заводим под бумагу, чтобы не было видно ровного обреза фото */
  margin-bottom: -135px;
  z-index: 2;
}

.signup__mascot img {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 20px 34px rgba(60, 0, 40, .22));
}

.signup__slogan {
  display: none;
  font-size: 34px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.05;
  color: var(--yellow-2);
}

/* ---------- corporate ---------- */
.paper--corp {
  padding-top: 80px;
  background-image: url("../img/paper-tile.webp");
}

.paper--corp::before {
  background-image: url("../img/paper2-top.webp");
}

.paper--corp::after {
  content: none;
}

.about-card__emoji {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.25em;
  line-height: 1;
  vertical-align: -3px;
}

.about-card--corp { max-width: 944px; }

.corp-phone {
  margin-top: 40px;
  font-size: 27px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.32;
  text-align: center;
  color: var(--pink-deep);
}

.corp-phone a { text-decoration: none; }
.corp-phone a:hover { text-decoration: underline; text-underline-offset: 4px; }

.socials { margin-top: 70px; }
.socials .h2 { font-size: 36px; }

.socials__row {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 32px;
}

.social img {
  width: 106px;
  height: auto;
  transition: transform .2s ease;
}

.social:hover img { transform: translateY(-4px) scale(1.03); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translate(-50%, 240%);
  padding: 14px 22px;
  border-radius: 14px;
  background: #1c1c1c;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
  transition: transform .3s ease;
  max-width: calc(100% - 32px);
}

.toast.is-visible { transform: translate(-50%, 0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  :root { --pad: 24px; }

  .hero__content { width: 440px; }
  .hero__logo { width: 400px; }
  .hero__sub { font-size: 26px; }
  .hero__bird { width: min(46vw, 520px); left: 0; }
  .hero__in { padding-right: 40px; }

  .schedule__title { font-size: 27px; }
  .schedule__note, .schedule__addr { font-size: 16px; }
  .schedule__item { padding: 30px 20px; }
  .schedule__date, .schedule__game { font-size: 18px; }

  .h2 { font-size: 42px; }
  .about-card { font-size: 20px; padding: 28px 34px; }
  .features { gap: 42px; }
  .features img { width: 96px; height: 84px; }
  .features__icon { height: 84px; }
  .features__label { font-size: 18px; }

  .signup__grid { grid-template-columns: 1fr 400px; gap: 34px; padding-left: 0; }
  .signup__in .h2--white { padding-left: 120px; }
  .signup__mascot img { max-width: 400px; }
}

@media (max-width: 980px) {
  body { font-size: 18px; }

  .site-head__in { gap: 26px; }
  .nav__list { gap: 24px; }
  .nav a { font-size: 16px; }

  .h2 { font-size: 38px; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__in { min-height: 0; padding: 110px 0 0; justify-content: center; order: 1; padding-right: var(--pad); padding-left: var(--pad); }
  .hero__content { width: 100%; max-width: 520px; }
  .hero__logo { width: 380px; }
  .hero__bird {
    position: static;
    order: 2;
    width: min(80vw, 470px);
    margin: 24px auto -2px;
    filter: drop-shadow(0 16px 32px rgba(40, 0, 40, .22));
  }

  .schedule__in { grid-template-columns: 1fr 1fr 1fr; }
  .schedule__lead { grid-column: 1 / -1; text-align: center; padding: 30px 0 20px; }
  .schedule__addr { margin-top: 10px; }
  .schedule__item { border-left: 0; padding: 20px 16px 26px; text-align: center; }

  .about-card { font-size: 19px; }

  .moments__video { flex: 0 0 280px; }
  .gal-item { flex: 0 0 250px; height: 240px; }

  .signup { padding-top: 70px; padding-bottom: 20px; }
  .signup__in .h2--white { padding-left: 0; text-align: center; }
  .signup__grid {
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
    margin-top: 24px;
  }
  .form-card { width: 100%; max-width: 600px; }
  .signup__mascot {
    justify-content: center;
    margin-top: 30px;
    margin-bottom: -44px;
    gap: 14px;
    width: 100%;
    max-width: 600px;
    align-items: center;
  }
  .signup__slogan { display: block; text-align: right; font-size: 30px; }
  .signup__mascot img { max-width: 320px; }

  .corp-phone { font-size: 23px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .site-head { padding: 14px 0; }
  .logo img { height: 26px; }
  .site-head__in { gap: 12px; }
  .site-head__addr { display: block; margin-left: auto; font-size: 11px; }
  .burger { display: flex; margin-left: 6px; }

  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 40px;
    background: linear-gradient(160deg, #c22a8d, #7f66b7 55%, #29a6e9);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 50;
  }
  .nav.is-open { transform: none; }
  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .nav a { font-size: 23px; border: 0; }

  .hero__in { padding-top: 96px; }
  .hero__logo { width: min(76vw, 320px); }
  .hero__sub { font-size: 20px; margin: 16px 0 26px; }
  .btn--white { font-size: 18px; padding: 16px 32px; }
  .hero__bird { width: 92%; max-width: 400px; margin-top: 20px; }

  .schedule__in { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 24px; }
  .schedule__title { font-size: 23px; }
  .schedule__note { font-size: 14px; }
  .schedule__addr { font-size: 13px; }
  .schedule__item {
    padding: 16px 8px 18px;
    border-radius: 16px 16px 0 0;
    background: rgba(255, 255, 255, .08);
  }
  .schedule__icon { width: 26px; padding-top: 8px; }
  .schedule__date { font-size: 14px; }
  .schedule__game { font-size: 14px; margin-top: 8px; }

  .paper { padding: 62px 0 66px; }
  .paper::before { height: 30px; top: -29px; }
  .paper::after { height: 28px; bottom: -27px; }
  .paper--first { padding-top: 58px; }
  .paper--corp { padding-top: 56px; }

  .h2 { font-size: 26px; }
  .h2--white { font-size: 20px; line-height: 1.15; padding: 0 8px; }

  .about-card {
    margin-top: 22px;
    padding: 20px 18px;
    border-width: 4px;
    border-radius: 20px;
    font-size: 15.5px;
    line-height: 1.42;
  }

  .features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 12px;
    margin-top: 32px;
  }
  .features li { width: calc((100% - 24px) / 3); }
  .features img { width: 76px; height: 62px; }
  .features__icon { height: 62px; }
  .features__label { font-size: 14px; }

  .moments { margin-top: 52px; }

  .gallery { gap: 8px; margin: 24px 0 26px; }
  .moments__body {
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
  }
  .moments__video {
    flex: 0 0 auto;
    width: min(100%, 240px);
  }
  .gal-item { flex: 0 0 76%; height: 224px; border-width: 2px; border-radius: 16px; }
  .gal-track { gap: 14px; }
  .gal-arrow { width: 22px; height: 34px; }

  .btn--pink { font-size: 16px; padding: 15px 26px; }

  .signup { padding-top: 56px; padding-bottom: 16px; }
  .form-card { padding: 18px 16px 20px; border-width: 4px; border-radius: 20px; }
  .form-card__title { font-size: 13.5px; margin-bottom: 14px; }
  .field { margin-bottom: 12px; }
  .field input, .field select { height: 42px; font-size: 13px; padding: 0 18px; }
  .sizes { margin-top: 16px; }
  .sizes__legend { font-size: 13px; }
  .sizes__row { flex-wrap: wrap; gap: 10px; }
  .size { width: 28px; height: 28px; flex: 0 0 28px; font-size: 14px; }
  .sizes__badge { font-size: 8.5px; padding: 6px 10px; }
  .consent__text { font-size: 11px; }
  .signup__slogan { font-size: 24px; margin-bottom: 34px; }
  .signup__mascot img { max-width: 250px; }

  .corp-phone { font-size: 18px; margin-top: 26px; }
  .socials { margin-top: 46px; }
  .socials .h2 { font-size: 24px; }
  .social img { width: 74px; }
  .socials__row { gap: 24px; margin-top: 24px; }
}

@media (max-width: 420px) {
  .gal-item { flex: 0 0 80%; height: 200px; }
  .features img { width: 68px; height: 56px; }
  .features__icon { height: 56px; }
}








/* ---------- служебные стили WP ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1em; }
.entry-content a { color: var(--pink); }

.admin-bar .site-head { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-head { top: 46px; }
}


/* ---------- точечные правки по замечаниям ---------- */
@media (max-width: 980px) {
  .signup__grid {
    padding-left: 0;
    padding-right: 0;
    justify-items: center;
  }

  .form-card {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .form-card {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .signup__slogan {
    margin-left: 20px;
  }

  /* крестик закрытия мобильного меню */
  .nav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: background-color .15s ease;
  }

  .nav__close svg {
    width: 22px;
    height: 22px;
  }

  .nav__close:hover { background: rgba(255, 255, 255, .32); }
}


/* ---------- всплывающее окно «Политика конфиденциальности» ---------- */
.mz-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  align-items: flex-start;
}

.consent__check {
  flex: 0 0 24px;
  display: block;
  cursor: pointer;
}

.consent__link {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.consent__link:hover {
  color: var(--pink-deep);
}

.mz-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 0, 30, .72);
  backdrop-filter: blur(2px);
}

.mz-modal.is-open {
  display: flex;
}

.mz-modal__box {
  position: relative;
  width: min(720px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: 34px 30px 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.mz-modal__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
  color: var(--pink);
}

.mz-modal__text {
  font-size: 15px;
  line-height: 1.55;
  color: #2a2a2a;
}

.mz-modal__text b {
  color: var(--pink);
}

.mz-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(236, 27, 115, .08);
  color: var(--pink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}

.mz-modal__close:hover {
  background: rgba(236, 27, 115, .16);
}

body.mz-modal-open {
  overflow: hidden;
}

/* мобильная форма: не даём маскоту растянуть колонку */
@media (max-width: 980px) {
  .signup__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .signup__grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .signup__mascot {
    max-width: 100%;
    overflow: hidden;
  }

  .signup__mascot img {
    max-width: min(250px, 58vw);
  }
}

@media (max-width: 720px) {
  .mz-modal__box {
    padding: 44px 18px 20px;
    border-radius: 18px;
  }

  .mz-modal__title {
    font-size: 20px;
  }

  .mz-modal__text {
    font-size: 14px;
  }

  .consent__text {
    font-size: 12px;
  }
}



@media (max-width: 720px) {
  .sizes__nums {
    gap: 5px;
  }

  .sizes__row {
    gap: 8px;
  }
}

/* ---------- бумага на мобильных и планшетах ---------- */
@media (max-width: 980px) {
  .paper {
    background-size: 780px auto;
  }

  .paper::before {
    top: -29px;
    height: 30px;
  }

  .paper::after {
    bottom: -27px;
    height: 28px;
  }

  .paper--corp {
    background-size: 780px auto;
  }
}

/* слоган не должен обрезаться слева на узких экранах */
@media (max-width: 720px) {
  .signup__mascot {
    justify-content: space-between;
    gap: 10px;
  }

  .signup__slogan {
    flex: 0 0 auto;
    max-width: none;
    margin-left: 0;
    font-size: 22px;
  }

  .signup__mascot img {
    flex: 0 1 auto;
    min-width: 0;
  }
}

/* ---------- новый вид «Моментов» (только десктоп) ---------- */
@media (min-width: 981px) {
  .moments__body {
    gap: 28px;
    align-items: center;
  }

  /* белая карточка видео с розовой рамкой */
  .moments__video {
    flex: 0 0 300px;
    aspect-ratio: 300 / 500;
    padding: 10px;
    border: 2px solid var(--pink-hot);
    border-radius: 32px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 16px 36px rgba(90, 0, 60, .10);
  }

  .moments__video iframe {
    border-radius: 24px;
    background: #000;
  }

  .moments__main .gallery {
    margin: 0;
    gap: 22px;
    justify-content: flex-start;
  }

  .gal-track { gap: 16px; }

  .gal-item {
    flex: 0 0 calc(50% - 8px);
    height: auto;
    aspect-ratio: 375 / 363;
    border: 0;
    border-radius: 24px;
  }

  /* кнопка по ширине карусели: отступы равны стрелкам и зазору */
  .moments .moments__btn {
    width: auto;
    margin: 30px 62px 0;
    text-align: center;
  }
}

/* ---------- «Моменты» на планшетах: карточка видео сверху, карусель под ней ---------- */
@media (min-width: 721px) and (max-width: 980px) {
  .moments__body {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .moments__video {
    flex: 0 0 auto;
    width: 280px;
    aspect-ratio: 300 / 500;
    margin: 0 auto;
    padding: 8px;
    border: 2px solid var(--pink-hot);
    border-radius: 28px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 16px 36px rgba(90, 0, 60, .10);
  }

  .moments__video iframe {
    border-radius: 21px;
    background: #000;
  }

  .moments__main { width: 100%; }

  .moments__main .gallery {
    margin: 0;
    gap: 20px;
    justify-content: flex-start;
  }

  .gal-track { gap: 16px; }

  .gal-item {
    flex: 0 0 calc(50% - 8px);
    height: auto;
    aspect-ratio: 375 / 363;
    border: 0;
    border-radius: 24px;
  }

  .moments .moments__btn {
    width: auto;
    margin: 22px 60px 0;
    text-align: center;
  }
}

/* заголовок «Запись команды на игру» — по центру формы (десктоп) */
@media (min-width: 981px) {
  .signup__in .h2--white {
    width: 620px;
    max-width: 100%;
    margin-left: 56px;
    padding-left: 0;
    text-align: center;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .signup__in .h2--white {
    width: calc(100% - 434px);
    margin-left: 0;
  }
}

/* мобильная шапка: адрес должен влезать в одну строку, чтобы «ст 1» не падало вниз */
@media (max-width: 420px) {
  .site-head__in {
    gap: 8px;
  }

  .site-head__addr {
    font-size: 10px;
    line-height: 1.25;
  }
}

/* очень узкие экраны: адрес переносим на отдельную строку под шапкой */
@media (max-width: 350px) {
  .site-head__in {
    flex-wrap: wrap;
    gap: 6px;
  }

  .site-head__addr {
    order: 3;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 10px;
  }
}
