/* EuroConstat — design system
   Type: Fira Sans Condensed (display) + Fira Sans (body/UI). Chosen for
   the "official multilingual signage" register — the condensed cut reads
   like road/transit signage, the full-width cut carries the 10 languages
   (incl. Cyrillic, Latin Extended) cleanly at body size.
   Layout: a "dossier" register — hairline rule dividers and numbered
   articles rather than boxed dashboard cards, since the site's job is
   credibility/compliance while the app itself stays soft and rounded. */

:root {
  --paper: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eceff7;
  --ink: #0c1830;
  --muted: #55617e;
  --blue: #163e8c;
  --blue-strong: #0e2c68;
  --gold: #e7b22e;
  --gold-ink: #4a3305;
  --line: #dce1ef;
  --focus: #b8860b;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1220;
    --surface: #101a2e;
    --surface-2: #15213a;
    --ink: #edeff6;
    --muted: #9aa6c4;
    --blue: #7fa0ee;
    --blue-strong: #b7c9f7;
    --gold: #f0c64a;
    --gold-ink: #241900;
    --line: #24304a;
    --focus: #f0c64a;
  }
}

:root[data-theme="dark"] {
  --paper: #0a1220;
  --surface: #101a2e;
  --surface-2: #15213a;
  --ink: #edeff6;
  --muted: #9aa6c4;
  --blue: #7fa0ee;
  --blue-strong: #b7c9f7;
  --gold: #f0c64a;
  --gold-ink: #241900;
  --line: #24304a;
  --focus: #f0c64a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Fira Sans Condensed", "Fira Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 6vw; padding-right: 6vw; }

/* ---------- masthead ---------- */
.seal-rule { height: 4px; background: linear-gradient(90deg, var(--blue) 50%, var(--gold) 50%); }

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { height: 34px; width: 34px; border-radius: 8px; }
.brand .word { font-family: "Fira Sans Condensed", sans-serif; font-weight: 800; font-size: 1.25rem; }

.masthead nav { display: flex; align-items: center; gap: 22px; }
.masthead nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--muted);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.masthead nav a:hover { color: var(--ink); }

.lang-field { display: flex; align-items: center; gap: 8px; }
#lang-switcher {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font-family: inherit; font-size: 0.88rem; background: var(--surface); color: var(--ink); cursor: pointer;
}

@media (max-width: 760px) {
  .masthead .wrap { flex-wrap: wrap; row-gap: 12px; }
  .masthead nav.primary-links { order: 3; width: 100%; gap: 16px; }
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 16px;
}
.eyebrow .ring { width: 18px; height: 18px; flex: none; fill: var(--gold); }

.hero-text h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 0 0 14px; line-height: 1.06; color: var(--ink); }
.hero-text p { color: var(--muted); margin: 0; max-width: 46ch; font-size: 1.06rem; }

.cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--gold); color: var(--gold-ink);
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { filter: brightness(0.96); }
.ghost {
  display: inline-block; border: 1.5px solid var(--blue); color: var(--blue);
  padding: 12px 21px; border-radius: 10px; font-weight: 700; background: transparent; font-size: 0.98rem;
}
.ghost:hover { background: var(--surface-2); }

.hero-phone { position: relative; justify-self: end; }
.phone-frame {
  width: 300px; border-radius: 22px; padding: 10px;
  background: var(--surface); border: 1.5px solid var(--blue);
}
.phone-frame img { width: 100%; border-radius: 14px; display: block; }
.seal-badge {
  position: absolute; top: -18px; right: -18px;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(10, 30, 80, 0.28);
}
.seal-badge svg { width: 46px; height: 46px; fill: var(--gold); }

/* ---------- trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip ul {
  list-style: none; margin: 0; padding: 16px 0;
  display: flex; flex-wrap: wrap; gap: 10px 0;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.trust-strip li { padding: 0 20px; border-left: 1px solid var(--line); }
.trust-strip li:first-child { border-left: none; padding-left: 0; }

/* ---------- generic section ---------- */
.section { padding: 56px 0; }
.section-head { margin-bottom: 28px; max-width: 60ch; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- features (document checklist) ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
.checklist article {
  display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line);
}
.checklist article:nth-last-child(-n+1),
.checklist article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.check-mark {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--blue); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800;
  margin-top: 2px;
}
.checklist h3 { margin: 0 0 4px; font-size: 1.05rem; font-family: "Fira Sans", sans-serif; font-weight: 700; }
.checklist p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- process (numbered sequence) ---------- */
.process { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Fira Sans Condensed", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--blue);
}
.steps strong { font-weight: 700; }
.steps span.body-text { color: var(--muted); }

.assistant {
  display: flex; gap: 18px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.assistant img { width: 108px; height: auto; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.assistant h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: "Fira Sans", sans-serif; font-weight: 700; }
.assistant p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- gallery filmstrip ---------- */
.gallery .carousel { position: relative; }
.filmstrip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 14px; margin: 0 -4px;
  scrollbar-width: thin;
}
.filmstrip figure {
  flex: none; width: 200px; scroll-snap-align: start; margin: 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden;
}
.filmstrip img { width: 100%; display: block; }
.filmstrip figcaption {
  font-size: 0.78rem; color: var(--muted); padding: 8px 10px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--surface); color: var(--blue); border: 1px solid var(--line);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 20px; z-index: 2;
}
.nav.prev { left: -14px; }
.nav.next { right: -14px; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-strong), var(--blue)); color: #fff; }
.cta-band .wrap { padding: 48px 6vw; text-align: center; }
.cta-band h2 { margin: 0 0 18px; color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); }
footer .wrap { padding: 28px 6vw; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
footer .footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer .footer-links a { color: var(--blue); font-weight: 600; font-size: 0.92rem; }
footer .rights { color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
footer .rights svg { width: 14px; height: 14px; fill: var(--gold); }

/* ---------- legal / document pages ---------- */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 60px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.doc h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.doc-updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 22px; }
.doc-intro { color: var(--muted); margin: 0 0 8px; font-size: 1.02rem; }

.legal-sections { counter-reset: article; margin-top: 20px; }
.legal-sections h2 {
  counter-increment: article;
  font-family: "Fira Sans", sans-serif; font-weight: 700; font-size: 1.08rem;
  margin: 0; padding: 22px 0 10px; border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: baseline;
}
.legal-sections h2::before {
  content: counter(article, decimal-leading-zero);
  font-family: "Fira Sans Condensed", sans-serif; font-weight: 800; color: var(--blue); font-size: 1rem;
  flex: none;
}
.legal-sections > h2:first-of-type { border-top: none; }
.legal-sections p { margin: 0 0 10px; color: var(--ink); }
.legal-sections p:last-child { margin-bottom: 0; }
.legal-sections ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink); }
.legal-sections li { margin-bottom: 6px; }

.doc-contact { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.doc-contact a { color: var(--blue); font-weight: 700; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 110px 6vw; max-width: 520px; margin: 0 auto; }
.not-found img { height: 52px; margin-bottom: 22px; }
.not-found h1 { font-size: 1.9rem; margin: 0 0 10px; }
.not-found p { color: var(--muted); margin: 0 0 26px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phone { justify-self: start; margin-top: 8px; }
  .checklist { grid-template-columns: 1fr; }
  .checklist article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .assistant { flex-direction: column; align-items: flex-start; }
}
