/* =========
   Base + Themes
   ========= */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
:root{
  --bg:#f5f7fb;
  --bg-elev:#ffffff;
  --text:#1e293b;
  --muted:#64748b;
  --border:rgba(2,6,23,.08);
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --primary:#2563eb;
  --primary-2:#0b3d91;
  --primary-contrast:#ffffff;
  --chip:#eef2ff;
  --radius:14px;
}
html[data-theme="dark"]{
  --bg:#0b1220;
  --bg-elev:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:rgba(148,163,184,.16);
  --shadow:0 14px 40px rgba(0,0,0,.35);
  --chip:rgba(37,99,235,.16);
}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}

/* =========
   Layout
   ========= */
.site-header{
  background:rgba(255,255,255,.78);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:saturate(160%) blur(10px);
}
html[data-theme="dark"] .site-header{
  background:rgba(15,23,42,.72);
}
.nav{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 18px;
  position:relative;
}
.logo{
  font-weight:800;
  letter-spacing:.2px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(148,163,184,.08);
}
.logo .brand-az{color:var(--text);opacity:.95}
.logo .brand-med{color:var(--primary-2)}
.menu{
  display:flex;
  align-items:center;
  gap:18px;
}
.menu a{
  font-weight:650;
  opacity:.95;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
}
.menu a:hover{
  opacity:1;
  background:rgba(148,163,184,.12);
}
.menu a.is-active{
  opacity:1;
  background:var(--chip);
  border-color:var(--border);
  color:var(--primary);
}
.nav-actions{display:flex;align-items:center;gap:10px}
.desktop-only{display:inline-flex}

.icon-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.icon-btn:hover{background:rgba(148,163,184,.12)}
.theme-icon{font-size:18px;line-height:1}
.menu-actions{display:none}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--primary);
  color:var(--primary-contrast);
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
}
.btn:hover{filter:brightness(1.03)}
.btn.outline{
  background:transparent;
  border-color:var(--border);
  color:var(--text);
}
.btn.outline:hover{background:rgba(148,163,184,.12)}

.burger{
  display:none;
  width:42px;height:42px;
  justify-content:center;
  padding:0;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--text);
  border-radius:4px;
  margin:2px 0;
}




.hero{
  position: relative;
  height: 520px; /* фиксированная высота */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* Видео */
.hero-video{
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Затемнение */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,25,60,0.75),
    rgba(0,102,204,0.75)
  );
  z-index: 2;
}

/* Контент */
.hero-content{
  position: relative;
  z-index: 3;
  padding: 0 20px;
  max-width: 900px;
}

.hero h1{
  margin:0 0 12px;
  font-size:clamp(28px,4vw,44px);
}

.hero p{
  font-size:clamp(15px,1.6vw,18px);
  opacity:.95;
}

/* Адаптив */
@media (max-width:768px){
  .hero{
    height: 420px;
  }
}












.container{max-width:1200px;margin:auto;padding:44px 20px}
.grid{display:grid;grid-template-columns:1.1fr .9fr;gap:32px;align-items:center}
.block{
  background:var(--bg-elev);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
  margin-bottom:22px;
}
.img{
  width:100%;
  height:280px;
  background:rgba(148,163,184,.18);
  border:1px dashed var(--border);
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
}









/* ДЕСКТОП22 / ОБЩЕЕ */
.cards22{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card22{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* МОБИЛА22: горизонтальная прокрутка */
@media (max-width: 768px) {
  .cards22{
    display: flex;
    overflow-x: auto;
    gap: 16px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding: 0 16px 10px;   /* чтобы карточка не прилипала к краю */
    margin: 0 -16px;        /* чтобы скролл шёл "от края до края" */
  }

  .card22{
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }

  .cards22::-webkit-scrollbar { display: none; }
  .cards22 { scrollbar-width: none; }
}











/* ДЕСКТОП / ОБЩЕЕ */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* МОБИЛА: горизонтальная прокрутка */
@media (max-width: 768px) {
  .cards{
    display: flex;
    overflow-x: auto;
    gap: 16px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding: 0 16px 10px;   /* чтобы карточка не прилипала к краю */
    margin: 0 -16px;        /* чтобы скролл шёл "от края до края" */
  }

  .card{
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }

  .cards::-webkit-scrollbar { display: none; }
  .cards { scrollbar-width: none; }
}






@media (max-width: 980px){

  .grid{grid-template-columns:1fr}
}


.card h3{margin:0 0 10px}
.price{font-size:34px;font-weight:900;margin:10px 0}

.timeline{
  border-left:3px solid var(--primary);
  padding-left:18px;
  margin:28px 0 10px;
  color:var(--muted);
}
.timeline p{margin:10px 0}

/* =========
   New Sections + Utilities
   ========= */
.section{margin:34px 0}
.section h1{font-size:32px;margin:0 0 16px; text-align: center;}
.section h2{font-size:26px;margin:0 0 16px}
.section h3{font-size:18px;margin:0 0 10px}
.muted{color:var(--muted)}
.list{margin:12px 0 0;padding-left:18px;color:var(--muted)}
.list li{margin:6px 0}

.notice{
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(37,99,235,.10);
}

.steps{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.step{
  display:flex;gap:12px;align-items:flex-start;
  padding:16px 16px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--bg-elev);
  box-shadow:var(--shadow);
}
.step-num{
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:var(--chip);
  color:var(--primary);
  font-weight:900;
  flex:0 0 auto;
}

.cta .cta-box{
  border-radius:22px;
  padding:22px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(37,99,235,.12), rgba(2,6,23,0));
  box-shadow:var(--shadow);
}
.cta .cta-box h2{margin-bottom:8px}
.cta .cta-box p{color:var(--muted);margin-top:0}
.cta .cta-box .btn{margin-right:10px;margin-top:10px}

/* Div templates: 1 / 2 / 3 blocks in a row */
.cols{display:grid;gap:18px}
.cols-1{grid-template-columns:1fr}
.cols-2{grid-template-columns:repeat(2,1fr)}
.cols-3{grid-template-columns:repeat(3,1fr)}
/* auto-fit helper for unknown count */
.cols-auto{grid-template-columns:repeat(auto-fit, minmax(240px, 1fr))}

.faq-item{
  background:var(--bg-elev);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 18px;
  box-shadow:var(--shadow);
}
.faq-item summary{cursor:pointer;font-weight:750}
.faq-item p{color:var(--muted);margin:10px 0 0}

/* Footer */
footer{
  background:#111827;
  color:#fff;
  text-align:center;
  padding:30px 16px;
  margin-top:44px;
}

/* =========
   Responsive
   ========= */

@media (max-width: 820px){
  .burger{display:inline-flex}
  .nav-actions{display:none}
  .menu{
    display:none;
    position:absolute;
    top:64px;
    left:12px;
    right:12px;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:14px;
    border-radius:18px;
    background:var(--bg-elev);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
  }
  .menu.is-open{display:flex}
  .menu a{padding:10px 12px;border-radius:12px}
  .menu a:hover{background:rgba(148,163,184,.12)}
  .menu-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:6px}
  .desktop-only{display:none}
  .steps{grid-template-columns:1fr}
  .cols-2,.cols-3{grid-template-columns:1fr}
  .hero{padding:70px 18px}
}






.imgmainbg {
    width: 100%;
    text-align: center;
}

.imgmainbg img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}












.zpacs-form{
  max-width: 720px;
  width: 100%;
  display: grid;
  gap: 12px;
}

.row{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.field{
  display:grid;
  gap:6px;
  flex:1;
}

.field.grow{ flex:2; }

input, textarea{
  width:100%;
  box-sizing:border-box;
  padding: 10px 12px;
  border: 1px solid #cfd6dd;
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  min-height: 44px;
}

textarea{
  resize:none;
  min-height: 50px;
  max-height: 100px;
}

input:focus, textarea:focus{
  border-color:#2b7cff;
  box-shadow:0 0 0 3px rgba(43,124,255,.15);
}

.is-invalid{
  border-color:#e74c3c !important;
  box-shadow:0 0 0 3px rgba(231,76,60,.12) !important;
}

button{
  padding: 10px 16px;
  border:0;
  border-radius: 10px;
  background:#2b7cff;
  color:#fff;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  min-height: 46px;
}

button:disabled{ opacity:.6; cursor:not-allowed; }

.hint{
  min-height: 16px;
  font-size: 12px;
  color:#c0392b;
}

/* Уведомления */
.toast{
  display:none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.toast.ok{
  display:block;
  background: rgba(46,204,113,.12);
  color:#1f7a45;
  border:1px solid rgba(46,204,113,.25);
}

.toast.err{
  display:block;
  background: rgba(231,76,60,.10);
  color:#8e2d22;
  border:1px solid rgba(231,76,60,.20);
}

.toast.info{
  display:block;
  background: rgba(52,152,219,.12);
  color:#1f4f73;
  border:1px solid rgba(52,152,219,.20);
}

/* Мобильная версия */
@media (max-width: 600px){
  .row{ flex-direction:column; gap:14px; }

  input, textarea{
    font-size:16px;     /* важно для iPhone (чтобы не зумил) */
    min-height:56px;    /* реально удобно пальцем */
    padding: 14px 14px;
    border-radius: 12px;
  }

  textarea{ min-height: 90px; }

  button{
    width:100%;
    min-height:56px;
    font-size:16px;
    border-radius: 14px;
  }

  .hint{ font-size:13px; }
}