/*
 * Основные стили для визитки SmartДом.
 * РЕФЕРЕНС: оставляем визуал, добавляем только недостающие классы под структуру.
 */

:root{
  --bg0:#050a12;
  --bg1:#060d18;
  --card: rgba(13, 24, 41, 0.55);
  --card2: rgba(10, 18, 32, 0.55);
  --stroke: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --muted2: rgba(255,255,255,0.48);
  --cyan:#00E6FF;
  --cyan2:#22B9FF;
  --radius: 18px;
  --radius2: 22px;
  --shadow: 0 18px 70px rgba(0, 230, 255, 0.07);
  --shadowStrong: 0 18px 70px rgba(0, 230, 255, 0.14);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 75% 25%, rgba(0,230,255,.12), transparent 55%),
    radial-gradient(700px 420px at 20% 65%, rgba(0,230,255,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.wrap{min-height:100%;}
a{color:inherit}
a:visited{color:inherit}

/* ----- Header ----- */
.header{
  position: sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(3,8,16,.85), rgba(3,8,16,.55));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
}
.headRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brandMark{
  width:38px;height:38px;border-radius:12px;
  background: linear-gradient(135deg, rgba(0,230,255,.22), rgba(0,230,255,.06));
  border: 1px solid rgba(0,230,255,.25);
  box-shadow: var(--shadow);
  display:grid;place-items:center;
}
.brandMark svg{width:20px;height:20px;opacity:.95}

.nav{
  display:flex;
  gap:18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.nav a{
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition:.2s ease;
}
.nav a.active{
  color: rgba(255,255,255,.95);
  background: rgba(0,230,255,0.10);
  border: 1px solid rgba(0,230,255,0.18);
}
.nav a:hover{color:rgba(255,255,255,.95)}

.headRight{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.phone{
  color:rgba(255,255,255,.78);
  font-weight:600;
  font-size:14px;
  white-space:nowrap;
  opacity:.95;
  text-decoration:none;
}
.phone:hover{ text-decoration: underline; }
.phone:visited{ color: rgba(255,255,255,.78); }

/* ----- Buttons ----- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
  transition: .18s ease;
  white-space:nowrap;
}
.btnPrimary{
  color:#041018;
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  box-shadow: var(--shadowStrong);
}
.btnPrimary:hover{transform: translateY(-1px); filter:saturate(1.05)}
.btnOutline{
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(0,230,255,0.35);
  box-shadow: 0 0 0 1px rgba(0,230,255,0.10) inset;
}
.btnOutline:hover{transform: translateY(-1px); background: rgba(0,230,255,0.06)}
.btnSmall{
  padding: 12px 16px;
  border-radius: 16px;
}
.btnBig{
  padding: 14px 24px;
  border-radius: 16px;
  font-size: 15px;
}
.btnIcon{width:18px;height:18px;opacity:.85}
.arrow{width:16px;height:16px;opacity:.8}

a.btn.btnPrimary,
a.btn.btnPrimary:visited{
  color:#041018;
}

a.btn.btnOutline,
a.btn.btnOutline:visited{
  color: var(--cyan);
}
a.btn.btnOutline:hover{
  color: var(--cyan);
}


/* ----- Hero ----- */
/* ===== HERO (как в референсе) ===== */
.hero{
  position:relative;
  padding: 72px 0 54px;
}


.heroGrid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items:center; /* ВАЖНО: чтобы плашки не “уезжали” вверх */
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,230,255,0.08);
  border: 1px solid rgba(0,230,255,0.20);
  color: rgba(255,255,255,.90);
  font-weight:700;
  font-size:13px;
  width: fit-content;
  box-shadow: var(--shadow);
}
.dot{
  width:8px;height:8px;border-radius:999px;
  background: rgb(166, 70, 254);
  box-shadow: 0 0 18px rgba(166, 70, 254,.8);
}

h1{
  margin: 18px 0 14px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.2px;
}
.gradWord{
  background: linear-gradient(135deg, var(--cyan), #6df6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(0,230,255,.10);
}
.lead{
  margin: 0 0 26px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.ctaRow{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  margin-bottom: 22px;
}

/* chips */
.chips{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,.78);
  font-weight:600;
  font-size: 13px;
  box-shadow: 0 0 0 1px rgba(0,230,255,0.03) inset;
}
.chip svg{
  width:16px;
  height:16px;
  opacity:.85;
  display:block;      /* фикс “пропавших иконок” */
  flex: 0 0 auto;     /* чтобы svg не схлопывался */
}
.chip:hover{
  border-color: rgba(0,230,255,.18);
  background: rgba(0,230,255,0.05);
}

/* stats */
.statsGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat{
  background: linear-gradient(180deg, rgba(13,24,41,0.60), rgba(10,18,32,0.55));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius2);
  padding: 22px 22px;
  box-shadow: var(--shadow);
  min-height: 112px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 6px;
}
.stat .num{
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(0,230,255,.18);
}
.stat .lbl{
  font-size: 13px;
  color: var(--muted2);
  font-weight: 600;
}

/* responsive (как в референсе) */
@media (max-width: 980px){
  h1{font-size:46px;}
  .heroGrid{grid-template-columns:1fr; gap: 22px;}
  .statsGrid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 560px){
  h1{font-size:38px;}
  .statsGrid{grid-template-columns:1fr;}
}


/* trust bar */
.trustBar{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  opacity:.95;
}
.trustItem{
  padding:12px 12px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
  border-radius:14px;
  color:var(--muted);
  font-size:13px;
}

/* hero side note (как в референсе дополнение) */
.heroSideCta{ margin-top:14px; }
.heroSideCard{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(13,24,41,.55), rgba(10,18,32,.55));
  box-shadow: var(--shadow);
}
.heroSideTitle{ font-weight:800; font-size:16px; margin-bottom:8px; }
.heroSideText{ color:var(--muted); font-size:13px; line-height:1.5; margin:0; }

/* ----- Services Section ----- */
.services{
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.services h2{
  font-size: 42px;
  margin: 0 0 10px;
}
.subtitle{
  color: var(--muted);
  margin: 0;
  max-width:760px;
}

/* Заголовок секции (без кнопок сверху) */
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

/* Плашки wide */
.serviceGridWide{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

.serviceCard{
  background: linear-gradient(180deg, rgba(13,24,41,0.60), rgba(10,18,32,0.55));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: .2s ease;
  position:relative;
}
.serviceCard:hover{
  transform: translateY(-3px);
  box-shadow: 0 20px 80px rgba(0,230,255,0.06);
}
.serviceCard h3{
  margin:0 0 8px;
  font-size: 18px;
  font-weight:800;
}
.serviceCard p{
  margin:0;
  color: var(--muted2);
  line-height:1.4;
}
.miniList{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.miniList li{ margin:6px 0; }

/* ----- Process (используем как "Почему мы" обёртку) ----- */
.process{
  padding: 72px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Why mini */
.whyMini{
  margin-top:0;
}
.whyMiniHead h2{
  font-size: 42px;
  margin: 0 0 10px;
}
.whyMiniHead .subtitle{
  margin:0;
}
.whyMiniGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-top:14px;
}
.whyCard{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
  box-shadow: var(--shadow);
}
.whyCard h3{ margin:0; font-size:16px; font-weight:800; }
.whyCard p{ color:var(--muted); font-size:13px; line-height:1.55; margin:6px 0 0; }

/* ----- CTA Section ----- */
.ctaSection{
  padding: 80px 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ctaCard{
  background: linear-gradient(180deg, rgba(13,24,41,0.60), rgba(10,18,32,0.55));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius2);
  padding: 48px;
  box-shadow: 0 20px 80px rgba(0,230,255,0.06);
  max-width: 880px;
  width:100%;
  text-align:center;
  position:relative;
}
.ctaCard h2{
  font-size: 40px;
  margin:0 0 16px;
}
.ctaCard .subtitle{
  color: var(--muted);
  margin:0 auto 28px;
  max-width:600px;
}
.ctaCard .ctaRow{
  justify-content:center;
  gap: 16px;
  margin-bottom:22px;
}
.ctaCard .btnBig{
  font-size:16px;
  padding:14px 28px;
  border-radius:18px;
}
.ctaCard .ctaPhone{
  color: var(--muted);
  font-size:14px;
}
.ctaCard .ctaPhone a{
  color: var(--cyan);
  text-decoration:none;
}
.ctaCard .ctaPhone a:hover{text-decoration:underline;}

/* ----- Contacts section ----- */
.contacts{
  padding:72px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contactsGrid{
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  gap:18px;
  align-items:start;
}
.contactsGridSingle{
  grid-template-columns: 1fr;
}
.contactsLeft h2{
  font-size:42px;
  margin:0 0 14px;
}
.contactItem{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
  box-shadow: var(--shadow);
  margin-bottom:12px;
}
.contactIcon{
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
}
.contactIcon svg{ width:24px; height:24px; }
.contactLabel{ color:var(--muted2); font-size:12px; }
.contactValue{ color:var(--text); font-weight:800; text-decoration:none; }
.contactValue:hover{ color: rgba(0,230,255,.95); }

.hintCard{
  margin-top:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
  box-shadow: var(--shadow);
}
.hintCard h3{ margin:0; font-size:16px; font-weight:800; }
.hintList{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.hintList li{ margin:6px 0; }

/* ----- Buttons moved to bottom of sections ----- */
.sectionFoot{
  margin-top: 18px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.sectionFootLeft{
  justify-content:flex-start;
}

/* ----- Footer ----- */
.footer{
  background: linear-gradient(180deg, rgba(13,24,41,0.60), rgba(10,18,32,0.75));
  border-top:1px solid rgba(255,255,255,0.06);
  margin-top: 80px;
}
.footerBottom{
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-size:13px;
}
.footerBottom a{
  color: var(--cyan);
  text-decoration:none;
}
.footerBottom a:hover{text-decoration:underline;}
.footerMinimal{ padding-top:18px; }

/* ----- Responsive ----- */
@media (max-width: 1100px){
  .whyMiniGrid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 980px){
  .nav{display:none;}
  h1{font-size:46px;}
  .heroGrid{grid-template-columns:1fr; gap: 22px;}
  .statsGrid{grid-template-columns:1fr 1fr;}
  .serviceGridWide{ grid-template-columns:1fr; }
  .services h2, .whyMiniHead h2{font-size: 34px;}
  .trustBar{ grid-template-columns:repeat(2,1fr); }
  .sectionFoot{ justify-content:flex-start; }
}
@media (max-width: 560px){
  h1{font-size:38px;}
  .statsGrid{grid-template-columns:1fr;}
  .phone{display:none;}
  .trustBar{ grid-template-columns:1fr; }
}

/* services heading like reference */
.services .sectionHead{
  display:block;              /* убрать флекс-раскладку */
  text-align:center;
  margin-bottom: 40px;
}
.services .sectionHead h2{
  text-align:center;
}
.services .sectionHead .subtitle{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  max-width:640px;
}

/* ===== WHY-US: заголовок как в референсе (по центру) ===== */
.whyUs .whyMiniHead{
  text-align:center;
  margin-bottom: 14px;
}

.whyUs .whyMiniHead h2{
  text-align:center;
  margin: 0 0 10px;
}

.whyUs .whyMiniHead .subtitle{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  max-width:640px; /* как в референсе */
}


.gradient{
  background: linear-gradient(135deg, var(--cyan), #6df6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes dotPulse{
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.dot{
  animation: dotPulse 2.5s ease-in-out infinite;
  will-change: opacity;
}

/* Убираем курсор ввода (caret) везде, кроме полей ввода */
*:not(input):not(textarea):not([contenteditable="true"]){
  caret-color: transparent;
}

/* В полях ввода и редактируемых блоках — оставляем */
input, textarea, [contenteditable="true"]{
  caret-color: auto;
}

#top-sentinel{
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}


/* Пульсирующий лазурный блик за всем HERO (как в референсе) */
.hero{
  position: relative;
  overflow: hidden; /* чтобы блик не торчал за секцию */
}

/* Сам "блик" */
.hero::before{
  content:"";
  position:absolute;
  inset:-120px;
  pointer-events:none;
  z-index:0;

  background:
    radial-gradient(700px 700px at 55% 50%, rgba(0,230,255,.22), transparent 60%),
    radial-gradient(520px 340px at 20% 70%, rgba(0,230,255,.14), transparent 62%);

  opacity:.18;
  animation: heroLightPulse 6s ease-in-out infinite;
  will-change: opacity, filter;
}


/* Контент hero должен быть над бликом */
.hero{ position: relative; }


/* контент поверх */
.hero .container{ position: relative; z-index: 1; }



.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,230,255,0.08);
  border: 1px solid rgba(0,230,255,0.20);
  color: rgba(255,255,255,.90);
  font-weight:700;
  font-size:13px;
  width: fit-content;
  box-shadow: var(--shadow);
}

.pillBtn{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  cursor:pointer;
  text-align:left;
   border: 1px solid rgba(0,230,255,0.20);
}
.pillBtn:focus-visible{
  outline: 2px solid rgba(0,230,255,.35);
  outline-offset: 3px;
}



.hero{
  position: relative;
  overflow: hidden;
}

/* контейнер фона */
.heroBg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* базовые слои-картинки */
.heroBgLayer{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* плавная смена прозрачности */
  opacity: 0;
  transition: opacity 3000ms ease;

  /* чтобы не было “дёрга” при анимациях */
  will-change: opacity;
}

/* нижний слой всегда виден */
.heroBgFull{
  background-image: url("./backfullopened.png");
  opacity: 1;
}

/* средний слой */
.heroBgHalf{
  background-image: url("./backhalfopened.png");
}

/* верхний слой */
.heroBgClosed{
  background-image: url("./backclosed.png");
  opacity: 1; /* стартовое состояние — CLOSED */
}

/* затемняющий градиент + фирменные блики (отдельным слоем поверх картинок) */
.heroBg::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 3;

  /* 1) постоянная "киношная" плёнка + общий градиент */
  background:
    linear-gradient(90deg, rgba(3,8,16,0.96) 0%, rgba(3,8,16,0.75) 45%, rgba(3,8,16,0.30) 100%),
    radial-gradient(700px 420px at 70% 30%, rgba(0,230,255,.22), transparent 60%),
    radial-gradient(520px 340px at 20% 70%, rgba(0,230,255,.14), transparent 62%);

  filter: saturate(0.95) contrast(1.02);
  opacity: .9; /* как было: слой видимый */
}

.heroBg::before{
  content:"";
  position:absolute;
  inset:-120px;
  pointer-events:none;
  z-index:2;

  background:
    radial-gradient(900px 700px at 65% 35%, rgba(0,230,255,.45), transparent 60%),
    radial-gradient(600px 450px at 25% 70%, rgba(0,230,255,.28), transparent 65%);

  opacity: .35;
  mix-blend-mode: screen; /* ← КЛЮЧЕВОЕ */
  animation: heroLightPulse 6s ease-in-out infinite;
  will-change: opacity, transform, filter;
}

@keyframes heroLightPulse{
  0%,100%{
    opacity: .25;
    transform: scale(1) translate3d(0,0,0);
    filter: blur(0px);
  }
  50%{
    opacity: .55;
    transform: scale(1.06) translate3d(20px,-12px,0);
    filter: blur(2px);
  }
}




/* контент всегда поверх */
.hero .container{
  position: relative;
  z-index: 1;
}

.heroBg{ position:absolute; inset:0; z-index:0; }
.heroBgLayer{ z-index:1; } /* картинки */
.heroBg::before{ z-index:2; }
.heroBg::after{ z-index:3; }
.hero .container{ position:relative; z-index:4; }


/* === MOBILE FIX: карточки "Почему", "Связь", "Контакты" всегда в виде плашек === */
@media (max-width: 980px){

  /* WHY-US: на телефоне в 1 колонку */
  .whyUs .whyMiniGrid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Карточки WHY */
  .whyUs .whyCard{
    display: block;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
    box-shadow: var(--shadow);
  }
  .whyUs .whyCard h3{ margin:0; font-size:16px; font-weight:800; }
  .whyUs .whyCard p{ margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.55; }

  /* CTA / Связь: карточка не должна "растворяться" */
  .ctaSection .ctaCard{
    display:block;
    background: linear-gradient(180deg, rgba(13,24,41,0.60), rgba(10,18,32,0.55));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius2);
    box-shadow: 0 20px 80px rgba(0,230,255,0.06);
    padding: 28px;
  }

  /* Контакты: карточки-строки */
  .contacts .contactItem{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    border-radius:18px;
    border:1px solid var(--stroke);
    background:linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
    box-shadow: var(--shadow);
  }

  /* Ограничим любые svg внутри contactItem, чтобы не раздувались */
  .contacts .contactItem svg{
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
    flex: 0 0 auto;
    display:block;
  }

  /* Если где-то svg не в .contactIcon, всё равно не раздуется */
  .contacts svg{
    max-width: 100%;
    height: auto;
  }

  /* HintCard (что написать) — тоже в виде плашки */
  .contacts .hintCard{
    display:block;
    padding:16px;
    border-radius:18px;
    border:1px solid var(--stroke);
    background:linear-gradient(180deg, rgba(13,24,41,.45), rgba(10,18,32,.45));
    box-shadow: var(--shadow);
  }
}


/* iOS overscroll: чтобы при "резиновом" скролле не появлялась белая подложка */
html{
  background: #050a12; /* или var(--bg0) */
  background-color: #050a12;
}

body{
  background-color: #050a12; /* дублируем на всякий */
}

/* Дополнительно: запретить "протаскивание" фона на поддерживаемых браузерах */
@supports (overscroll-behavior: none){
  html, body{
    overscroll-behavior-y: none;
  }
}
