:root {
  --ac: #3f8fc0;
  --ac-d: #30729c;
  --gold: #e6b24d;
  --ink: #000;
  --txt: #1d1d24;
  --mut: #8d8d98;
  --bg: #f4f4f4;
  --r: 28px;
  --w: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--txt); background: #fff; line-height: 1.45; font-size: 16px; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure, blockquote { margin: 0; padding: 0; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; border-radius: 6px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 28px; border: 0; border-radius: 40px; background: var(--ac); color: #fff; font: 500 14px/1 'Geologica', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; }
.btn:hover { background: var(--ac-d); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 30px; font-size: 14px; }
.btn--lg { min-height: 48px; padding: 0 54px; font-size: 16px; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--ink); }
.nav { display: flex; gap: 30px; margin-left: 40px; flex: 1; }
.nav a { text-decoration: none; font-size: 13px; font-weight: 500; color: #000; }
.nav a:hover { color: var(--ac-d); }

.burger { position: relative; }
.burger__btn { width: 42px; height: 42px; border: 0; border-radius: 12px; background: #f1f1f6; display: grid; place-content: center; cursor: pointer; color: #1d1d24; transition: background .2s, color .2s; }
.burger__btn svg { display: block; }
.burger.is-open .burger__btn { background: #e3eef7; color: var(--ac-d); }
.burger__panel { position: absolute; right: 0; top: 52px; width: 270px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 18px 50px rgba(40, 40, 90, .18), 0 0 0 1px rgba(0, 0, 0, .05); }
.burger__nav { display: none; flex-direction: column; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eee; }
.burger__nav a { padding: 11px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.burger__nav a:hover { background: #f4f4fb; }
.langrow { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.langrow__lbl { font-size: 14px; color: var(--mut); }

/* тумблер RU ⇄ ҚАЗ */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; position: relative; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__l { font-size: 13px; font-weight: 600; color: #b3b3bd; transition: color .15s; }
.switch__l.is-on { color: var(--txt); }
.switch__track { width: 46px; height: 26px; border-radius: 26px; background: var(--ac); position: relative; transition: background .2s; flex: none; }
.switch__thumb { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--ac-d); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { background: var(--bg); padding: 24px 16px 36px; }
.hero__card { position: relative; width: min(1440px, 100%); margin-inline: auto; background: #f7f7f8; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 70px rgba(18, 18, 26, .12); }
.hero__map { position: absolute; inset: 0; pointer-events: none; background: #f7f7f8; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; filter: hue-rotate(-40deg) saturate(.82); }
.hero__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 247, 248, .97) 0%, rgba(247, 247, 248, .82) 30%, rgba(247, 247, 248, 0) 62%); }
.hero__in { position: relative; z-index: 1; min-height: 76vh; display: flex; flex-direction: column; justify-content: center; max-width: 760px; padding: 56px 24px 56px 90px; }

.hero h1 { font-weight: 600; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.2; text-transform: uppercase; color: #1d1d28; }
.hero__sub { margin-top: 22px; max-width: 520px; font-size: clamp(16px, 1.2vw, 17px); line-height: 1.6; color: #4a4a56; }
.checks { list-style: none; margin: 26px 0 36px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 16px; font-weight: 500; color: #2a2a33; }
.checks li::before { content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 6px; background: #e3eef7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.4l3.4 3.4L16 7.4' fill='none' stroke='%233f8fc0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.hero__in .btn--lg { font-weight: 600; box-shadow: 0 10px 26px rgba(63, 143, 192, .32); }

/* ---------- преимущества ---------- */
.adv { background: var(--bg); padding: 36px 0 40px; }
.adv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acard { position: relative; background: #fff; border-radius: var(--r); padding: 36px 36px 30px; min-height: 160px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.acard h3 { font-weight: 400; font-size: 28px; line-height: 1.35; color: var(--ink); }
.acard p { font-size: 15px; }
.acard--c { justify-content: center; }
.acard__more { position: absolute; right: 28px; bottom: 22px; font-size: 13px; color: var(--ac); text-decoration: none; font-weight: 500; }

/* ---------- заголовки ---------- */
.h2 { font-weight: 400; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; text-transform: uppercase; color: var(--ink); margin-bottom: 40px; }
.h2 em { font-style: normal; color: var(--ac); }

/* ---------- возможности ---------- */
.feat { padding: 60px 0 90px; }
.feat__grid { display: grid; grid-template-columns: 346px 1fr; gap: 20px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 10px; }
.tab { text-align: left; border: 1.5px solid transparent; background: var(--bg); border-radius: 22px; padding: 16px 18px; font: 600 13px/1.3 'Geologica', sans-serif; color: #000; cursor: pointer; min-height: 54px; transition: border-color .15s; }
.tab:hover { border-color: #d7d7ef; }
.tab.is-on { background: #fff; border-color: #000; }
.panes { min-width: 0; }
.pane > p { font-size: 14px; font-weight: 500; padding: 0 20px; margin-bottom: 4px; }
.pane > p:first-child { margin-top: 16px; }
.shot { position: relative; margin-top: 12px; border: 1.5px solid #ececf2; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(80, 80, 160, .06); cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: 1428 / 712; display: block; }
.shot::after { content: ''; position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(20, 20, 36, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4M11 8v6M8 11h6'/%3E%3C/svg%3E") center/20px no-repeat; opacity: 0; transition: opacity .15s; pointer-events: none; }
.shot:hover::after { opacity: 1; }

/* ---------- лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(16, 16, 26, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lightbox__img { position: relative; width: 78%; max-width: 1600px; max-height: 88vh; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
.lightbox__x { position: absolute; top: 20px; right: 28px; z-index: 1; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s; }
.lightbox__x:hover { background: rgba(255, 255, 255, .3); }
@media (max-width: 760px) { .lightbox__img { width: 94%; } .lightbox__x { top: 14px; right: 16px; } }

/* ---------- клиенты / сегменты ---------- */
.for { padding: 20px 0 80px; }
.for .h2 { margin-bottom: 14px; }
.for__sub { font-size: 14px; font-weight: 500; margin-bottom: 28px; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.logo-brand { height: 92px; border-radius: 24px; background: var(--bg); display: flex; align-items: center; justify-content: center; gap: 12px; }
.logo-brand__mark { width: 30px; height: 30px; flex: none; }
.logo-brand__name { font: 600 19px/1 'Geologica', sans-serif; letter-spacing: -.4px; color: #6a6a74; white-space: nowrap; }
.logo-brand__name b { font-weight: 700; color: #3a3a44; }
.for__more { margin: 28px 0 22px; font-size: 14px; font-weight: 500; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scard { background: var(--bg); border-radius: 24px; overflow: hidden; padding-bottom: 22px; }
.scard img { width: 100%; aspect-ratio: 510 / 200; object-fit: cover; border-radius: 24px 24px 18px 18px; }
.scard h3 { margin: 18px 20px 0; font-weight: 400; font-size: 20px; line-height: 1.25; color: var(--ink); }
.scard p { margin: 10px 20px 0; font-size: 14px; line-height: 1.3; color: #9a9aa3; }
.scard--cta { background: #fff; border: 1.5px solid var(--ac); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.scard--cta p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ac); }
.scard--cta .btn { width: 100%; }

/* ---------- результаты ---------- */
.res { padding: 10px 0 70px; }
.res__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 20px; align-items: center; }
.stat { text-align: center; }
.stat__n { font-size: clamp(50px, 7vw, 84px); font-weight: 400; line-height: 1.05; color: var(--ink); }
.stat__n { display: flex; justify-content: center; align-items: baseline; gap: .22em; white-space: nowrap; }
html[lang="kk"] .stat__n .upto { order: 2; font-size: .38em; }
.stat__n small { font-size: .3em; font-weight: 600; margin-left: 4px; vertical-align: .55em; }
.stat div:last-child { font-size: 17px; font-weight: 500; margin-top: 6px; }
.rcta { border: 1.5px solid var(--ac); border-radius: 28px; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 346px; margin-inline: auto; }
.rcta p { color: var(--ac); font-size: 15px; font-weight: 500; }
.rcta .btn { width: 100%; }

/* ---------- отзывы (карусель) ---------- */
.rev { padding: 0 0 80px; }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: 28px; }
.carousel__track { display: flex; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.rcard { flex: 0 0 100%; box-sizing: border-box; background: var(--bg); border-radius: 28px; padding: 56px clamp(28px, 7vw, 96px); display: flex; flex-direction: column; gap: 28px; min-height: 260px; justify-content: center; }
.rcard__q { position: relative; font-size: clamp(17px, 2vw, 23px); line-height: 1.5; font-weight: 500; color: var(--txt); padding-left: 44px; }
.rcard__q::before { content: '“'; position: absolute; left: -4px; top: -18px; font-family: Georgia, serif; font-size: 72px; line-height: 1; color: var(--ac); opacity: .55; }
.rcard__who b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.rcard__who span { display: block; font-size: 12.5px; color: var(--ac-d); margin-top: 4px; letter-spacing: .2px; }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #e0e0e6; background: #fff; color: var(--ac-d); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; box-shadow: 0 6px 20px rgba(40, 40, 90, .08); transition: border-color .15s, background .15s, color .15s; }
.carousel__arrow:hover { border-color: var(--ac); background: var(--ac); color: #fff; }
.carousel__arrow--prev { left: -24px; } .carousel__arrow--next { right: -24px; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #d5d5dd; cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.carousel__dot.is-on { width: 24px; border-radius: 5px; background: var(--ac); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); padding: 40px 0 100px; }
.faq__grid { display: grid; grid-template-columns: 1fr 346px; gap: 120px; align-items: start; }
.acc details { border-top: 1px solid #e6e6e9; }
.acc details:last-child { border-bottom: 1px solid #e6e6e9; }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 6px 24px 0; font-size: 16px; font-weight: 500; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; flex: none; width: 24px; height: 24px; background: linear-gradient(#444, #444) center/100% 1.3px no-repeat, linear-gradient(#444, #444) center/1.3px 100% no-repeat; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding: 0 40px 24px 0; font-size: 15px; line-height: 1.6; color: #44444d; }
.qcta { border: 1.5px solid #d9d9dd; border-radius: 28px; padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 90px; }
.qcta b { font-weight: 500; font-size: 19px; }
.qcta span { font-size: 14px; margin-bottom: 14px; }

/* ---------- подвал ---------- */
.ftr { background: #14141c; color: #c9c9d3; padding: 64px 0 36px; }
.ftr__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.ftr .logo { color: #fff; }
.ftr__tag { margin-top: 16px; font-size: 14px; line-height: 1.6; color: #8f8f9e; max-width: 310px; }
.ftr__social { display: flex; gap: 10px; margin-top: 22px; }
.ftr__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #c9c9d3; transition: background .15s, color .15s; }
.ftr__social a:hover { background: var(--ac); color: #fff; }
.ftr__col { display: flex; flex-direction: column; gap: 12px; }
.ftr__col h4 { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.ftr__col a, .ftr__contacts p { font-size: 14px; line-height: 1.5; color: #a7a7b4; text-decoration: none; }
.ftr__col a:hover { color: #fff; }
.ftr__contacts a { color: #e9e9f2; }
.ftr__contacts a:hover { color: #fff; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 26px; font-size: 13px; }
.ftr__copy { color: #8f8f9e; }
.ftr__org { color: #6f6f7d; font-size: 12.5px; }
.ftr__legal { display: flex; gap: 22px; }
.ftr__legal a { color: #a7a7b4; text-decoration: none; }
.ftr__legal a:hover { color: #fff; }
.ph { color: #e4c36a; } /* заглушки, которые нужно заменить реальными реквизитами */

/* ---------- форма ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__bg { position: absolute; inset: 0; background: rgba(20, 20, 40, .55); }
.modal__box { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 28px; padding: 36px 32px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal__x { position: absolute; right: 14px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: #666; }
.modal h3 { font-weight: 500; font-size: 24px; margin-bottom: 20px; color: var(--ink); }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
.modal input, .modal select, .modal textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #dcdce4; border-radius: 14px; font: 400 15px 'Geologica', sans-serif; color: var(--txt); background: #fff; }
.modal textarea { resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px rgba(63, 143, 192, .2); }
.modal .btn { width: 100%; margin-top: 6px; }
.form__note { font-size: 11.5px; color: var(--mut); line-height: 1.45; }
.form__ok { padding: 12px 14px; border-radius: 12px; background: #e3f6ef; color: #0e6b57; font-size: 14px; }
.form__err { padding: 12px 14px; border-radius: 12px; background: #ffe7ea; color: #b01c33; font-size: 14px; }
.login__hint { font-size: 13px; color: var(--mut); text-align: center; line-height: 1.5; }

/* ---------- адаптив ---------- */
@media (max-width: 1020px) {
  .nav, .hdr__cta { display: none; }
  .burger { margin-left: auto; }
  .burger__nav { display: flex; }
  .adv__grid, .rev__grid { grid-template-columns: 1fr; }
  .feat__grid { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .tab { flex: none; width: 250px; scroll-snap-align: start; }
  .seg, .logos { grid-template-columns: repeat(2, 1fr); }
  .faq__grid { grid-template-columns: 1fr; gap: 36px; }
  .qcta { position: static; }
  .carousel__arrow--prev { left: 8px; } .carousel__arrow--next { right: 8px; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero { padding: 0; }
  .hero__card { width: 100%; border-radius: 0; height: auto; min-height: 80vh; }
  .hero__card::after { background: linear-gradient(180deg, rgba(247, 247, 248, .93) 0%, rgba(247, 247, 248, .82) 60%, rgba(247, 247, 248, .68) 100%); }
  .hero__in { max-width: none; padding: 56px 20px; }
  .hero__sub { font-size: 16px; }
  .res__grid { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .rcta { grid-column: 1 / -1; }
  .acard { padding: 26px 24px; min-height: 130px; }
  .acard h3 { font-size: 22px; }
  .logos { gap: 12px; }
  .logo-brand { height: 76px; gap: 9px; }
  .logo-brand__name { font-size: 16px; }
  .carousel__arrow { width: 40px; height: 40px; font-size: 22px; }
  .rcard__q { padding-left: 30px; }
  .seg { gap: 14px; }
  .scard h3 { font-size: 17px; margin-inline: 14px; }
  .scard p { margin-inline: 14px; font-size: 12.5px; }
  .modal__box { padding: 30px 20px 22px; }
  .ftr__top { grid-template-columns: 1fr; gap: 30px; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .seg { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
