/* =========================
   THEME (лучше держать сверху)
   ========================= */
:root{
  --bg-1: #1b1b1b;
  --bg-2: #242423;
  --page: #333533;

  --text: #ffffff;
  --muted: #cfe7ff;
  --muted-2: rgba(255,255,255,.65);

  --accent: #00ffe7;     /* неон как в мониторинге */
  --accent-2: #f5cb5c;   /* золотой акцент */

  --border: rgba(255,255,255,.12);

  --radius: 10px;
  --radius-lg: 16px;
}

/* =========================
   BASE
   ========================= */
*{ box-sizing: border-box; }

body{
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* scrollbar-width: 30px;  <-- это невалидно в Firefox (там auto|thin|none) */
  scrollbar-color: var(--accent-2) transparent;
  scrollbar-width: auto;
  scrollbar-gutter: stable both-edges;
}

a{
  color: inherit;
  text-decoration: none;
}

/* =========================
   HEADER / NAV
   ========================= */
header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: var(--bg-1);
  font-family: RuffCut-font, "Segoe UI", sans-serif;
}

.site-header-flex__item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1;
  font-weight: 800;
}

.site-header-imglogo{
  height: 68px;
  width: auto;
  display: block;
}

.site-header-flex__item p{
  margin: 0;
  white-space: nowrap;
}

.text-bold{ font-weight: 600; }

.header__menu{
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu__list{
  display: flex;
  gap: 10px;
  flex-direction: row;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a{
  margin-left: 25px;
  color: var(--text);
  font-weight: 500;
}

.header__nav-btn{
  display: flex;
  gap: 15px;
}

.header__btn{
  margin: 1rem 0.1rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: #000;
  background: linear-gradient(0deg, #757575 0%, #b5b5b5 52%, #757575 100%);
}

/* stats blocks */
.item-stats{
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-stats h2,
.item-stats p{ margin: 0; }

.stats-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* =========================
   HERO
   ========================= */
.hero{ padding: 40px 16px; }

.hero-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: 32px;
  align-items: center;
}

/* media */
.hero .hero-media{
  justify-self: start;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.hero .hero-media::before{
  content: "";
  position: absolute;
  inset: -10% -15% -15% -10%;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 60% 45%, rgba(0,255,231,.18), transparent 70%),
    radial-gradient(45% 45% at 30% 70%, rgba(245,203,92,.14), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.hero .hero-media img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 440px;
  image-rendering: auto !important;
  filter:
    drop-shadow(0 16px 28px rgba(0,0,0,.45))
    drop-shadow(0 0 22px rgba(0,255,231,.22))
    drop-shadow(0 0 44px rgba(0,255,231,.12));
}

/* legacy image wrapper (у тебя было два одинаковых блока — оставляю один) */
.hero .main-wrapper-item-img{
  width: clamp(260px, 36vw, 460px);
  justify-self: center;
}
.hero .main-wrapper-item-img img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  image-rendering: pixelated;
}

/* content */
.hero .hero-content{
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero .hero-content h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 56px);
}

.hero .hero-content p{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 560px;
}

.hero .hero-stats{
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero .hero-stats .stat{
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .hero-stats .num{
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  color: #ffb23d;
  line-height: 1;
}

.hero .hero-stats .label{
  color: #c9c9c9;
  line-height: 1.15;
}

.neon{
  color: var(--accent-2);
  text-shadow: 0 0 8px var(--accent-2), 0 0 24px #41340f;
}

/* mobile */
@media (max-width: 980px){
  .hero .hero-grid{ grid-template-columns: 1fr; }
  .hero .hero-media{
    order: 2;
    max-width: 360px;
    justify-self: center;
  }
  .hero .hero-content{
    order: 1;
    text-align: center;
    align-items: center;
  }
  .hero .hero-stats{ justify-content: center; }
}

/* =========================
   SECTIONS (оставил как было)
   ========================= */
.features,
.plans,
.cta{
  text-align: center;
  margin: 60px 20px;
  font-size: 30px;
}

.features ul{ list-style: none; padding: 0; }
.features li{ margin: 15px 0; font-size: 18px; }

.main-wrapper-item-statics{
  background: var(--page);
  padding: 40px 16px 56px;
}

/* WHY US grid */
.whyus-flex{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
}

@media (max-width: 1000px){
  .whyus-flex{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .whyus-flex{ grid-template-columns: 1fr; }
}

.whyus-item{ color: #c7d2e2; }
.whyus-item p{
  margin: 6px 0 0;
  line-height: 1.35;
  color: #b6c4d6;
}

.whyus-item-title{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
}
.whyus-item-title h2{
  margin: 0;
  font-size: 20px;
  color: #8cb8ff;
  font-weight: 700;
}

.whyus-item-title i{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(80,158,255,.45);
  background: rgba(80,158,255,.45);
  box-shadow: 0 0 0 2px rgba(80,158,255,.06) inset, 0 0 12px rgba(80,158,255,.15);
  color: #9ed0ff;
  font-size: 22px;
}

/* emoji icons */
.whyus-item-title .cpu::before{ content:"🖥️"; }
.whyus-item-title .shield::before{ content:"🛡️"; }
.whyus-item-title .podder::before{ content:"🛠️"; }
.whyus-item-title .rasp::before{ content:"📍"; }
.whyus-item-title .seni::before{ content:"🏷️"; }
.whyus-item-title .bes::before{ content:"🙂"; }

/* tariffs (это пока оставил старое, в “стиль мониторинга” переведём потом) */
.tariff-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.tariff{
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  width: 220px;
  box-shadow: 0 0 10px var(--accent);
}

/* CTA */
.cta a{
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  background: #fff;
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  transition: .3s;
}
.cta a:hover{ background: #00cbbf; }

footer{
  background: var(--bg-2);
  text-align: center;
  padding: 30px;
  font-size: 14px;
  color: #888;
}

/* legacy */
.button{
  display: inline-block;
  margin: 1rem 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #00ffcc;
  color: #000;
  border-radius: 5px;
}

input{ margin: .5rem; padding: .5rem; }

.card{
  background: #1a1a1a;
  padding: 1rem;
  margin: 1rem auto;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
}

/* =========================
   MODAL
   ========================= */
.modal[hidden]{ display: none; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

.modal__dialog{
  width: min(92vw, 460px);
  background: #1d1f1e;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  /* у тебя было без запятой — это ломает box-shadow */
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 20px rgba(0,255,231,.08);
  color: var(--text);
  transform: translateY(6px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.modal.show .modal__dialog{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #d8d8d8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover{ background: rgba(255,255,255,.06); }

.modal__header{ padding: 20px 20px 6px; text-align: center; }
.modal__header h3{
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.modal__subtitle{
  margin: 0;
  color: #b9c7d6;
  font-size: 13px;
}

.modal__body{
  padding: 14px 20px 8px;
  display: grid;
  gap: 12px;
}

.field{ display: grid; gap: 6px; }
.field span{ font-size: 13px; color: #b9c7d6; }

.field input{
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}

.field input:focus{
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.modal__actions{
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9c9c9;
  font-size: 13px;
}
.checkbox input{
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.form-error{
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,68,68,.08);
  border: 1px solid rgba(255,68,68,.25);
  color: #ff9b9b;
  font-size: 13px;
}
.form-error[hidden]{ display: none; }

.modal__divider{
  padding: 8px 20px 0;
  text-align: center;
  color: #9bb0c4;
  font-size: 12px;
}

.modal__divider span{
  position: relative;
  display: inline-block;
  padding: 0 10px;
}

.modal__divider span::before,
.modal__divider span::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 1px;
  background: rgba(255,255,255,.12);
}
.modal__divider span::before{ left: -96px; }
.modal__divider span::after{ right: -96px; }

.modal__oauth{
  padding: 10px 20px 18px;
  display: grid;
  gap: 10px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #262725;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn-primary{
  background: var(--accent);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover{
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn-google{
  background: #fff;
  color: #111;
  border-color: #e5e5e5;
}
.btn-google:hover{ background: #f5f5f5; }

.btn-discord{
  background: #5865f2;
  border-color: #4752c4;
}
.btn-discord:hover{ background: #4752c4; }

body.modal-open{ overflow: hidden; }

.modal__links{
  margin: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.modal__links a{ color: var(--muted); }
.modal__links a:hover{ text-decoration: underline; }

/* password eye */
.input-wrap{ position: relative; }
.input-wrap input{ width: 100%; padding-right: 42px; }

.pass-toggle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent; /* было trasnparent */
  color: #d8d8d8;
  cursor: pointer;
}
.pass-toggle:hover{ background: rgba(255,255,255,.06); }

.field-hint{
  color: #9bb0c4;
  font-size: 12px;
  margin-top: 2px;
}

.is-invalid{ border-color: rgba(255,82,82,.9) !important; }
.is-valid{ border-color: rgba(0,255,231,.6) !important; }

/* =========================
   BURGER
   ========================= */
.nav-toggle{
  display: none;
  width: 44px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: var(--bg-2);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* важно: span должен быть position:relative, иначе ::before/::after не лягут как надо */
.nav-toggle span{
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: .2s ease;
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top:  6px; }

.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px){
  .nav-toggle{ display: flex; }

  header{ position: sticky; top: 0; z-index: 50; }

  .header__menu{
    position: absolute;
    right: 0;
    top: 100%;
    width: 100%;
    background: var(--bg-1);
    border-top: 1px solid rgba(255,255,255,.06);

    display: grid;
    gap: 14px;
    padding: 14px;

    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: .18s ease;
  }

  .header__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu__list{
    flex-direction: column;
    gap: 8px;
  }

  .header__nav-btn{ justify-self: end; }

  body.menu-open{ overflow: hidden; }
}
/* ====== Monitoring-like theme overrides (append at end) ====== */
:root{
  --page: #0b0f12;
  --bg-1: rgba(255,255,255,.06);
  --bg-2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.10);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.45);
  --glow: 0 0 0 1px rgba(0,255,231,.18), 0 0 22px rgba(0,255,231,.18);
  --blur: blur(10px);
}

/* фон как у мониторинга */
body{
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(0,255,231,.10), transparent 60%),
    radial-gradient(800px 400px at 15% 30%, rgba(55,162,255,.10), transparent 55%),
    radial-gradient(800px 400px at 85% 35%, rgba(255,77,109,.06), transparent 55%),
    var(--page);
}

/* header “стекло” */
header{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--blur);
}

/* секции вместо серого прямоугольника */
.main-wrapper-item-statics{
  background: transparent;
}

/* карточки why-us под мониторинг */
.whyus-item-title i{
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

/* тарифы под мониторинг */
.tariff{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
}
.tariff:hover{
  box-shadow: var(--shadow), var(--glow);
  transform: translateY(-2px);
  transition: .15s ease;
}

/* кнопки более “дорогие” */
.header__btn{
  background: rgba(0,255,231,.10);
  border: 1px solid rgba(0,255,231,.35);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
.header__btn:hover{
  box-shadow: var(--shadow), var(--glow);
}
