/* ---------- Fonts (self-hosted, no request to Google) ---------- */
@font-face {
  font-family: "Fjalla One";
  src: url("fonts/fjalla-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* ---------- Base ---------- */
:root {
  --bg: #1f1e25;
  --text: #b3b3b3;
  --accent: #609ddb;
  --line: #454549;
  --head: "Fjalla One", sans-serif;
}
*, ::before, ::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 15px/28px "Open Sans", sans-serif;
  overflow-wrap: break-word;
}
h1, h2 { font-family: var(--head); font-weight: 400; }
h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}
h2 { margin: 0 0 20px; color: var(--accent); font-size: 30px; line-height: 1.5; }
p { margin: 0 0 10px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
section { padding: 80px 0; }

.btn {
  display: inline-block;
  min-width: 180px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .6);
  color: #fff;
  text-align: center;
  transition: background .4s;
}
.btn:hover, .btn:focus-visible { background: var(--accent); text-decoration: none; }

/* ---------- Button icons (inline SVG, no extra requests) ---------- */
.icon::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  background: center / contain no-repeat;
}
.instagram::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E"); }
.telegram::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 3 2 11l6 3 2 7 4-4 5 4zM8 14l14-11-12 18'/%3E%3C/svg%3E"); }
.email::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 7 10-7'/%3E%3C/svg%3E"); }

/* ---------- Top bar ---------- */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  padding: 39px 0 11px;
  transition: padding .4s, background .4s;
}
.bar .wrap { display: flex; justify-content: space-between; align-items: flex-start; }
.bar img { width: auto; height: 50px; transition: height .4s; }
.bar nav { color: #fff; }
.bar.small { padding: 12px 0; background: rgba(31, 30, 37, .9); }
.bar.small img { height: 26px; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 60px;
  text-align: center;
}
.hero .btn { margin-top: 50px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
  color: #fff;
}
.countdown[hidden] { display: none; }
.countdown div + div { border-left: 1px solid #d0d0cf; }
.countdown b, .stats b { display: block; font-family: var(--head); font-weight: 400; }
.countdown b { font-size: 35px; line-height: 1.43; font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-size: 10px; line-height: 1.5; }

/* ---------- About ---------- */
.about { padding: 0; }
.about-text, .stats { padding: 80px 0; }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 20px;
  align-content: center;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}
.stats b { font-size: 35px; }

/* ---------- Dates ---------- */
.dates ul { margin: 20px 0 0; padding: 0; list-style: none; font-weight: 700; }
.dates li { margin-bottom: 10px; }
.dates li a { color: inherit; text-decoration: underline; }
.dates li a:hover { color: var(--accent); }

/* ---------- FAQ (native <details>, no JavaScript) ---------- */
.faq-img { display: none; }
details { border-bottom: 1px solid var(--line); }
details[open] { border-color: transparent; }
summary {
  display: flex;
  align-items: center;
  gap: 29px;
  padding: 23px 15px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "";
  flex: none;
  width: 21px;
  height: 21px;
  background:
    linear-gradient(#75767f, #75767f) center / 100% 2px no-repeat,
    linear-gradient(#75767f, #75767f) center / 2px 100% no-repeat;
}
details[open] summary::before {
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat;
}
summary:hover { color: #fff; }
details p { margin: 0; padding: 0 15px 20px 65px; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 20px; }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer .links { display: grid; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }

/* ---------- Legal pages ---------- */
.legal { padding: 190px 0 40px; }
.legal .wrap > * { max-width: 750px; }
.legal h1 { overflow-wrap: anywhere; hyphens: auto; margin-bottom: 60px; }
.legal h2 {
  margin: 32px 0 10px;
  color: var(--text);
  font: 300 25px/1.6 "Open Sans", sans-serif;
}

/* ---------- Small screens: centred text, as before ---------- */
@media (max-width: 991px) {
  .about, .dates, .faq h2 { text-align: center; }
  footer .wrap { flex-direction: column; }
  footer nav { justify-content: center; }
}
@media (max-width: 480px) {
  h1 { font-size: 26px; }
  summary { gap: 15px; padding-inline: 0; }
  details p { padding: 0 0 20px 36px; }
}

/* ---------- Illustrated hero: landscape only, otherwise the drawings
   would cover the logo and language links ---------- */
@media (min-width: 768px) and (min-height: 500px) and (min-aspect-ratio: 5/4) {
  .hero { background: url("images/hero.svg") top center / cover no-repeat fixed; }
}
@media (min-width: 768px) {
  .countdown b { font-size: 70px; }
  .countdown span { font-size: 15px; line-height: 1.9; }
}

/* ---------- Desktop: two columns ---------- */
@media (min-width: 992px) {
  h1 { font-size: 40px; }
  h2 { font-size: 35px; }

  .about { position: relative; isolation: isolate; }
  .about::before {
    content: "";
    position: absolute;
    inset: 0 0 0 50%;
    z-index: -1;
    background: url("images/team.webp") center / cover no-repeat;
  }
  .about .wrap { display: grid; grid-template-columns: 1fr 1fr; }
  .about-text { padding-right: 80px; }

  .dates .text { max-width: 460px; }

  .faq .wrap { display: grid; grid-template-columns: 364px 1fr; gap: 10%; align-items: start; }
  .faq-img { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
