/* =========================================================================
   base.css — токены дизайна «Не дома», сброс, типографика, reveal-анимации
   Направление: dark-blue / Montserrat. Порт из прототипа
   ne_doma_landing_darkblue_montserrat_v2.
   ========================================================================= */

:root {
  --bg: #030b19;
  --bg2: #071529;
  --panel: rgba(8, 22, 43, .88);
  --panel2: #0a1b34;
  --green: #163f73;
  --green2: #2d6fa9;
  --gold: #c8a766;
  --gold2: #f0d08a;
  --cream: #f2f6ff;
  --ivory: #ffffff;
  --muted: #aebbd0;
  --line: rgba(240, 208, 138, .20);
  --glass: rgba(255, 255, 255, .075);
  --shadow: 0 32px 110px rgba(0, 0, 0, .55);
  --radius: 30px;
  --font: "Montserrat", Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cream);
  font-family: var(--font);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 10%, rgba(47, 111, 169, .28), transparent 31%),
    radial-gradient(circle at 87% 0%, rgba(240, 208, 138, .14), transparent 28%),
    radial-gradient(circle at 75% 62%, rgba(23, 77, 135, .22), transparent 34%),
    linear-gradient(180deg, #030b19 0%, #071529 43%, #050d1d 100%);
}

/* Тонкая сетка-подложка на весь экран */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .017) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .72;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .30));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .96), rgba(0, 0, 0, .30));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page { position: relative; z-index: 1; }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* --- Типографика --- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  overflow-wrap: break-word;
}

h1 {
  font-weight: 900;
  font-size: clamp(54px, 7.3vw, 108px);
  line-height: .88;
  letter-spacing: -.075em;
  max-width: 790px;
}

h2 { font-weight: 900; }
h3 { font-weight: 800; }

/* --- Reveal при скролле (усиление поверх статики прототипа) --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
              transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Служебное --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 14px 0;
  background: var(--cream);
  color: #061226;
  font-weight: 800;
}
.skip-link:focus { left: 0; }

.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;
}

:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}
