@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700;900&family=Golos+Text:wght@400;500;600;700&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --red:        #C8102E;
  --red-dark:   #a00d24;
  --dark:       #0D0D0D;
  --gray-900:   #1a1a1a;
  --gray-700:   #3d3d3d;
  --gray-500:   #6b6b6b;
  --gray-300:   #c4c4c4;
  --gray-100:   #f2f2f2;
  --gray-50:    #f8f8f8;
  --white:      #ffffff;
  --max-width:  1160px;
  --font-head:  'Unbounded', sans-serif;
  --font-body:  'Golos Text', sans-serif;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow:     0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

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

ul { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

/* ── Section heading accent ──────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s, color .18s, transform .12s;
  text-decoration: none;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* ── Callout block ───────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--red);
  background: var(--gray-50);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.callout h3 {
  margin-bottom: .75rem;
  font-size: 1.1rem;
}

/* ── Shared table ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
thead th {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .85rem 1rem;
  text-align: left;
  white-space: nowrap;
}
tbody td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }
tbody tr:nth-child(1) td:first-child {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--red);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--dark);
}
.site-logo__icon { flex-shrink: 0; }
.site-logo__text {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--dark);
}
.site-logo__text span { color: var(--red); display: block; }

.site-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-700);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  gap: 1rem;
  align-items: flex-start;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--gray-300);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer .container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: .875rem;
  color: var(--gray-500);
  margin-top: .75rem;
  max-width: 300px;
}
.footer-brand a { color: var(--gray-300); }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: var(--gray-500);
  font-size: .875rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-900);
  font-size: .8rem;
  color: var(--gray-500);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 3.5rem 0 3rem;
}
.page-hero .section-label { margin-bottom: 1rem; }
.page-hero h1 { max-width: 700px; }
.page-hero p { color: var(--gray-700); max-width: 620px; margin-top: .75rem; }

/* ── Section spacing ─────────────────────────────────────── */
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--gray-100); }

/* ── Card grid ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--red);
}
.card h3 { font-size: 1rem; margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--gray-700); margin: 0; }

/* ── Utility ─────────────────────────────────────────────── */
.text-red { color: var(--red); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .8rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Form shared ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color .15s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.form-group textarea { min-height: 120px; resize: vertical; }
