/* ===============================
   Global / Variables / Base
   =============================== */
:root {
  --brand: #004785;
  --text: #333333;
  --muted: #555555;
  --bg: #fafafa;
  --card: #ffffff;
  --link: #1a73e8;
  --shadow: 0 4px 18px rgba(0,0,0,.06);

  /* reserve space for fixed header */
  --header-space: 120px;   /* tweak if header gets taller */
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

h1, h2, h3 {
  color: var(--brand);
  margin-top: 0;
}

/* ===============================
   Header / Nav (fixed)
   =============================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.nav {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nav a {
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
}
.nav a.active {
  opacity: .9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===============================
   Layout
   =============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--header-space) 24px 56px;
}

/* ===============================
   Home (Hero)
   =============================== */
.hero {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.hero-text { flex: 2; text-align: left; }
.hero-img { flex: 1; max-width: 320px; }
.hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ===============================
   Common Blocks / Cards / Lists
   =============================== */
.card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

.list { margin: 0; padding-left: 18px; }
.list li { margin: .3rem 0; }

/* Call-to-Action (contacts) */
.cta {
  background: #f5f8ff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0 20px;
  text-align: center;
}
.cta a {
  color: var(--link);
  font-weight: 700;
}
.cta a:hover { text-decoration: underline; }

/* Disclaimer (no betting) */
.disclaimer {
  background: #fff3f3;
  border-left: 4px solid #e53935;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 24px;
  line-height: 1.5;
  color: var(--text);
}

/* ===============================
   Media page helpers
   =============================== */
.media-page { max-width: 800px; margin: 3rem auto 0; text-align: center; }
.media-page .intro { color: var(--muted); margin-bottom: 1.5rem; }

.media-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.media-logos img {
  height: 50px;
  opacity: .9;
  transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}
.media-logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.media-list {
  list-style: none;
  padding: 0;
  text-align: left;
  line-height: 1.6;
}
.media-list li { margin-bottom: 1rem; }
.media-list a { color: var(--link); }
.lang { color: #777; font-size: .9em; }

/* ===============================
   Footer
   =============================== */
.site-footer {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 14px;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 900px) {
  .nav { justify-content: center; padding: .9rem 1rem; }
  :root { --header-space: 150px; } /* выше хедер — больше отступа */
  .container { padding: var(--header-space) 16px 48px; }

  .hero { flex-direction: column; }
  .hero-img { max-width: 260px; }
  .hero-img img { height: 360px; }
}

/* ===============================
   Optional: Print (nice CV/Research prints)
   =============================== */
@media print {
  .site-header, .site-footer, .cta, .disclaimer { display: none !important; }
  .container { padding: 0 !important; }
  a { text-decoration: underline; }
}
