/* Базовые стили: сброс, типографика, сетка, кнопки, общие блоки */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: none; /* статический рисунок Inter как в Figma, без Display-форм на крупных кеглях */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* фокус для клавиатуры */
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .pill:focus-visible { outline-offset: 2px; border-radius: var(--radius-pill); }

/* сетка */
.page { width: 100%; position: relative; overflow-x: clip; }
/* Макет только 1440. На широких экранах страница масштабируется пропорционально ширине окна (как Figma, вписанный в экран):
   все отступы, фоны и шрифты растут одинаково. Коэффициент пишет js/main.js в --page-zoom = ширина окна / 1440. */
@media (min-width: 1280px) {
  html:not([data-scale="off"]) .page { width: 1440px; margin: 0 auto; zoom: var(--page-zoom, 1); }
}
.container { width: 100%; max-width: var(--content-w); margin: 0 auto; padding: 0; }
.section { position: relative; width: 100%; }

/* типографика по макету */
.h1 { font-weight: 500; font-size: 72px; line-height: 84px; letter-spacing: -2.88px; }
.h2 { font-weight: 500; font-size: 64px; line-height: 68px; letter-spacing: -2.56px; }
.h3 { font-weight: 500; font-size: 48px; line-height: 60px; letter-spacing: -1.92px; }
.lead { font-weight: 400; font-size: 24px; line-height: 32px; letter-spacing: -0.72px; color: var(--c-text-2); }
.lead--20 { font-size: 20px; line-height: 32px; letter-spacing: -0.6px; }
.t-center { text-align: center; }
.text-block { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; width: 100%; max-width: 100%; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 16px; line-height: 16px; letter-spacing: -0.32px;
  white-space: nowrap; transition: background-color .15s ease, filter .15s ease, transform .15s ease;
}
.btn > span { padding-bottom: 2px; } /* оптическая компенсация как в макете */
.btn--surface { background: var(--c-surface); color: var(--c-text); }
.btn--surface:hover { background: #e3e8f2; }
.btn--brand { background: var(--c-brand); color: var(--c-on-brand); }
.btn--brand:hover { filter: brightness(0.93); }
.btn--white { background: var(--c-white); color: var(--c-text); }
.btn--white:hover { background: #f4f6fb; }
.btn--lg { height: 72px; padding: 0 32px; gap: 16px; font-size: 18px; letter-spacing: -0.36px; }
.btn--lg .btn__icon { width: auto; height: 24px; flex: none; margin: 0 -.5px; }

/* пилюля с кнопкой и подписью «Первый анализ бесплатно» */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 32px;
  padding: 8px 48px 8px 8px; border-radius: var(--radius-pill); overflow: hidden; isolation: isolate;
}
.pill > * { position: relative; z-index: 2; }
.pill__label { display: flex; align-items: center; gap: 16px; }
.pill__label img { width: auto; height: 24px; flex: none; margin: 0 -1.5px; position: relative; top: -2px; }
.pill__label-text { width: 120px; font-weight: 500; font-size: 16px; line-height: 20px; letter-spacing: -0.32px; }
.pill__bg { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; }
.pill__bg::before { /* белая вуаль поверх живого градиента: в Figma пилюля почти белая с цветной кромкой */
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none; background: transparent; }
.pill__bg::after { /* внутреннее белое свечение поверх градиента */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  box-shadow: none;
}
.pill__color { position: absolute; inset: 0 auto 0 0; width: 268px; z-index: 1; background: var(--c-pill-color); opacity: 1;
  -webkit-mask: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 20%, rgba(0,0,0,.77) 33.3%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.23) 66.7%, rgba(0,0,0,.08) 80%, transparent 100%); mask: linear-gradient(90deg, #000 0%, rgba(0,0,0,.85) 20%, rgba(0,0,0,.77) 33.3%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.23) 66.7%, rgba(0,0,0,.08) 80%, transparent 100%); }
.pill__blur { position: absolute; inset: 0 0 0 236px; z-index: 2; border-radius: 0 333px 333px 0; pointer-events: none;
  backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 96px); mask: linear-gradient(90deg, transparent 0, #000 96px); /* мягкий вход размытия, без вертикального шва */
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 20%, rgba(255,255,255,.2) 33%, rgba(255,255,255,.42) 47%, rgba(255,255,255,.66) 60%, rgba(255,255,255,.86) 73%, rgba(255,255,255,.97) 84%, #fff 90%, #fff 100%); }
.pill--static .pill__bg { background: var(--c-white); }
.pill--static .pill__bg::after { box-shadow: inset 0 0 24px 24px rgba(255,255,255,.5), inset 0 0 32px 16px rgba(255,255,255,.8); }

/* стеклянная карточка внутри макетов секции «Отчёты» */
.glass {
  position: absolute; background: rgba(255,255,255,.8); border: 2px solid var(--c-surface);
  box-shadow: 0 0 0 4px #fff; border-radius: 20.6px; padding: 20.6px;
  backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); overflow: hidden;
}

/* подложка «белое + blur» */
.frost { background: rgba(255,255,255,.8); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); }

/* пилюля первого экрана: статичная, как в макете (зелёное кольцо у кнопки, вправо растворяется в белый) */
.pill--hero .pill__bg { background: linear-gradient(90deg, #00ff7f 0, #6cff8e 50px, #b2ff8a 160px, #c9ff8e 260px, #dfffb2 350px, #ecffd4 430px, #f2ffe6 500px); } /* заливка до правого края: форма пилюли читается целиком, как в макете */
.pill--hero .pill__bg::before, .pill--hero .pill__bg::after { display: none; }
