/* ========== Base ========== */
:root{
  --bg:#0b0f10;
  --card:#0f1516;
  --muted:#8ea0a3;
  --text:#e8f0f1;
  --line:rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius:20px;
  --radius2:28px;
  --max:1120px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(115, 200, 150, .12), transparent 60%),
    radial-gradient(1000px 600px at 110% 10%, rgba(255, 190, 120, .10), transparent 55%),
    linear-gradient(180deg, #080b0c 0%, #0b0f10 60%, #070a0b 100%);
  color:var(--text);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
img{ width:100%; height:100%; object-fit:cover; display:block; }
.container{ width:min(var(--max), calc(100% - 40px)); margin:0 auto; }
.section{ padding:64px 0; }
.section--alt{ background: rgba(255,255,255,.03); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:24px; }
.sub{ margin:0; color:var(--muted); max-width:56ch; }

/* Typography */
.h1{ font-size: clamp(30px, 4.2vw, 46px); line-height:1.05; margin:0 0 14px; letter-spacing:-.02em; }
.h2{ font-size: clamp(22px, 2.8vw, 30px); line-height:1.1; margin:0; letter-spacing:-.01em; }
.h3{ font-size: 16px; margin:0 0 8px; }
.lead{ font-size: 16px; margin:0 0 18px; color: rgba(232,240,241,.92); max-width:60ch; }
.micro{ margin:14px 0 0; color:var(--muted); font-size:13px; }

/* ========== Topbar ========== */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,16,.72);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{ display:flex; align-items:center; gap:12px; min-width: 220px; }
.brand__mark{
  width:36px; height:36px; border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 50%),
    linear-gradient(135deg, rgba(115, 200, 150, .95), rgba(255, 190, 120, .92));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__sub{ font-size:12px; color:var(--muted); margin-top:4px; }

/* Language switch (CSS-only): checkbox toggles visibility */
.lang{ display:flex; align-items:center; gap:10px; }
.lang__toggle{ position:absolute; left:-9999px; }
.lang__pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--line);
  cursor:pointer;
  user-select:none;
  font-weight:600;
  font-size:12px;
}
.lang__sep{ opacity:.45; }

/* Default show RU, hide KZ */
.ru{ display:inline; }
.kz{ display:none; }

/* When toggled: show KZ, hide RU */
#langToggle:checked ~ .lang__pill .lang__ru{ opacity:.45; }
#langToggle:checked ~ .lang__pill .lang__kz{ opacity:1; }

/* The actual content swap using :has (modern browsers) */
body:has(#langToggle:checked) .ru{ display:none; }
body:has(#langToggle:checked) .kz{ display:inline; }

/* Fallback for browsers without :has: keep RU visible.
   If you need full fallback support, we can add tiny JS later. */

/* ========== Hero ========== */
.hero{ padding:56px 0 40px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:28px;
  align-items:stretch;
}
.hero__copy{
  padding:26px 26px 26px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.hero__bullets{ display:flex; flex-wrap:wrap; gap:10px; margin: 0 0 18px; }
.chip{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-size:12px;
  color: rgba(232,240,241,.92);
}

.cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  font-weight:700;
  font-size:13px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  will-change: transform;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background:
    linear-gradient(135deg, rgba(115, 200, 150, .95), rgba(255, 190, 120, .92));
  color:#0b0f10;
  border-color: transparent;
}
.btn--ghost{
  background: rgba(255,255,255,.04);
}
.btn:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

.hero__media{
  display:grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap:12px;
}
.media{
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.media--big{ grid-row:1 / span 2; }
.media--small{ min-height: 160px; }

/* ========== Cards / Grids ========== */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.grid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.card p{ margin:0; color:var(--muted); font-size:13px; }

.product{
  border-radius: var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.product__img{ height:160px; background: rgba(255,255,255,.02); }
.product__body{ padding:14px; }
.product__body p{ margin:0; color:var(--muted); font-size:13px; }

/* Split */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  align-items:start;
}
.list{ margin:14px 0 0; padding:0 0 0 18px; color: rgba(232,240,241,.9); }
.list li{ margin:10px 0; }
.gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

/* Steps */
.steps{ display:grid; gap:12px; }
.step{
  display:flex;
  gap:14px;
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.step__n{
  width:36px; height:36px;
  border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.step__b p{ margin:0; color:var(--muted); font-size:13px; }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}
.contact__actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.contact__card{
  padding:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.list--tight{ padding-left:18px; }
.list--tight li{ margin:8px 0; color: rgba(232,240,241,.92); }
.note{
  margin-top:14px;
  padding:12px 14px;
  border-radius: 16px;
  background: rgba(115, 200, 150, .08);
  border:1px solid rgba(115, 200, 150, .18);
  color: rgba(232,240,241,.9);
  font-size:13px;
}

/* Footer */
.footer{
  padding:26px 0 88px;
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.18);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.footer__brand{ font-weight:800; }
.footer__muted{ color:var(--muted); font-size:12px; margin-top:6px; }
.footer__links{ display:flex; gap:14px; color: rgba(232,240,241,.88); }
.footer__links a{ padding:8px 10px; border-radius: 12px; border:1px solid transparent; }
.footer__links a:hover{ border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }

/* Sticky contacts (mobile first) */
.sticky{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:60;
  display:flex;
  gap:10px;
  padding:10px;
  border-radius: 18px;
  background: rgba(11,15,16,.78);
  border:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.sticky__btn{
  flex:1;
  text-align:center;
  padding:12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  font-weight:800;
  font-size:12px;
}
.sticky__btn:hover{ background: rgba(255,255,255,.07); }

/* ========== Responsive ========== */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__media{ grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .media--big{ grid-row:auto; }
  .grid4{ grid-template-columns: repeat(2, 1fr); }
  .grid3{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .section__head{ flex-direction:column; align-items:flex-start; }
}
@media (min-width: 981px){
  .sticky{ max-width: 520px; margin: 0 auto; left:50%; transform: translateX(-50%); right:auto; }
}


/* ========== Lightbox ========== */
.lightbox{
  position:fixed;
  inset:0;
  z-index:999;
  display:none;
  align-items:center;
  justify-content:center;
}
.lightbox.is-open{
  display:flex;
}
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.85);
}
.lightbox__img{
  position:relative;
  max-width:92vw;
  max-height:92vh;
  border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  cursor:zoom-out;
}
img{ cursor:zoom-in; }


/* ========== Mobile Improvements ========== */
@media (max-width: 640px){
  .topbar__inner{
    gap:10px;
  }
  .brand__sub{
    display:none;
  }

  .hero{
    padding:28px 0 24px;
  }
  .hero__copy{
    padding:18px;
  }
  .hero__bullets{
    gap:8px;
  }

  .hero__media{
    grid-template-columns: 1fr 1fr;
    gap:8px;
  }
  .media--big{
    grid-column:1 / -1;
    height:220px;
  }
  .media--small{
    height:140px;
  }

  .cta{
    gap:8px;
  }
  .btn{
    flex:1;
    justify-content:center;
    padding:14px 12px;
  }

  .section{
    padding:42px 0;
  }

  .grid4{
    grid-template-columns: 1fr;
  }
  .product__img{
    height:200px;
  }

  .steps .step{
    flex-direction:column;
  }

  .footer__inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  /* Lightbox mobile */
  .lightbox__img{
    max-width:96vw;
    max-height:86vh;
    border-radius:14px;
  }
}

/* каталог */
.footer__catalog{
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 12px;
  border-radius: 12px;
}

/* Anchor offset for sticky header */
section[id]{
  scroll-margin-top: 90px;
}

/* SEO / Accessibility helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

