/* ============================================================
   Real Matoid — visual system
   Layout / type / components modelled on the current
   realmadrid.com: white canvas, soft-grey panels, bold
   grotesque type, 8px controls, 16–24px media cards,
   electric-violet accent.
   ============================================================ */

:root {
  --ink: #0f2145;
  --ink-2: #14142b;
  --gray: #43526e;
  --muted: #707b8f;
  --line: #e6e8ee;
  --soft: #f4f5f7;
  --soft-2: #e9ecf2;
  --purple: #3e31fa;
  --purple-d: #2b20d4;
  --purple-soft: #a9a3ff;
  --white: #ffffff;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --wrap: 1312px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: "Archivo", "Noto Sans SC", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--purple); color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  z-index: 300; padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 128px));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.hdr.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(15, 33, 69, .06);
}

.hdr-in {
  display: flex; align-items: center; gap: 24px;
  height: 72px; padding-inline: 32px;
  max-width: 1600px; margin-inline: auto;
}

.hdr-left { display: flex; align-items: center; gap: 18px; }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 8px;
  background: none; border: 0; border-radius: var(--r-sm);
  cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: width .25s var(--ease);
}
.burger:hover span:nth-child(2) { width: 70%; }

.brand { display: flex; align-items: center; gap: 10px; }
.crest { width: 26px; height: 31px; color: var(--ink); flex: none; }
.brand-name {
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  color: var(--ink); white-space: nowrap;
}

.hdr-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
}
.hdr-nav a {
  padding: 11px 14px; border-radius: 12px;
  font-size: 15.5px; font-weight: 600; color: var(--gray);
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.hdr-nav a:hover { background: var(--soft); color: var(--ink); }

.hdr-right { display: flex; align-items: center; gap: 14px; }

.sponsor {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--gray);
}
.kitmark { width: 22px; height: 16px; color: var(--ink); }

.lang { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.lang-opt {
  background: none; border: 0; padding: 4px 2px;
  color: var(--muted); cursor: pointer;
  border-radius: 4px; transition: color .2s var(--ease);
  white-space: nowrap;
}
.lang-opt[aria-pressed="true"] { color: var(--ink); }
.lang-opt:hover { color: var(--purple); }
.lang-sep { color: #c3c9d5; }

.btn-login {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px;
  border: 1px solid var(--purple); border-radius: var(--r-sm);
  color: var(--purple); font-size: 13.5px; font-weight: 700;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-login:hover { background: var(--purple); color: #fff; }

/* ---------- Mobile menu ---------- */

.mnav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--white);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
  overflow-y: auto;
}
.mnav.is-open { transform: none; visibility: visible; }
.mnav-in {
  display: flex; flex-direction: column;
  min-height: 100%; padding: 0 32px 32px;
  max-width: 720px; margin-inline: auto;
}
.mnav-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; border-bottom: 1px solid var(--line);
}
.mnav-close {
  width: 44px; height: 44px; border: 0; background: none;
  font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer;
}
.mnav-links { display: flex; flex-direction: column; padding: 20px 0; }
.mnav-links a {
  padding: 14px 0; font-size: 26px; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mnav-links a:hover { color: var(--purple); }
.mnav-foot {
  margin-top: auto; padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lang--big { font-size: 15px; }
.lang--big .lang-opt { padding: 8px 4px; }

/* ---------- Hero ---------- */

.hero { padding-top: 26px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.hero-stage {
  position: relative; overflow: hidden;
  background: #0b1428; border-radius: 2px;
  min-height: 440px;
}

.hero-track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.hero-track::-webkit-scrollbar { display: none; }

.hero-slide {
  position: relative; flex: 0 0 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  min-height: 440px; display: block;
}
.hero-slide img,
.hero-slide video {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 42%;
}

.hero-credit {
  position: absolute; left: 16px; bottom: 32px;
  padding-left: 22px;
  color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-credit::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 14px; height: 1px; background: rgba(255,255,255,.7);
}

.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(12,20,38,.35); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .2s linear, background .2s linear;
}
.hero-stage:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: rgba(12,20,38,.7); }
.hero-nav svg { width: 18px; height: 18px; }
.hero-nav--prev { left: 14px; }
.hero-nav--next { right: 14px; }
@media (hover: none) { .hero-nav { display: none; } }

.hero-bars {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; gap: 5px;
}
.hero-bar {
  flex: 1; height: 2px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .2s linear;
}
.hero-bar.is-on { background: #fff; }

.hero-panel {
  display: flex; flex-direction: column;
  padding: 0 0 0 40px;
  border-left: 1px solid var(--line);
}

.hero-index {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  color: var(--muted); padding-top: 2px;
}
.hero-index span { color: var(--ink); }

.hero-copies {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 16px;
  min-height: 300px;
}
.hero-copy { display: none; flex-direction: column; gap: 14px; }
.hero-copy.is-on { display: flex; }

.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(255,255,255,.66); }

.hero-panel h1,
.hero-panel h2 {
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 700; line-height: 1.16;
  letter-spacing: -.03em; color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  font-size: 14.5px; line-height: 1.72;
  color: var(--gray); max-width: 34ch;
  text-wrap: balance;
}

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--ink);
  margin-top: 2px;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- News cards ---------- */

.news-row-wrap { padding: 24px 0 0; }

.news-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ncard a { display: block; }
.ncard figure {
  margin: 0; aspect-ratio: 16 / 9;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--soft);
}
.ncard img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.ncard:hover img { transform: scale(1.04); }

.nmeta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.nmeta .tag { color: var(--purple); font-weight: 700; }
.nmeta time { position: relative; }
.nmeta time::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 3px; height: 3px; border-radius: 50%;
  background: #c3c9d5; margin-right: 10px;
}

.ncard h3 {
  margin-top: 8px;
  font-size: 18px; font-weight: 700; line-height: 1.42;
  letter-spacing: -.012em; color: var(--ink);
  transition: color .2s var(--ease);
  text-wrap: pretty;
}
.ncard:hover h3 { color: var(--purple); }

/* ---------- Sections ---------- */

.sec { padding: clamp(56px, 6vw, 84px) 0; }
.sec--soft { background: var(--soft); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 26px;
}
.sec-head h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -.025em; color: var(--ink);
}

.circle-arrow {
  flex: none; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.circle-arrow svg { width: 18px; height: 18px; }
.circle-arrow:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

.sub {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin: -6px 0 20px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transition: opacity .45s linear;
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Events ---------- */

.tabs {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.tab {
  height: 36px; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: none; color: var(--gray);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tab:hover { background: var(--soft); }
.tab.is-on { background: var(--ink); color: #fff; }
.tab-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--purple);
}
.tab-link::before {
  content: "+"; font-size: 15px; font-weight: 700; line-height: 1;
}

.events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event {
  background: var(--ink); color: #fff;
  border-radius: var(--r-md);
  padding: 20px 18px 16px;
  display: flex; flex-direction: column; gap: 13px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event:hover { box-shadow: 0 10px 24px rgba(15, 33, 69, .18); }
.event[hidden] { display: none; }

.event-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.event-top time { color: #fff; font-size: 11.5px; letter-spacing: .04em; }
.event-top span { text-align: right; }

.event-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 4px;
  padding: 4px 0 2px;
}
.et { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.et-crest { width: 32px; height: 38px; color: #fff; }
.et--away .et-crest { color: rgba(255, 255, 255, .78); }
.et b {
  font-size: 12px; font-weight: 600; line-height: 1.3;
  text-align: center;
}
.event-time { font-size: 13px; font-weight: 700; color: var(--purple-soft); }

.event-venue {
  font-size: 11px; color: rgba(255, 255, 255, .58);
  text-align: center; letter-spacing: .02em;
  margin-top: -4px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 18px;
  border: 0; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-d); }
.btn-block { width: 100%; }

.link-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, .55);
  transition: color .2s var(--ease);
}
.link-more svg { width: 14px; height: 14px; }
.link-more:hover { color: #fff; }

/* ---------- Membership ---------- */

.comunidad {
  position: relative; overflow: hidden;
  padding: clamp(64px, 7vw, 100px) 0;
  background: var(--ink);
}
.com-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .38; filter: saturate(.7) contrast(1.05);
}
.comunidad::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 33, 69, .97) 0%,
    rgba(15, 33, 69, .88) 46%,
    rgba(15, 33, 69, .5) 100%);
}
.com-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px; align-items: center;
}
.com-copy { color: #fff; }
.com-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -.025em; color: #fff;
  text-wrap: balance;
}
.com-lead {
  font-size: 15px; line-height: 1.75;
  color: rgba(255, 255, 255, .72);
  max-width: 46ch;
}
.benefits {
  display: grid; gap: 10px;
  margin: 24px 0 26px;
}
.benefits li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255, 255, 255, .84);
}
.benefits svg { width: 16px; height: 16px; color: var(--purple-soft); flex: none; }

.join { display: flex; gap: 10px; max-width: 500px; }
.join input {
  flex: 1; min-width: 0; height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .07);
  color: #fff; font-size: 14px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.join input::placeholder { color: rgba(255, 255, 255, .42); }
.join input:focus { border-color: var(--purple-soft); background: rgba(255, 255, 255, .1); }
.join .btn { height: 46px; flex: none; }

.join-note {
  min-height: 18px; margin-top: 12px;
  font-size: 12px; color: rgba(255, 255, 255, .5);
}
.join-note.is-error { color: #ffb3a6; }
.join-note.is-ok { color: #9fe6b4; }

.socio-card {
  justify-self: end;
  width: min(400px, 100%);
  padding: 24px;
  background: #fff; color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .38);
  transform: rotate(-2.5deg);
  transition: transform .5s var(--ease);
}
.socio-card:hover { transform: rotate(-.8deg) translateY(-4px); }
.sc-top { display: flex; align-items: center; justify-content: space-between; }
.sc-crest { width: 42px; height: 50px; color: var(--ink); }
.sc-top span {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.sc-mid { margin: 26px 0 18px; }
.sc-mid p {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--purple);
  margin-bottom: 4px;
}
.sc-mid b {
  font-size: 38px; font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-barcode {
  height: 42px; border-radius: 2px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 6px, transparent 6px 10px,
    var(--ink) 10px 13px, transparent 13px 16px);
  opacity: .85;
}
.sc-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 14px;
  font-size: 8.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- News grid ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- Store ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product { display: block; }
.p-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover .p-art {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(15, 33, 69, .12);
}
.p-art--light { background: #e5eaf3; }
.p-art--gray { background: #dde2ec; }
.p-art--dark { background: var(--ink); }

.p-kit { width: 62%; height: auto; filter: drop-shadow(0 16px 26px rgba(15, 33, 69, .16)); }
.p-kit--home { --kit-body: #ffffff; --kit-line: #c3cbdb; --kit-trim: #0f2145; }
.p-kit--away { --kit-body: #16233f; --kit-line: #0a1428; --kit-trim: #ffffff; }
.p-kit--training { --kit-body: #f5f6fa; --kit-line: #ccd3e1; --kit-trim: var(--purple); }
.p-ball { width: 48%; height: auto; color: var(--ink); }

.p-info { display: flex; flex-direction: column; gap: 3px; margin-top: 14px; }
.p-info span {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.p-info b { font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* ---------- Honours ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat span {
  display: block; margin-top: 10px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
}
.stat-note { margin-top: 24px; font-size: 12px; color: var(--muted); }

/* ---------- Specials ---------- */

.specials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.special {
  position: relative;
  min-height: 300px;
  padding: 28px;
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 10px;
  color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.special:hover { box-shadow: 0 14px 30px rgba(15, 33, 69, .14); }
.special--ink { background: var(--ink); }
.special--purple { background: var(--purple); }
.special--gray { background: var(--soft-2); color: var(--ink); }

.s-idx { font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .55; }
.s-tag {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; opacity: .72;
}
.special h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 700; line-height: 1.28; letter-spacing: -.02em;
  text-wrap: balance;
}
.special p:not(.s-tag) {
  font-size: 13.5px; line-height: 1.65;
  opacity: .72; max-width: 30ch;
}
.s-arrow {
  margin-top: auto; padding-top: 18px;
  width: 34px; height: 34px;
  border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; opacity: .72;
}
.s-arrow svg { width: 16px; height: 16px; }

/* ---------- App ---------- */

.app {
  background: var(--soft);
  padding: clamp(64px, 7vw, 96px) 0;
  overflow: hidden;
}
.app-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
}
.app h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; line-height: 1.14; letter-spacing: -.025em;
  color: var(--ink); max-width: 18ch;
  text-wrap: balance;
}
.app-lead { font-size: 15px; line-height: 1.7; color: var(--gray); max-width: 44ch; }

.stores { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.store {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 154px; padding: 9px 18px;
  background: var(--ink); color: #fff;
  border-radius: 10px;
  transition: background .2s var(--ease);
}
.store:hover { background: #172c58; }
.store-small { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.store b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

.app-note { margin-top: 16px; font-size: 12px; color: var(--muted); }

.phone {
  justify-self: center;
  width: 280px; height: 552px;
  padding: 12px;
  background: #0b1730;
  border-radius: 40px;
  box-shadow: 0 34px 70px rgba(15, 33, 69, .26);
  transform: rotate(4deg);
}
.phone-screen {
  height: 100%;
  padding: 24px 22px;
  border-radius: 30px;
  background: linear-gradient(165deg, #172b52 0%, #0b1730 62%, #081020 100%);
  color: #fff;
  display: flex; flex-direction: column;
}
.ph-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em;
  color: rgba(255, 255, 255, .8);
}
.ph-crest { width: 20px; height: 24px; color: #fff; }
.ph-label {
  margin-top: 30px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.ph-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 6px; margin-top: 14px;
}
.ph-teams div { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ph-teams svg, .ph-teams img { width: 30px; height: 36px; color: #fff; }
.ph-teams b { font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.ph-teams > span { font-size: 9px; color: rgba(255, 255, 255, .38); }

.ph-count {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 4px; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.ph-count div { text-align: center; }
.ph-count b {
  display: block; font-size: 20px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.ph-count span { font-size: 8.5px; color: rgba(255, 255, 255, .45); }

.ph-btn {
  margin-top: auto;
  padding: 12px; text-align: center;
  background: var(--purple); border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 700;
}

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #fff; padding: 64px 0 28px; }

.foot-top {
  display: grid; grid-template-columns: 1.15fr 2fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.brand--light .crest { color: #fff; }
.brand--light .brand-name { color: #fff; }
.foot-brand p {
  margin-top: 16px;
  font-size: 13.5px; line-height: 1.7;
  color: rgba(255, 255, 255, .55);
  max-width: 34ch;
}
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  display: grid; place-items: center;
  color: rgba(255, 255, 255, .82);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.socials svg { width: 16px; height: 16px; }
.socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }

.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fc-title {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 12px;
}
.foot-cols a {
  display: block; padding: 6px 0;
  font-size: 13.5px; color: rgba(255, 255, 255, .78);
  transition: color .2s var(--ease);
}
.foot-cols a:hover { color: #fff; }

.foot-sponsors {
  display: flex; align-items: center; gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  flex-wrap: wrap;
}
.foot-sponsors span {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
}
.foot-sponsors div { display: flex; gap: 28px; flex-wrap: wrap; }
.foot-sponsors b {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; color: rgba(255, 255, 255, .42);
}

.foot-bottom {
  display: flex; align-items: center; gap: 18px;
  padding-top: 22px; flex-wrap: wrap;
  font-size: 11.5px; color: rgba(255, 255, 255, .4);
}
.foot-note { margin-left: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1240px) {
  .hdr-nav a { padding: 11px 9px; font-size: 14px; }
  .sponsor { display: none; }
}

@media (max-width: 1120px) {
  .hdr-nav { display: none; }
  .hdr-right { margin-left: auto; }
  .hdr-in { padding-inline: 24px; }
}

@media (max-width: 1180px) {
  .wrap { width: calc(100% - 64px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .hero-panel { padding-left: 30px; }
  .com-grid { gap: 40px; }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: 16 / 9; min-height: 0; }
  .hero-slide { min-height: 0; }
  .hero-panel { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-copies { min-height: 0; padding: 14px 0 0; }
  .hero-lead { max-width: 52ch; }

  .news-row, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .events {
    display: flex; overflow-x: auto;
    gap: 14px; padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .event { flex: 0 0 300px; scroll-snap-align: start; }

  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .specials { grid-template-columns: 1fr 1fr; }
  .special:last-child { grid-column: 1 / -1; min-height: 220px; }

  .com-grid { grid-template-columns: 1fr; gap: 36px; }
  .socio-card { justify-self: start; transform: rotate(-1.5deg); }

  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { justify-self: start; }

  .foot-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .hdr-in { padding-inline: 20px; gap: 12px; }
  .brand-name { font-size: 13.5px; letter-spacing: .02em; }
  .kitmark { display: none; }
  .hdr-right { gap: 10px; }
  .hdr-right .lang { display: none; }
  .btn-login { height: 36px; padding: 0 13px; font-size: 12.5px; }

  .hero { padding-top: 14px; }
  .hero-stage { aspect-ratio: 4 / 3; }
  .hero-panel { padding-top: 18px; }
  .hero-panel h1, .hero-panel h2 { font-size: 25px; }
  .hero-credit { left: 12px; bottom: 30px; font-size: 10px; }
  .hero-bars { left: 12px; right: 12px; }

  .news-row, .news-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ncard h3 { font-size: 16px; }
  .sec { padding: 48px 0; }
  .sec-head { margin-bottom: 20px; }
  .sec-head h2 { font-size: 27px; }

  .tabs { gap: 6px; }
  .tab { padding: 0 12px; font-size: 12.5px; }
  .tab-link { margin-left: 0; width: 100%; padding-top: 4px; }

  .com-copy h2 { font-size: 29px; }
  .benefits li { font-size: 13.5px; }
  .join { flex-direction: column; }
  .join .btn { width: 100%; }
  .socio-card { width: 100%; }

  .stats { gap: 20px; }
  .stat b { font-size: 42px; }

  .specials { grid-template-columns: 1fr; }
  .special, .special:last-child { min-height: 240px; }

  .app h2 { font-size: 27px; }
  .phone { transform: rotate(2deg) scale(.94); transform-origin: left top; }

  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .foot-sponsors { gap: 14px; }
  .foot-sponsors div { gap: 16px; }
  .foot-note { margin-left: 0; width: 100%; }
}

@media (max-width: 380px) {
  .hdr-right .lang { display: none; }
  .hero-panel h1, .hero-panel h2 { font-size: 22px; }
}

