/* Landing pages (cashbacksovet.ru): same palette and display face as the app. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #f3ece3;
  --surface: #fffcf8;
  --surface-2: #f8f1e9;
  --border: #e2d6c8;
  --text: #2f3b43;
  --text-2: #685f56;
  --accent: #a0522d;
  --accent-hover: #86431f;
  --accent-soft: #f4e4d9;
  --positive: #5a6a2b;
  --positive-soft: #ebeedb;
  --gold: #d4af37;
  --tg: #2aabee;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 236, 227, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 214, 200, 0.6);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 24px; letter-spacing: 0.01em; }
.top nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--text-2); }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--accent); }
.top .btn { margin-left: 8px; }
@media (max-width: 720px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px; border: 0;
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fffcf8; box-shadow: 0 8px 22px rgba(160, 82, 45, 0.28); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { padding: 48px 0 36px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 64px); margin: 16px 0 16px; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); max-width: 34em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 14px; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.note span::before { content: '✓ '; color: var(--positive); font-weight: 700; }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .cta .btn { flex: 1 1 100%; }
}

/* Phone mockup with a chat */
.phone {
  justify-self: center; width: 100%; max-width: 340px;
  background: #1f2428; border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 60px rgba(47, 59, 67, 0.25);
}
.screen { background: #e9dfd2; border-radius: 32px; overflow: hidden; }
.screen-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); }
.screen-top img { width: 34px; height: 34px; border-radius: 50%; }
.screen-top b { display: block; font-size: 15px; }
.screen-top small { color: var(--text-2); font-size: 12px; }
.chat { padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.msg.me { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 5px; }
.msg .big { font-size: 20px; font-weight: 700; color: var(--positive); }
.msg .row { display: flex; justify-content: space-between; gap: 12px; }
.msg .muted { color: var(--text-2); font-size: 13px; }

/* Sections */
section { padding: 44px 0; }
.section-title { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.section-lead { color: var(--text-2); margin: 0 0 26px; max-width: 40em; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 26px; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--text-2); }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fffcf8;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Scenario: "how much you get" comparison */
.scenario { display: flex; flex-direction: column; gap: 12px; }
.scenario .q { font-weight: 600; }
.compare { display: flex; flex-direction: column; gap: 8px; }
.compare div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 15px;
}
.compare .best { background: var(--positive-soft); font-weight: 600; }
.compare .best b { color: var(--positive); }
.compare b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Feature band */
.band {
  background: linear-gradient(135deg, #3a2a20, #2f3b43);
  color: #f8f1e9; border-radius: 30px; padding: 34px; position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  border: 2px solid rgba(212, 175, 55, 0.45); border-radius: 50%;
}
.band h2 { font-size: clamp(30px, 4.5vw, 42px); margin-bottom: 12px; }
.band p { color: rgba(248, 241, 233, 0.82); max-width: 38em; margin: 0 0 20px; }
.band ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.band li::before { content: '— '; color: var(--gold); }
.band .btn-ghost { background: rgba(255, 252, 248, 0.1); color: #fffcf8; border-color: rgba(255, 252, 248, 0.25); }

/* Trust + FAQ */
.trust { display: flex; flex-wrap: wrap; gap: 10px; }
.trust span {
  padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 15px;
}
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 18px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 0 0 16px; color: var(--text-2); }

/* Final CTA + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
footer { padding: 30px 0 44px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer a { color: var(--text-2); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: none;
}
@media (max-width: 720px) {
  .show-sticky .sticky-cta { display: flex; }
  .sticky-cta .btn { flex: 1; }
  footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.section-lead.centered { margin-left: auto; margin-right: auto; }
.section-lead.fineprint { margin-top: 14px; font-size: 14px; }
