:root{
  /* Engineering dark */
  --bg:#0e1117;
  --bg2:#0b0f14;
  --surface:#121720;
  --surface2:#161c26;

  --card:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.10);

  --text:#e6edf3;
  --muted:#9da7b3;

  --accent:#4ea1ff;
  --good:#3fb950;
  --warn:#d29922;
  --bad:#f85149;

  --shadow: 0 12px 34px rgba(0,0,0,.38);

  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
html{ scroll-padding-top: 10px; }
body{
  margin:0;
  color:var(--text);
  font-size:17px;
  line-height:1.6;
  background: var(--bg);   /* базовый цвет */
  position: relative;      /* нужно для слоя ::before */
}

/* фиксированный фон в отдельном слое */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(78,161,255,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(45,211,111,.10), transparent 60%),
    linear-gradient(180deg,var(--bg),var(--bg2));
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1160px;margin:0 auto;padding:22px}
main.wrap{ padding-top: 86px; }

.top{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 9999;
  transform: none !important;
  visibility: visible !important;

  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--line);
}

.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  /* чтобы шапка была ровной по высоте */
  min-height: 64px;
}

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

.top__nav a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}

.top__nav a:hover{
  color:var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}

/* чтобы кнопка в шапке не “сжималась” */
.top__nav a.btn{ padding:12px 16px; }

/* ===== Mobile burger + drawer (hidden on desktop) ===== */
.burger{
  width:44px;
  height:44px;

  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);

  cursor:pointer;

  display:none;              /* по умолчанию скрыта */
  align-items:center;
  justify-content:center;

  flex-direction:column;     /* важно: чтобы полоски шли вертикально */
  gap:6px;
  padding:10px;

  box-shadow: 0 10px 26px rgba(0,0,0,.30);
}

.burger:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.burger:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.burger span{
  display:block;
  width:22px;
  height:3px;
  border-radius:999px;
  background: rgba(230,237,243,.95);
}
.burger span:nth-child(2){ opacity:.9; }
.burger span:nth-child(3){ opacity:.8; }

.burger span:nth-child(2){
  opacity:.9;
}
.burger span:nth-child(3){
  opacity:.8;
}

.mnav{
  position: fixed;
  inset: 0;
  z-index: 20000;

  display:block;               /* важно: всегда в DOM */
  opacity: 0;                  /* скрыто */
  visibility: hidden;
  pointer-events: none;        /* клики не ловим, пока закрыто */

  transition: opacity .18s ease, visibility .18s ease;
}

.mnav__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.78);
  
  opacity: 0;
  transition: opacity .18s ease;
}

.mnav__panel{
  position:absolute;
  top:0;
  right:0;

  height: 100vh;                 /* ДО НИЗА ЭКРАНА */
  width: min(360px, 88vw);

  /* почти непрозрачный фон */
  background: rgba(12,17,24,.98);
  background-image: linear-gradient(180deg, #101826 0%, #0c1118 100%);

  border-left: 1px solid rgba(255,255,255,.12);
  box-shadow: -14px 0 50px rgba(0,0,0,.75);

  transform: translateX(100%);
  transition: transform .22s ease;
  will-change: transform;

  padding: 18px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;

  overflow: auto;                /* если пунктов много — скролл внутри меню */
  -webkit-overflow-scrolling: touch;
}

.mnav__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.mnav__title{
  font-weight:900;
  letter-spacing:.2px;
}
.mnav__close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.mnav__close:hover{ background: rgba(255,255,255,.10); }

.mnav__links{
  display:flex;
  flex-direction:column;
  gap:0;                      /* важно: без зазоров, чтобы линии смотрелись ровно */
  margin-top: 6px;
}

/* пункты меню — без фона, только отступы */
.mnav__a{
  display:block;
  padding:14px 4px 14px 4px;
  border:0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  border-radius:0;

  color: rgba(230,237,243,.92);
  background: transparent;
}

/* последний пункт без нижней линии */
.mnav__a:last-of-type{
  border-bottom: 0;
}

/* лаконичный hover/active */
.mnav__a:hover,
.mnav__a:focus-visible{
  color: var(--text);
  background: rgba(255,255,255,.06);
  outline: none;
}

.mnav__cta{
  margin-top: 14px;
  width:100%;
}

/* главная кнопка */
.mnav__cta--primary{
  background: rgba(78,161,255,.22);
  border: 1px solid rgba(78,161,255,.55);
  box-shadow: 0 14px 34px rgba(78,161,255,.18);
  font-weight: 800;
}

/* вторичная */
.mnav__cta--secondary{
  opacity: .92;
}

/* FIX: кнопки в мобильном меню выравниваем влево (побеждаем .btn { justify-content:center }) */
.mnav__panel .mnav__cta.btn{
  justify-content: flex-start;     /* ← главное */
  text-align: left;
  width: 100%;
  padding-left: 14px;              /* ← чтобы текст начинался как у пунктов */
}

.mnav__head{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* open state */
/* open state */
.mnav.mnav--open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mnav.mnav--open .mnav__backdrop{
  opacity: 1;
}
.mnav.mnav--open .mnav__panel{
  transform: translateX(0);
}

/* closing state (для плавного закрытия) */
.mnav.mnav--closing{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mnav.mnav--closing .mnav__backdrop{
  opacity: 0;
}
.mnav.mnav--closing .mnav__panel{
  transform: translateX(100%);
}

.brand{display:flex;gap:12px;align-items:center}
.brand--link{
  text-decoration:none;
}
.brand--link:hover .brand__name{ color: var(--text); }
.brand--link:focus-visible{
  outline: 2px solid rgba(78,161,255,.55);
  outline-offset: 4px;
  border-radius: 14px;
}

.brand__logo{
  width:40px;height:40px;border-radius:12px;
  display:grid;place-items:center;

  /* фон/рамка теперь внутри SVG, чтобы выглядело чище */
  background: transparent;
  border: 0;
  box-shadow: none;
}
.brand__logo svg{
  display:block;
  width:28px;
  height:28px;
}

.brand__name{font-weight:800;letter-spacing:.2px}
.brand__tag{color:var(--muted);font-size:13px;margin-top:2px}

.hero{padding:60px 0 20px}
.hero h1{
  font-size:48px;
  line-height:1.15;
  margin:0 0 12px;
  letter-spacing:.2px;
}
.hero__p{
  color:var(--muted);
  max-width:760px;
  font-size:17px;
  line-height:1.65;
  margin:0 0 18px;
}

.accent{color:var(--accent)}
.hero__cta{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 16px}
.hero__badges{display:flex;gap:10px;flex-wrap:wrap}
.badge{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:8px 10px;
  color:var(--muted);
  font-size:12px;
}

.section{padding:26px 0}
/* чтобы при переходе по якорям секция не уезжала под fixed-шапку */
.section{
  scroll-margin-top: 110px;
}

.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.section h2{
  margin:0 0 10px;
  font-size:30px;
  line-height:1.25;
}

.muted{color:var(--muted)}

.toolbar{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  margin:14px 0 12px;
}
.toolbar__left{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.toolbar__right{display:flex;gap:10px;align-items:center}

.input{
  width: min(420px, 100%);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;

  padding: 12px 14px;
  font-size:15px;

  outline: none;
}

select.input{width:220px}
textarea.input{min-height:110px;resize:vertical}
.input:focus{border-color:rgba(78,161,255,.65)}

.btn{
  background: rgba(78,161,255,.16);
  color: var(--text);
  border: 1px solid rgba(78,161,255,.35);
  border-radius: 12px;

  padding: 12px 16px;
  font-size:15px;

  cursor: pointer;
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
}

/* Auth buttons full width */
#authSubmit{
  width: 100%;
  justify-content: center;
  font-weight: 800;
}

.btn:hover{background: rgba(78,161,255,.22)}
.btn--ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.btn--ghost:hover{background: rgba(255,255,255,.10)}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, minmax(0,1fr));} }
@media (max-width: 620px){ .grid{grid-template-columns: 1fr;} }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.card__top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.card__title{font-size:20px;font-weight:750}
.card__id{font-size:12px;color:var(--muted)}
.card--updated { outline: 1px solid rgba(78,161,255,.45); }
.card__sub{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}
.card__sub b{color:var(--text); font-weight:700;}

.state{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  white-space:nowrap;
}
.state--ok{border-color:rgba(45,211,111,.40); background:rgba(45,211,111,.10); color:#bdf7cf}
.state--busy{border-color:rgba(255,92,106,.45); background:rgba(255,92,106,.10); color:#ffd0d5}
.state--off{border-color:rgba(210,153,34,.45); background:rgba(210,153,34,.10); color:#ffe7b8}

.specs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.spec{border:1px solid var(--line);background:rgba(255,255,255,.03);border-radius:14px;padding:10px}
.spec__k{font-size:12px;color:var(--muted)}
.spec__v{margin-top:6px;font-size:15px;line-height:1.35}

/* ===== Price block (DA only) ===== */
.price-da{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.price-da__day{
  font-weight:900;
  letter-spacing:.2px;
  font-size:16px;
  line-height:1.25;
}

.price-da__hour{
  color:var(--muted);
  font-size:13px;
  line-height:1.25;
}

/* Savings badge */
.price-da__save{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  gap:6px;

  padding:4px 10px;
  border-radius:999px;

  border:0;
  background: rgba(63,185,80,.10);
  color:#bdf7cf;
  box-shadow: 0 10px 24px rgba(63,185,80,.10);

  font-size:12px;
  font-weight:800;
  line-height:1.1;

  width: fit-content;
}

.price-da__save::before{
  content:"↓";
  font-weight:900;
  opacity:.9;
}

.price-da__save b{
  color: var(--text);
  font-weight:900;
}

.card__note{color:var(--muted);font-size:14px;line-height:1.55}
.card__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.card__actions .btn{flex:1}

.steps{color:var(--muted);line-height:1.75}
.note{
  margin-top:10px;
  padding:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  color:var(--muted);
}
.empty{
  margin-top:12px;
  padding:14px;
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  color:var(--muted);
}
.form{margin-top:12px}
.form__row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
@media (max-width: 620px){ .form__row{grid-template-columns:1fr;} }
.form__row--actions{grid-template-columns: 1fr auto; align-items:center}
.foot{padding:22px 0 40px;border-top:1px solid var(--line);margin-top:10px}
.tariffs{
  margin-top:14px;
}

.tariff .card__sub{
  margin-top:6px;
  font-size:13px;
}

.tariff .state{
  margin-left:auto;
}
.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.65;
}
.list li{margin:6px 0}
.fit{margin-top:14px}

.foot{
  padding:22px 0 40px;
  border-top:1px solid var(--line);
  margin-top:10px;
}

.foot__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap:14px;
}

.foot__title{
  font-weight:800;
  margin-bottom:8px;
  letter-spacing:.2px;
}

/* Footer: calmer links */
.foot .link{
  text-decoration: none;
  color: rgba(230,237,243,.92);
}
.foot .link:hover{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sshhelp__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.sshhelp__top b{
  display:block;
  font-size:15px;
  line-height:1.3;
  color:var(--text);
}

.sshhelp__hide{
  flex:0 0 auto;
  font-size:13px;
  line-height:1;
  color:var(--muted);
  text-decoration:none;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  transition:.15s ease;
}

.sshhelp__hide:hover{
  color:var(--text);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}

.sshhelp__hide:focus-visible{
  outline:none;
  color:var(--text);
  border-color:rgba(78,161,255,.45);
  box-shadow:0 0 0 3px rgba(78,161,255,.12);
}

/* ===== Footer social icons ===== */
.social{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:6px;
}

.social__a{
  width:42px;
  height:42px;
  border-radius:999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.social__a:hover{
  background: rgba(78,161,255,.14);
  border-color: rgba(78,161,255,.35);
  transform: translateY(-1px);
}

.social__a:active{
  transform: translateY(0px);
}

.social__a:focus-visible{
  outline: 2px solid rgba(78,161,255,.55);
  outline-offset: 3px;
}

.social__icon{
  width:20px;
  height:20px;
  color: rgba(230,237,243,.92);
  display:inline-flex;
}

.social__icon svg{
  width:20px;
  height:20px;
  display:block;
}

@media (max-width: 980px){
  .foot__grid{grid-template-columns:1fr; }
}
.link{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover{color:var(--accent)}

.legal{margin-top:14px}

/* Hero grid */
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr;}
}
.hero__sub{
  margin:0 0 10px;
  color:var(--text);
  opacity:.92;
  font-size:16px;
}
.hero__micro{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}

/* Panel */
.panel{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.panel--tight{padding:12px}
.panel__title{
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:10px;
}
.panel__note{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.14);
  color:var(--muted);
  line-height:1.55;
}

/* lists */
.ticks, .checks, .bul{
  margin:0;
  padding-left:18px;
  line-height:1.7;
  color:var(--muted);
}
.ticks li, .checks li, .bul li{margin:6px 0}
.checks li b{color:var(--text)}
.ticks li::marker{color:var(--accent)}
.checks li::marker{color:var(--good)}
.bul li::marker{color:rgba(255,255,255,.35)}

/* Tariffs (distinct from server cards) */
.tariffs2{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 980px){
  .tariffs2{grid-template-columns:1fr;}
}
.tcard{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:14px;
  box-shadow: var(--shadow);
}
.tcard--primary{border-color: rgba(78,161,255,.28)}
.tcard--warn{border-color: rgba(210,153,34,.30)}
.tcard__head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:8px;
}
.tcard__title{
  font-size:16px;
  font-weight:850;
  letter-spacing:.2px;
}
.tcard__badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
  white-space:nowrap;
}
.tcard--primary .tcard__badge{border-color: rgba(78,161,255,.28); color: rgba(78,161,255,.95)}
.tcard--warn .tcard__badge{border-color: rgba(210,153,34,.30); color: rgba(210,153,34,.95)}
.tcard__text{
  color:var(--muted);
  line-height:1.55;
  margin-bottom:10px;
}
.tcard__cols{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 620px){
  .tcard__cols{grid-template-columns:1fr;}
}
.tcard__k{
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
.tcard__v{
  color:var(--muted);
  line-height:1.55;
}

/* Afterpay: "не маркетплейс" */
.afterpay__notmarket{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid rgba(78,161,255,.28);
  background: rgba(78,161,255,.04);
  border-radius:14px;
}

.afterpay__nmTitle{
  font-weight:850;
  letter-spacing:.2px;
  color: var(--text);
  margin-bottom:6px;
}

.afterpay__nmText{
  color: var(--muted);
  line-height:1.55;
}

.afterpay__nmText b{
  color: var(--text);
  font-weight:750;
}

/* FAQ */
.faq{margin-top:10px; display:flex; flex-direction:column; gap:10px;}
.faq__item{
  background: rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:12px 14px;
  transition: border-color .2s ease, background .2s ease;
}

.faq__item[open]{
  background: rgba(78,161,255,.04);
  border-color: rgba(78,161,255,.35);
}

.faq__item summary{
  cursor:pointer;
  list-style:none;
  font-weight:700;
  color:var(--text);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.faq__item summary::after{
  content:"▾";
  font-size:14px;
  color:var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.faq__item[open] summary::after{
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__item summary:hover{
  color: var(--accent);
}

.faq__item summary::-webkit-details-marker{display:none}
.faq__a{
  margin-top:10px;
  color:var(--muted);
  line-height:1.6;
}

.section__sub{
  margin-top:6px;
  max-width: 760px;
  color: var(--text);
  opacity:.92;
  font-size:14px;
}

.section__hint{
  margin-top:6px;
  max-width: 760px;
  color: var(--muted);
  font-size:13px;
  line-height:1.5;
}

.card__meta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.3;
}

/* Consult */
.consult{
  margin-top: 12px;
}

.consult__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.consult__title{
  font-weight:900;
  letter-spacing:.2px;
}

.consult__meta{
  color:var(--muted);
  font-size:13px;
}

.consult__hint{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,.14);
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

/* ===== Header auth buttons spacing ===== */
.top__spacer{ flex: 1; }

/* ===== Modals ===== */
.mnmodal{
  position: fixed;
  inset: 0;
  z-index: 30000;

  display:block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .18s ease, visibility .18s ease;
}

.mnmodal--open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mnmodal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.78);
}

.mnmodal__panel{
  position:absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(560px, 92vw);
  max-height: min(84vh, 820px);
  overflow:auto;

  background: rgba(12,17,24,.98);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 26px 80px rgba(0,0,0,.75);

  padding: 14px;
}

.mnmodal__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.mnmodal__title{ font-weight: 900; letter-spacing:.2px; }
.mnmodal__close{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor:pointer;
}
.mnmodal__close:hover{ background: rgba(255,255,255,.10); }

.mnmodal__tabs{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.tab{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor:pointer;
}
.tab:hover{ background: rgba(255,255,255,.07); color: var(--text); }
.tab--active{
  border-color: rgba(78,161,255,.45);
  background: rgba(78,161,255,.12);
  color: var(--text);
  font-weight: 800;
}

.mnmodal__body{ margin-top: 12px; }
.mnlabel{ display:block; font-size:12px; color: var(--muted); margin:10px 0 6px; }
.mnrow{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.mnrow2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 520px){ .mnrow2{ grid-template-columns: 1fr; } }

.mnsmall{ 
  font-size:12px; 
  line-height:1.45; 
  margin-top:6px;   /* было 10 */
}

/* ===== Auth modal spacing fixes ===== */

/* Кнопка под полями не должна "липнуть" */
#authSubmit{
  margin-top: 14px;
}

/* Чекбокс-строка (мы добавляем класс mncheck из app.js) */
.mncheck{
  margin-top: 18px;
  margin-bottom: 16px;
  
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08); /* лёгкое разделение */

  display:flex;
  align-items:flex-start;
  gap:10px;
}

.mncheck__text{
  font-size:14px;
  line-height:1.3;
}

/* сам чекбокс чуть выравниваем по базовой линии текста */
.mncheck input[type="checkbox"]{
  margin-top: 4px;
}

/* В login скрываем подсказку и legal-блок даже если кто-то вернул их стилями */
.auth--login .authHint{
  display:none !important;
}
.auth--login .mncheck{
  display:none !important;
}

/* ===== Order modal price typography ===== */
#ordPrice{
  line-height: 1.25;
}

/* A2 extra fields spacing (optional) */
#ordA2Plan.input{ min-height: 86px; }
#ordA2Contact.input{ width: min(420px, 100%); }
#ordA2ContactType.input{ width: 180px; }

#ordPrice .ordprice__main{
  font-weight: 900;      /* как и было у цены */
  letter-spacing: .2px;
}

#ordPrice .ordprice__tail{
  font-weight: 600;      /* НЕ жирно как цена */
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;   /* чтобы скобки не разваливались */
  opacity: .95;
}

#ordPrice .ordprice__pct{
  color: var(--good);    /* зелёненький акцент */
  font-weight: 850;      /* выделяем только процент */
}

.err{ color: var(--bad); }
.ok{ color: var(--good); }


@media (max-width: 820px){
  .top__nav{
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .brand__tag{display:none;} /* тэглайн оставим в hero, в шапке на мобиле тесно */
   .section{ scroll-margin-top: 50px; }
   html{ scroll-padding-top: 50px; }
   main.wrap{ padding-top: 80px; }
   
   .hero{
    padding: 20px 0 20px;
  }
   
  .burger{ display:inline-flex; }
  .top__nav{ display:none; }
  
    /* Шапка на мобиле уже/компактнее */
  header.top .wrap{
    padding: 12px 14px;   /* было 22px — сделаем уже */
  }
  .top__inner{
    min-height: 56px;     /* было 64px — компактнее */
    gap: 12px;
  }

}

/* ===== SSH help (order modal) ===== */
.sshhelp__line{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
.sshhelp__sub{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
.sshhelp__sub code{
  background:rgba(0,0,0,.25);
  padding:2px 6px;
  border-radius:6px;
  font-size:12px;
}
.sshhelp__link{
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left:6px;
  color: var(--text);
}
.sshhelp{
  margin-top:10px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  border-radius:14px;
}
.sshhelp__block{
  margin-bottom:10px;
}
.sshhelp__cmd{
  margin-top:6px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:12px;
  color: var(--text);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  overflow:auto;
}

.sshhelp__cmd code{
  white-space:pre;
}
.sshhelp__copy{
  flex: 0 0 auto;
  width:34px;
  height:30px;

  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);

  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  opacity:.9;
}

.sshhelp__copy:hover{
  background: rgba(255,255,255,.10);
  opacity:1;
}

.sshhelp__copy:active{
  transform: translateY(1px);
}

.sshhelp__copy--ok{
  border-color: rgba(63,185,80,.45);
  background: rgba(63,185,80,.14);
}
.sshhelp__warn{
  margin-top:8px;
  color: #ffe7b8;
  font-size:12px;
  line-height:1.45;
  border-top: 1px dashed rgba(255,255,255,.14);
  padding-top:10px;
}
.sshhelp__err{
  margin-top:8px;
  font-size:12px;
  color: var(--bad);
}

/* ===== Auth: одинаковая раскладка и разделитель (login/register) ===== */

/* 1) В auth-модалке делаем row вертикальным: кнопка на всю ширину, статус под ней */
#authModal .mnrow{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  flex-wrap:nowrap;
}

/* 2) Кнопка auth одинаковая всегда */
#authModal #authSubmit{
  width:100%;
  justify-content:center;
  font-weight:800;
  min-height:44px;
}

/* 3) Чтобы статус не “жрал” место и не прыгало */
#authModal #authStatus{
  min-height:18px;
}

/* 4) Воздух под паролем (и в login, и в register) */
/* Под паролем: в login нужен воздух до разделителя, в register — воздух делает .mncheck */
#authModal.auth--login #authPass{
  margin-bottom:18px;
}
#authModal.auth--register #authPass{
  margin-bottom:0;
}

/* 5) Разделяющая черта в LOGIN (под паролем, перед кнопкой) */
#authModal.auth--login .mnrow{
  margin-top:0;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}

/* 6) В REGISTER разделитель уже делает .mncheck (у тебя так и задумано) */

/* ===== Cookie bar ===== */
.cookiebar[hidden]{
  display:none !important;
}

.cookiebar{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30000;
  pointer-events: none;
}

.cookiebar__inner{
  width: 560px;
  max-width: calc(100vw - 32px);
  margin: 0;
  pointer-events: auto;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,17,24,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}

.cookiebar__text{
  flex: 1 1 640px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cookiebar__text a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookiebar__actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookiebar__actions .btn{
  white-space: nowrap;
}

@media (max-width: 820px){
  .cookiebar{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookiebar__inner{
    padding: 12px 12px;
    border-radius: 14px;
    gap: 12px;
  }

  .cookiebar__text{
    font-size: 12px;
  }

  .cookiebar__actions{
    width: 100%;
  }

  .cookiebar__actions .btn{
    width: 100%;
    justify-content: center;
  }
}

/* tablet only fix */
@media (min-width:821px) and (max-width:908px){
  .hero{
    padding-top:75px;
  }
}