/* Say&Match — стили сайта */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --text: #1f2433; --muted: #5f6879; --border: #dde2eb;
  --primary: #3b6fb6; --primary-text: #ffffff; --accent: #a8680c; --it: #6c2bd9; --sql: #e8541f; --gold: #f0b429;
  --radius: 18px; --shadow: 0 6px 24px rgba(31, 36, 51, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161f; --surface: #1f2230; --text: #e6e8ef; --muted: #9ea6ba; --border: #2f3447;
          --accent: #ffd366; --shadow: 0 6px 24px rgba(0, 0, 0, .35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--primary); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.logo img { width: 36px; height: 36px; }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 auto; }
section { padding: 32px 0; }
h2 { font-size: 28px; margin: 0 0 18px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.app-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.app-head img { width: 84px; height: 84px; flex: none; }
.app-head h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.app-head .tag { color: var(--muted); font-size: 15px; }
.card ul { padding-left: 20px; margin: 10px 0 16px; }
.badge { display: inline-block; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--border); color: var(--muted); }
.card.it { border-top: 4px solid var(--it); }
.card.main { border-top: 4px solid var(--primary); }
table.prices { width: 100%; border-collapse: collapse; }
table.prices td { padding: 12px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices .price { font-weight: 700; white-space: nowrap; text-align: right; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 12px; background: var(--primary); color: var(--primary-text);
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border: 0; }
.btn.gold { background: var(--gold); color: #2a1f00; }
.btn.disabled { opacity: .55; pointer-events: none; }
td.buy { text-align: right; width: 1%; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
.note { color: var(--muted); font-size: 15px; }
footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; font-size: 15px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
footer a { color: var(--muted); }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px clamp(18px, 4vw, 44px); margin: 32px auto; }
.doc h1 { font-size: 28px; line-height: 1.25; margin-top: 0; }
.doc h2 { font-size: 20px; margin: 28px 0 10px; }
.doc p, .doc li { margin: 8px 0; }
@media (max-width: 560px) {
  nav a { margin: 0 14px 0 0; }
  table.prices td { display: block; padding: 4px 0; text-align: left; }
  table.prices tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.prices td { border: 0; }
  table.prices .price, td.buy { text-align: left; }
}
.btn.store { margin-top: 6px; }
.btn.store.it { background: var(--it); }

.card.sql { border-top: 4px solid var(--sql); }
.btn.store.sql { background: var(--sql); }
