:root {
  --bg: #0b0b0b;
  --bg-soft: #141110;
  --ink: #f7f2eb;
  --muted: #cbbfb4;
  --hot-rgb: 215, 52, 44;
  --hot: rgb(var(--hot-rgb));
  --hot-deep: #b3261f;
  --sun: #101010;
  --mint: #101010;
  --paper: #faf6f1;
  --paper-ink: #1a1513;
  --paper-muted: #6b625b;
  --paper-line: rgba(26, 21, 19, 0.12);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --chalk: rgba(255, 255, 255, 0.75);
  --teal: #39b3b1;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(var(--hot-rgb), 0.85);
  color: #fff;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Merriweather", serif;
  text-wrap: balance;
}

h2 {
  display: inline-block;
  font-family: "Merriweather", serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(var(--hot-rgb), 1);
  margin-bottom: 22px;
}

a {
  color: inherit;
}

:where(body, p, a, li, span, button, input, textarea, label, small, strong, em, cite, blockquote) {
  font-size: clamp(15px, 17px, 20px) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-hot {
  background: linear-gradient(180deg, var(--hot), var(--hot-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-hot:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 26px rgba(0, 0, 0, 0.45);
}

/* ---------- Навигация и доступность ---------- */
html {
  scroll-behavior: smooth;
  /* --menu-h выставляет script.js по фактической высоте липкого меню */
  scroll-padding-top: var(--menu-h, 60px);
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 0;
  }
}

:focus-visible {
  outline: 3px solid rgba(var(--hot-rgb), 0.9);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--hot);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 16px !important;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

/* кнопка-контур на светлом фоне (отзывы, контакты) */
.btn-line {
  border-color: var(--paper-line);
  color: var(--paper-ink);
  background: #fff;
}

.btn-line:hover {
  border-color: rgba(var(--hot-rgb), 0.5);
  color: var(--hot);
  box-shadow: 0 8px 22px rgba(26, 21, 19, 0.1);
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Появление при прокрутке (только с JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
