/* Shared base for every page: fonts, tokens („Златният път“, dark „Нощ“), header and buttons.
   The landing sections are in home.css; the footer, cookie banner and content pages in pages.css. */

/* Self-hosted (OFL, see assets/fonts/OFL-*.txt): no request to a font CDN, so nothing leaves the site
   before cookie consent. Variable fonts, Cyrillic and Latin subsets; a page loads only what it uses. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/playfair-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/playfair-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/playfair-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  /* „Нощ“: the site and the app are dark; gold is only for progress and the main action. */
  --night: #0b2329;
  --night-deep: #081b20;
  --surface: #12343b;
  --surface-2: #163f47;
  --ink: #f4efe4;
  --ink-soft: #d5dfdd;
  --muted: #a9bab8;
  --line: rgba(244, 239, 228, 0.14);
  --line-strong: rgba(244, 239, 228, 0.32);
  --gold: #e8a52a;
  --on-gold: #12343b;
  --link: #5cc2c9;
  --link-hover: #8fd6db;
  --orange: #e66b32;
  --paper: #f7f3ea;
  --paper-ink: #12343b;
  --paper-muted: #4a5c5c;
  --gold-ink: #7a4f0c;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  line-height: 1.5;
}
img,
video,
svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
h1 em,
h2 em {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 40;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  min-height: 76px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.brand-wordmark span {
  margin-top: 3px;
  color: var(--ink);
  font: 700 23px/1 var(--serif);
  letter-spacing: 0.12em;
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.header-nav a:hover {
  color: var(--gold);
}
.locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 35, 41, 0.35);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.locale-toggle:hover {
  background: rgba(244, 239, 228, 0.1);
}
.locale-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.button-primary {
  background: var(--gold);
  color: var(--on-gold);
}
.button-primary:hover {
  background: #f0b84a;
}
.button-ghost {
  border-color: rgba(244, 239, 228, 0.5);
  background: transparent;
  color: var(--ink);
}
.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(244, 239, 228, 0.08);
}
.star {
  flex: none;
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

@media (max-width: 860px) {
  .header-nav {
    display: none;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand-wordmark span {
    font-size: 20px;
  }
}
