@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --emerald-deep: #073e36;
  --emerald: #046a5c;
  --emerald-bright: #0b7a6b;
  --emerald-soft: #dbe9e3;
  --parchment: #f5f1e8;
  --paper: #fffdf8;
  --gold: #c9a961;
  --gold-pale: #eadcb8;
  --walnut: #2a211c;
  --smoke: #6f675f;
  --line: rgba(42, 33, 28, 0.18);
  --line-light: rgba(245, 241, 232, 0.25);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Manrope', Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
  --container: min(1180px, calc(100% - var(--gutter)));
  --space-2xs: 0.35rem;
  --space-xs: 0.65rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4.75rem;
  --space-2xl: 7.5rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-modal: 0 26px 70px rgba(20, 36, 30, 0.3);
  --tap-min: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100%;
  color: var(--walnut);
  background: var(--parchment);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--paper);
  background: var(--emerald-deep);
  transform: translateY(-170%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
::selection { color: var(--paper); background: var(--emerald); }

.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--space-2xl); }
.section--paper { background: var(--paper); }
.section--dark { color: var(--parchment); background: var(--emerald-deep); }
.section-heading { max-width: 720px; margin-bottom: var(--space-xl); }
.section-heading--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--emerald);
  font-size: clamp(0.78rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: .02em;
}
.kicker::before { width: 28px; height: 1px; content: ''; background: currentColor; }
.section--dark .kicker { color: var(--gold-pale); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: .98; }
h1 { font-size: clamp(2.6rem, 7.5vw, 7.7rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 4.6vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.4rem); }
p { max-width: 68ch; }
.text-muted { color: var(--smoke); }
.text-gold { color: var(--gold-pale); }
.eyebrow { font-weight: 700; color: var(--emerald); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.reveal { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Адаптивная шкала отступов по брейкпоинтам 1280 → 1024 → 768 → 480 → 360 ===== */
@media (max-width: 1280px) {
  :root { --space-xl: 4.25rem; --space-2xl: 6.5rem; }
}
@media (max-width: 1024px) {
  :root { --space-xl: 3.75rem; --space-2xl: 5.75rem; }
}
@media (max-width: 768px) {
  :root { --space-xl: 3rem; --space-2xl: 4.5rem; --gutter: 1.5rem; }
  body { font-size: 15.5px; }
}
@media (max-width: 480px) {
  :root { --gutter: 1.125rem; }
  body { font-size: 15px; }
  .section { padding-block: var(--space-2xl); }
}
@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  body { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
