:root {
  --bg-0: #07090d;
  --bg-1: #0d1219;
  --bg-2: #141b25;
  --ink-0: #e7ecf3;
  --ink-1: #b6c0cf;
  --ink-2: #7c8696;
  --ink-3: #4a5462;
  --line:  #1d2531;
  --accent: #c9a96a;
  --accent-soft: #d8bd86;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue",
               "Segoe UI", Roboto, "PT Sans", sans-serif;
  font-feature-settings: "kern", "liga", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* ---------- Слои фона ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* «Фотографический» слой — стилизованная схема реакторного зала
   из чистого CSS-градиента: горизонт, корпус АСММ, силуэт ШЕЛЬФ-М */
.bg-photo {
  background:
    radial-gradient(ellipse 70% 45% at 50% 78%,
        rgba(40, 60, 80, 0.55) 0%,
        rgba(20, 28, 38, 0.35) 45%,
        rgba(7, 9, 13, 0) 75%),
    radial-gradient(ellipse 35% 25% at 50% 55%,
        rgba(80, 110, 140, 0.18) 0%,
        rgba(7, 9, 13, 0) 70%),
    linear-gradient(180deg,
        #060810 0%,
        #0a1018 35%,
        #0e1722 65%,
        #060911 100%);
}

/* Технический узор — сетка + «реакторные» круги */
.bg-grid {
  background-image:
    /* концентрические окружности — намёк на реактор */
    radial-gradient(circle at 80% 20%,
        rgba(140, 170, 200, 0.06) 0 1px,
        transparent 1px 60px,
        rgba(140, 170, 200, 0.05) 60px 61px,
        transparent 61px 120px,
        rgba(140, 170, 200, 0.04) 120px 121px,
        transparent 121px 200px),
    radial-gradient(circle at 15% 85%,
        rgba(140, 170, 200, 0.05) 0 1px,
        transparent 1px 90px,
        rgba(140, 170, 200, 0.04) 90px 91px,
        transparent 91px 180px),
    /* сетка */
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:
    auto, auto,
    44px 44px, 44px 44px;
  mix-blend-mode: screen;
  opacity: 0.7;
}

.bg-vignette {
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%,
        rgba(0,0,0,0) 50%,
        rgba(0,0,0,0.55) 85%,
        rgba(0,0,0,0.85) 100%);
}

/* ---------- Контент ---------- */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 0;
}

.card-stub {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 44px 48px 36px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg,
        rgba(20, 26, 36, 0.72) 0%,
        rgba(12, 16, 22, 0.78) 100%);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 30px 80px -30px rgba(0,0,0,0.9),
    0 8px 24px -12px rgba(0,0,0,0.6);
  border-radius: 4px;
}

/* тонкие угловые засечки в стиле тех-чертежа */
.card-stub::before,
.card-stub::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink-3);
}
.card-stub::before { top: -1px;  left: -1px;  border-right: none; border-bottom: none; }
.card-stub::after  { bottom: -1px; right: -1px; border-left:  none; border-top:    none; }

/* Шапка */
.stub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.stub-header .domain {
  color: var(--ink-1);
  font-weight: 500;
}
.stub-header .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201, 169, 106, 0.7);
}

/* Заголовок */
.title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 300;
  color: var(--ink-0);
  margin: 0 0 28px;
}

/* Текст */
.lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--ink-1);
}
.lede p { margin: 0 0 14px; }
.lede p:last-child { margin-bottom: 0; }
.lede .accent {
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Разделитель */
.divider {
  margin: 32px 0 24px;
  border: 0;
  border-top: 1px solid var(--line);
  opacity: 1;
}

/* Контакты */
.contacts-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
}

.contacts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.55);
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink-0);
  transition: transform 0.18s ease,
              border-color 0.18s ease,
              background 0.18s ease,
              box-shadow 0.18s ease;
}
.contact-tile:hover,
.contact-tile:focus-visible {
  border-color: #34404f;
  background: rgba(20, 28, 40, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.7);
  color: var(--ink-0);
  outline: none;
}
.contact-tile:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 169, 106, 0.25);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-kind {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.contact-handle {
  font-size: 15px;
  color: var(--ink-0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Подвал */
.stub-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stub-footer .sep { color: var(--ink-3); }

/* ---------- Адаптив ---------- */

@media (max-width: 640px) {
  .card-stub {
    padding: 30px 22px 26px;
  }
  .stub-header {
    margin-bottom: 20px;
    font-size: 11px;
  }
  .title {
    margin-bottom: 20px;
  }
  .divider {
    margin: 24px 0 18px;
  }
  .contacts-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .contact-tile {
    padding: 12px 14px;
  }
  .contact-icon {
    width: 38px; height: 38px; flex-basis: 38px;
  }
  .stub-footer {
    margin-top: 22px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 380px) {
  .card-stub { padding: 24px 18px 22px; }
  .contact-handle { font-size: 14px; }
}

/* Уважение к настройкам анимаций */
@media (prefers-reduced-motion: reduce) {
  .contact-tile { transition: none; }
  .contact-tile:hover { transform: none; }
}
