/* ==========================================================================
   Simple2FA — стили главной страницы.
   Шрифт Golos Text self-hosted, палитра и сетка по макету из design-export.
   Пороги адаптива: 1280 / 1024 / 768 / 480 (плюс 640 для сетки интеграций).
   ========================================================================== */

/* --- Шрифты --- */
@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/GolosText-Regular.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/GolosText-Medium.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/GolosText-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/GolosText-Bold.woff2") format("woff2"); }

/* Палитра, .container, кнопки, шапка, «Связаться с нами» и подвал лежат в
   shared/shared.css: эти блоки общие с документацией и правятся там.
   Страница подключает shared.css перед этим файлом. */

/* --- База --- */
* { box-sizing: border-box; }
/* Шапка липкая: переход по якорю должен останавливаться под ней, а не под её краем */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Golos Text", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, pre, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
button { font-family: inherit; }
.page { background: #fff; width: 100%; max-width: 100%; }
/* overflow-x: hidden здесь и на body не ставить: он делает предка контейнером прокрутки,
   и липкая шапка перестаёт прилипать. Блоки, вылезающие за край (макеты интерфейса,
   сцена приложения), обрезаются на своём уровне — см. .panel__visual и .app__stage. */

/* Строка заголовка: на широких экранах каждая — с новой строки */
.line { display: block; }
@media (max-width: 768px) { .line { display: inline; } }

/* ==========================================================================
   Первый экран
   ========================================================================== */
.hero { padding: 56px var(--side); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__inner { max-width: 1040px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero__title { font-size: clamp(36px, 5.2vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.hero__lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 750px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
@media (max-width: 1024px) { .hero__title { font-size: 48px; } .hero__lead { font-size: 17px; } }
@media (max-width: 768px)  { .hero { padding-top: 64px; padding-bottom: 64px; } .hero__title { font-size: 40px; } .hero__lead { font-size: 16px; max-width: 560px; } }
@media (max-width: 480px)  { .hero { padding-top: 48px; padding-bottom: 48px; } .hero__title { font-size: 32px; } .hero__actions { flex-direction: column; width: 100%; } .hero__actions .btn { width: 100%; } }

/* ==========================================================================
   Возможности: лента вкладок и карточки
   ========================================================================== */
.features { background: var(--surface); padding: 32px 0 56px; }
.features__inner { display: flex; flex-direction: column; gap: 20px; }

.tabs { display: flex; flex-wrap: nowrap; gap: 8px; padding-bottom: 2px; }
.tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  text-align: left; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  color: var(--text); cursor: pointer; transition: background 120ms, border-color 120ms;
}
.tab:hover { border-color: var(--accent); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab__icon { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.tab.is-active .tab__icon { color: #fff; }
.tab__title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.tab__sub { display: block; font-size: 14px; line-height: 1.4; margin-top: -8px; color: var(--text-2); }
.tab.is-active .tab__sub { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 1024px) {
  .tabs { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .tab { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 10px; padding: 0 18px; height: 44px; background: #fff; border: 1px solid var(--border); }
  .tab:hover { border-color: var(--accent); }
  .tab.is-active { border-color: var(--accent); }
  .tab__icon { width: 20px; height: 20px; }
  .tab__title { font-size: 15px; font-weight: 500; white-space: nowrap; }
  .tab__sub { display: none; }
}

/* Карточка вкладки: текст слева, макет интерфейса справа */
.panel {
  min-height: 600px; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: var(--card-y) var(--card-x); overflow: hidden;
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: stretch;
}
.panel[hidden] { display: none; }
.panel__text { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-top: calc(var(--card-x) - var(--card-y)); }
.panel__title { order: 1; font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.panel__list { order: 3; display: flex; flex-direction: column; gap: 12px; }
.panel__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.panel__list li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-top: 7px; }
.panel__cta { order: 4; display: flex; margin-top: 4px; }

.panel__visual {
  flex: 3 1 520px; min-width: 0; order: 2; display: flex; flex-direction: column; justify-content: center;
  align-self: stretch; margin-right: calc(-1 * var(--card-x)); position: relative;
}
.panel__visual--top { justify-content: flex-start; }
.panel__visual--bleed { margin-right: calc(-48px - var(--card-x)); }
.panel__visual--wide { flex: 3 1 560px; }
.panel__visual--pad { padding-right: var(--card-x); }
.panel__visual--dots::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
  background-image: radial-gradient(var(--border) 0.75px, transparent 0.75px); background-size: 24px 24px;
}
.panel__stage { position: relative; width: 100%; transform-origin: top left; }
#panel-impl .panel__stage { margin-top: 44px; }
#panel-users .panel__stage { margin-bottom: 76px; }
#panel-sso .panel__stage { margin-top: 5px; margin-bottom: 72px; }  /* макет поднят, чтобы карточка была ровно 600, как у остальных вкладок */
#panel-confirm .panel__stage { margin-top: 50px; }

@media (max-width: 1024px) {
  .panel { min-height: 0; padding: 32px; flex-direction: column; flex-wrap: nowrap; gap: 24px; }
  .panel__text { display: contents; }
  .panel__title { font-size: 32px; }
  .panel__list { gap: 10px; }
  /* На узких экранах макет рисуется в ширину 800px и масштабируется скриптом */
  .panel__visual { flex: 0 0 auto; width: 100%; overflow: hidden; display: block; margin: 0; padding: 0; }
  .panel__stage { width: 800px; margin: 0 !important; }
}
@media (max-width: 768px) { .panel__title { font-size: 28px; } }
@media (max-width: 480px) { .panel { padding: 20px; } .panel__title { font-size: 24px; } .panel__cta .btn { width: 100%; } }

/* --- Окно браузера в макетах --- */
.win { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.win__bar { height: 36px; background: var(--surface); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; }
.win__dots { display: flex; gap: 6px; }
.win__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.win__url { font-size: 13px; color: var(--text-2); white-space: nowrap; }

.m-crumb { font-size: 14px; color: var(--text-2); }
.m-crumb span { color: var(--accent); }   /* макет интерфейса: крошка только выглядит ссылкой */
.m-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.m-sub { font-size: 14px; color: var(--text-2); }
.m-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); line-height: 1.3; }
.m-muted { color: var(--text-2); }
.m-right { text-align: right; }
.m-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: 0 0 6px; }
.m-dot--8 { width: 8px; height: 8px; flex-basis: 8px; }
.m-dot--red { background: var(--red); }
.badge { font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.badge--green { color: var(--green); background: #E8F3EE; }
.badge--blue { font-weight: 400; color: var(--accent); background: var(--accent-bg); padding: 3px 10px; }
.badge--red { color: #fff; background: var(--red); padding: 7px 12px; }

/* Вкладка «Внедрение» */
.win--impl .win__body { padding: 16px 28px 20px; display: flex; flex-direction: column; gap: 20px; }
.win--impl .win__bar, .win--impl .m-head { padding-right: calc(min(310px, 90%) + 24px + var(--card-x)); }
.m-head { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.m-status { border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.m-status__head { display: flex; align-items: center; gap: 12px; }
.m-status__name { font-size: 16px; font-weight: 600; }
.m-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.m-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-stat__value { font-size: 18px; white-space: nowrap; }
.m-log { background: var(--surface); border-radius: 8px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre; overflow: hidden; }  /* длинные строки лога обрезаются, как в .m-code, а не дают полосу прокрутки */
.m-terminal {
  position: absolute; right: calc(24px + var(--card-x)); top: -45px; z-index: 2; width: min(310px, 90%);
  background: var(--text); color: var(--border); border-radius: 12px; padding: 18px 20px;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; white-space: pre; overflow: hidden;
}
.m-terminal .ok { color: #5CC98A; }

/* Вкладка «Пользователи» */
.win--dir .win__body { padding: 20px 0 24px 28px; display: flex; flex-direction: column; gap: 24px; }
.m-dir__head { display: flex; flex-direction: column; gap: 4px; padding-right: 220px; }
.m-table { display: grid; grid-template-columns: max-content max-content max-content max-content; column-gap: 28px; white-space: nowrap; }
.m-table .m-label { padding-bottom: 4px; }
.m-table__row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--border); }
.m-arrow { display: flex; gap: 8px; }
.m-arrow span:last-child { color: var(--text-2); }
.m-sources { position: absolute; right: -16px; top: -20px; z-index: 2; display: flex; flex-direction: column; gap: 8px; width: 200px; }
.m-source { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.m-source span:last-child { flex: 1; }
.m-sync { position: absolute; left: -24px; bottom: -90px; z-index: 2; width: min(360px, 90%); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.m-sync__head { display: flex; align-items: center; gap: 10px; }
.m-sync__title { font-size: 15px; font-weight: 600; flex: 1; }
.m-sync__time { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.m-sync__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.m-sync__row span:first-child { color: var(--text-2); }

/* Вкладка «Единый вход» */
.win--sso .win__body { padding: 20px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.m-sso__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.m-sso__title { display: flex; align-items: center; gap: 12px; }
.m-sessions { display: grid; grid-template-columns: 16px max-content max-content max-content max-content minmax(0, 1fr); column-gap: 32px; white-space: nowrap; overflow: hidden; }
.m-sessions .m-label { padding: 0 0 8px; }
.m-sessions__row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--border); }
.m-sessions__row .m-user { font-weight: 500; }
.m-sessions__row .m-kerb { color: var(--accent); }
.m-check { width: 16px; height: 16px; border: 1px solid var(--border); border-radius: 4px; display: inline-block; flex: 0 0 16px; }
.m-login { position: absolute; right: -32px; bottom: -100px; z-index: 2; width: 260px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.m-login__logo { display: flex; justify-content: center; }
.m-login__logo svg { height: 26px; width: auto; }
.m-login__line { height: 2px; background: var(--accent); }
.m-login__app { text-align: center; font-size: 13px; color: var(--text-2); }
.m-field { display: flex; flex-direction: column; gap: 6px; }
.m-field > span { font-size: 13px; }
.m-field--muted > span { color: var(--text-2); }
.m-input { height: 36px; border: 1px solid var(--border); border-radius: 6px; padding: 0 12px; display: flex; align-items: center; font-size: 14px; }
.m-input--between { justify-content: space-between; }
.m-login__sep { height: 1px; background: var(--border); margin: 2px 0; }
.m-login__btn { height: 36px; background: var(--accent); color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }

/* Вкладка «Подтверждение» */
.win--setup .win__body { padding: 24px; display: flex; flex-direction: column; }
.m-setup__title { font-size: 18px; font-weight: 600; }
.m-setup__step { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.m-methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.m-method { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.m-method span { font-size: 12px; line-height: 1.3; text-align: center; }
.m-method--on { border: 1.5px solid var(--accent); background: var(--accent-bg); }
.m-method--on span { color: var(--accent); }
.m-setup__btn { display: flex; align-items: center; justify-content: center; width: 200px; height: 40px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; border-radius: 8px; margin: 20px 0 0 auto; }
.m-profile { position: absolute; right: 35px; top: -100px; width: 320px; background: var(--text); border-radius: 12px; padding: 20px; }
.m-profile__user { display: flex; align-items: center; gap: 12px; }
.m-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: 0 0 32px; }
.m-profile__name { display: flex; flex-direction: column; }
.m-profile__name span:first-child { font-size: 14px; font-weight: 600; color: #fff; }
.m-profile__name span:last-child { font-size: 12px; color: var(--text-3); }
.m-profile__list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.m-profile__row { display: flex; align-items: center; gap: 10px; }
.m-profile__row .m-name { font-size: 13px; color: #fff; }
.m-profile__row .m-tag { font-size: 12px; color: var(--text-3); }
.m-switch { margin-left: auto; width: 32px; height: 18px; border-radius: 9px; background: #344054; display: flex; align-items: center; justify-content: flex-start; padding: 0 3px; }
.m-switch::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.m-switch--on { background: var(--accent); justify-content: flex-end; }
.m-profile__sep { height: 1px; background: #344054; margin-top: 12px; }
.m-profile__codes { font-size: 12px; color: var(--text-3); margin-top: 12px; }
.m-profile__add { display: inline-block; font-size: 13px; color: #7BA4E8; margin-top: 12px; }

/* Вкладка «Контроль» */
.win--log .win__body { padding: 24px; display: flex; flex-direction: column; }
.m-log-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.m-log-head__btns { display: flex; gap: 8px; }
.m-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; font-size: 13px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.m-attempts { display: grid; grid-template-columns: repeat(6, max-content); column-gap: 12px; margin-top: 16px; margin-left: auto; width: max-content; max-width: 100%; }
.m-attempts__row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; white-space: nowrap; }
.m-attempts__row--head .m-label { font-size: 11px; padding-bottom: 6px; }
.m-attempts__row--data { align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--border); }
.m-attempts__row--data .m-user { font-weight: 500; }
.m-ip { font-family: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--text-2); }
.m-res { display: flex; align-items: center; gap: 6px; }
.m-res svg { flex: 0 0 14px; }
.m-res--bad { color: var(--red); }
.m-alert { position: absolute; left: 20px; bottom: -24px; width: 320px; background: #FEF3F2; border: 1px solid var(--border); border-radius: 12px; padding: 20px; overflow: hidden; }
.m-alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.m-alert__head { display: flex; align-items: center; gap: 8px; }
.m-alert__title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.m-alert__time { display: flex; justify-content: flex-end; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.m-alert__who { font-size: 13px; margin-top: 8px; }
.m-alert__why { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.m-alert__actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.m-alert__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 13px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.m-alert__more { font-size: 13px; color: var(--accent); }

/* ==========================================================================
   Цифры
   ========================================================================== */
.numbers { padding: 64px 0; }
.numbers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(120px, 8vw, 160px); justify-items: center; }
.number { display: flex; flex-direction: column; align-items: center; max-width: 300px; }
.number__value { font-size: clamp(38px, 4vw, 56px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.number__label { font-size: 15px; line-height: 1.5; color: var(--text-2); text-align: center; text-wrap: pretty; margin-top: 8px; }
@media (max-width: 1024px) { .numbers__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Интеграции
   ========================================================================== */
.integrations { background: var(--surface); padding: 64px 0; }
.logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.logos__intro { grid-column: 5 / 7; grid-row: 3 / 5; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.logos__intro h2 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.logos__intro p,
.logos__intro .logos__sub { display: block; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--text-2); margin-top: 8px; text-wrap: pretty; }
.logos__intro .btn { margin-top: 42px; }  /* подзаголовок стал в одну строку вместо двух — кнопка на прежнем месте */
.logo {
  display: flex; align-items: center; justify-content: center; height: 96px; padding: 0 10px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none;   /* плитка — ссылка на статью по этой системе */
  filter: saturate(0.75); opacity: 0.85; transition: filter 120ms, opacity 120ms, border-color 120ms;
}
.logo:hover { filter: saturate(1); opacity: 1; border-color: var(--accent); }
.logo img { display: block; max-height: 40px; max-width: 96px; width: auto; height: auto; }
.logo--redos img { width: 96px; }
.logo--altlinux img { height: 72px; max-height: none; }
.logo--usergate img { width: 110px; max-width: none; }
.logo--ngate img { width: 88px; }
.logo--bizone img { height: 64px; max-height: none; }
.logo--cisco img { width: 60px; height: 60px; max-height: none; }
.logo--outlook img, .logo--keycloak img { max-height: 48px; }
.logo--grafana img { width: 40px; height: 40px; }
.logo__crop { position: relative; display: block; overflow: hidden; }
.logo--astra .logo__crop { width: 96px; height: 30px; }
.logo--astra img { position: absolute; left: -5px; top: -38.7px; width: 106.5px; height: 106.5px; max-width: none; max-height: none; }
.logo--vmware .logo__crop { width: 92px; height: 14.6px; }
.logo--vmware img { position: absolute; left: 0; top: -38.7px; width: 92px; height: 92px; max-width: none; max-height: none; }
.logo__text { display: flex; align-items: center; gap: 8px; }
.logo__text img { width: 28px; height: 28px; object-fit: contain; flex: 0 0 28px; }
.logo__text span { font-size: 13px; color: var(--text); }
.integrations__note { margin-top: 32px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--text-2); }
@media (max-width: 1024px) {
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .logos__intro { grid-column: 1 / 3; grid-row: 1 / 3; }
}
/* Кнопка нужна только там, где сетка в две колонки и список пришлось бы долго листать */
.logos__more { display: none; }
@media (max-width: 639px) {
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos__intro { grid-column: 1 / -1; grid-row: 1 / 2; }
  /* Первый ребёнок сетки — карточка «30+ интеграций», поэтому логотипы идут с 2-го:
     видимыми оставляем четыре, остальные открываются кнопкой. */
  .logos:not(.is-expanded) > .logo:nth-child(n+6) { display: none; }
  .logos__more { display: inline-flex; width: 100%; margin-top: 12px; }
  /* Обратно не сворачиваем: список уже пролистан, а сворачивание сбило бы положение экрана */
  .logos.is-expanded ~ .logos__more { display: none; }
}

/* ==========================================================================
   Варианты размещения
   ========================================================================== */
.placement { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

.compare { position: relative; margin-top: 56px; display: grid; grid-template-columns: 22% 26% 26% 26%; }
.compare__highlight { position: absolute; left: 22%; width: 26%; top: -16px; bottom: -16px; background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 16px; pointer-events: none; }
.compare__head { position: relative; padding: 0 20px 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.compare__badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: #fff; border-radius: 6px; padding: 4px 10px; margin-bottom: 12px; }
.compare__name { font-size: 18px; font-weight: 600; }
.compare__sub { font-size: 13px; line-height: 1.4; color: var(--text-2); margin-top: 4px; }
.compare__row { display: flex; align-items: center; min-height: 64px; padding: 12px 20px 12px 0; font-size: 15px; font-weight: 500; line-height: 1.4; border-top: 1px solid #EEF1F5; }
.compare__cell { position: relative; display: flex; align-items: center; min-height: 64px; padding: 12px 20px; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--border); }
.compare__cell--main { border-top-color: #D5DEEE; }
.compare__cell--strong { font-weight: 600; }

.compare-cards { margin-top: 40px; display: none; flex-direction: column; gap: 16px; }
.ccard { border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.ccard--main { background: var(--accent-bg); border-color: var(--accent); }
.ccard__name { font-size: 18px; font-weight: 600; }
.ccard__sub { font-size: 13px; line-height: 1.4; color: var(--text-2); margin-top: 4px; }
.ccard__grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; }
.ccard__k { font-size: 14px; line-height: 1.4; color: var(--text-2); padding: 11px 16px 11px 0; border-top: 1px solid var(--border); }
.ccard__v { font-size: 15px; line-height: 1.4; padding: 11px 0; border-top: 1px solid var(--border); }
.ccard--main .ccard__k, .ccard--main .ccard__v { border-top-color: #D5DEEE; }
.ccard__v--strong { font-weight: 600; }
/* Гибрид раскрыт всегда, два других варианта сворачиваются: их читают по необходимости */
.ccard__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.ccard__titles { flex: 1 1 auto; min-width: 0; }
.ccard__name, .ccard__sub { display: block; }
.ccard__chev { flex: 0 0 20px; color: var(--text-2); transition: transform 200ms ease; }
.ccard__head:hover .ccard__chev { color: var(--accent); }
.ccard--fold.is-open .ccard__chev { transform: rotate(180deg); }
.ccard__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms ease; }
.ccard--fold.is-open .ccard__body { grid-template-rows: 1fr; }
.ccard__body > div { overflow: hidden; }
.placement__note { margin-top: 40px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.placement__note a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .compare { display: none; } .compare-cards { display: flex; } }

/* ==========================================================================
   Мобильное приложение
   ========================================================================== */
.app { padding: 0 0 64px; }
.app__card { background: var(--surface); border-radius: 24px; padding: 64px 64px 26px; overflow: hidden; }
.app__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; min-width: 0; }
.app__text { display: block; order: 1; align-self: center; }
.app__title { order: 1; }
.app__list { order: 3; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.app__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.app__list li::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: var(--accent); margin-top: 8px; }
.app__stores { order: 4; margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 14px; min-width: 0; max-width: 374px; }
.app__stores a { display: flex; width: 100%; max-width: 180px; min-width: 0; aspect-ratio: 180 / 52; }
.app__stores img { display: block; width: 100%; height: auto; aspect-ratio: 180 / 52; }

/* Сцена с окном браузера и телефоном: 683×640, масштабируется скриптом */
.app__stage { position: relative; order: 2; width: 100%; min-width: 0; height: 555px; display: flex; justify-content: flex-start; overflow: visible; }
.app__group { position: absolute; left: 0; top: 0; width: 683px; height: 640px; flex: 0 0 auto; transform-origin: left top; }
.app__browser { position: absolute; left: 70px; top: -40px; width: 430px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.app__browser-bar { display: flex; align-items: center; gap: 12px; height: 36px; flex: 0 0 36px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.app__browser-bar .win__dots span { width: 8px; height: 8px; }
.app__browser-bar .win__url { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.app__browser-body { padding: 24px 32px 24px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.m-confirm { width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.m-confirm__title { text-align: center; font-size: 16px; font-weight: 600; }
.m-confirm__fields { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.m-confirm__opt { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.m-confirm__opt span:last-child { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.m-confirm__dots { margin-top: 16px; display: flex; justify-content: center; gap: 6px; }
.m-confirm__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.45; }
.m-confirm__dots span:nth-child(2) { background: #1E4A8A; opacity: 1; }
.app__phone { position: absolute; right: 40px; top: -40px; width: 290px; z-index: 2; border: 8px solid var(--text); border-radius: 44px; overflow: hidden; background: var(--text); }
.app__phone-screen { border-radius: 36px; overflow: hidden; background: #A9AAAE; position: relative; aspect-ratio: 274 / 579; }
.app__phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) {
  .app__card { padding: 32px 24px; }
  .app__grid { grid-template-columns: 1fr; }
  .app__text { display: contents; }
  .app__stage { width: calc(100% + 48px); margin: 0 -24px; overflow: hidden; height: 595px; }
  .app__group { top: 8px; }
  .app__phone { top: -8px; }
}
@media (max-width: 480px) {
  .app__card { padding: 32px 20px; }
  .app__stage { width: calc(100% + 40px); margin: 0 -20px; }
}

/* ==========================================================================
   Вопросы и ответы
   ========================================================================== */
.faq { padding: 64px 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 720px); gap: 64px; justify-content: space-between; align-items: start; }
.faq__intro { position: sticky; top: 96px; }
.faq__intro p { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.faq__intro a { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 500; }
.faq__list { border-top: 1px solid var(--border); width: 100%; max-width: 720px; justify-self: end; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; align-items: center; min-height: 64px; padding: 16px 0;
  background: none; border: 0; text-align: left; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--text); cursor: pointer;
}
.faq__icon { flex: 0 0 32px; display: flex; align-items: center; }
.faq__plus { position: relative; display: block; width: 14px; height: 14px; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--text-2); }
.faq__plus::after { transform: rotate(90deg); transition: transform 200ms ease; }
.faq__item.is-open .faq__plus::after { transform: rotate(0deg); }
.faq__q span:last-child { flex: 1; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 4px 0 24px 32px; max-width: 672px; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 1024px) {
  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__intro { position: static; }
  .faq__list { max-width: 100%; justify-self: stretch; }
}
