:root{
  --bg: #0b1020;
  --surface: rgba(255,255,255,.08);
  --surface2: rgba(255,255,255,.12);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.58);
  --brand: #5aa9ff;
  --brand2:#8b5cff;
  --ok:#27d38c;
  --warn:#ffcc66;
  --danger:#ff5c7a;
  --shadow: 0 16px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 10% -10%, rgba(90,169,255,.35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(139,92,255,.26), transparent 55%),
    radial-gradient(900px 600px at 50% 110%, rgba(39,211,140,.16), transparent 55%),
    var(--bg);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}

.container{width:100%; max-width:var(--max); margin:0 auto; padding:0 20px;}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10,14,26,.62);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.brand__logo{width:50px; height:50px; border-radius:50px; background:rgba(255,255,255,.07); padding:0px; border:0px solid rgba(255,255,255,.10);}
.brand__name{font-weight:700; letter-spacing:.2px; line-height:1.05;}
.brand__tag{font-size:12px; color:var(--muted2); margin-top:2px;}

.nav{display:flex; align-items:center; gap:18px;}
.nav a{font-size:14px; color:var(--muted); padding:10px 10px; border-radius:12px; transition:background .2s ease,color .2s ease;}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text);}

.header__cta{display:flex; align-items:center; gap: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,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22);}
.btn:active{transform: translateY(1px);}
.btn--primary{
  border-color: rgba(90,169,255,.45);
  background: linear-gradient(135deg, rgba(90,169,255,.9), rgba(139,92,255,.85));
}
.btn--primary:hover{border-color: rgba(90,169,255,.65);}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.burger svg{margin:auto;}

.mobile{
  display:none;
  border-top: 1px solid rgba(255,255,255,.06);
}
.mobile__nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 0 16px;
}
.mobile__nav a{padding:12px 12px; border-radius:14px; background:rgba(255,255,255,.04); color:var(--muted);}
.mobile__nav a:hover{background:rgba(255,255,255,.08); color:var(--text);}

/* Hero */
.hero{padding:54px 0 28px;}
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:stretch;
}
.hero__card{
  position:relative;
  border-radius: var(--radius-lg);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero__card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(800px 420px at 20% 0%, rgba(90,169,255,.35), transparent 60%),
    radial-gradient(700px 420px at 95% 10%, rgba(139,92,255,.25), transparent 60%),
    radial-gradient(800px 460px at 50% 120%, rgba(39,211,140,.18), transparent 60%);
  pointer-events:none;
}
.hero__content{position:relative; padding:34px 34px 30px;}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background: rgba(0,0,0,.16);
  color: var(--muted);
  font-size:13px;
}
.kicker i{width:8px; height:8px; border-radius:50%; background: linear-gradient(135deg, var(--brand), var(--brand2)); display:inline-block; box-shadow: 0 0 0 4px rgba(90,169,255,.12);}

.h1{margin:14px 0 10px; font-size: clamp(30px, 3.4vw, 46px); line-height:1.05; letter-spacing:-.6px;}
.sub{margin:0 0 18px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height:1.55; max-width: 56ch;}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:18px;}

.hero__aside{
  position:relative;
  border-radius: var(--radius-lg);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
}
.hero__aside::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(10,16,32,.15), rgba(10,16,32,.88)),
    url('../../images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero__aside-inner{position:relative; padding:24px; height:100%; display:flex; flex-direction:column; justify-content:space-between; gap:18px;}
.statgrid{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.stat{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  padding:14px;
}
.stat__k{font-size:12px; color:var(--muted2);}
.stat__v{margin-top:6px; font-size:18px; font-weight:700; letter-spacing:-.2px;}
.badge{display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:999px; background: rgba(0,0,0,.28); border:1px solid rgba(255,255,255,.14); color:var(--muted); font-size:13px;}
.badge svg{opacity:.9;}

/* Sections */
.section{padding:54px 0;}
.section--tight{padding:40px 0;}
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px;}
.h2{margin:0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing:-.35px;}
.p{margin:8px 0 0; color:var(--muted); line-height:1.6; max-width:70ch;}

.grid3{display:grid; grid-template-columns:repeat(3, 1fr); gap:14px;}
.grid2{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px;}

.card{
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  overflow:hidden;
}
.card__body{padding:18px;}
.card__title{font-weight:700; letter-spacing:-.2px;}
.card__text{margin-top:8px; color:var(--muted); line-height:1.55; font-size:14px;}
.card__img{height:170px; background-size:cover; background-position:center;}

.list{
  display:grid;
  gap:10px;
}
.listitem{
  display:flex;
  gap:12px;
  padding:14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.icon{
  width:38px; height:38px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.14);
  flex: 0 0 auto;
}
.listitem__t{font-weight:700;}
.listitem__d{margin-top:4px; color:var(--muted); font-size:14px; line-height:1.5;}

/* Monitoring blocks */
.monitor{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.panel{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel__head{padding:22px 22px 12px;}
.panel__title{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.25px;}
.panel__desc{margin:10px 0 0; color:var(--muted); line-height:1.6;}

.metricgrid{display:grid; grid-template-columns:1fr 1fr; gap:10px; padding: 0 22px 22px;}
.metric{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding:14px;
  position:relative;
  overflow:hidden;
}
.metric::after{
  content:"";
  position:absolute;
  right:-30px;
  top:-40px;
  width:120px;
  height:120px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, rgba(90,169,255,.35), transparent 60%);
  filter: blur(1px);
}
.metric__k{font-size:12px; color:var(--muted2);}
.metric__t{margin-top:6px; font-weight:700; letter-spacing:-.15px;}
.metric__hint{margin-top:8px; color:var(--muted); font-size:13px; line-height:1.45;}

.tablewrap{padding: 0 22px 22px;}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
}
.table th, .table td{padding:12px 12px; text-align:left; font-size:14px;}
.table th{color:var(--muted2); font-weight:700; background: rgba(0,0,0,.20);}
.table tr td{background: rgba(255,255,255,.04); border-top:1px solid rgba(255,255,255,.06); color:var(--muted);}
.table tr:first-child td{border-top:none;}
.chip{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); color:var(--muted); font-size:13px;}
.chip i{width:8px; height:8px; border-radius:50%; background: var(--ok); box-shadow:0 0 0 4px rgba(39,211,140,.12);}
.note{margin-top:10px; color:var(--muted2); font-size:13px; line-height:1.55;}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.contactcard{border-radius: var(--radius-lg); border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); box-shadow: var(--shadow);}
.contactcard__body{padding:22px;}
.kv{display:grid; gap:12px; margin-top:14px;}
.kv a{color:var(--text);}
.kv small{display:block; color:var(--muted2); margin-top:2px;}

.form{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.btn--apple {
  background: #0071e3; /* Фирменный синий Apple */
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn--apple:hover {
  background: #0077ed;
  transform: scale(0.99);
}

.btn--apple:active {
  transform: scale(0.96);
}

.btn--apple:disabled {
  background: #86868b;
  cursor: not-allowed;
}

.formactions{
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.formactions__hint{
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 10px;
}
.formactions__row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
}
.input::placeholder{color: rgba(255,255,255,.45);}
.textarea{min-height:120px; resize:vertical;}
.formrow{display:grid; grid-template-columns: 1fr 1fr; gap:10px;}

.footer{padding:28px 0 40px; color:var(--muted2);}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid rgba(255,255,255,.08); padding-top:18px; flex-wrap:wrap;}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none;}
  .burger{display:grid; place-items:center;}
  .hero__grid{grid-template-columns:1fr;}
  .grid3{grid-template-columns:1fr;}
  .grid2{grid-template-columns:1fr;}
  .monitor{grid-template-columns:1fr;}
  .contact{grid-template-columns:1fr;}
}
@media (max-width: 520px){
  .brand{min-width:unset;}
  .hero__content{padding:24px 18px 20px;}
  .hero__aside-inner{padding:18px;}
  .statgrid{grid-template-columns:1fr;}
  .metricgrid{grid-template-columns:1fr;}
  .formrow{grid-template-columns:1fr;}
}
/* Mobile header: keep only logo/brand */
/* кнопка звонка в хедере (по умолчанию скрыта) */
.call-header{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.95);
  text-decoration:none;
  background: linear-gradient(135deg, rgba(90,169,255,.95), rgba(139,92,255,.95));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}

/* мобилка: оставляем лого + кнопку звонка */
@media (max-width: 980px){
  .nav,
  .header__cta,
  .mobile{ display:none !important; }

  .call-header{ display:flex !important; }

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


/* MOBILE: table -> cards (no horizontal scroll) */
/* Mobile: keep table look (like desktop), just compact */
@media (max-width: 720px){
  .table th, .table td{
    padding: 10px 10px;
    font-size: 13px;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .table th{
    font-size: 12px;
  }
}
