:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1c1a17;
  --secondary: #57534b;
  --muted: #8d867c;
  --border: #e9e5de;
  --yellow: #ffc30c;
  --red: #ec3832;
  --green: #167548;
  --shadow: 0 18px 60px rgba(46, 39, 29, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.footer-links .onebee-cache-reset { color: var(--red); }

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 154px; height: auto; }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a,
.lang-switch button {
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  background: transparent;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-nav a:hover { background: var(--bg); color: var(--text); }

.lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--bg);
}

.lang-switch button { min-width: 40px; padding: 6px 9px; }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: #fff; }

.page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; overflow-x: clip; }

.hero {
  min-height: 430px;
  padding: 82px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: center;
}

.hero.compact {
  min-height: 0;
  padding: 72px 0 46px;
  display: block;
  max-width: 850px;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero.compact h1 { font-size: clamp(38px, 5.2vw, 64px); }

.hero-copy {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 15px;
  padding: 13px 19px;
  background: var(--yellow);
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-1px); background: #f2b900; }
.button.secondary { background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }

.hero-mark {
  position: relative;
  min-height: 300px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -55px;
  top: -60px;
  border-radius: 50%;
  background: var(--red);
}

.hero-mark::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: 34px;
  bottom: 30px;
  border: 22px solid var(--text);
  border-radius: 50%;
  opacity: 0.96;
}

.hero-mark img {
  position: absolute;
  z-index: 2;
  width: 160px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.section { padding: 42px 0 70px; }
.section + .section { border-top: 1px solid var(--border); }

.section-heading {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.lead { max-width: 760px; color: var(--secondary); font-size: 17px; line-height: 1.65; }

.feature-grid,
.contact-grid,
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature,
.contact-card,
.branch-card {
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 23px;
  background: var(--card);
}

.feature-number {
  display: block;
  margin-bottom: 42px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.feature h3,
.contact-card h3,
.branch-card h3 { margin: 0; font-size: 18px; line-height: 1.3; }

.feature p,
.contact-card p,
.branch-card p { margin: 9px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.55; }

.contact-card.primary { border-color: var(--yellow); background: #fffaf0; }
.contact-link { display: inline-block; margin-top: 20px; color: var(--red); font-weight: 850; text-decoration: none; }

.steps { counter-reset: step; max-width: 820px; }
.step { position: relative; padding: 0 0 30px 58px; border-left: 2px solid var(--border); margin-left: 18px; }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -19px;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}
.step h3 { margin: 0; font-size: 17px; }
.step p { margin: 7px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.55; }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -6px 0 22px; max-width: 720px; color: var(--secondary); font-size: 14px; line-height: 1.65; }

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 72px;
  align-items: start;
  padding-bottom: 88px;
}

.legal-nav { position: sticky; top: 94px; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 3px; }
.legal-nav a { border-radius: 10px; padding: 9px 11px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.legal-nav a:hover { background: var(--card); color: var(--text); }

.legal-article { min-width: 0; }
.legal-meta { margin-bottom: 34px; color: var(--muted); font-size: 13px; }
.legal-section { scroll-margin-top: 94px; padding: 0 0 34px; }
.legal-section + .legal-section { border-top: 1px solid var(--border); padding-top: 34px; }
.legal-section h2 { margin: 0 0 14px; font-size: clamp(23px, 3vw, 31px); line-height: 1.18; letter-spacing: -0.025em; }
.legal-section h3 { margin: 22px 0 9px; font-size: 16px; }
.legal-section p,
.legal-section li { color: var(--secondary); font-size: 15px; line-height: 1.7; }
.legal-section p { margin: 0 0 12px; }
.legal-section ul,
.legal-section ol { margin: 10px 0 14px; padding-left: 22px; }
.legal-section li + li { margin-top: 6px; }
.legal-section strong { color: var(--text); }

.notice {
  margin: 0 0 30px;
  border: 1px solid #ecd885;
  border-radius: 18px;
  padding: 17px 18px;
  background: #fff9dc;
  color: #655311;
  font-size: 13px;
  line-height: 1.55;
}

.seller-box {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 19px;
  background: var(--card);
  font-size: 14px;
  line-height: 1.5;
}
.seller-box dt { color: var(--muted); }
.seller-box dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.site-footer { margin-top: 34px; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.footer-brand img { display: block; width: 132px; }
.footer-brand p { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
.footer-links a { color: var(--secondary); font-size: 12px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--red); }

[data-copy] { display: none; }
html[data-lang="ru"] [data-copy="ru"],
html[data-lang="kz"] [data-copy="kz"] { display: revert; }

@media (max-width: 820px) {
  .header-inner { min-height: 62px; }
  .brand img { width: 128px; }
  .header-nav > a { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 32px; padding: 56px 0 42px; }
  .hero-mark { min-height: 230px; }
  .hero.compact { padding: 52px 0 34px; }
  .feature-grid, .contact-grid, .branch-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature-number { margin-bottom: 24px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding-bottom: 58px; }
  .legal-nav { position: static; width: 100%; contain: inline-size; flex-direction: row; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: none; }
  .legal-nav::-webkit-scrollbar { display: none; }
  .legal-nav a { flex: none; background: var(--card); }
}

@media (max-width: 560px) {
  .page, .header-inner, .footer-inner { width: min(100% - 24px, 1120px); }
  .hero h1 { font-size: 42px; }
  .hero.compact h1 { font-size: 38px; }
  .hero-copy { font-size: 16px; }
  .section { padding: 34px 0 52px; }
  .hero-mark { min-height: 205px; border-radius: 24px; }
  .seller-box { grid-template-columns: 1fr; gap: 2px; }
  .seller-box dd + dt { margin-top: 10px; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
