/* ============================================================
   CAAJ SPORTS LIMITED — shared design system
   Direction: deep pitch evergreen + floodlight orange.
   Display: Archivo (heavy). Body: Inter. Data: JetBrains Mono.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --paper:      #ECEDE7;
  --paper-2:    #E3E5DD;
  --ink:        #112019;
  --ink-soft:   #3a463f;
  --field:      #0E3B2E;   /* deep pitch green */
  --field-2:    #0A2A21;   /* darker green */
  --accent:     #FF5A1F;   /* floodlight orange */
  --accent-2:   #E84A12;
  --chalk:      #FBFBF7;   /* near-white on dark */
  --chalk-dim:  rgba(251,251,247,0.62);
  --line:       rgba(17,32,25,0.16);
  --line-soft:  rgba(17,32,25,0.09);
  --line-chalk: rgba(251,251,247,0.18);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --shadow: 0 1px 0 rgba(17,32,25,0.04), 0 18px 40px -28px rgba(17,32,25,0.45);

  --ff-display: 'Archivo', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

::selection { background: var(--accent); color: var(--chalk); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.on-dark .eyebrow { color: var(--accent); }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}
h2 { font-size: clamp(30px, 5.2vw, 54px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 34px; height: 34px;
  flex: none;
}
.brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name span { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--chalk);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius);
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 22px;
  }
  .nav-links.open a { padding: 12px 0; font-size: 17px; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-links.open .nav-cta { display: inline-flex; margin-top: 12px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--field);
  color: var(--chalk);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* floodlight glow */
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 70% 30%, rgba(255,90,31,0.34), transparent 62%);
  z-index: -1;
}
.hero-lanes {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}
.hero-inner {
  padding-top: clamp(64px, 11vw, 120px);
  padding-bottom: clamp(56px, 9vw, 104px);
}
.hero h1 {
  font-size: clamp(46px, 11vw, 132px);
  line-height: 0.9;
  max-width: 12ch;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--chalk-dim);
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-chalk);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 6vw, 64px);
}
.hero-meta div { min-width: 0; }
.hero-meta .k {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  margin-bottom: 6px;
}
.hero-meta .v {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-accent { background: var(--accent); color: var(--chalk); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--line-chalk); }
.btn-ghost:hover { border-color: var(--chalk); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: var(--accent); transform: translateY(-2px); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 18px; }

/* About: split */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about-copy p { color: var(--ink-soft); font-size: 18px; }
.about-copy p + p { margin-top: 1em; }
.about-card {
  background: var(--field);
  color: var(--chalk);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-card h3 { color: var(--chalk); margin-bottom: 20px; }
.about-card dl { margin: 0; display: grid; gap: 16px; }
.about-card .row { display: grid; gap: 3px; padding-bottom: 16px; border-bottom: 1px solid var(--line-chalk); }
.about-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.about-card dt {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--chalk-dim);
}
.about-card dd { margin: 0; font-weight: 600; font-size: 15px; }
.about-card dd a { color: var(--accent); text-decoration: none; }
.about-card dd a:hover { text-decoration: underline; }

@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* Services */
.services { background: var(--paper-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc {
  background: var(--paper);
  padding: 34px 30px;
  transition: background .2s ease, transform .2s ease;
}
.svc:hover { background: #fff; }
.svc .num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
}
.svc h3 { margin: 16px 0 12px; }
.svc p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details { display: grid; gap: 22px; align-content: start; }
.detail {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.detail .ic {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--field); color: var(--accent);
  border-radius: var(--radius);
}
.detail .ic svg { width: 20px; height: 20px; }
.detail .k {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 4px;
}
.detail .v { font-weight: 600; font-size: 16px; }
.detail .v a { color: var(--ink); text-decoration: none; }
.detail .v a:hover { color: var(--accent-2); }
.detail address { font-style: normal; line-height: 1.5; }

/* Form */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}
.field label .req { color: var(--accent-2); }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,90,31,0.16);
}
.field .err {
  display: none;
  color: var(--accent-2);
  font-size: 12.5px;
  margin-top: 6px;
  font-weight: 600;
}
.field.invalid input,
.field.invalid textarea { border-color: var(--accent-2); }
.field.invalid .err { display: block; }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent-2); }

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  display: none;
}
.form-note.show { display: block; }
.form-note.ok { color: var(--field); font-weight: 600; }

/* ============================================================
   FOOTER (company реквизиты)
   ============================================================ */
.site-footer {
  background: var(--field-2);
  color: var(--chalk);
  padding-block: clamp(52px, 7vw, 80px) 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-chalk);
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand-name { color: var(--chalk); font-size: 22px; }
.footer-brand .brand-name span { color: var(--accent); }
.footer-tag { margin-top: 16px; color: var(--chalk-dim); max-width: 36ch; font-size: 15px; }

.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--chalk-dim); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.footer-col a:hover { color: var(--chalk); }
.footer-col address { font-style: normal; color: var(--chalk-dim); line-height: 1.6; font-size: 15px; }

/* registration data block */
.reg {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.reg .reg-item {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--chalk-dim);
}
.reg .reg-item b { color: var(--chalk); font-weight: 700; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--chalk-dim);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: var(--chalk-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--chalk); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.page-hero {
  background: var(--field);
  color: var(--chalk);
  padding-block: clamp(56px, 8vw, 92px);
}
.page-hero h1 {
  font-size: clamp(38px, 8vw, 76px);
  max-width: 16ch;
}
.page-hero .updated {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--chalk-dim);
  margin-top: 22px;
}
.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 52px 0 16px;
  padding-top: 8px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; text-transform: none; letter-spacing: -0.005em; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16.5px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.legal a { color: var(--accent-2); }
.legal .lead {
  font-size: 19px;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 8px;
}
.legal-data {
  margin-top: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--ff-mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink);
}
.legal-data b { color: var(--accent-2); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 90;
  background: var(--ink);
  color: var(--chalk);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
  display: none;
  grid-template-columns: 1fr auto;
  gap: 20px 28px;
  align-items: center;
  max-width: 880px;
  margin-inline: auto;
}
.cookie-banner.show { display: grid; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--chalk-dim); }
.cookie-banner p b { color: var(--chalk); font-family: var(--ff-display); text-transform: uppercase; letter-spacing: 0.02em; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  font-family: inherit; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line-chalk); transition: transform .2s ease, background .2s ease;
}
.cookie-actions .accept { background: var(--accent); color: var(--chalk); border-color: var(--accent); }
.cookie-actions .accept:hover { background: var(--accent-2); transform: translateY(-1px); }
.cookie-actions .decline { background: transparent; color: var(--chalk); }
.cookie-actions .decline:hover { border-color: var(--chalk); }
@media (max-width: 620px) {
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions button { flex: 1; }
}

/* ============================================================
   MOTION / REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  * { animation: none !important; }
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--chalk);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
