@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* Theme */
:root{
  --bg-grad: linear-gradient(180deg, #0f4c81 0%, #00c2c2 100%);
  --bg-grad-dark: linear-gradient(180deg, #0a243a 0%, #006666 100%);
  --text: #10212a;
  --text-inv: #e8f0ff;
  --card: rgba(255,255,255,.14);
  --card-dark: rgba(0,0,0,.30);
  --btn-grad: linear-gradient(135deg, #0094ff, #00e0c6);
  --btn-grad-dark: linear-gradient(135deg, #007bff, #00b3b3);
  --outline: rgba(255,255,255,.35);
  --shadow: 0 8px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg-grad);
  background-attachment: fixed;
}

/* Dark (мы его используем везде для фирменного вида) */
.dark-mode{ color: var(--text-inv); background: var(--bg-grad-dark); }

/* Layout */
.container{ width: min(1120px, 92%); margin-inline: auto; }
.section{padding:50px 0px}
.section-title{
  text-align:center; margin:0 0 28px; font-size: 28px; font-weight: 700;
}

/* Header */
.site-header{
  position: sticky; top:0; z-index:20;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.0));
  backdrop-filter: blur(8px);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand{ display:flex; align-items:center; gap:10px; color:inherit; text-decoration:none; font-weight:700; }
.brand img{ width:28px; height:28px; object-fit:contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.brand--sm img{ width:22px; height:22px; }
.nav{ display:flex; align-items:center; gap:18px; }
.nav a{ color:inherit; text-decoration:none; opacity:.9 }
.nav a:hover{ opacity:1 }

/* Hero */
.hero-inner{ display:grid; gap:28px; grid-template-columns: 1.25fr 1fr; align-items:center; }
.hero-copy h1{ margin:0 0 8px; font-size: clamp(28px, 4.2vw, 42px); line-height:1.15; }
.lead{ margin:10px 0 18px; font-size: clamp(16px, 2.2vw, 18px); opacity:.95 }
.cta{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--btn-grad-dark); color:#fff; text-decoration:none;
  border-radius:12px; padding:12px 16px; font-weight:700; box-shadow: var(--shadow);
  transition: transform .2s, filter .2s, box-shadow .2s;
}
.btn:hover{ transform: translateY(-2px); filter:brightness(1.05) }
.btn--outline{
  background: transparent; border:1px solid var(--outline); color: #e8f0ff;
  box-shadow:none;
}
.btn--sm{ padding:8px 12px; font-weight:600; border-radius:10px; }

.hero-bullets{ list-style:none; padding:0; margin:16px 0 0; display:grid; gap:8px; }
.hero-bullets .dot{ display:inline-block; width:8px; height:8px; border-radius:50%; background:#00e0ff; margin-right:8px; }
.hero-art{ display:flex; justify-content:center; }
.shield{
  width:220px; height:220px; display:grid; place-items:center;
  border-radius:28px; background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 18px rgba(0,0,0,.2);
}

/* Cards / Grid */
.card{
  background: var(--card-dark); border:1px solid rgba(255,255,255,.06);
  border-radius:18px; padding:20px; box-shadow: var(--shadow);
}
.grid{ display:grid; gap:16px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.feature .icon{ width:40px; height:40px; color:#00e0ff; margin-bottom:8px; }
.feature .icon svg{ width:100%; height:100%; }
.feature h3{ margin:4px 0 6px; font-size:18px; }
.feature p{ margin:0; opacity:.95 }

/* Steps */
.steps .step{ position:relative; }
.steps-acc{background: #014346;    cursor: pointer;
    font-weight: 600;padding: 12px 14px;    border-radius: 14px;}
.badge{
  position:absolute; top:-10px; left:-10px;
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  background: #00d4ff; color:#00131a; font-weight:700; font-size:14px; box-shadow: var(--shadow);
}
.center{ text-align:center; margin-top:60px; }
.sub{ opacity:.9; margin-top:-10px; margin-bottom:16px; }
/* Chips */
.chips{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.chip{
  padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25); box-shadow: inset 0 0 12px rgba(0,0,0,.1);
}


/* FAQ */
.faq details{
  background: rgba(0,0,0,.25); border:1px solid rgba(255,255,255,.1);
  border-radius:14px; padding:12px 14px; margin-bottom:10px;
}
.faq summary{ cursor:pointer; font-weight:600; }
.faq p{ margin:8px 0 0; opacity:.95 }

/* Footer */
.site-footer{ padding: 22px 0 30px; border-top:1px solid rgba(255,255,255,.08); }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; gap:14px; }
.foot-left{ display:flex; align-items:center; gap:12px; }
.foot-right{ display:flex; align-items:center; gap:14px; }
.foot-right a{ color:inherit; text-decoration:none; opacity:.9 }
.foot-right a:hover{ opacity:1 }

/* Responsive */
@media (max-width: 980px){
  .hero-inner{ grid-template-columns: 1fr; }
  .nav{ display:none; }
}
@media (max-width: 820px){
  .grid-3{ grid-template-columns: 1fr; }
}
/* --- Сетки и карточки шагов --- */

/* убираем старый хак */
.img_ins{ height:auto !important; width:100%; display:block; object-fit:cover }

/* карточка-шаг со скриншотом = ровно по картинке */
.grid.steps{ align-items:start }
.step.card{ position:relative; border-radius:18px; overflow:hidden }
.step.card:has(img){ padding:45px; aspect-ratio:9/16 }          /* одинаковая «вытянутость» */
.step.card:has(img) img{ width:100%; height:100%; object-fit:cover; display:block }

/* заголовок и бейдж поверх фото */
.step.card h3{
  position:absolute; inset:12px 10px auto 47px;
  margin:0; font-size:14px; font-weight:700; color:#e8f0ff;
  text-shadow:0 2px 6px rgba(0,0,0,.35); z-index:2;
}
.step.card .badge{ position:absolute; top:8px; left:8px; z-index:3 }

/* карточки «3 шага к подключению» (без изображений) — компактные */
.step.card:not(:has(img)){
  padding:16px 46px; min-height:auto; aspect-ratio:auto;
  display:flex; flex-direction:column; gap:8px; justify-content:flex-start;
}

/* на узких экранах по одной колонке */
@media (max-width: 820px){
  .grid-3{ grid-template-columns:1fr }
  .step.card:has(img){ aspect-ratio:auto }  /* даём картинке естественную высоту */
}