/* widgets.reform.bz — главная (каталог виджетов Reform). Значения — из Reform design system (brand/tokens). */

@font-face {
  font-family: "Montserrat";
  src: url("montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #12112c;          /* graphite-900: основной тёмный фон */
  --card: #2b2742;         /* graphite-800: карточки на тёмном */
  --marengo: #5a566d;      /* graphite-500: служебные подписи */
  --lavender: #d1d5ff;     /* основной текст на тёмном */
  --lavender-300: #b5b4d6; /* вторичный текст на тёмном */
  --brand: #606ded;
  --brand-hover: #4a54d8;
  --brand-soft: rgba(96, 109, 237, 0.25);
  --lime: #ccf75e;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --light-bg: #f6f6fe;
  --white: #fff;
  --shadow-light: 0 8px 24px rgba(125, 117, 178, 0.12);
  --pad: 56px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--lavender);
  font-family: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--lavender); text-decoration: none; }
a:hover { color: var(--lime); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--max); margin: 0 auto; }
.header, .hero, .why, .catalog, .footer { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.eyebrow--brand { color: var(--brand-hover); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 28px; border-radius: 10px; font-weight: 700; font-size: 16px; color: var(--white); white-space: nowrap; }
.btn--primary { background: var(--brand); box-shadow: 0 10px 30px rgba(96, 109, 237, 0.35); }
.btn--primary:hover { background: var(--brand-hover); color: var(--white); }
.btn--ghost { border: 1.5px solid var(--line-strong); padding: 0 24px; }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--lime { background: var(--lime); color: var(--ink); height: 56px; }
.btn--lime:hover { background: #d6f87d; color: var(--ink); }

/* Шапка */
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--pad); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--white); }
.brand img { height: 34px; width: auto; display: block; }
.brand__name:hover { color: var(--lime); }
.brand__sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.16); }
.brand__name { font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.lang { font-size: 13px; font-weight: 700; display: inline-flex; gap: 4px; }
.lang .on { color: var(--white); }
.lang a { color: var(--lavender-300); }
.lang__sep { color: var(--marengo); }
.nav .support { gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--card); color: var(--white); font-weight: 700; }
.nav .support:hover { color: var(--lime); }

/* Первый экран */
.hero { padding: 112px var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 30px; padding: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 4px; flex: none; }
.dot--amo { background: var(--brand); }
.dot--kommo { background: var(--lime); }
.hero h1 { font-size: 76px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; color: var(--white); max-width: 1040px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: 19px; line-height: 1.6; max-width: 660px; text-wrap: pretty; }
.hero__actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* Почему мы делаем виджеты */
.why { padding: 0 var(--pad) 112px; display: flex; flex-direction: column; gap: 88px; scroll-margin-top: 24px; }
.letter-head { border-top: 1px solid var(--line); padding-top: 80px; display: flex; flex-direction: column; gap: 18px; margin-bottom: -40px; }
.letter-head h2 { font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; color: var(--white); max-width: 980px; text-wrap: balance; }
.letter { display: grid; grid-template-columns: 250px 1fr; gap: 64px; align-items: start; }
.founder { display: flex; flex-direction: column; gap: 16px; }
.founder__photo { width: 200px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(204, 247, 94, 0.35), 0 24px 60px rgba(96, 109, 237, 0.25); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__name { font-size: 20px; font-weight: 700; color: var(--white); }
.founder__role { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.letter__text { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.letter__text p { font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.letter__text .accent { font-size: 24px; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; color: var(--lime); padding-left: 24px; border-left: 2px solid var(--lime); }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.benefit__icon { width: 48px; height: 48px; border-radius: 24px; background: var(--brand-soft); color: var(--lavender); display: flex; align-items: center; justify-content: center; }
.benefit__icon .icon { width: 22px; height: 22px; }
.benefit h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--white); line-height: 1.3; }
.benefit p { font-size: 15px; line-height: 1.6; }
.benefit--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.benefit--lime h3 { color: var(--ink); }
.benefit--lime .benefit__icon { background: var(--ink); color: var(--lime); }

/* Почему Reform */
.about { background: var(--light-bg); color: var(--marengo); padding: 96px var(--pad); }
.about__in { max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about h2 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.about p { font-size: 17px; line-height: 1.6; }
.about__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-hover); }
.about__link:hover { color: var(--brand-hover); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--white); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-light); }
.stat b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.15; }
.stat span { display: block; font-size: 15px; margin-top: 6px; }
.stat--brand { background: var(--brand); box-shadow: none; }
.stat--brand b, .stat--brand span { color: var(--white); }

/* Каталог */
.catalog { display: grid; grid-template-columns: 280px 1fr; scroll-margin-top: 24px; }
.filters { border-right: 1px solid var(--line); padding: 96px 32px 96px var(--pad); display: flex; flex-direction: column; gap: 36px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group__title { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #8d89a6; margin-bottom: 10px; }
.filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 600; font-size: 15px; padding: 11px 14px; border-radius: 10px; background: transparent; color: var(--lavender); white-space: nowrap; }
.filter:hover { background: rgba(43, 39, 66, 0.6); }
.filter__label { display: inline-flex; align-items: center; gap: 10px; }
.filter__count { color: #8d89a6; }
.filter[aria-pressed="true"] { background: var(--card); color: var(--white); }
.filter[aria-pressed="true"] .filter__count { color: var(--lime); }
.dot--all { background: var(--lavender-300); }
.help-card { background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.help-card__icon { width: 40px; height: 40px; border-radius: 20px; background: var(--brand-soft); color: var(--lavender); display: flex; align-items: center; justify-content: center; }
.help-card b { font-size: 16px; color: var(--white); }
.help-card span { font-size: 14px; line-height: 1.5; }
.help-card a { font-weight: 700; font-size: 14px; color: var(--lime); }

.list { padding: 96px var(--pad); display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.list__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.list__head div { display: flex; flex-direction: column; gap: 14px; }
.list__head h2 { font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.list__count { font-size: 15px; color: var(--lavender-300); white-space: nowrap; }
.row-num { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; color: #8d89a6; padding-top: 4px; }
.widget { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 40px 0; border-top: 1px solid var(--line); }
.widget[hidden] { display: none; }
.widget__body { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; }
.widget__media { display: flex; flex-direction: column; gap: 16px; }
.widget__shot { height: 300px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.widget__shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.widget__actions { display: flex; flex-direction: column; gap: 8px; }
.widget__more { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 10px; background: var(--brand); color: var(--white); font-weight: 700; font-size: 15px; }
.widget__more:hover { background: var(--brand-hover); color: var(--white); }
.widget__install { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line-strong); color: var(--white); font-weight: 700; font-size: 15px; }
.widget__install:hover { border-color: var(--lime); color: var(--lime); }
.widget__info { display: flex; flex-direction: column; gap: 16px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, 0.16); padding: 5px 11px; border-radius: 30px; font-size: 12px; font-weight: 700; color: var(--white); }
.badge .dot { width: 7px; height: 7px; }
.badge--price { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.widget__name { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.widget__promise { font-size: 18px; line-height: 1.5; color: var(--white); font-weight: 500; }
.bullets { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; line-height: 1.55; }
.bullets .check { width: 24px; height: 24px; border-radius: 12px; background: var(--brand-soft); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.bullets .check .icon { width: 14px; height: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 600; margin-top: auto; padding-top: 8px; }
.tags span { background: rgba(96, 109, 237, 0.22); padding: 5px 11px; border-radius: 30px; }
.next { display: grid; grid-template-columns: 40px 1fr 230px; gap: 20px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next b { display: block; font-size: 20px; font-weight: 700; color: var(--white); }
.next span.next__text { display: block; font-size: 15px; margin-top: 6px; }
.next__idea { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; border: 1.5px dashed rgba(204, 247, 94, 0.6); color: var(--lime); font-weight: 700; font-size: 15px; }
.next__idea:hover { border-style: solid; }
.empty { padding: 32px 0; border-top: 1px solid var(--line); color: var(--lavender-300); }

/* Баннер и подвал */
.banner { max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 72px; background: var(--brand); border-radius: 24px; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.banner h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.banner p { font-size: 17px; color: var(--white); margin-top: 8px; }
.footer { border-top: 1px solid var(--line); padding: 40px var(--pad); display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; font-size: 14px; line-height: 1.6; }
.footer img { height: 30px; width: auto; }
.footer__legal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--lavender-300); }
.footer__legal a { text-decoration: underline; }
.footer__contacts { display: flex; flex-direction: column; gap: 4px; font-weight: 600; text-align: right; }

/* Адаптив */
@media (max-width: 1200px) {
  :root { --pad: 40px; }
  .hero h1 { font-size: 64px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .widget__body { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
  .widget__shot { height: 250px; }
}
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav .hide-md { display: none; }
  .letter { grid-template-columns: 220px 1fr; gap: 40px; }
  .letter-head h2 { font-size: 42px; }
  .founder__photo { width: 180px; }
  .about__in { grid-template-columns: 1fr; gap: 40px; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .filters { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 56px var(--pad) 24px; gap: 16px; }
  .filter-group { min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .filter-group__title { flex: 0 0 100%; margin: 0 0 4px; }
  .filter { flex: none; gap: 8px; box-shadow: inset 0 0 0 1px var(--line); }
  .filter[aria-pressed="true"] { box-shadow: none; }
  .help-card { display: none; }
  .list { padding-top: 48px; }
}
@media (max-width: 767px) {
  :root { --pad: 16px; }
  .header { padding-top: 16px; padding-bottom: 16px; }
  .brand img { height: 26px; }
  .brand__sep, .brand__name { display: none; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .nav .support { height: 40px; padding: 0 12px; }
  .hero { padding-top: 64px; padding-bottom: 72px; gap: 22px; }
  .hero h1 { font-size: 40px; line-height: 1.06; }
  .hero h1 br { display: none; }
  .hero p { font-size: 17px; }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .btn { height: 54px; }
  .why { gap: 48px; padding-bottom: 72px; }
  .letter-head { padding-top: 56px; margin-bottom: -20px; gap: 14px; }
  .letter-head h2 { font-size: 30px; }
  .letter { grid-template-columns: 1fr; gap: 28px; }
  .founder { flex-direction: row; align-items: center; gap: 16px; }
  .founder__photo { width: 112px; border-radius: 16px; flex: none; }
  .letter__text p { font-size: 16px; }
  .letter__text .accent { font-size: 19px; padding-left: 16px; }
  .benefits { grid-template-columns: 1fr; }
  .about { padding-top: 64px; padding-bottom: 64px; }
  .about h2 { font-size: 30px; }
  .stats { gap: 12px; }
  .stat { padding: 20px; }
  .stat b { font-size: 32px; }
  .stat span { font-size: 13px; }
  .list { padding-top: 32px; padding-bottom: 56px; gap: 24px; }
  .list__head h2 { font-size: 34px; }
  .widget { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .widget__body { grid-template-columns: 1fr; gap: 20px; }
  .widget__media { order: 0; }
  .widget__shot { height: auto; aspect-ratio: 6 / 5; }
  .widget__name { font-size: 26px; }
  .next { grid-template-columns: 1fr; gap: 14px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; margin-bottom: 48px; }
  .banner h2 { font-size: 24px; }
  .banner .btn { align-self: stretch; }
  .footer { grid-template-columns: 1fr; gap: 20px; }
  .footer__contacts { text-align: left; order: 1; }
  .footer__legal { order: 2; }
  .footer__legal { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Страница «Политики конфиденциальности» */
.policies { max-width: var(--max); margin: 0 auto; padding: 96px var(--pad) 112px; display: flex; flex-direction: column; gap: 24px; }
.policies h1 { font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.policies p { font-size: 17px; line-height: 1.6; max-width: 720px; }
.policy-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 720px; }
.policy-list li { border-bottom: 1px solid var(--line); }
.policy-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 700; color: var(--white); }
.policy-list a:hover { color: var(--lime); }
@media (max-width: 767px) { .policies { padding-top: 56px; } .policies h1 { font-size: 28px; overflow-wrap: anywhere; hyphens: auto; } }
