/* SARC — sarc.tech. Общие стили сайта. Цвета бренда сняты с логотипа приложения. */
:root {
  --blue: #035D9A;
  --blue-hover: #04497A;
  --red: #FF0004;
  --bg: #FFFFFF;
  --bg-alt: #F2F6FA;
  --fg: #15202B;
  --muted: #5B6B7A;
  --card: #FFFFFF;
  --border: #D9E3EC;
  --link: #035D9A;
  --warn-bg: #FFF3C4;
  --warn-fg: #5C4300;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 58, .06), 0 10px 28px rgba(16, 36, 58, .07);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #2F8AD1;
    --blue-hover: #4FA0E0;
    --bg: #0E151C;
    --bg-alt: #141E28;
    --fg: #E8EEF4;
    --muted: #9FB0C0;
    --card: #172331;
    --border: #273A4C;
    --link: #6FB6F2;
    --warn-bg: #3B2F0B;
    --warn-fg: #FFD97A;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --blue: #2F8AD1;
  --blue-hover: #4FA0E0;
  --bg: #0E151C;
  --bg-alt: #141E28;
  --fg: #E8EEF4;
  --muted: #9FB0C0;
  --card: #172331;
  --border: #273A4C;
  --link: #6FB6F2;
  --warn-bg: #3B2F0B;
  --warn-fg: #FFD97A;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Лента «сайт в разработке» */
.ribbon {
  background: var(--warn-bg);
  color: var(--warn-fg);
  font-size: .95rem;
  text-align: center;
  padding: 10px 16px;
}
.ribbon strong { font-weight: 700; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--fg); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--link); }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--fg);
}
.lang:hover { border-color: var(--link); color: var(--link); }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}

/* Hero */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(280px, 60vw); filter: drop-shadow(0 12px 28px rgba(3, 93, 154, .25)); }
.hero-note { font-size: .95rem; color: var(--muted); margin-top: 1.2em; }
@media (max-width: 820px) {
  .hero { padding: 36px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art img { width: 160px; }
}

/* Кнопки */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--muted); font-weight: 600; font-size: .95rem;
  cursor: not-allowed; user-select: none;
}
a.store-active { background: var(--blue); border-color: var(--blue); color: #fff; cursor: pointer; text-decoration: none; }
a.store-active:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.ribbon a { color: inherit; font-weight: 700; }
.badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--warn-bg); color: var(--warn-fg); padding: 2px 8px; border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--card); }
.btn-ghost:hover { border-color: var(--link); color: var(--link); }

/* Секции */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 720px) { .section { padding: 40px 0; } }

/* Карточки возможностей */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
}
.feature .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt);
  font-size: 1.4rem; margin-bottom: 12px;
}
.feature h3 { margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 20px 20px 20px 72px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 800;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); }

/* Для кого */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.audience li { padding: 18px 20px; border-left: 4px solid var(--red); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Форматы */
.formats { display: grid; gap: 18px; }
.formats h3 { margin-bottom: .5em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .92rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Приватность */
.privacy-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.privacy-box .icon { font-size: 2rem; }
.privacy-box p { margin-bottom: .6em; }
@media (max-width: 560px) { .privacy-box { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 46rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Призыв к действию */
.cta { text-align: center; padding: 48px 0; }
.cta p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.2em; }

/* Подвал */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--link); }

/* Текстовые страницы (политика, поддержка, 404) */
.page { padding: 40px 0 64px; }
.prose { max-width: 46rem; }
.prose h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--fg); }
.prose ul { padding-left: 1.3em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; padding: 16px 20px; margin: 1.5em 0 2em; background: var(--bg-alt); border-radius: var(--radius); font-size: .95rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
@media (max-width: 560px) { .meta { grid-template-columns: 1fr; gap: 2px 0; } .meta dt { margin-top: 8px; } }

/* Форма поддержки */
.form-wrap { max-width: 650px; width: 100%; margin: 1.5em 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.form-wrap iframe { display: block; width: 100%; max-width: 100%; min-height: 560px; border: 0; }
.contact-line { font-size: 1.05rem; }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: .2em; }
