/* Layout concept: Қазақстанда үйреншікті қызмет сайты. Ақ фон, Ту түсіне жақын көк пен алтын,
   жоғарыда кесте мен телефон, бөлімдер ортасынан басталады, бәрі қарапайым карточкада. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --blue: #0b5cab;
  --blue-dark: #0b2e59;
  --blue-soft: #e9f2fb;
  --gold: #ffc20e;
  --gold-dark: #f0b400;
  --ink: #1c2733;
  --muted: #566676;
  --line: #dfe6ee;
  --green: #1fa855;
  --open: #12805c;
  --closed: #b4431e;
  --error: #c0392b;
  --on-dark: #eef4fa;
  --on-dark-muted: #b4c6da;

  --font-head: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Golos Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 16px;
  --section-y: clamp(44px, 6vw, 72px);
  --radius: 12px;
  --shadow: 0 2px 12px rgba(11, 46, 89, .07);
  color-scheme: light;
}

@media (min-width: 800px) {
  :root { --gutter: 32px; }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--blue-dark);
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

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

/* Draft banner */
.draft-banner {
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  padding-block: 6px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.topbar { display: none; background: var(--blue-dark); color: var(--on-dark); font-size: 14px; }

.topbar__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }

@media (min-width: 700px) {
  .topbar { display: block; }
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line), 0 2px 10px rgba(11, 46, 89, .05);
}

.site-header__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.logo { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; }

.logo__drop { width: 20px; height: 28px; flex: none; }
.logo__drop path { fill: var(--gold-dark); }

.logo__word {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-dark);
}

.site-nav { display: none; font-size: 15px; font-weight: 500; }

.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--blue); }

.site-nav.is-open {
  display: grid;
  position: absolute;
  inset: 100% 0 auto;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(11, 46, 89, .12);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.site-nav.is-open a { padding-block: 13px; border-bottom: 1px solid var(--line); }
.site-nav.is-open a:last-child { border-bottom: 0; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.site-header .site-header__cta { display: none; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  flex: none;
}

.menu-toggle svg { width: 24px; height: 24px; }

@media (min-width: 560px) {
  .site-header .site-header__cta { display: inline-flex; }
}

@media (min-width: 980px) {
  .site-nav, .site-nav.is-open {
    display: flex;
    position: static;
    gap: 24px;
    margin-right: 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .site-nav.is-open a { padding: 0; border: 0; }
  .menu-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.btn--large { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.btn--gold { background: var(--gold); color: var(--blue-dark); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--line { border-color: var(--blue); background: transparent; color: var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }

/* Chips */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.chip--open { color: var(--open); background: #e4f6ef; }
.chip--closed { color: var(--closed); background: #fbeee8; }

.chip--sample {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--blue-dark);
  color: #fff;
  pointer-events: none;
}

/* Hero */
.hero { background: var(--blue-soft); }

.hero__grid { display: grid; gap: 28px; padding-block: clamp(32px, 5vw, 64px); align-items: center; }

.hero__copy { min-width: 0; display: grid; gap: 16px; justify-items: start; }

.hero__eyebrow { color: var(--blue); font-size: 15px; font-weight: 600; }

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.3vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-dark);
  text-wrap: balance;
}

.hero__sub { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink); max-width: 34em; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__media { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(11, 46, 89, .16); }
.hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

/* Advantages */
.why { padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }

.why__list { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }

.why__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; align-items: start; }

.why__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.why__icon svg { width: 24px; height: 24px; }

.why__item h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.why__item p { font-size: 14px; color: var(--muted); }

@media (min-width: 620px) {
  .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .why__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Section frame */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

.section__head { display: grid; gap: 8px; justify-items: center; margin-bottom: clamp(24px, 3.5vw, 40px); text-align: center; }

.section__title {
  font-family: var(--font-head);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  text-wrap: balance;
}

.section__sub { color: var(--muted); max-width: 42em; text-wrap: balance; }

/* Points */
.points { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 900px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.point { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }

.point__media { position: relative; min-width: 0; }
.point__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.point__nophoto {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 16px;
  background: var(--blue-soft);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.point__body { min-width: 0; display: grid; gap: 14px; padding: 18px; grid-template-rows: auto 1fr auto; }

.point__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }

.point__name { font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--blue-dark); }

.point__facts { display: grid; gap: 8px; align-content: start; font-size: 15px; }

.point__facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }

.point__facts dt { color: var(--muted); font-size: 14px; }

.point__actions { display: grid; gap: 8px; }
.point__soon { font-size: 13px; color: var(--muted); text-align: center; }

/* Services */
.services { display: grid; gap: 20px; align-items: start; }

@media (min-width: 900px) {
  .services { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.services__prices { min-width: 0; padding: 8px 20px 18px; }

.price { width: 100%; border-collapse: collapse; }

.price th, .price td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }

.price th { font-weight: 500; text-align: left; padding-right: 16px; }

.price td { font-weight: 700; color: var(--blue-dark); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.price__from { font-weight: 400; font-size: 13px; color: var(--muted); }

.oil-types { display: grid; gap: 8px; padding-top: 16px; }
.oil-types__label { font-size: 14px; color: var(--muted); }

.grades { display: flex; flex-wrap: wrap; gap: 6px; }

.grades li {
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 500;
}

/* Calculator */
.calc { min-width: 0; display: grid; gap: 14px; padding: 20px; }

.calc__title { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--blue-dark); }

.calc__field { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }

.calc__field input {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #b9c6d4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.calc__modes { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__modes legend { padding: 0 0 4px; font-size: 14px; font-weight: 500; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.segmented label { position: relative; cursor: pointer; }

.segmented input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }

.segmented span {
  display: block;
  padding: 10px 2px;
  border: 1px solid #b9c6d4;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.calc__result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 10px; background: var(--blue-soft); }
.calc__result > div { min-width: 0; display: grid; gap: 2px; }

.calc__label { font-size: 13px; color: var(--muted); }

.calc__value {
  font-family: var(--font-head);
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc__note { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); counter-reset: step; }

.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; }

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}

.steps h3 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.steps p { font-size: 14px; color: var(--muted); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps li::before { grid-row: auto; }
}

/* Gallery */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 800px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

.shot { position: relative; min-width: 0; display: grid; gap: 6px; align-content: start; }

.shot__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
}

.shot__open img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s; }
.shot__open:hover img { opacity: .9; }

.shot figcaption { font-size: 14px; color: var(--muted); }

.lightbox {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
}

.lightbox::backdrop { background: rgba(11, 30, 50, .75); }
.lightbox img { width: 100%; max-height: 74dvh; object-fit: contain; }
.lightbox p { padding-top: 10px; font-size: 15px; }

.lightbox__close {
  display: block;
  margin: 0 0 10px auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Corporate */
.corp { background: var(--blue-soft); }

.corp__grid { display: grid; gap: 28px; }
.corp__offer { min-width: 0; display: grid; gap: 28px; align-content: start; }

@media (min-width: 1000px) {
  .corp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}

.corp__sub { font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--blue-dark); margin-bottom: 12px; }

.corp__list { display: grid; gap: 10px; }

.corp__list li { position: relative; padding-left: 28px; }

.corp__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .32em;
  width: 8px;
  height: 14px;
  border: solid var(--blue);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

.table-scroll { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }

.packs { width: 100%; border-collapse: collapse; font-size: 15px; }

.packs th, .packs td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.packs tbody tr:last-child th, .packs tbody tr:last-child td { border-bottom: 0; }

.packs thead th { background: var(--bg-alt); font-size: 13px; font-weight: 500; color: var(--muted); }

.packs tbody th { font-weight: 700; color: var(--blue-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }

.corp__note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.corp__terms { display: flex; flex-wrap: wrap; gap: 8px; }

.corp__terms li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* Lead form */
.lead { min-width: 0; display: grid; gap: 14px; align-content: start; padding: clamp(18px, 3vw, 28px); }

.lead__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--blue-dark); }

@media (min-width: 560px) {
  .lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead__title, .field--wide { grid-column: 1 / -1; }
}

.field { min-width: 0; display: grid; gap: 4px; align-content: start; }

.field label { font-size: 14px; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); font-size: 13px; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9c6d4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field__err { font-size: 13.5px; line-height: 1.35; color: var(--error); }
.field__err:empty { display: none; }

.lead__status {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  font-size: 14.5px;
  line-height: 1.45;
}

.lead__preview { width: 100%; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; white-space: pre-wrap; }

/* Footer */
.footer { background: var(--blue-dark); color: var(--on-dark); padding-block: clamp(36px, 5vw, 56px) 20px; }

.footer :focus-visible { outline-color: var(--gold); }

.footer__grid { display: grid; gap: 28px; margin-bottom: 28px; }

.footer .logo__word { color: #fff; font-size: 26px; }
.footer__note { margin-top: 8px; color: var(--on-dark-muted); }

.footer__title { margin-bottom: 12px; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff; }

.contacts { display: grid; gap: 12px 32px; }
.contacts > div { min-width: 0; }
.contacts dt { font-size: 13px; color: var(--on-dark-muted); }
.contacts dd { font-weight: 600; }
.contacts__soon { font-weight: 400; color: var(--on-dark-muted); }

@media (min-width: 560px) {
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 860px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

.footer__legal { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); color: var(--on-dark-muted); font-size: 13px; }

/* WhatsApp */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(11, 46, 89, .28);
}

.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float span { display: none; }
.wa-float:hover { background: #188a45; }
.wa-float:focus-visible { outline-color: var(--blue-dark); }

@media (min-width: 700px) {
  .wa-float { padding: 0 20px 0 16px; }
  .wa-float span { display: inline; }
}
