/* h-7233.kz — стиль в духе Apple: системный шрифт SF, много воздуха, светлая/тёмная тема по настройке устройства */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --green: #28a745;
  --wa: #25D366;
  --red: #e30000;
  --red-soft: rgba(227,0,0,.06);
  --glass: rgba(255,255,255,.72);
  --shadow: 0 2px 12px rgba(0,0,0,.06), 0 18px 48px -24px rgba(0,0,0,.18);
  /* переписка WhatsApp (светлая) */
  --c-bg: #efeae2; --c-top: #f0f2f5; --c-in: #ffffff; --c-me: #d9fdd3; --c-ink: #111b21; --c-sub: #667781; --c-sys: #ffffff; --c-quick: #f0f2f5; --c-btn: #ffffff; --c-btn-line: #d1d7db; --c-accent: #008069;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}
.alt { --tile: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #101012;
    --tile: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #86868b;
    --line: #38383a;
    --accent: #0a84ff;
    --accent-hover: #2a95ff;
    --link: #2997ff;
    --green: #30d158;
    --red: #ff453a;
    --red-soft: rgba(255,69,58,.1);
    --glass: rgba(22,22,23,.72);
    --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -30px rgba(0,0,0,.9);
    --c-bg: #0b141a; --c-top: #202c33; --c-in: #202c33; --c-me: #005c4b; --c-ink: #e9edef; --c-sub: #8696a0; --c-sys: #182229; --c-quick: #202c33; --c-btn: #111b21; --c-btn-line: #2a3942; --c-accent: #00a884;
  }
  .alt { --tile: #1c1c1e; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgba(0,125,250,.6); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); text-wrap: balance; font-weight: 700; letter-spacing: -0.028em; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.g { background: linear-gradient(90deg, #30d158, #0a84ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.r { color: var(--red); }

/* кнопки — «пилюли» */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 500; font-size: 1.06rem; padding: 13px 24px; border-radius: 980px; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.btn.ghost:hover { background: var(--link); color: #fff; }
.btn.sm { padding: 6px 14px; font-size: .82rem; }

/* навигация — полупрозрачная панель */
.nav { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); padding-top: env(safe-area-inset-top); }
.nav .wrap { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo b { font-weight: 600; font-size: .98rem; line-height: 1; display: block; letter-spacing: -0.01em; }
.logo small { font-size: .7rem; color: var(--muted); letter-spacing: 0; }
/* переключатель языка — сегментированный контрол */
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 2px; border-radius: 980px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: .78rem; font-weight: 500; }
.lang a { color: var(--muted); padding: 4px 11px; border-radius: 980px; line-height: 1.3; }
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang a[aria-current] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.nav-links { display: flex; gap: 26px; font-size: .8rem; }
.nav-links a { color: var(--ink); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 104px); text-align: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); justify-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.05; margin-top: 14px; max-width: 15em; margin-inline: auto; letter-spacing: -0.035em; }
.hero .sub { font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); margin: 20px auto 0; max-width: 30em; line-height: 1.35; letter-spacing: -0.02em; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: .9rem; color: var(--muted); justify-content: center; }
.trust span::before { content: "✓ "; color: var(--green); font-weight: 600; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

/* телефон с перепиской WhatsApp */
.phone { background: var(--c-bg); border-radius: 44px; border: 10px solid #1d1d1f; box-shadow: var(--shadow); overflow: hidden; max-width: 340px; width: 100%; justify-self: center; text-align: left; }
.ph-top { background: var(--c-top); color: var(--c-ink); display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ph-top .av { width: 36px; height: 36px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.ph-top b { font-size: .95rem; display: block; line-height: 1.2; font-weight: 600; }
.ph-top small { color: var(--c-sub); font-size: .75rem; }
.ph-body { padding: 14px 10px 16px; display: grid; gap: 6px; align-content: start; background: var(--c-bg); }
.msg { max-width: 82%; padding: 7px 10px 6px; border-radius: 10px; font-size: .88rem; line-height: 1.38; letter-spacing: 0; position: relative; white-space: pre-line; color: var(--c-ink); box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.msg time { display: block; text-align: right; font-size: .66rem; color: var(--c-sub); margin-top: 2px; }
.msg.in { background: var(--c-in); justify-self: start; border-top-left-radius: 3px; }
.msg.me { background: var(--c-me); justify-self: end; border-top-right-radius: 3px; }
.sys { justify-self: center; background: var(--c-sys); color: var(--c-sub); font-size: .75rem; padding: 4px 10px; border-radius: 8px; }
.late { color: var(--red); }

/* секции */
section { padding-block: clamp(72px, 10vw, 120px); }
.alt { background: var(--bg-2); }
.kicker { font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--accent); letter-spacing: -0.01em; }
.kicker.red { color: var(--red); }
.title { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.07; margin-top: 8px; letter-spacing: -0.032em; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin-top: 16px; max-width: 34em; line-height: 1.4; }
.head { margin-bottom: clamp(36px, 5vw, 60px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* плитки */
.pain, .calc, .price, .case, .step, details, .zero, .offer { background: var(--tile); border-radius: 22px; }
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pain { padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.pain .n { font-weight: 700; font-size: 2rem; color: var(--red); line-height: 1; letter-spacing: -0.03em; }
.pain h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.pain p { color: var(--muted); font-size: .95rem; }
.feat .n { color: var(--accent); }

/* калькулятор */
.calc { margin-top: 40px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.calc h3 { font-size: 1.5rem; }
.field { display: grid; gap: 8px; margin-top: 20px; }
.field label { font-size: .92rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.field label b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.result { background: var(--red-soft); border-radius: 18px; padding: 28px 24px; text-align: center; }
.result small { color: var(--muted); font-size: .92rem; display: block; }
.result .sum { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--red); line-height: 1.15; margin: 6px 0; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.result p { color: var(--muted); font-size: .92rem; }
.result .btn { margin-top: 18px; }
.note { font-size: .8rem; color: var(--faint); margin-top: 12px; }

/* демо */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.demo li { display: flex; gap: 12px; align-items: flex-start; }
.demo li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .72rem; margin-top: 2px; }
.chatbox { background: var(--c-bg); border-radius: 28px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; height: 540px; box-shadow: var(--shadow); }
.chatbox .ph-body { overflow-y: auto; scroll-behavior: smooth; }
.typing { display: inline-flex; gap: 4px; padding: 11px 12px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-sub); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--c-quick); min-height: 58px; }
.quick button { background: var(--c-btn); color: var(--c-accent); border: 1px solid var(--c-btn-line); border-radius: 999px; padding: 8px 13px; font: 500 .84rem var(--font); cursor: pointer; }
.quick button:hover { border-color: var(--c-accent); }
.demo-tag { font-size: .68rem; font-weight: 600; color: var(--c-sub); border: 1px solid var(--c-btn-line); padding: 1px 7px; border-radius: 6px; margin-left: auto; }

/* услуги и цены */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.prices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price { padding: 28px 24px; display: grid; gap: 12px; grid-template-rows: auto auto 1fr auto; position: relative; }
.price.hot { box-shadow: inset 0 0 0 2px var(--accent); }
.price.hot::before { content: "Рекомендуем начать с этого"; position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.price .ico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; }
.price .ico svg { width: 24px; height: 24px; }
.price h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.price p { color: var(--muted); font-size: .94rem; }
.cost { border-top: 1px solid var(--line); padding-top: 14px; }
.cost b { font-weight: 700; font-size: 1.5rem; display: block; line-height: 1.2; letter-spacing: -0.02em; }
.cost span { color: var(--muted); font-size: .86rem; }
.zero { margin-top: 16px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.zero p { color: var(--muted); font-size: .96rem; }
.zero b { color: var(--ink); font-weight: 600; }
.small-print { color: var(--faint); font-size: .82rem; margin-top: 16px; text-align: center; }

/* кейсы */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { padding: 30px 26px; display: grid; gap: 12px; align-content: start; }
.case .tag { justify-self: start; font-size: .8rem; font-weight: 600; color: var(--accent); }
.case h3 { font-size: 1.35rem; }
.case p { color: var(--muted); font-size: .96rem; }
.case ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .93rem; }
.case li::before { content: "✓ "; color: var(--green); font-weight: 600; }

/* ниши */
.niche-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.niche-links a { background: var(--tile); color: var(--ink); border-radius: 980px; padding: 12px 22px; font-size: .98rem; font-weight: 500; }
.niche-links a::after { content: " ›"; color: var(--link); }
.niche-links a:hover { text-decoration: none; color: var(--link); }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 30px 26px; counter-increment: s; display: grid; gap: 10px; align-content: start; }
.step::before { content: counter(s); font-weight: 700; font-size: 1.05rem; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: .96rem; }
.honest { margin-top: 24px; text-align: center; color: var(--muted); font-size: .96rem; }
.honest b { color: var(--ink); font-weight: 600; }

/* оффер */
.offer { padding: clamp(32px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--tile)), color-mix(in srgb, #30d158 10%, var(--tile))); }
.offer h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; }
.offer p { color: var(--muted); margin-top: 12px; max-width: 34em; }
.seats { display: flex; gap: 8px; margin-top: 20px; }
.seats i { width: 38px; height: 8px; border-radius: 4px; background: var(--accent); }

/* вопросы */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
details { padding: 0 24px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 300; line-height: 1; flex: none; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; }

/* финал */
.final { text-align: center; }
.final .title { max-width: 16em; margin-inline: auto; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.alt-contacts { margin-top: 20px; color: var(--muted); font-size: .95rem; }

footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 22px 34px; font-size: .78rem; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* плавающая кнопка WhatsApp на телефоне */
.fab { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: none; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); }
.fab svg { width: 30px; height: 30px; }

/* блог */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post { background: var(--tile); border-radius: 22px; padding: 28px 26px; display: grid; gap: 10px; align-content: start; color: var(--ink); transition: transform .25s; }
.post:hover { text-decoration: none; transform: translateY(-3px); }
.post time { font-size: .82rem; color: var(--faint); }
.post h3 { font-size: 1.25rem; line-height: 1.25; }
.post p { color: var(--muted); font-size: .95rem; }
.article { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.article .wrap { max-width: 720px; }
.article h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.07; letter-spacing: -0.035em; }
.article .meta { color: var(--faint); font-size: .9rem; margin-top: 16px; }
.article .lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); margin-top: 24px; line-height: 1.4; }
.prose { margin-top: 12px; font-size: 1.1rem; line-height: 1.6; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 48px 0 14px; letter-spacing: -0.028em; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 8px; }
.prose b { font-weight: 600; }
.table { overflow-x: auto; margin: 8px 0 16px; border-radius: 16px; background: var(--bg-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--muted); font-size: .85rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:not(:first-child), .prose th:not(:first-child) { white-space: nowrap; }
.article-cta { margin-top: 40px; background: var(--bg-2); border-radius: 22px; padding: 28px; display: grid; gap: 18px; justify-items: start; }
.article-cta p { color: var(--muted); }
.article-cta b { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .posts { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .msg { animation: pop .25s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .pains, .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prices.three, .cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .demo, .calc, .offer { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .chatbox { height: 500px; }
  .fab { display: grid; }
  .ctas .btn { flex: 1 1 100%; }
}
@media (max-width: 520px) {
  .pains, .prices { grid-template-columns: minmax(0, 1fr); }
  .nav .btn { display: none; }
  body { font-size: 16px; }
}
