/* chotko.kz — общий CSS. Токены = ChotkoTheme.swift, байт в байт с приложением.
   Правила площадки (README): системные шрифты, ноль внешних запросов, тёмная тема,
   один акцент #c8ff2e. Текст ВЕЗДЕ прижат влево — плоская центрированная колонка
   запрещена DESIGN.md §1. */

:root {
  --bg: #000000;
  --surface: #171717;
  --surface-2: #292929;
  --hairline: #383838;
  --text: #ffffff;
  --text-2: #9e9e9e;
  --text-3: #666666;
  --accent: #c8ff2e;
  --on-accent: #000000;
  --glow: #344210;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- шапка ---------- */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  /* только padding-top: шорткат padding обнулил бы боковые отступы .wrap
     (один раз уже обнулил — шапка доезжала до края экрана) */
  padding-top: 22px;
}
.mark {
  display: inline-block;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 10px 4px;
  text-transform: uppercase;
  transform: rotate(-4deg);
  text-decoration: none;
}
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .top nav { gap: 22px; }
  .top nav a { font-size: 15px; }
}
.top nav a.hot { color: var(--accent); }
.top nav a:active { color: var(--text); }

/* ---------- герой ---------- */
.hero {
  position: relative;
  overflow: hidden; /* обрезает свечение и призрак ₸ */
}
.hero-glow {
  position: absolute;
  top: -260px;
  left: -180px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, rgba(52,66,16,0.4) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  /* не шорткат padding — см. .top */
  padding-top: 44px;
  padding-bottom: 8px;
}
.overline {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1 {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lede {
  font-size: 19px;
  line-height: 1.42;
  margin: 0 0 14px;
  max-width: 30em;
}
.lede b { color: var(--accent); font-weight: 700; }
.privacy-line {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 30px;
}
.privacy-line a { color: var(--text-2); }
.hero-shot { max-width: 320px; margin: 0 auto; }
.hero-cta { max-width: 420px; }

/* ---------- кнопки ---------- */
.btn {
  display: block;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 17px 20px;
  text-align: center;
  text-decoration: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.btn-note { color: var(--text-2); font-size: 14px; margin: 10px 0 0; }
.btn-note b { color: var(--text); font-weight: 600; }

/* ---------- секции ---------- */
section { margin-top: 56px; }
h2.overline { margin-bottom: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 18px 20px;
}
.note { color: var(--text-2); font-size: 14px; margin: 14px 0 0; }

/* ---------- галерея экранов ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.shot {
  scroll-snap-align: start;
  background: linear-gradient(160deg, #101207 0%, var(--surface) 55%);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 22px 22px 0;
  overflow: hidden;
}
.shot h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.shot p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; }
.shot img { max-width: 230px; margin: 0 auto -40px; }

/* ---------- шаги ---------- */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li { padding-left: 34px; margin-bottom: 16px; position: relative; }
ol.steps li:last-child { margin-bottom: 0; }
ol.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  height: 24px;
  line-height: 22px;
  text-align: center;
  width: 24px;
}

/* ---------- приватность ---------- */
.privacy-big { font-size: 17px; margin: 0; }
.privacy-big b { color: var(--accent); font-weight: 700; }
.privacy-big span { color: var(--text-2); display: block; margin-top: 8px; font-size: 15px; }

/* ---------- форма ---------- */
input[type="email"], input[type="text"] {
  background: #000;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  margin-bottom: 10px;
  padding: 16px;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: var(--text-3); }
input:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.field-label {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 8px;
}
.card-lede { margin: 0 0 16px; }
.card-gap { margin-bottom: 36px; }
.back-link { margin-top: 28px; }

/* ---------- сотрудничество ---------- */
.collab { border-top: 1px solid var(--hairline); padding-top: 40px; }
.collab .lede { margin-bottom: 8px; }
.collab .en { color: var(--text-3); font-size: 15px; margin: 14px 0 0; }
.collab a.mail {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- подвал ---------- */
footer {
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font-size: 14px;
  margin-top: 56px;
  padding: 22px 0 56px;
}
footer a { color: var(--text-2); text-decoration: none; }
footer p { margin: 0 0 8px; }
footer .name { color: var(--text-2); font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; }

/* ---------- юридические страницы ---------- */
.doc { max-width: 640px; }
.doc h1 { font-size: 32px; margin-top: 40px; }
.doc .updated { color: var(--text-3); font-size: 14px; margin: 0 0 28px; }
.doc h2.plain {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
  margin: 30px 0 8px;
}
.doc p { color: var(--text-2); margin: 0 0 14px; }
.doc p b, .doc p strong { color: var(--text); }
.doc .headline { font-size: 19px; color: var(--text); font-weight: 700; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0 14px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 10px 0 6px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); float: right; font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); margin: 6px 0 0; }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  h1 { font-size: 54px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding-top: 72px;
    padding-bottom: 24px;
  }
  .hero-shot { max-width: 360px; margin: 0; }
  .shots { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .shot img { max-width: 200px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  form { max-width: 440px; }
}
