/* assets/css/main.css */

:root{
  --bg:#0B0F14;
  --bg2:#0F151D;
  --text:#E7EEF8;
  --muted:#A9B6C7;
  --line:rgba(255,255,255,.12);
  --accent:#FFD43B;
  --accent2:#FFB703;

  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow2: 0 10px 24px rgba(0,0,0,.25);
  --r: 18px;
  --r2: 26px;

  --max: 1180px;
  --pad: clamp(18px, 3vw, 28px);

  /* КАРТИНКА лежит: site/assets/img/security-wall.jpg
     CSS лежит:      site/assets/css/main.css
     Значит путь:    ../img/security-wall.jpg */
  --hero-image: url("../img/security-wall.jpg");
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(255,212,59,.14), transparent 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(59,130,246,.14), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(16,185,129,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 var(--pad);}

.accent{color:var(--accent)}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border:1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 650;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform: translateY(1px)}
.btn-primary{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color:#141821;
  box-shadow: 0 16px 30px rgba(255,212,59,.18);
}
.btn-primary:hover{box-shadow: 0 20px 44px rgba(255,212,59,.22)}
.btn-ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover{background: rgba(255,255,255,.06)}
.w-100{width:100%}

/* Pills */
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
}
.dot{
  width:8px; height:8px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255,212,59,.12);
}

/* Header */
header{
  position:sticky; top:0; z-index:100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,15,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar{
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
}
.topbar__row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0;
  gap:12px;
  font-size: 13px;
  color: var(--muted);
}
.topbar__left, .topbar__right{display:flex; gap:14px; flex-wrap:wrap; align-items:center}
.topbar a{opacity:.95}
.topbar a:hover{opacity:1}
.sep{opacity:.5}

/* Nav */
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 210px;
}
.brand__title{line-height:1.05}
.brand strong{display:block; font-size: 15px; letter-spacing:.2px}
.brand span{display:block; font-size: 12px; color: var(--muted); margin-top:3px}

/* ЛОГО — выразительнее, но строго */
.logo{
  width: 56px; height:56px;
  border-radius: 18px;
  display:block;
  background:
    radial-gradient(60px 60px at 30% 20%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  box-shadow:
    0 14px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,212,59,.10);
  position:relative;
}
.logo::after{
  content:"";
  position:absolute; inset:-1px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
  pointer-events:none;
}
.logo img{
  width:100%; height:100%;
  object-fit:contain;
  padding:8px;
  opacity:.98;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}
.brand:hover .logo{
  border-color: rgba(255,212,59,.22);
  box-shadow:
    0 18px 36px rgba(0,0,0,.38),
    0 0 0 1px rgba(255,212,59,.18),
    0 0 36px rgba(255,212,59,.10);
  transform: translateY(-1px);
  transition: .12s ease;
}

.menu{display:flex; align-items:center; gap:18px;}
.menu a{
  font-size: 14px;
  color: var(--muted);
  padding:8px 10px;
  border-radius: 12px;
  transition: background .12s ease, color .12s ease;
}
.menu a:hover{background: rgba(255,255,255,.05); color: var(--text)}
.nav__cta{display:flex; align-items:center; gap:10px}

.burger{
  display:none;
  width: 44px; height:44px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}
.burger:active{transform: translateY(1px)}
.burger-lines{display:block; width:18px; height:12px; margin:0 auto; position:relative;}
.burger-lines::before,
.burger-lines::after,
.burger-lines span{
  content:"";
  position:absolute; left:0; right:0;
  height:2px; border-radius:2px;
  background: rgba(231,238,248,.9);
}
.burger-lines::before{top:0}
.burger-lines span{top:5px}
.burger-lines::after{bottom:0}

.mobile{
  display:none;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 0 16px;
}
.mobile a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  margin-top:10px;
}

/* =========================
   HERO: фон с камерами
   ========================= */
.hero{
  position:relative;
  overflow:hidden;
  padding: clamp(34px, 6vw, 70px) 0 34px;
}

/* Слой с картинкой + мягкое затемнение (Камеры видны!) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:
    radial-gradient(900px 520px at 35% 30%, rgba(11,15,20,.10), rgba(11,15,20,.60)),
    radial-gradient(700px 520px at 80% 20%, rgba(11,15,20,.12), rgba(11,15,20,.64)),
    linear-gradient(180deg, rgba(11,15,20,.18), rgba(11,15,20,.52)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .78;
  filter: contrast(1.35) brightness(1.18) saturate(.95);
  transform: scale(1.02);
  pointer-events:none;
}

/* Виньетка по краям, чтобы блоки "вписались" */
.hero::after{
  content:"";
  position:absolute;
  inset:-2px;
  z-index:0;
  background:
    radial-gradient(1200px 700px at 50% 40%, rgba(0,0,0,0), rgba(0,0,0,.55));
  pointer-events:none;
}

/* ВАЖНО: контент HERO должен быть поверх фона */
.hero .container{
  position:relative;
  z-index:1;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  align-items: stretch;
}

/* Блоки чуть прозрачнее, чтобы фон проявлялся */
.hero-left{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(1000px 520px at 0% 0%, rgba(255,212,59,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 30%, rgba(59,130,246,.12), transparent 55%),
    linear-gradient(180deg, rgba(18,26,36,.64), rgba(14,22,32,.64));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  padding: clamp(22px, 3vw, 34px);
  min-height: 420px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-left::after{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(600px 240px at 70% 20%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(400px 220px at 20% 80%, rgba(255,212,59,.06), transparent 60%);
  pointer-events:none;
}

.hero h1{
  margin: 14px 0 12px;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.6px;
}
.lead{
  margin:0;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.55;
  max-width: 62ch;
}
.hero-actions{margin-top: 22px; display:flex; gap: 12px; flex-wrap:wrap; align-items:center;}
.hero-badges{margin-top: 20px; display:flex; gap:10px; flex-wrap:wrap;}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size: 13px;
}
.badge small{color: var(--muted); font-weight: 550}
.ic{
  width: 30px; height:30px; border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(255,212,59,.12);
  border: 1px solid rgba(255,212,59,.20);
  color: var(--accent);
  font-weight: 800;
}

.hero-right{
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(18,26,36,.62), rgba(14,22,32,.62));
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 24px);
  display:flex; flex-direction:column;
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-right::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(520px 260px at 80% 0%, rgba(255,212,59,.12), transparent 55%);
  pointer-events:none;
}
.box-title{margin:0 0 10px; font-size: 16px; letter-spacing: .2px;}
.box-sub{margin:0 0 16px; color: var(--muted); font-size: 13px; line-height:1.45;}

.form{display:grid; gap: 10px; margin-top: 8px;}
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
  transition: border-color .12s ease, background .12s ease;
  font-size: 14px;
  resize: vertical;
}
.input:focus{border-color: rgba(255,212,59,.45); background: rgba(0,0,0,.24);}
.hint{color: var(--muted); font-size: 12px; line-height:1.35;}

.hp{
  position:absolute;
  left:-9999px;
  opacity:0;
  height:0;
  width:0;
  padding:0;
  border:0;
}

.safe{
  display:flex; align-items:flex-start; gap:10px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 10px 12px;
  margin-top: 10px;
}
.shield{
  width: 26px; height:26px; border-radius: 10px;
  display:grid; place-items:center;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.22);
  color: rgba(16,185,129,.95);
  font-weight: 900;
  flex: 0 0 auto;
}
.safe-title{font-weight:750;}

section{padding: 40px 0}
.section-title{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title h2{margin:0; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.3px;}
.section-title p{margin:0; color: var(--muted); max-width: 60ch; font-size: 14px; line-height:1.55;}

.grid{display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px;}
.card{
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,26,36,.72), rgba(14,22,32,.72));
  box-shadow: var(--shadow2);
  padding: 16px;
  position:relative;
  overflow:hidden;
  min-height: 140px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,212,59,.22);
  background: linear-gradient(180deg, rgba(18,26,36,.80), rgba(14,22,32,.80));
}
.head{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom: 10px;}
.icon{
  width: 38px; height:38px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(255,212,59,.10);
  border:1px solid rgba(255,212,59,.20);
  color: var(--accent);
  font-weight: 900;
  flex: 0 0 auto;
}
.card h3{margin:0; font-size: 15px; line-height:1.2;}
.card p{margin:0; color: var(--muted); font-size: 13px; line-height: 1.55;}

.span-4{grid-column: span 4;}
.span-6{grid-column: span 6;}
.span-12{grid-column: span 12;}

.steps{display:grid; grid-template-columns: repeat(5, 1fr); gap: 12px;}
.step{
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
  position:relative;
  overflow:hidden;
}
.n{
  display:inline-flex; align-items:center; justify-content:center;
  width: 34px; height:34px;
  border-radius: 14px;
  background: rgba(255,212,59,.12);
  border: 1px solid rgba(255,212,59,.22);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 10px;
}
.step strong{display:block; font-size: 14px}
.step span{display:block; color: var(--muted); font-size: 13px; line-height:1.45; margin-top:6px}

.why{display:grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch;}
.list{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,26,36,.70), rgba(14,22,32,.70));
  box-shadow: var(--shadow2);
  padding: 18px;
}
.check{
  display:flex; gap:12px; align-items:flex-start;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-top: 10px;
}
.check:first-child{margin-top:0}
.tick{
  width: 26px; height:26px; border-radius: 10px;
  display:grid; place-items:center;
  background: rgba(16,185,129,.12);
  border:1px solid rgba(16,185,129,.22);
  color: rgba(16,185,129,.95);
  font-weight: 900;
  flex:0 0 auto;
}
.check strong{display:block; font-size: 14px}
.check span{display:block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height:1.45}

.faq{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,26,36,.70), rgba(14,22,32,.70));
  box-shadow: var(--shadow2);
  overflow:hidden;
}
.q{padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08);}
.q:first-child{border-top:none}
.q button{
  width:100%;
  background:transparent;
  border:none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  display:flex; align-items:center; justify-content:space-between;
  cursor:pointer;
  padding:0;
  text-align:left;
  gap: 14px;
}
.plus{
  width: 30px; height:30px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:grid; place-items:center;
  flex:0 0 auto;
  color: var(--muted);
}
.ans{
  max-height: 0px;
  overflow:hidden;
  transition: max-height .18s ease;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 10px;
}
.q.open .ans{max-height: 240px}
.q.open .plus{border-color: rgba(255,212,59,.25); color: var(--accent)}

.cta{
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 320px at 15% 0%, rgba(255,212,59,.18), transparent 58%),
    radial-gradient(700px 340px at 90% 60%, rgba(59,130,246,.12), transparent 55%),
    linear-gradient(180deg, rgba(18,26,36,.74), rgba(14,22,32,.74));
  box-shadow: var(--shadow);
  padding: 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.cta h3{margin:0; font-size: 18px}
.cta p{margin:6px 0 0; color: var(--muted); font-size: 13px; line-height:1.45; max-width: 70ch}
.cta__right{display:flex; gap:10px; flex-wrap:wrap}

footer{
  padding: 32px 0 40px;
  border-top:1px solid rgba(255,255,255,.08);
  margin-top: 30px;
  color: var(--muted);
}
.foot{display:flex; align-items:flex-start; justify-content:space-between; gap: 18px; flex-wrap:wrap;}
.foot__links{display:flex; gap: 18px; flex-wrap:wrap}
.foot a{opacity:.9}
.foot a:hover{opacity:1; color: var(--text)}

/* Modal */
.modal-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  display:none;
  align-items:center; justify-content:center;
  z-index:200;
  padding: 20px;
}
.modal{
  width: min(560px, 100%);
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(18,26,36,.95), rgba(14,22,32,.95));
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.modal-head strong{font-size: 14px}
.x{
  width: 40px; height:40px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor:pointer;
}
.modal-body{padding: 16px}
.modal-overlay.show{display:flex}

/* Helpers */
.muted{color: var(--muted)}
.mt-0{margin-top:0}
.mt-8{margin-top:8px}
.mt-14{margin-top:14px}
.mt-18{margin-top:18px}
.mt-24{margin-top:24px}
.hidden{display:none}
.m0{margin:0}
.divider{border-top:1px solid rgba(255,255,255,.08); padding-top:14px;}
.contact-big{margin-top:6px; font-weight:800; font-size:18px;}
.contact-mail{margin-top:6px; font-weight:700;}
.contact-actions{display:flex; gap:10px; flex-wrap:wrap;}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr;}
  .brand{min-width: unset}
  .menu{display:none}
  .burger{display:inline-flex; align-items:center; justify-content:center}
  .mobile{display:block}
  .steps{grid-template-columns: 1fr 1fr}
  .why{grid-template-columns: 1fr}
  .span-4{grid-column: span 6;}
}

@media (max-width: 520px){
  .topbar__row{flex-direction:column; align-items:flex-start}
  .span-4, .span-6{grid-column: span 12;}
  .steps{grid-template-columns: 1fr}
  .hero-left{min-height: unset}
}
/* === Footer layout with Metrika informer === */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.foot__left {
  flex: 1;
  min-width: 250px;
}

.foot__center {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.foot__center a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: 0.3s;
}

.foot__center a:hover {
  color: #ffd54a;
}

.foot__right {
  display: flex;
  justify-content: flex-end;
  min-width: 120px;
}

.foot__right img {
  width: 88px;
  height: 31px;
  opacity: 0.85;
  transition: 0.3s;
}

.foot__right img:hover {
  opacity: 1;
}