/* Quest Sports Media — site styles (light deck style) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --navy: #0a1526;
  --text: #4a5568;
  --muted: #6b7689;
  --pink: #fa7396;
  --pink-dark: #c72f5a;
  --border: #d5dde8;
  --bg: #f5f8fc;
  --tint: #eaf1fb;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 21, 38, 0.04), 0 8px 24px rgba(10, 21, 38, 0.05);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--navy); transition: background .2s, color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { font-size: 14px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #1b2a44; box-shadow: 0 8px 20px rgba(10, 21, 38, .18); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--navy); }
.btn-ghost:hover { background: var(--tint); box-shadow: 0 8px 20px rgba(10, 21, 38, .12); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, .97); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 15px; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--pink); transform: scaleX(0); transition: transform .2s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; gap: 2px; font-size: 14px; font-weight: 600; }
.lang a, .lang span { padding: 4px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang [aria-current="true"] { color: var(--navy); background: var(--tint); }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--navy); font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .icon-close { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: #f3f6fb;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
/* deck background: the presentation's stripes and dotted globe, vectorized (sharp on retina) */
.deck-bg { position: relative; overflow: hidden; background-color: #eef3fc; }
.deck-layer {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform;
}
.deck-layer img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: right center;
}
.hero .deck-layer { top: -30%; }   /* same framing as the original background: taller layer, anchored right */
.hero-inner, .contacts .container { position: relative; z-index: 1; }
.hero-inner { padding: 72px 24px 64px; }
.hero-logo-slot { height: clamp(64px, 7.6vw, 108px); aspect-ratio: 1059 / 290; margin-bottom: clamp(28px, 3vw, 40px); }
.hero-logo-slot img { height: 100%; width: auto; }
/* while the header logo is flying in from the hero, the hero copy stays invisible */
.logo-anim .hero-logo-slot img { visibility: hidden; }
.logo-anim .site-header .brand img { transform-origin: 0 0; will-change: transform; }
.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; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink-dark); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; max-width: 16ch; letter-spacing: -0.035em; line-height: 1.03; }
.hero .lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; color: var(--text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .88); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-stats > div { padding: 26px 28px; }
.hero-stats > div + div { border-left: 1px solid var(--border); }
.stat-value { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { display: block; margin-top: 8px; font-size: 16px; color: var(--text); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2, .about-text h2, .contact-info h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.section-head p { margin-top: 16px; font-size: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: stretch; }
.about-text p { margin-top: 20px; font-size: 18px; }
.since { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; }
.since span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.since strong { font-size: 64px; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; line-height: .78; margin-top: 8px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 16px; }
.step { padding: 22px 22px; display: flex; align-items: center; gap: 16px; font-weight: 600; color: var(--navy); font-size: 16px; line-height: 1.35; }
.step-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; font-size: 21px; color: var(--navy);
}

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { padding: 36px 36px 32px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.icon-circle {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; background: var(--pink);
  display: grid; place-items: center; color: var(--navy); font-size: 24px;
}
.service h3 { font-size: 23px; font-weight: 700; }
.dots li { position: relative; padding-left: 22px; margin-top: 11px; font-size: 16px; line-height: 1.5; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--pink);
}
.service-link {
  margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px; align-self: flex-start;
}
.service-link svg { font-size: 13px; transition: transform .2s; }
.service-link:hover svg { transform: translateX(4px); }

/* territories */
.territories { background: linear-gradient(180deg, var(--bg) 0%, #edf2fa 100%); }
.terr-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.terr-lead { font-size: clamp(22px, 2.3vw, 28px); color: var(--navy); line-height: 1.35; letter-spacing: -0.01em; }
.terr-lead strong { font-weight: 800; }
.terr-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 40px; }
.terr-stats .stat-value { font-size: 40px; }
.terr-stats .stat-label { font-size: 17px; }
.map-card { padding: 28px 28px 24px; }
.map-card img { width: 100%; height: auto; }
.countries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin-top: 22px; }
.countries li { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 16px; }
.map-card img.flag { width: 26px; height: 19.5px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(10, 21, 38, .12); flex-shrink: 0; }

/* partners */
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.partner { height: 128px; display: grid; place-items: center; padding: 20px; transition: box-shadow .25s; }
.partner:hover { box-shadow: var(--shadow); }
.partner img { max-height: 76px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partner img.wide { max-height: 40px; }

/* contacts */

.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; box-shadow: var(--shadow); }
.contact-info { padding: 56px; }
.contact-info h2 { margin-bottom: 8px; }
.company { font-weight: 700; color: var(--navy); margin-top: 24px; }
.contact-list { margin-top: 18px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list .ci { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--navy); display: grid; place-items: center; font-size: 21px; }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-cta { background: var(--tint); padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.contact-cta h3 { font-size: 30px; font-weight: 800; }
.contact-cta .btn { align-self: flex-start; }

/* contact popup */
.contact-modal {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: 20px; background: transparent; overflow: visible; color: var(--text);
}
.contact-modal::backdrop { background: rgba(10, 21, 38, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.contact-modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card { position: relative; background: #fff; border-radius: 20px; padding: 44px; box-shadow: 0 24px 64px rgba(10, 21, 38, .25); max-height: calc(100vh - 32px); overflow: auto; }
.modal-card h3 { font-size: 30px; font-weight: 800; }
.modal-intro { margin-top: 10px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--tint); color: var(--navy); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.modal-close:hover { background: var(--border); }
.contact-form { margin-top: 26px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--navy); width: 100%;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(250, 115, 150, .3); }
.field .invalid, .field input.invalid, .field textarea.invalid { border-color: var(--pink-dark); }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.modal-done-view { text-align: center; padding: 12px 0; }
.modal-mail-btn { margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn[disabled] { opacity: .65; cursor: progress; }
.modal-done-view .icon-circle { margin: 0 auto 18px; }
.modal-done-view p { margin-top: 12px; }
.modal-done-view a { color: var(--navy); font-weight: 600; }
body.modal-open { overflow: hidden; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-inner .brand img { height: 30px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--navy); font-size: 15px; font-weight: 500; }
.footer-nav a:hover { color: var(--pink-dark); }
.social {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--navy); font-weight: 600; font-size: 15px;
}
.social svg { width: 30px; height: 30px; color: var(--navy); transition: color .2s; }
.social:hover svg { color: var(--pink-dark); }
.copyright { margin-left: auto; font-size: 14px; color: var(--muted); }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.service.reveal:nth-child(2n) { transition-delay: .12s; }
.js .stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: calc(var(--i, 0) * var(--step, 80ms));
}
.js .stagger.is-visible > * { opacity: 1; transform: none; }
/* once the entrance is over, hover effects react without delay */
.js .stagger.done > *, .js .reveal.done { transition: box-shadow .25s, transform .25s; transition-delay: 0s; }
.partners-grid { --step: 45ms; }
.countries { --step: 55ms; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid, .terr-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; }
  .nav-open .site-header { background: #fff; border-bottom-color: var(--border); }
  .nav-open .menu {
    display: flex; position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px 24px 24px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgba(10, 21, 38, .08);
  }
  .nav-open .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-open .nav a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--tint); }
  .nav-open .nav a::after { display: none; }
  .nav-open .header-actions { justify-content: space-between; padding-top: 20px; }
  .nav-open .menu-toggle .icon-bars { display: none; }
  .nav-open .menu-toggle .icon-close { display: inline; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .container { padding: 0 20px; }
  .hero-inner { padding: 40px 20px 40px; }
  .deck-layer img { object-position: 70% center; }
  .hero-stats { margin-top: 56px; }
  .hero-stats > div { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .service { padding: 28px 24px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .partner { height: 92px; padding: 12px; }
  .partner img { max-height: 56px; }
  .partner img.wide { max-height: 28px; }
  .countries { grid-template-columns: 1fr 1fr; }
  .contact-info, .contact-cta { padding: 32px 24px; }
  .copyright { margin-left: 0; }
  .since strong { font-size: 52px; }
  .modal-card { padding: 32px 22px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .modal-card h3 { font-size: 25px; padding-right: 36px; }
}
@media (max-width: 400px) {
  .terr-stats { gap: 24px 18px; }
  .terr-stats .stat-value { font-size: 32px; }
  .terr-stats .stat-label { font-size: 15px; }
  .map-card { padding: 18px 16px 16px; }
  .countries { grid-template-columns: 1fr; }
  .hero-stats > div { padding: 18px 16px; }
  .stat-label { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; transition: none; }
  .deck-layer { transform: none; }
  * { transition: none !important; }
}
