:root{
  --bg:#07142d;
  --bg2:#0a1d3f;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);
  --line: rgba(255,255,255,.10);
  --text:#eaf1ff;
  --muted: rgba(234,241,255,.78);
  --muted2:#9fb7e6;
  --accent:#4fd3ff;
  --accent2:#7c6bff;
  --shadow: 0 16px 50px rgba(0,0,0,.38);
  --r:18px;
  --r2:26px;
  --max:1080px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{
  position:relative;
  font-family:var(--font);
  color:var(--text);
  background-image:
  linear-gradient(180deg, rgba(7,20,45,.95) 0%, rgba(10,29,63,.94) 55%, rgba(7,20,45,.95) 100%),
  url('img/bg-wifi-softer.png');
background-size: cover, cover;
background-position: center, center;
background-repeat: no-repeat, no-repeat;
background-attachment: fixed, fixed;
  line-height:1.45;
}



a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 16px}
.nav{
  position:sticky; top:0; z-index:20;
  background: rgba(7,20,45,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav .row{display:flex; align-items:center; justify-content:space-between; height:62px; gap:10px}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  overflow:hidden;
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, rgba(79,211,255,.95), rgba(124,107,255,.95));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px rgba(79,211,255,.18);
  flex:0 0 auto;
}

.brand b{display:block; font-weight:900; letter-spacing:.2px}
.brand span{display:block; font-size:12px; color:var(--muted2); margin-top:2px}
.links{display:none; gap:8px; align-items:center}
.links a{padding:10px 10px; border-radius:12px; color:rgba(234,241,255,.86)}
.links a:hover{background:rgba(255,255,255,.06)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:11px 14px; border-radius:14px;
  border:1px solid rgba(79,211,255,.30);
  background: rgba(79,211,255,.10);
  font-weight:900;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.btn:hover{transform: translateY(-1px); border-color: rgba(79,211,255,.50)}
.btn.primary{
  border-color: rgba(124,107,255,.35);
  background: linear-gradient(135deg, rgba(79,211,255,.16), rgba(124,107,255,.18));
}
.hero{padding:18px 0 22px}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: 999px;
  color: rgba(234,241,255,.86);
  font-size: 13px;
}
.kicker i{width:8px;height:8px;border-radius:99px;background:#5eead4; box-shadow:0 0 0 6px rgba(94,234,212,.12); display:inline-block; flex:0 0 auto; vertical-align:middle}
h1{margin:14px 0 10px; font-size: clamp(28px, 5.6vw, 44px); line-height:1.05; letter-spacing:-.6px}
.sub{margin:0; color:var(--muted); font-size: clamp(15px, 2.2vw, 18px); max-width: 68ch}
.hero-grid{display:grid; gap:14px; margin-top:16px}
.card{
  border:1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.04));
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pad{padding:16px}
.media{padding:12px}
.hero-img{
  width:100%; height:auto; display:block;
  border-radius: calc(var(--r2) - 6px);
  border:1px solid rgba(255,255,255,.10);
}
.section{padding:28px 0}
.section h2{margin:0 0 8px; font-size: clamp(22px, 4.2vw, 30px); letter-spacing:-.3px}
.lead{margin:0; color:var(--muted); max-width: 80ch}
.grid3{display:grid; gap:12px; margin-top:14px}
.grid2{display:grid; gap:12px; margin-top:14px}
.feat{
  padding:16px; border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.feat b{display:block; font-size:14px}
.feat span{display:block; margin-top:6px; font-size:13px; color:var(--muted2)}
.pricing{display:grid; gap:12px; margin-top:14px}
.plan{
  padding:16px; border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.plan.pop{
  background: linear-gradient(135deg, rgba(79,211,255,.10), rgba(124,107,255,.10));
  border-color: rgba(124,107,255,.30);
}
.plan h3{margin:0 0 6px; font-size:16px}
.price{font-size:22px; font-weight:900; letter-spacing:-.3px}
.price small{font-size:12px; color:var(--muted2); font-weight:700}
ul{margin:10px 0 0; padding:0 0 0 18px; color:rgba(234,241,255,.86)}
li{margin:8px 0; font-size:13px}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size:12px; color:rgba(234,241,255,.86);
}
.badge i{width:10px;height:10px;border-radius:99px;background:#fbbf24; box-shadow:0 0 0 6px rgba(251,191,36,.10); display:inline-block; flex:0 0 auto; vertical-align:middle}
.cta{display:grid; gap:10px; margin-top:12px}
.footer{
  border-top:1px solid var(--line);
  padding:18px 0 90px;
  color: var(--muted2);
  font-size: 13px;
}
.bottom-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:30;
  background: rgba(7,20,45,.86);
  backdrop-filter: blur(10px);
  border-top:1px solid var(--line);
  padding:10px 12px;
}
.bottom-bar .inner{max-width:var(--max); margin:0 auto; display:flex; gap:10px}
.bottom-bar .inner a{flex:1}
.toast{
  position: fixed; left: 50%; bottom: 76px;
  transform: translateX(-50%);
  background: rgba(15,33,72,.95);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(234,241,255,.90);
  font-size: 13px;
  display:none;
  z-index: 100;
  max-width: min(560px, calc(100% - 24px));
}
@media (min-width: 980px){
  .wrap{padding:0 18px}
  .links{display:flex}
  .hero-grid{grid-template-columns: 1.05fr .95fr; align-items:stretch}
  .grid3{grid-template-columns: repeat(3, 1fr)}
  .grid2{grid-template-columns: repeat(2, 1fr)}
  .pricing{grid-template-columns: repeat(3, 1fr)}
  .bottom-bar{display:none}
  .footer{padding-bottom:24px}
}

.divider{height:1px;background:rgba(255,255,255,.10);margin:14px 0}

.hero-grid--single{grid-template-columns:1fr}
@media (min-width: 980px){
  .hero-grid--single{grid-template-columns: minmax(0,720px); justify-content:center}
}


/* Targeted centering: only top headline + intro text */
.hero h1, .hero .sub { text-align: center; margin-left:auto; margin-right:auto; }
.hero .sub { max-width: 68ch; }

/* Make logo icon larger (stretched look) */

/* Logo icon: centered, slightly enlarged but not shifted */
.logo{display:flex;align-items:center;justify-content:center;overflow:hidden}
.logo svg{display:block}

/* Contacts */
.contact-line{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:10px;
}
.email-link{
  font-weight:900;
  letter-spacing:.2px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.btn.small{padding:10px 12px; border-radius:14px; font-weight:900}

/* Form */
.form{margin-top:10px}
.form-grid{display:grid; gap:10px}
@media (min-width: 980px){ .form-grid{grid-template-columns:1fr 1fr} }
.field{display:grid; gap:8px; text-align:left}
.field span{font-size:12px; color:rgba(234,241,255,.82)}
.field input, .field textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(7,20,45,.35);
  color: rgba(234,241,255,.92);
  outline:none;
}
.field textarea{resize:vertical; min-height:110px}
.field input:focus, .field textarea:focus{
  border-color: rgba(79,211,255,.45);
  box-shadow: 0 0 0 4px rgba(79,211,255,.10);
}
.form-actions{display:grid; gap:10px; margin-top:10px}
#formStatus{min-height:18px}
.hp{position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden}


/* --- Premium form UX --- */
.fine.ok{ color: rgba(190,255,215,.95); }
.fine.err{ color: rgba(255,205,205,.95); }

.btn.loading{
  opacity: .92;
  cursor: default;
  position: relative;
  padding-right: 44px;
}
.btn.loading::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid rgba(234,241,255,.35);
  border-top-color: rgba(234,241,255,.95);
  animation: nsSpin .8s linear infinite;
}
@keyframes nsSpin{
  to{ transform: rotate(360deg); }
}

/* tighter badge for contacts */
.badge--tight{ margin-top: 10px; margin-bottom: 14px; }

/* --- Tech SEO block typography (fixed) --- */
.card.tech{
  max-width: 860px;
  margin: 22px auto 0; /* отделяем от первого экрана */
  padding: 18px 18px;
}
@media (min-width: 480px){
  .card.tech{ padding: 22px 24px; }
}
@media (min-width: 768px){
  .card.tech{ padding: 26px 34px; }
}
.card.tech h2{
  text-align: center;
  margin: 0 0 18px;
}
.card.tech p{
  text-align: left;
  line-height: 1.65;
  margin: 0 0 14px;
}
.card.tech p.muted{
  text-align: center;
  color: rgba(255,255,255,.65);
  font-size: .95em;
  margin: 10px 0 0;
}

/* немного воздуха под геро-карточкой */
.hero-grid--single .card{ margin-bottom: 14px; }


/* микро-раздел: для дизайнеров/застройщиков */
.card.pro{
  max-width: 860px;
  margin: 18px auto;
  padding: 18px 18px;
}

.card.pro h2{
  text-align: center;
  margin: 0 0 12px;
}

.pro-lead{
  margin: 0 0 14px;
  line-height: 1.65;
}

.pro-grid{
  display: grid;
  gap: 14px;
}

.pro-col{
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.pro-col h3{
  margin: 0 0 10px;
  font-size: 1.02em;
}

.card.pro ul{
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.pro-note{
  margin: 14px 0 0;
  text-align: center;
  color: rgba(255,255,255,0.75);
}

@media (min-width: 768px){
  .card.pro{ padding: 26px 34px; }
  .pro-grid{ grid-template-columns: 1fr 1fr; }
}


/* v6: предотвращаем "склейку" блоков в десктопном Chrome */
.hero{padding:18px 0 22px; margin-bottom: 10px;}
.section{padding:28px 0;}
/* микро-раздел (внутри .card.pro) */
.card.pro{ padding: 18px 18px; }
@media (min-width: 480px){ .card.pro{ padding: 22px 24px; } }
@media (min-width: 768px){ .card.pro{ padding: 26px 34px; } }

.tg-link{display:inline-block; color: var(--text); text-decoration:none; opacity:.9}
.tg-link:hover{opacity:1; text-decoration:underline}


/* Telegram button (premium) */
.contact-line--btn{ margin-top: 10px; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  width: 100%;
  max-width: 360px;
}

.btn:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
  opacity: .95;
}

.btn-ic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .9;
}

.btn-tg{
  margin-top: 0;
}

@media (min-width: 768px){
  .btn{ width: auto; }
}



/* Fix: CTA buttons alignment in first hero card (Windows/Chrome) */
.hero .cta{
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero .cta .btn{
  min-width: 160px;
}

@media (max-width: 520px){
  .hero .cta{
    flex-direction: column;
  }
  .hero .cta .btn{
    width: 100%;
    min-width: 0;
  }
}
