/* Сайт Ciaosmoke. Светлая и тёмная тема, телефон и компьютер. */
:root {
  --bg: #ffffff;
  --soft: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --sub: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --accent: #2f8cf5;
  --accent-ink: #0a6fe0;
  --grad: linear-gradient(120deg, #5ec2ff 0%, #2f8cf5 55%, #1f6fe5 100%);
  --phone: #1d1d1f;
  --shadow: 0 30px 60px -20px rgba(15, 50, 110, .28);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --soft: #111113; --card: #1c1c1e; --text: #f5f5f7; --sub: #a1a1a6;
    --line: rgba(255, 255, 255, .1); --accent-ink: #6cb4ff; --phone: #3a3a3c;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top .grow { flex: 1; }
.lang { font-size: 15px; color: var(--sub); padding: 8px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 17px;
  background: var(--grad); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(31, 111, 229, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(31, 111, 229, .7); }
.btn.ghost { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 24px; text-align: center; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero-icon { width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 24px; box-shadow: 0 18px 40px -14px rgba(31, 111, 229, .55); }
.hero h1 { font-size: clamp(52px, 11vw, 96px); line-height: 1; letter-spacing: -.04em; margin: 0 0 18px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tag { font-size: clamp(22px, 4.2vw, 30px); font-weight: 600; letter-spacing: -.015em; margin: 0 0 12px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--sub); max-width: 640px; margin: 0 auto; }

/* ---------- Телефоны ---------- */
.phone {
  position: relative; width: 260px; aspect-ratio: 1170 / 2532; border-radius: 42px; padding: 9px;
  background: var(--phone); box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.stage { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-top: 56px; padding-bottom: 40px; }
.stage .phone:nth-child(1) { transform: translate(40px, 28px) rotate(-6deg) scale(.9); z-index: 0; }
.stage .phone:nth-child(2) { z-index: 2; width: 290px; }
.stage .phone:nth-child(3) { transform: translate(-40px, 28px) rotate(6deg) scale(.9); z-index: 0; }

/* ---------- Разделы ---------- */
section { padding: 88px 0; }
section.soft { background: var(--soft); }
h2 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
h3 { font-size: 21px; letter-spacing: -.01em; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead2 { font-size: clamp(18px, 2.2vw, 21px); color: var(--sub); }
.more { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 18px; }
.emoji { font-size: 44px; line-height: 1; margin-bottom: 16px; display: block; }

.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.feature.flip > .text { order: 2; }
.feature .media { display: flex; justify-content: center; }
.feature .text p { font-size: 19px; color: var(--sub); }
.feature .text p strong { color: var(--text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
section.soft .chip { background: var(--bg); }

/* Плитки для разделов без скриншота */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.soft .tile { background: var(--bg); }
.tile b { display: block; font-size: 30px; letter-spacing: -.02em; }
.tile span { color: var(--sub); font-size: 15px; }
.tile.wide { grid-column: span 2; }
.bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0 6px; }
.bar i { display: block; height: 100%; width: 62%; border-radius: 99px; background: var(--grad); }

/* ---------- Детали ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
section.soft .card { background: var(--bg); }
.card .emoji { font-size: 34px; margin-bottom: 12px; }
.card p { color: var(--sub); font-size: 16px; margin: 0; }

/* ---------- Ритм ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
section.soft .step { background: var(--bg); }
.step::before {
  counter-increment: s; content: counter(s);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--sub); font-size: 16px; margin: 0; }

/* ---------- Скачать ---------- */
.get { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; text-align: left; }
.get .card h3 { display: flex; align-items: center; gap: 10px; }
.get .note { margin-top: 10px; }

/* ---------- Вопросы ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 300; color: var(--accent-ink); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--sub); margin: -6px 0 22px; padding-right: 40px; }

/* ---------- Подвал ---------- */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer .grow { flex: 1; }
footer a { color: var(--sub); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Телефон ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip > .text { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .get { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .stage { margin-top: 40px; }
  .stage .phone:nth-child(1), .stage .phone:nth-child(3) { display: none; }
  .stage .phone:nth-child(2) { width: 250px; }
  .phone { width: 240px; }
  .grid, .steps, .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .top .btn.small { padding: 0 14px; }
}
