/* Стиль лендинга и документов CifraStat.
   Гамма — фиолет сервиса (#5B5BD6), манера — как у современных SaaS-лендингов:
   крупные скругления, мягкие цветные тени, градиентные кнопки, центрованные секции. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}

:root {
  --violet: #5B5BD6;
  --violet-deep: #4442c0;
  --ink: #17172b;
  --muted: #65656b;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --line: #e6e8f1;
  --green: #17a86b;
  --grad: linear-gradient(115deg, #7a6cf0, #5b5bd6 56%, #4442c0);
  --grad-tint: linear-gradient(145deg, #efeefc, #fbf0f8);
  --grad-dark: linear-gradient(145deg, #14142e, #232064 52%, #3a2b6e);
  --shadow: 0 24px 80px rgba(59, 54, 150, .14);
  --shadow-soft: 0 12px 40px rgba(59, 54, 150, .09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* Шапка */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.3rem; text-decoration: none;
  color: var(--ink); letter-spacing: -.01em;
}
.logo b { color: var(--violet); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, #5B5BD6 0%, #8B5CF6 58%, #AF37DE 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 14px -4px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-mark img { width: 20px; height: auto; display: block; }
nav.main { display: flex; gap: 1.5rem; margin-left: auto; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
nav.main a:hover { color: var(--violet-deep); }

/* Кнопки */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 15px;
  background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 1rem;
  box-shadow: 0 12px 30px rgba(91, 91, 214, .25);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(91, 91, 214, .33); }
.btn.ghost {
  background: rgba(255, 255, 255, .85); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(59, 54, 150, .06);
}
.btn.ghost:hover { border-color: #c3c2ee; background: #fff; }
header.site .btn { padding: .55rem 1.2rem; border-radius: 12px; font-size: .92rem; }

/* Секции */
section { padding: 4rem 0 6.5rem; }
section.tint { background: var(--grad-tint); }
.section-heading { text-align: center; max-width: 800px; margin: 0 auto 3.25rem; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .09em;
  text-transform: uppercase; color: var(--violet-deep);
  background: rgba(91, 91, 214, .09); border: 1px solid rgba(91, 91, 214, .18);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08;
  letter-spacing: -.02em; margin: 1.4rem auto 1.4rem; max-width: 60rem;
}
h1 .grad, h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .9rem; }
h3 { font-size: 1.08rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
.lead, .sub { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.58; margin: 0; }

/* Герой */
.hero { padding: 4rem 0 0; text-align: center; background: var(--grad-tint); overflow: hidden; }
.hero-shot { margin-top: 3.2rem; }
.hero-shot img {
  display: block; width: min(980px, 100%); height: auto; margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(59, 54, 150, .18));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid rgba(91, 91, 214, .22); background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px); color: #4a4a63; font-size: .82rem; font-weight: 700;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 5px rgba(23, 168, 107, .13);
}
.hero-brand { font-weight: 900; }
.hero-roles {
  text-transform: uppercase; font-size: .92rem; font-weight: 650;
  letter-spacing: .07em;
}
.hero .lead { max-width: 48rem; margin: 0 auto; }
.hero-actions { margin: 2.2rem 0 1.4rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; }
.hero-notes {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.4rem;
  color: var(--muted); font-size: .85rem; font-weight: 600;
}

/* Карточки */
.grid { display: grid; gap: 1.4rem; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem;
  box-shadow: var(--shadow-soft);
}
.card .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(91, 91, 214, .1); color: var(--violet-deep);
  margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
section.dark .card .icon { background: rgba(255, 255, 255, .12); color: #fff; }
.card .num {
  display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .06em;
  color: var(--violet-deep); background: rgba(91, 91, 214, .09);
  padding: .2rem .65rem; border-radius: 999px; margin-bottom: .7rem;
}
.card p { color: var(--muted); margin: .4rem 0 0; font-size: .95rem; line-height: 1.55; }

/* Тёмная секция */
section.dark { background: var(--grad-dark); color: #fff; }
section.dark .kicker { color: #c7c5ff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
section.dark .sub { color: rgba(255, 255, 255, .72); }
section.dark .card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: none; backdrop-filter: blur(6px);
}
section.dark .card h3 { color: #fff; }
section.dark .card p { color: rgba(255, 255, 255, .72); }

/* Подвал */
footer.site { background: #14142e; color: rgba(255, 255, 255, .6); padding: 3.5rem 0 2rem; }
footer.site .grid { align-items: start; gap: 2.5rem; }
footer.site h3 { color: rgba(255, 255, 255, .88); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
footer.site a { color: rgba(255, 255, 255, .6); text-decoration: none; display: block; margin: .5rem 0; font-size: .92rem; }
footer.site a.logo { display: inline-flex; font-size: 1.3rem; }
footer.site a:hover { color: #fff; }
footer.site .fine {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.4rem;
  font-size: .85rem; color: rgba(255, 255, 255, .45);
}
footer.site .fine a { display: inline; }

/* Страницы документов */
main.doc { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
main.doc h1 { font-size: 1.8rem; margin: 0 0 .5rem; max-width: none; }
main.doc h2 { font-size: 1.2rem; margin-top: 2rem; }
main.doc p, main.doc li { color: var(--ink); font-size: .97rem; }
main.doc a { color: var(--violet-deep); }
main.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }

@media (max-width: 840px) {
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  nav.main { display: none; }
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0 0; }
  .hero-shot { margin-top: 2.2rem; }
}
