/* KANUZE GROUP — kanuzegroup.kz */
:root {
  --bg: #0a111c;
  --bg-alt: #0d1624;
  --surface: #121c2c;
  --surface-2: #172337;
  --line: rgba(160, 178, 204, .14);
  --line-strong: rgba(160, 178, 204, .26);
  --text: #e8edf4;
  --muted: #a1aec2;
  --green: #8dc63f;
  --green-hi: #a9d862;
  --green-lo: #5f8f22;
  --on-green: #0b1406;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --container: 1200px;
  --container-wide: 1360px;
  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--green); color: var(--on-green); font-weight: 600; }
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font: 600 15px/1.2 var(--font-body); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--primary { background: var(--green); color: var(--on-green); }
.btn--primary:hover { background: var(--green-hi); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-hi); }
.btn--wa { background: var(--green); color: var(--on-green); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: border-color .25s;
  border-bottom: 1px solid transparent;
}
/* фон с размытием — на отдельном слое: backdrop-filter на самой шапке
   ломает position: fixed у мобильного меню внутри неё */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: background-color .25s;
}
.header.is-scrolled::before {
  background: rgba(10, 17, 28, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header.is-open::before { background: var(--bg); }
.header.is-scrolled, .header.is-open { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 20px; max-width: var(--container-wide); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font: 800 19px/1 var(--font-head); letter-spacing: .04em; }
.brand__name span { color: var(--green); font-weight: 600; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  display: block; padding: 8px 9px; border-radius: 8px; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav__list a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__list a.is-active { color: var(--green-hi); }
.nav__extra { display: none; }

.header__tools { display: flex; align-items: center; gap: 14px; flex: none; }
.langs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs a {
  padding: 5px 10px; border-radius: 999px; font: 600 12.5px/1 var(--font-body); letter-spacing: .04em; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { background: var(--green); color: var(--on-green); }
.header__phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.header__phone .icon { color: var(--green); width: 18px; height: 18px; }
.header__phone:hover { color: var(--green-hi); }

.burger {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px;
  background: transparent; cursor: pointer; position: relative;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.header.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1600px) { .header__phone { display: inline-flex; } }

@media (max-width: 1279px) {
  .burger { display: inline-block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    background: var(--bg); padding: 16px 24px 32px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { padding: 15px 4px; font-size: 18px; font-weight: 600; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__list a:hover { background: none; color: var(--green-hi); }
  .nav__extra { display: flex; flex-direction: column; gap: 12px; }
  .nav__extra .btn { min-height: 52px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 56px; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 17, 28, .97) 0%, rgba(10, 17, 28, .88) 42%, rgba(10, 17, 28, .45) 75%, rgba(10, 17, 28, .3) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 17, 28, 0) 30%);
}
.hero__shards { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__shards i { position: absolute; top: 0; bottom: 0; right: 0; }
.hero__shards i:nth-child(1) { width: 26%; background: rgba(95, 143, 34, .55); clip-path: polygon(62% 0, 100% 0, 100% 100%, 92% 100%); }
.hero__shards i:nth-child(2) { width: 22%; background: rgba(141, 198, 63, .5); clip-path: polygon(78% 0, 100% 0, 100% 100%, 55% 100%); }
.hero__shards i:nth-child(3) { width: 34%; background: rgba(169, 216, 98, .22); clip-path: polygon(100% 38%, 100% 100%, 40% 100%); }
.hero__inner { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; margin-bottom: 22px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(10, 17, 28, .5);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(141, 198, 63, .2); }
.hero__company { font: 700 15px/1 var(--font-head); letter-spacing: .22em; color: var(--green); margin-bottom: 16px; }
.hero__title {
  max-width: 820px; font: 800 clamp(32px, 5vw, 58px)/1.08 var(--font-head); letter-spacing: -.01em;
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
.hero__sub { max-width: 640px; margin-top: 22px; font-size: clamp(16px, 1.6vw, 19px); color: #c3cddb; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin-top: 56px;
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 22px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font: 800 clamp(30px, 3.6vw, 44px)/1 var(--font-head); color: var(--green); }
.stat dd { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 13px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.h2 { font: 800 clamp(28px, 3.6vw, 42px)/1.15 var(--font-head); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: break-word; }
.h3 { font: 700 18px/1.35 var(--font-head); }
.section__sub { margin-top: 14px; font-size: 17px; color: var(--muted); }
.lead { margin-top: 22px; font-size: clamp(16px, 1.5vw, 18.5px); color: #c3cddb; line-height: 1.7; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
}
.badge-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 12px; background: rgba(141, 198, 63, .12); color: var(--green);
}
.badge-icon .icon { width: 22px; height: 22px; }
.badge-icon--lg { width: 52px; height: 52px; border-radius: 14px; }
.badge-icon--lg .icon { width: 26px; height: 26px; }

/* about */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.priorities { position: relative; overflow: hidden; }
.priorities::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: linear-gradient(135deg, rgba(141, 198, 63, .35), rgba(141, 198, 63, 0) 70%);
  clip-path: polygon(30% 0, 100% 0, 100% 70%); pointer-events: none;
}
.priorities .h3 { font-size: 17px; color: var(--muted); font-weight: 600; margin-bottom: 18px; padding-right: 60px; }
.priorities__list li {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  font: 700 18px/1.3 var(--font-head);
}
.priorities__list li + li { border-top: 1px solid var(--line); }

/* advantages */
.adv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.adv__item { display: flex; flex-direction: column; gap: 14px; transition: border-color .25s, transform .25s; }
.adv__item:hover { border-color: rgba(141, 198, 63, .45); transform: translateY(-3px); }
.adv__item p { color: var(--muted); font-size: 15.5px; }

/* products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; gap: 18px; }
.product__head { display: flex; align-items: center; gap: 16px; }
.product__head .h3 { font-size: 19px; }
.product > p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 13px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line);
}
.checklist { display: grid; gap: 10px 24px; }
.checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.checklist .icon { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }

/* partners */
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.partner {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.partner:hover { border-color: rgba(141, 198, 63, .45); transform: translateY(-3px); }
.partner__logo { height: 120px; display: grid; place-items: center; padding: 20px 28px; background: #fff; }
.partner__logo img { max-height: 76px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.partner__body { padding: 22px 24px 26px; }
.partner__body .h3 { margin-bottom: 8px; }
.partner__body p { color: var(--muted); font-size: 15px; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; counter-reset: none; }
.project {
  display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--radius-sm);
}
.project__num { font: 800 22px/1.2 var(--font-head); color: var(--green); min-width: 32px; }
.project p { font-size: 15.5px; color: #d3dbe6; }

/* clients */
.clients { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.client {
  height: 104px; display: grid; place-items: center; padding: 14px 16px;
  background: #fff; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .6);
  transition: transform .25s, box-shadow .25s;
}
.client:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.client img { max-height: 70px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* contacts */
.contacts { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.quote {
  margin-top: 24px; padding-left: 20px; border-left: 3px solid var(--green);
  font-size: 18px; line-height: 1.6; color: #c3cddb; font-style: italic;
}
.contact-list { margin-top: 32px; display: grid; gap: 14px; }
.contact-list li {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.contact-list__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(141, 198, 63, .12); color: var(--green); }
.contact-list__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-list a { font: 700 18px/1.3 var(--font-head); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--green-hi); }
.cities { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 700 18px/1.3 var(--font-head); }
.cities span:not(:last-child)::after { content: "·"; color: var(--green); margin-left: 10px; }
.contacts__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contacts__photo { position: relative; }
.contacts__photo::before {
  content: ""; position: absolute; inset: -16px -16px auto auto; width: 55%; height: 60%; z-index: -1;
  background: linear-gradient(135deg, var(--green), var(--green-lo)); border-radius: var(--radius);
  clip-path: polygon(25% 0, 100% 0, 100% 100%);
}
.contacts__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.contacts-section { isolation: isolate; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; background: #080e17; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { color: var(--muted); font-size: 14px; }
.footer .brand__mark { width: 30px; height: 30px; }
.footer .brand__name { font-size: 16px; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about, .contacts { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .contacts__photo { max-width: 620px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__name { font-size: 14.5px; letter-spacing: .02em; }
  .header__inner { gap: 10px; }
  .header__tools { gap: 6px; }
  .langs { padding: 2px; }
  .langs a { padding: 6px 7px; font-size: 11px; }
  .burger { width: 42px; height: 42px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 20px; }
  .burger span:nth-child(3) { top: 26px; }
  .hero__title { font-size: 28px; }
  .hero__shards i:nth-child(1), .hero__shards i:nth-child(2) { display: none; }
  .cities { font-size: 17px; }
  .footer .langs a { padding: 6px 10px; font-size: 12px; }
  .nav { padding: 8px 16px 28px; }
  .hero { padding: calc(var(--header-h) + 32px) 0 40px; align-items: flex-start; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 17, 28, .82) 0%, rgba(10, 17, 28, .9) 60%, var(--bg) 100%); }
  .hero__cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; margin-top: 40px; }
  .stat, .stat + .stat { padding: 16px 0; border-left: 0; display: flex; align-items: baseline; gap: 16px; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat dt { min-width: 64px; }
  .stat dd { margin-top: 0; }
  .adv, .partners { grid-template-columns: 1fr; }
  .checklist--2 { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client { height: 88px; }
  .project { padding: 18px; gap: 14px; }
  .contacts__cta .btn { width: 100%; }
  .contacts__photo::before { inset: -10px -10px auto auto; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (max-width: 374px) {
  .header .brand__name span { display: none; }
  .hero__title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
