:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #ececec;
  --tile: #f4f3f0;
  --soft: #f2f2f2;
  --accent: #1f6f5c;
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.center { text-align: center; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 9px 16px;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.pill:active { transform: scale(.98); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #333; }
.pill-soft { background: var(--soft); color: var(--ink); }
.pill-soft:hover { background: #e7e7e7; }
.pill-soft svg { width: 10px; height: 10px; fill: currentColor; }
.pill-wide { width: 100%; padding: 13px 18px; font-size: 15px; }
.pill:disabled { opacity: .55; cursor: default; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav-row > .pill { margin-left: auto; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; margin-right: auto; font-size: 14px; color: #333; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.dial { position: absolute; left: 50%; top: 10px; width: min(1200px, 135%); transform: translateX(-50%); pointer-events: none; }
.dial-arc { fill: none; stroke: #cfcfcf; stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; }
.dial-ticks line { stroke: #d9d9d9; stroke-width: 2; stroke-linecap: round; }
.dial-runner { transform-origin: 600px 600px; animation: run 26s linear infinite; }
.dial-runner circle { fill: var(--ink); }
@keyframes run { from { transform: rotate(-80deg); } to { transform: rotate(80deg); } }
@media (prefers-reduced-motion: reduce) { .dial-runner { animation: none; transform: rotate(52deg); } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; color: #333;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-weight: 900; font-size: clamp(32px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 1040px; text-wrap: balance; }
.sub { max-width: 600px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }

/* Audit form */
.audit { width: min(560px, 100%); margin: 34px auto 0; text-align: left; }
.audit-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
.audit-bar:focus-within { border-color: #bdbdbd; }
/* Soft pulse after the header button brings the form into view (main.js). */
.audit-bar.glow { border-color: var(--accent); animation: audit-glow 1.2s ease-out .3s 3; }
@keyframes audit-glow {
  0% { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06), 0 0 0 0 rgba(31,111,92,.5), 0 0 0 rgba(31,111,92,0); }
  35% { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06), 0 0 0 7px rgba(31,111,92,.22), 0 0 30px rgba(31,111,92,.35); }
  100% { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06), 0 0 0 16px rgba(31,111,92,0), 0 0 30px rgba(31,111,92,0); }
}
@media (prefers-reduced-motion: reduce) { .audit-bar.glow { animation: none; } }
.audit-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; }
.audit-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 8px 2px; color: var(--ink); }
.audit-bar input::placeholder { color: var(--faint); }
.audit-meta { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.audit-hint { margin: 10px 0 0; text-align: center; font-size: 14px; color: #b42318; }
.audit-meta svg { width: 12px; height: 12px; fill: var(--muted); }
.audit-meta select { font: inherit; font-weight: 500; color: var(--ink); border: 0; background: transparent; cursor: pointer; padding: 2px; }
.audit-step {
  margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05); animation: rise .25s ease-out;
  scroll-margin-top: 76px; /* main.js scrolls the step to the top; keep it clear of the sticky header */
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.audit-step-title { margin: 0; font-weight: 600; font-size: 16px; }
.audit-step-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.audit-step label { display: grid; gap: 6px; font-size: 13px; color: #444; }
.audit-step input:not([type=radio]):not([type=checkbox]) {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; background: #fff; color: var(--ink);
}
.audit-step input:focus { outline: 2px solid #111; outline-offset: -1px; border-color: transparent; }
.methods { display: flex; gap: 18px; margin: 14px 0 4px; font-size: 14px; }
.methods label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); cursor: pointer; }
.audit-step .consent { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 2px; }
.status { margin: 10px 0 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.status.error { color: #b42318; }
.audit-done { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: #eef6f2; }
.audit-done p { margin: 0; font-size: 15px; }
.done-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }

/* App illustration: the real «Календарь» view of app.getcoms.kz (styles follow bot/public/app/app.css). */
.app { margin: 64px auto 0; max-width: 1040px; border: 1px solid #e6e6e6; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.22); }
.app-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f7f7f7; border-bottom: 1px solid #eee; font-size: 12px; color: var(--faint); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e2e2; }
.app-bar span { margin-left: 10px; }
.app-body { display: grid; grid-template-columns: 170px 1fr; text-align: left; }
.app-side { padding: 16px 12px; border-right: 1px solid #f0f0f0; background: #fafaf8; font-size: 13px; }
.side-brand { display: flex; align-items: center; gap: 8px; margin: 0 8px; font-weight: 700; font-size: 15px; }
.side-h { margin: 16px 8px 6px; font-size: 11px; color: var(--faint); }
.side-i { display: block; padding: 6px 8px; border-radius: 8px; color: #444; }
.side-i.on { background: #ebebe8; color: var(--ink); font-weight: 500; }
.app-main { min-width: 0; padding: 18px 20px 20px; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.cal-head strong { font-weight: 600; font-size: 18px; }
.cal-month { font-size: 15px; font-weight: 500; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 6px; }
.cal-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #b9b9b4; }
.cal-dot.ok { background: var(--accent); }
.cal-dot.hot { background: #c98a00; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-weekdays { margin-top: 16px; }
.cal-weekdays span { padding: 0 8px 6px; font-size: 12px; font-weight: 500; color: var(--faint); }
.cal-weekdays span:nth-child(n+6) { color: #c08080; }
.cal-grid { grid-auto-rows: minmax(112px, auto); }
.cal-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cal-day.out { border-style: dashed; background: transparent; }
.cal-day.out .cal-num { color: #cfcfca; }
.cal-day.past { background: #fafaf8; }
.cal-day.past .cal-num { color: var(--faint); }
.cal-num { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.today .cal-num { display: grid; place-items: center; width: 24px; height: 24px; margin: -3px 0 -3px -2px; border-radius: 50%; background: var(--ink); color: #fff; }
.cal-chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; color: #333; }
.cal-chip time { flex: none; color: var(--faint); font-variant-numeric: tabular-nums; }
.cal-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-thumbs { display: flex; gap: 4px; margin-top: auto; }
/* Post covers drawn in CSS: a colour, two «text» lines, and a play mark for Reels. */
.cv { position: relative; width: 22px; height: 29px; border-radius: 4px; background: var(--cv); overflow: hidden; }
.cv::before { content: ""; position: absolute; left: 4px; right: 5px; top: 5px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 5px 0 -0.5px rgba(255,255,255,.55); }
.cv.r::after { content: ""; position: absolute; left: 8px; bottom: 5px; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent #fff; }
.c1 { --cv: #2f6f5c; } .c2 { --cv: #c98a3a; } .c3 { --cv: #4a6fa5; } .c4 { --cv: #b5524a; } .c5 { --cv: #7a5ea8; }
.app-note { max-width: 640px; margin: 14px auto 0; text-align: center; font-size: 13px; color: var(--faint); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: #fafaf8; }
h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }

/* What we do: four cards, two by two. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin-inline: auto; }
.feat { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feat h3 { font-weight: 700; font-size: 22px; line-height: 1.22; margin-bottom: 10px; }
.feat p:last-child { margin: 0; font-size: 16px; color: var(--muted); }

.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font-weight: 500; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; color: var(--faint); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 17px; max-width: 680px; }


/* Hero facts: three short promises under the subtitle. */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }

/* Legal pages. */
.doc { max-width: 760px; padding: 56px 0 88px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.doc p, .doc li { color: #333; font-size: 16px; }
.doc .updated { color: var(--faint); font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 860px) {
  /* iPhone zooms into fields with text under 16px, which leaves the page wider than the screen. */
  .audit input, .audit select, .audit-step input:not([type=radio]):not([type=checkbox]) { font-size: 16px; }
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .hero-inner { padding-top: 40px; }
  .audit-bar { flex-wrap: wrap; border-radius: 18px; padding: 8px; }
  .audit-bar input { flex-basis: calc(100% - 30px); }
  .audit-bar .pill { width: 100%; padding: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .facts { flex-direction: column; align-items: center; gap: 4px; }
  .facts li { display: block; text-align: center; }
  .facts strong { margin-right: 6px; }
  .app { margin-top: 40px; }
  .app-main { padding: 14px 10px 12px; }
  .cal-head strong { font-size: 16px; }
  .cal-legend { margin-left: 0; }
  .cal-weekdays, .cal-grid { gap: 4px; }
  .cal-weekdays span { padding: 0 0 4px; text-align: center; }
  .cal-grid { grid-auto-rows: minmax(56px, auto); }
  .cal-day { align-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; }
  .today .cal-num { width: 22px; height: 22px; margin: 0; font-size: 12px; }
  .cal-num { font-size: 12px; }
  .cal-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .cal-chip time, .cal-chip span, .cal-thumbs { display: none; }
}
