@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
}

:root {
  --ink: #081328;
  --ink-60: rgba(8, 19, 40, 0.6);
  --ink-15: rgba(12, 21, 59, 0.15);
  --accent: #2791f6;
  --accent-10: rgba(39, 145, 246, 0.1);
  --page: #f7f7f7;
  --white: #ffffff;
  --danger: #e52222;
  --gk: #e52222;
  --def: #188d2e;
  --mid: #8a38f5;
  --fwd: #da911c;
  --input: #f4f9ff;
  --input-border: #bfcfe0;
  --radius-card: 20px;
  --radius-pill: 100px;
  --shadow: 0 4px 5px rgba(12, 21, 59, 0.15);
  --shadow-lg: 0 4px 10px rgba(12, 21, 59, 0.15);
  --pad: 140px;
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  min-height: 100%;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

ul {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 20px 40px;
  font-size: 20px;
}

.btn-primary.btn-sm {
  padding: 10px 50px;
  font-size: 15px;
}

.btn-ghost {
  background: var(--ink-15);
  color: var(--ink);
  padding: 10px 40px;
  font-size: 20px;
}

.btn-outline-white {
  border: 1px solid #fff;
  color: #fff;
  height: 35px;
  padding: 5px 10px;
  font-size: 14px;
}

.btn-solid-white {
  background: #fff;
  color: var(--accent);
  height: 34px;
  padding: 5px 10px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
}

/* Top / Header */
.site-top {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.site-top--hero {
  min-height: 807px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px var(--pad) 40px;
}

.site-top--compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px var(--pad);
}

.site-top__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-top__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.site-top__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.site-top--compact .site-top__dim {
  background: rgba(8, 19, 40, 0.78);
}

.rg-bar {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  color: #fff;
  line-height: normal;
}

.rg-bar strong {
  font-weight: 700;
}

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.29);
  backdrop-filter: blur(8.7px);
  -webkit-backdrop-filter: blur(8.7px);
}

.logo {
  display: block;
  width: 73px;
  height: 62px;
  flex-shrink: 0;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: #fff;
}

.lang-flag {
  font-size: 20px;
  line-height: 1;
}

.lang-code {
  font-size: 14px;
  font-weight: 700;
}

.lang-btn img {
  width: 24px;
  height: 24px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 20;
}

.lang-menu.is-open {
  display: block;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.lang-menu a:hover,
.lang-menu a.is-active {
  background: var(--accent-10);
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-top: 50px;
  width: 100%;
}

.kicker {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 55px;
  font-weight: 700;
  line-height: normal;
  max-width: 567px;
  background: linear-gradient(180deg, #fff 0%, #4065a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  max-width: 567px;
  line-height: normal;
}

.hero-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.warn {
  width: 567px;
  max-width: 100%;
  background: rgba(131, 23, 23, 0.5);
  border: 1px solid var(--danger);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}

.glory {
  flex: 1;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: right;
  line-height: normal;
}

/* Sections */
.section {
  padding: 50px var(--pad);
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 70px;
  background: var(--page);
  overflow-x: hidden;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 30px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent-10);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

h2,
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: normal;
  width: 100%;
}

.section-lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  line-height: normal;
  max-width: 1160px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.card--highlight {
  background: linear-gradient(121deg, #fff 6%, #cde5fb 91%);
}

.card-emoji {
  font-size: 40px;
  line-height: 1;
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
}

.card p {
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card .stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

/* Draft */
.draft {
  display: grid;
  grid-template-columns: 373px 1fr;
  gap: 20px;
  align-items: start;
}

.draft-panel {
  background: #fff;
  border: 1px solid #16d93a;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 491px;
  overflow: hidden;
}

.draft-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(163, 163, 163, 0.3);
}

.draft-meta strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.draft-meta span {
  font-size: 15px;
  font-weight: 400;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  background: var(--ink-15);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.filter.is-active {
  background: var(--accent);
  color: #fff;
}

.player-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

.player-card {
  background: rgba(163, 163, 163, 0.3);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.player-card.is-picked {
  border-color: var(--accent);
  background: #e8f4fe;
}

.pos-badge {
  padding: 3px 15px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pos-badge.gk { background: var(--gk); }
.pos-badge.def { background: var(--def); }
.pos-badge.mid { background: var(--mid); }
.pos-badge.fwd { background: var(--fwd); }

.player-card img {
  width: 46px;
  height: 45px;
  border-radius: 100px;
  object-fit: cover;
}

.player-card .name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.player-card .club {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-60);
}

.player-card hr,
.hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(163, 163, 163, 0.5);
}

.player-card .rating {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.draft-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.draft-actions .btn {
  width: 100%;
  padding: 10px 40px;
  font-size: 20px;
}

.pitch {
  position: relative;
  height: 491px;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.pitch-desk,
.pitch-mob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.pitch-mob {
  display: none;
}

.sim-board {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(8, 19, 40, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.pitch.is-playing .sim-board {
  display: flex;
}

.sim-live {
  color: #ff4d4d;
  letter-spacing: 0.04em;
  animation: sim-pulse 1.4s ease-in-out infinite;
}

@keyframes sim-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sim-score {
  font-size: 16px;
}

.sim-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sim-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  background: var(--accent) center / cover no-repeat;
  will-change: left, top;
}

.sim-dot.is-away {
  background-color: #e52222;
}

.sim-ball {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  z-index: 3;
  will-change: left, top;
}

.slot {
  position: absolute;
  z-index: 3;
  width: 73px;
  height: 76px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.29);
  backdrop-filter: blur(8.7px);
  -webkit-backdrop-filter: blur(8.7px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 4px;
  cursor: pointer;
}

.slot img.plus {
  width: 24px;
  height: 24px;
}

.slot.is-active,
.slot.is-filled {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.29), rgba(5, 102, 194, 0.26));
}

.slot .slot-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.slot .slot-name {
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1.12fr;
  gap: 20px;
  align-items: stretch;
  padding-top: 14px;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card.is-popular {
  border-width: 3px;
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 5px 15px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card h3 {
  font-size: 24px;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.price-row .amount {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.price-row .per {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-60);
  padding-bottom: 8px;
}

.feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.feat img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.muted {
  font-size: 15px;
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 286px 1fr;
  gap: 20px;
  align-items: center;
}

.faq-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
}

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.faq-q img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-q img {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  font-size: 15px;
  font-weight: 400;
}

.faq-item.is-open .faq-a {
  display: block;
}

.faq-art {
  width: 286px;
  height: 231px;
  margin: 0 auto;
}

.faq-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 373px 1fr;
  gap: 20px;
  align-items: start;
}

.contact-grid > *,
.draft > *,
.faq-layout > *,
.company-card,
.form,
.faq-item,
.card {
  min-width: 0;
}

.company-card p,
.company-card a,
h1, h2, h3,
.section-lead,
.chip {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chip {
  max-width: 100%;
}

.company-card {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.company-card h3 {
  font-size: 24px;
}

.company-card .brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.company-card p,
.company-card address {
  font-size: 20px;
  font-style: normal;
  line-height: 1.45;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-15);
}

.field textarea {
  height: 100px;
  resize: vertical;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check a {
  font-weight: 700;
}

.form-msg {
  display: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--def);
}

.form-msg.is-visible {
  display: block;
}

.map {
  width: 100%;
  max-width: 100%;
  height: 409px;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 20px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.split-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 360px;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  font-size: 20px;
  line-height: 1.45;
}

.split-copy p + p {
  margin-top: 1em;
}

/* Legal / article */
.article {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 50px;
}

.article h1 {
  font-size: 36px;
  font-weight: 700;
  text-align: left;
}

.prose {
  font-size: 20px;
  line-height: 1.45;
}

.prose h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  margin: 1.1em 0 0.4em;
}

.prose h2.lg {
  font-size: 24px;
}

.prose p + p {
  margin-top: 0.9em;
}

.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0.6em 0;
}

.prose li {
  margin: 0.3em 0;
}

.prose a {
  text-decoration: underline;
}

/* Disclaimer box on about */
.legal-box {
  background: #081328;
  color: #fff;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  text-align: center;
  line-height: 1.45;
}

.legal-box strong {
  font-weight: 700;
}

.legal-box ul {
  list-style: disc;
  display: inline-block;
  text-align: left;
  margin: 8px auto;
  padding-left: 22px;
}

/* How it works */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-list .card h3 {
  font-size: 24px;
}

.step-list .card ul {
  list-style: disc;
  padding-left: 22px;
  font-size: 15px;
}

/* Footer */
.footer {
  background: #081328;
  color: #fff;
  padding: 80px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-grid-3,
.footer-grid-2 {
  display: grid;
  gap: 20px;
}

.footer-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.footer-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.footer h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer p,
.footer li,
.footer a {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.footer .nav-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.help-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-logos img {
  object-fit: contain;
}

.partner-logos .uz {
  width: 65px;
  height: 65px;
}

.partner-logos .bga {
  width: 169px;
  height: 30px;
}

.partner-logos .gc {
  width: 125px;
  height: 36px;
}

.partner-logos .age {
  width: 81px;
  height: 36px;
}

.copy {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 40, 0.55);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay.is-open {
  display: flex;
}

.modal {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  width: min(835px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.modal-close {
  align-self: flex-end;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close img {
  width: 13px;
  height: 13px;
}

.modal h2 {
  font-size: 24px;
  text-align: center;
}

.modal .sub {
  font-size: 15px;
  text-align: center;
}

.modal .linkish {
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  max-width: min(1160px, calc(100vw - 32px));
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
}

.cookie-bar.is-open {
  display: flex;
}

.cookie-bar h2 {
  width: 100%;
  text-align: left;
  font-size: 24px;
}

.cookie-bar p {
  width: 100%;
  font-size: 15px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.cookie-actions .btn,
.modal-actions .btn {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  height: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  padding: 12px 16px;
  font-size: 16px;
  box-sizing: border-box;
}

.blocked {
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--page);
}

.blocked.is-visible {
  display: flex;
}

.blocked .card {
  max-width: 640px;
}

/* 404 */
.notfound {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 80px 20px;
}

/* Responsive */
@media (max-width: 1200px) {
  :root { --pad: 48px; }
  .faq-layout {
    grid-template-columns: 1fr 1fr;
  }
  .faq-art {
    grid-column: 1 / -1;
    order: -1;
  }
  .pricing {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
  .nav {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  :root { --pad: 16px; }

  .site-top--hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .header {
    padding: 8px 12px;
    border-radius: 24px;
  }

  .nav,
  .auth-btns {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header.is-open {
    flex-wrap: wrap;
    border-radius: 24px;
    row-gap: 4px;
  }

  .header.is-open .header-tools {
    display: contents;
  }

  .header.is-open .logo {
    order: 1;
  }

  .header.is-open .lang {
    order: 2;
    margin-left: auto;
  }

  .header.is-open .menu-toggle {
    order: 3;
  }

  .header.is-open .nav {
    display: flex;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 4px 4px;
    gap: 12px;
  }

  .header.is-open .auth-btns {
    display: flex;
    order: 5;
    width: 100%;
    padding: 4px 4px 10px;
    justify-content: flex-start;
  }

  .header.is-open .auth-btns .btn {
    flex: 1;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-bottom {
    flex-direction: column;
  }

  .warn,
  .glory {
    width: 100%;
    text-align: left;
  }

  .cards-3,
  .stat-grid,
  .draft,
  .contact-grid,
  .split,
  .footer-grid-3,
  .footer-grid-2,
  .help-row,
  .form-row,
  .faq-layout,
  .pricing {
    grid-template-columns: 1fr;
  }

  .draft-panel {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .player-list {
    max-height: 360px;
  }

  .pitch {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .pitch-desk {
    display: none;
  }

  .pitch-mob {
    display: block;
  }

  .slot {
    width: 42px;
    height: 42px;
    padding: 2px;
    gap: 0;
    border-radius: 50%;
    font-size: 0;
    transform: translate(-50%, -50%);
  }

  .slot .plus {
    width: 16px;
    height: 16px;
  }

  .slot .slot-photo {
    width: 36px;
    height: 36px;
  }

  .slot .slot-name,
  .slot > span:not(.slot-name) {
    display: none;
  }

  .sim-dot:not(.is-away) {
    display: none;
  }

  .slot[data-slot="gk"] { left: 12% !important; top: 50% !important; }
  .slot[data-slot="def1"] { left: 28% !important; top: 14% !important; }
  .slot[data-slot="def2"] { left: 28% !important; top: 32% !important; }
  .slot[data-slot="def3"] { left: 28% !important; top: 50% !important; }
  .slot[data-slot="def4"] { left: 28% !important; top: 68% !important; }
  .slot[data-slot="def5"] { left: 28% !important; top: 86% !important; }
  .slot[data-slot="mid1"] { left: 52% !important; top: 24% !important; }
  .slot[data-slot="mid2"] { left: 52% !important; top: 50% !important; }
  .slot[data-slot="mid3"] { left: 52% !important; top: 76% !important; }
  .slot[data-slot="fwd1"] { left: 78% !important; top: 34% !important; }
  .slot[data-slot="fwd2"] { left: 78% !important; top: 66% !important; }

  .section-title,
  h2,
  .article h1 {
    font-size: 24px;
  }

  .faq-q {
    font-size: 16px;
  }

  .faq-art {
    width: min(220px, 70%);
    height: auto;
    aspect-ratio: 286 / 231;
  }

  .company-card h3,
  .company-card p,
  .company-card address {
    font-size: 16px;
  }

  .chip {
    padding: 5px 14px;
    font-size: 13px;
  }

  .map {
    height: 240px;
    margin-top: 16px;
  }

  .modal-actions,
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn,
  .modal-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    font-size: 15px;
    padding: 14px 12px;
  }

  .cookie-bar h2 {
    font-size: 20px;
  }

  .partner-logos {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .logo {
    width: 56px;
    height: 48px;
  }

  .btn-primary {
    width: 100%;
    font-size: 16px;
    padding: 16px 24px;
  }

  .price-row .amount {
    font-size: 48px;
  }

  .slot {
    width: 36px;
    height: 36px;
  }

  .slot .slot-photo {
    width: 30px;
    height: 30px;
  }

  .sim-dot {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
  }
}
