:root {
  color-scheme: dark;
  --bg: #071216;
  --surface: #0d2025;
  --surface-2: #122a30;
  --ink: #f7f3e8;
  --muted: #b7c4c4;
  --teal: #36b5a5;
  --teal-dark: #1a786f;
  --gold: #d7a84f;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% -10%, rgba(54, 181, 165, 0.15), transparent 38rem),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 22, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img { width: 40px; height: 40px; border-radius: 12px; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 650; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 22, 0.97) 0%, rgba(7, 18, 22, 0.72) 45%, rgba(7, 18, 22, 0.18) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 45%),
    url("/assets/kronika-hero.webp") center 45% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 710px;
  padding: 120px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }

h1, h2, h3 { line-height: 1.12; margin: 0; font-family: Georgia, "Times New Roman", serif; }
h1 { margin-top: 22px; max-width: 780px; font-size: clamp(3.2rem, 8vw, 6.9rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -0.035em; }
h3 { font-size: 1.28rem; }

.lead { max-width: 650px; margin: 26px 0 0; color: #d9e1df; font-size: clamp(1.08rem, 2vw, 1.28rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #051513;
  text-decoration: none;
  font-weight: 800;
}

.button.secondary { background: rgba(7, 18, 22, 0.6); color: var(--ink); border-color: var(--line); }
.button:hover, .button:focus-visible { transform: translateY(-1px); filter: brightness(1.08); }

.section { padding: 96px 0; }
.section-heading { max-width: 720px; }
.section-heading p { color: var(--muted); margin: 20px 0 0; font-size: 1.08rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 42, 48, 0.9), rgba(10, 27, 31, 0.9));
  padding: 30px;
  box-shadow: var(--shadow);
}

.card-number { color: var(--gold); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; }
.card h3 { margin-top: 26px; }
.card p { margin: 13px 0 0; color: var(--muted); }

.periods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.periods span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; color: #dfe7e5; background: rgba(255,255,255,.035); }

.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(215, 168, 79, 0.28);
  border-radius: 30px;
  padding: clamp(32px, 6vw, 64px);
  background: linear-gradient(135deg, rgba(215, 168, 79, 0.12), rgba(54, 181, 165, 0.08));
}

.cta-panel p { color: var(--muted); margin: 18px 0 0; }
.cta-note { justify-self: end; color: var(--gold); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.page-hero { padding: 92px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
.page-hero p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }

.document { width: min(790px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 110px; }
.document section + section { margin-top: 48px; }
.document h2 { font-size: 1.7rem; }
.document h3 { margin-top: 28px; font-size: 1.15rem; }
.document p, .document li { color: #ced8d6; }
.document ul { padding-left: 22px; }
.document a { color: #7fe0d3; text-underline-offset: 3px; }
.notice { border-left: 3px solid var(--gold); padding: 5px 0 5px 20px; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.support-card { border: 1px solid var(--line); border-radius: 20px; padding: 25px; background: var(--surface); }
.support-card p { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 42px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }

:focus-visible { outline: 3px solid #7fe0d3; outline-offset: 4px; }

@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 1120px); }
  .nav { min-height: 64px; }
  .nav-links a:first-child { display: none; }
  .hero { min-height: 620px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(7,18,22,.55) 60%, rgba(7,18,22,.35)), url("/assets/kronika-hero.webp") 58% center / cover no-repeat; }
  .hero-content { padding: 170px 0 70px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .feature-grid, .support-grid, .cta-panel { grid-template-columns: 1fr; }
  .cta-note { justify-self: start; }
  .section { padding: 72px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

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