

* {
  margin: 0;
  padding: 0;
}

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

:root {
  
  --bg-primary: #0b1220;
  --bg-secondary: #111a2e;
  --bg-tertiary: #1a253b;
  --bg-alt: #0e1626;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --line: rgba(226, 232, 240, 0.13);
  --line-soft: rgba(226, 232, 240, 0.07);

  
  --sp-1: 0.618rem;
  --sp-2: 1rem;
  --sp-3: 1.618rem;
  --sp-4: 2.618rem;
  --sp-5: 4.236rem;

  
  --fl-xs: clamp(0.75rem, 0.9vw, 0.85rem);
  --fl-sm: clamp(0.875rem, 1vw, 1rem);
  --fl-md: clamp(1rem, 1.5vw, 1.125rem);
  --fl-lg: clamp(1.5rem, 3.4vw, 2.1rem);
  --fl-xl: clamp(2.2rem, 6vw, 4rem);
  --fl-gap: clamp(1rem, 2.6vw, 1.618rem);
  --fl-band: clamp(2.618rem, 6vh, 4.236rem);
  --wrap: min(92vw, 1200px);

  
  --rad: 0.875rem;
  --rad-s: 0.5rem;
  --rad-m: 0.625rem;
  --hd-h: 6.75rem;
  --sb-w: 19rem;
}

html {
  font-size: 16px;
}

body {
  position: relative;
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding-top: var(--hd-h);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--fl-xl);
  line-height: 1.12;
}

h2 {
  font-size: var(--fl-lg);
  margin-bottom: var(--sp-3);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: var(--sp-1);
}

h4 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-1);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
  max-width: 68ch;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

ol {
  counter-reset: hd-step;
}

li {
  line-height: 1.6;
  color: var(--text-secondary);
}

section {
  position: relative;
  width: 100%;
  padding: var(--fl-band) var(--fl-gap);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--line);
}

nav {
  font-size: var(--fl-sm);
}

footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

article {
  min-width: 0;
}

figure {
  margin: 0;
  min-width: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

form {
  display: grid;
  gap: var(--sp-2);
}

label {
  display: block;
  font-size: var(--fl-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fl-sm);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--line);
  border-radius: var(--rad-m);
  padding: 0.82rem 1.05rem;
}

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fl-sm);
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-secondary);
}

th {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.04em;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-3);
  color: var(--text-secondary);
}

@media (max-width: 1023px) {
  :root {
    --sb-w: 100%;
    --hd-h: 4.3rem;
  }
}

@media (max-width: 767px) {
  h3 {
    font-size: 1.25rem;
  }

  p {
    max-width: none;
  }

  table {
    table-layout: fixed;
  }

  th, td {
    padding: 0.65rem 0.5rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
