/* ====== Design tokens ====== */
:root{
  --brand-50:#e9f0ff;
  --brand-100:#d3e1ff;
  --brand-200:#a7c3ff;
  --brand-300:#7aa5ff;
  --brand-400:#4c86ff;
  --brand-500:#1e68ff;
  --brand-600:#0b59d1;
  --brand-700:#0a4db3;
  --brand-800:#083f8f;
  --brand-900:#073474;

  --bg:#0b0e14;
  --bg-elev:#0f1420;
  --surface:#ffffff;
  --text:#0c1222;
  --muted:#55607a;
  --stroke:#e6e9f2;

  --radius:14px;
  --radius-sm:10px;

  --container:1120px;
  --shadow:0 10px 30px rgba(11,89,209,0.15);
}

/* ====== Base ====== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background:#f8faff;
}

img{max-width:100%;display:block}

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

h1,h2,h3{line-height:1.2;margin:0 0 12px}
h1{font-size:clamp(28px,5vw,48px);letter-spacing:-0.02em}
h2{font-size:clamp(22px,3.5vw,34px)}
h3{font-size:clamp(18px,2.8vw,22px)}

p{margin:0 0 12px}
.lead{font-size:clamp(16px,2.2vw,20px);color:#0b1a33;max-width:60ch}

/* ====== Header ====== */
.site-header{
  position:sticky;top:0;z-index:5000 !important;
  display:flex;align-items:center;gap:12px;
  background:rgba(255,255,255,0.95);backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--stroke);
  padding:10px 20px;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#0c1222;font-weight:800}
.brand__logo{width:auto}
.brand__name{white-space:nowrap;color:#0c1222;font-weight:800}

.nav{margin-left:auto;display:flex;align-items:center;gap:12px}
.nav__toggle{position:relative;z-index:5100;display:none;flex-direction:column;gap:4px;background:none;border:0;cursor:pointer;pointer-events:auto}
.nav__toggle span{width:22px;height:2px;background:#1b2437;display:block;border-radius:2px}
.nav__links{display:flex;gap:18px;list-style:none;margin:0;padding:0;z-index:5050}
.nav__links a{color:#1b2437;text-decoration:none;font-weight:700}
.nav__links a:hover{color:var(--brand-700)}

.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  border:2px solid transparent;
  transition:transform .06s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary{
  background:linear-gradient(135deg,var(--brand-500),var(--brand-700));
  color:#fff;box-shadow:0 8px 24px rgba(11,89,209,.25);
}
.btn--primary:hover{transform:translateY(-1px) scale(1.01)}
.btn--ghost{border-color:var(--brand-300);color:var(--brand-800);background:#fff}
.btn--ghost:hover{border-color:var(--brand-500);background:#f7faff}

.btn--cta{display:none}

/* ====== Hero ====== */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(180deg,#f5f9ff 0%, #e9f1ff 100%);
  padding:64px 0 20px;
}
.hero__bg{position:absolute;inset:auto 0 0 0;z-index:-1;opacity:.8}
.hero__bg img{width:100%;height:auto}
.hero__inner{display:grid;align-items:center;min-height:48vh}
.hero__content{max-width:720px}
.hero__actions{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}

/* ====== Sections ====== */
.section{padding:56px 0}
.section--alt{background:#f3f7ff}

.twocol{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:12px}

.checklist{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.checklist li{position:relative;padding-left:28px}
.checklist li::before{
  content:"";position:absolute;left:0;top:4px;width:18px;height:18px;border-radius:50%;
  background:conic-gradient(from 0turn,var(--brand-500),var(--brand-700));
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22><path fill=%22%23fff%22 d=%22M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z%22/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22><path fill=%22%23fff%22 d=%22M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z%22/></svg>') center/contain no-repeat;
}

.card{
  background:#fff;border:1px solid var(--stroke);border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow)
}

.band{margin-top:22px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.band .actions{display:flex;gap:10px}

.services{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.services .card p{color:#2d3b55}
.services .card ul{margin:8px 0 0 16px}

.note{margin-top:16px;color:#2d3b55}

/* ====== Steps ====== */
.steps{
  list-style:none;margin:8px 0 0;padding:0;
  display:grid;grid-template-columns:repeat(5,1fr);gap:16px
}
.steps li{background:#fff;border:1px solid var(--stroke);border-radius:var(--radius-sm);padding:18px;position:relative}
.steps__num{
  width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;
  background:var(--brand-600);color:#fff;font-weight:800;margin-bottom:8px
}

/* ====== Contacts ====== */
.contacts__placeholders .label{display:inline-block;min-width:90px;color:var(--muted)}
.muted{color:var(--muted)}

/* ====== Footer ====== */
.site-footer{padding:24px 0;background:#0f1420;color:#e4e8f4;margin-top:10px}
.footer__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer__brand{display:flex;align-items:center;gap:10px;font-weight:700}
.footer__nav{display:flex;gap:16px;flex-wrap:wrap}
.footer__nav a{color:#b7c2de;text-decoration:none}
.footer__nav a:hover{color:#fff}
.footer__copy{color:#93a0bd;font-size:14px}

/* ====== Chat buttons ====== */
.chat-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 6px}
.btn--whatsapp{background:#25D366;color:#0b1a33}
.btn--telegram{background:#229ED9;color:#fff}
.btn .icon{display:inline-block;width:18px;height:18px;vertical-align:-3px;margin-right:8px;background:currentColor;mask-repeat:no-repeat;mask-position:center;mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center;-webkit-mask-size:contain}
.icon-wa{mask-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M20 3.9A10 10 0 0 0 4.9 19.9L3 22.9l3-.8A10 10 0 1 0 20 3.9Zm-8 17a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm4.6-5.2c-.2-.1-1.3-.6-1.4-.7s-.3-.1-.4.1-.5.7-.7.8-.3.1-.5 0a6.6 6.6 0 0 1-2-1.3 7.3 7.3 0 0 1-1.3-1.6c-.1-.2 0-.3.1-.4l.3-.4c.1-.1.1-.2.2-.3l.1-.3c0-.1 0-.2 0-.3l-.7-1.7c-.2-.4-.4-.4-.6-.4h-.5c-.2 0-.4.2-.5.4a2.1 2.1 0 0 0-.3 1c0 .6.4 1.2.5 1.4a8.9 8.9 0 0 0 3.4 3.4c.4.2 1.3.5 1.8.6.3 0 .6.1.9 0s.8-.4.9-.8.3-.7.2-.9c0-.1-.2-.2-.4-.3Z"/></svg>');-webkit-mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"white\" d=\"M20 3.9A10 10 0 0 0 4.9 19.9L3 22.9l3-.8A10 10 0 1 0 20 3.9Zm-8 17a8 8 0 1 1 0-16 8 8 0 0 1 0 16Zm4.6-5.2c-.2-.1-1.3-.6-1.4-.7s-.3-.1-.4.1-.5.7-.7.8-.3.1-.5 0a6.6 6.6 0 0 1-2-1.3 7.3 7.3 0 0 1-1.3-1.6c-.1-.2 0-.3.1-.4l.3-.4c.1-.1.1-.2.2-.3l.1-.3c0-.1 0-.2 0-.3l-.7-1.7c-.2-.4-.4-.4-.6-.4h-.5c-.2 0-.4.2-.5.4a2.1 2.1 0 0 0-.3 1c0 .6.4 1.2.5 1.4a8.9 8.9 0 0 0 3.4 3.4c.4.2 1.3.5 1.8.6.3 0 .6.1.9 0s.8-.4.9-.8.3-.7.2-.9c0-.1-.2-.2-.4-.3Z\"/></svg>')}
.icon-tg{mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"white\" d=\"M9.03 14.67 8.9 18.3c.31 0 .45-.13.61-.28l1.47-1.4 3.05 2.24c.56.31.96.15 1.11-.52l2.01-9.51c.18-.82-.29-1.14-.84-.94L5.5 11.1c-.8.31-.79.76-.14.96l3.41 1.06 7.93-4.99-7.67 6.54Z\"/></svg>');-webkit-mask-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill=\"white\" d=\"M9.03 14.67 8.9 18.3c.31 0 .45-.13.61-.28l1.47-1.4 3.05 2.24c.56.31.96.15 1.11-.52l2.01-9.51c.18-.82-.29-1.14-.84-.94L5.5 11.1c-.8.31-.79.76-.14.96l3.41 1.06 7.93-4.99-7.67 6.54Z\"/></svg>')}

/* ====== Mobile nav drawer/backdrop ====== */
#menu-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.35);
  -webkit-backdrop-filter:saturate(140%) blur(2px);
  backdrop-filter:saturate(140%) blur(2px);
  opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:3000 !important;
}
#menu-backdrop.show{opacity:1;pointer-events:auto}

@media (max-width: 980px){
  .services{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(3,1fr)}
  .btn--cta{display:none}
}

@media (max-width: 720px){
  .twocol{grid-template-columns:1fr}
  .services{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .nav__toggle{display:flex}
  .nav__links{
    display:none;position:fixed;left:12px;right:12px;top:64px;background:#fff;border:1px solid var(--stroke);border-radius:12px;padding:12px;box-shadow:var(--shadow);min-width:220px;z-index:5050 !important;
  }
  .nav__links.open{display:flex;flex-direction:column}
  .brand__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* === v4.1 mobile header layout: grid to prevent overlap === */
@media (max-width: 720px){
  .site-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}
  .brand{grid-column:1/2;min-width:0}
  .brand__name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nav{grid-column:3/4;margin-left:0}
  .nav__toggle{display:flex}
  .btn--cta{display:none}
}

/* === v4.2 mobile header hardening === */
@media (max-width: 720px){
  .site-header{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px;
  }
  .brand{grid-column:1/2; min-width:0; padding-right:8px;}
  .brand__logo{height:40px !important;}          /* меньше логотип */
  .brand__name{display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
  .nav{grid-column:3/4; margin-left:0;}
  .nav__toggle{
    display:flex;
    width:44px; height:40px;                     /* tap target */
    align-items:center; justify-content:center;
    padding:0; margin:0;
  }
  .nav__toggle span{width:22px;height:2px}
  .btn--cta{display:none}
}
