/* ============================================================================
   LEXPREMISE — components.css
   Все переиспользуемые компоненты с состояниями hover / active / disabled.
   Подключать ПОСЛЕ style.css.
   ============================================================================ */

/* =========================== КНОПКИ ======================================= */
.btn {
  --btn-bg: var(--c-accent);
  --btn-fg: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px;                /* touch target */
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur-1) var(--ease),
              background var(--dur-1) var(--ease),
              box-shadow var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .btn__icon { transition: transform var(--dur-1) var(--ease); }

/* — Основная (акцент) — */
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--c-accent-600); box-shadow: var(--sh-accent); transform: translateY(-2px); }
.btn--primary:hover .btn__icon { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--sh-1); }

/* — Вторичная (outline) — */
.btn--secondary { background: transparent; color: var(--c-primary); border-color: var(--c-line); box-shadow: none; }
.btn--secondary:hover { border-color: var(--c-primary); background: var(--c-surface); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn--secondary:active { transform: translateY(0); box-shadow: none; }

/* — Текстовая — */
.btn--text {
  background: transparent; color: var(--c-primary); min-height: auto;
  padding: 6px 2px; border: none; border-radius: 0;
}
.btn--text { box-shadow: inset 0 -1.5px 0 var(--c-line); }
.btn--text:hover { box-shadow: inset 0 -1.5px 0 var(--c-accent); color: var(--c-accent-600); }
.btn--text:hover .btn__icon { transform: translateX(3px); }

/* — На тёмном фоне — */
.section--dark .btn--secondary { color: #fff; border-color: var(--c-line-on-dark); }
.section--dark .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.section--dark .btn--text { color: #fff; box-shadow: inset 0 -1.5px 0 var(--c-line-on-dark); }
.section--dark .btn--text:hover { box-shadow: inset 0 -1.5px 0 var(--c-accent); color: var(--c-accent); }

.btn--lg { min-height: 56px; padding: 0 34px; font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* — Disabled — */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
  background: var(--c-line); color: var(--c-text-soft); border-color: transparent; box-shadow: none;
}

/* =========================== БЕЙДЖИ / ЧИПЫ ================================ */
.badge {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--c-accent-100); color: var(--c-accent-600);
}
.badge--ghost { background: transparent; border: 1px solid var(--c-line); color: var(--c-text-soft); }
.badge--solid { background: var(--c-primary); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--fs-sm); font-weight: 500;
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text);
}

/* =========================== КАРТОЧКА УСЛУГИ ============================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }

.service-card { display: flex; flex-direction: column; gap: var(--sp-3); height: 100%; }
.service-card__icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--c-accent-100); color: var(--c-accent-600);
  margin-bottom: var(--sp-2);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: var(--fs-h4); }
.service-card p { color: var(--c-text-soft); font-size: var(--fs-sm); }
.service-card__link {
  margin-top: auto; padding-top: var(--sp-4);
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-primary);
}
.service-card__link svg { width: 16px; height: 16px; transition: transform var(--dur-1) var(--ease); }
.service-card--hover:hover .service-card__link svg,
.card--hover:hover .service-card__link svg { transform: translateX(4px); }

/* =========================== КАРТОЧКА ТАРИФА ============================== */
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: var(--sp-6); height: 100%;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.plan--featured { border-color: var(--c-accent); box-shadow: var(--sh-2); }
.plan--featured::before {
  content: "Популярный"; position: absolute; top: -12px; left: var(--sp-6);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .03em;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--c-accent); color: #fff;
}
.plan__name { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-text-soft); }
.plan__price { display: flex; align-items: baseline; gap: .3em; margin: var(--sp-3) 0 var(--sp-2); }
.plan__from { font-size: var(--fs-sm); color: var(--c-text-soft); }
.plan__amount { font-family: var(--font-head); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); font-weight: 600; color: var(--c-primary); line-height: 1; letter-spacing: -.02em; }
.plan__unit { font-size: var(--fs-sm); color: var(--c-text-soft); }
.plan__desc { color: var(--c-text-soft); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.plan__features { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-3); }
.plan__features li { display: grid; grid-template-columns: 22px 1fr; gap: .6em; font-size: var(--fs-sm); align-items: start; }
.plan__check { flex:none; width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:var(--c-accent-100); color:var(--c-accent-600); }
.plan__check svg { width: 12px; height: 12px; }
.plan__cta { margin-top: auto; }

/* =========================== СРАВНЕНИЕ 3 ТАРИФОВ ========================= */
.plan-compare {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--c-line); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden;
}
.plan-compare__col {
  background: var(--c-surface); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background var(--dur-1) var(--ease);
}
.plan-compare__col--active { background: var(--c-primary); color: var(--c-text-on-dark); }
.plan-compare__col--active .plan-compare__lvl,
.plan-compare__col--active .plan-compare__price { color: #fff; }
.plan-compare__col--active .plan-compare__note { color: var(--c-on-dark-soft); }
.plan-compare__lvl { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-text-soft); }
.plan-compare__price { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 600; color: var(--c-primary); }
.plan-compare__note { font-size: var(--fs-xs); color: var(--c-text-soft); }
.plan-compare__tag { align-self: flex-start; margin-top: var(--sp-2); font-size: var(--fs-xs); font-weight:600; padding: 3px 9px; border-radius: var(--r-pill); background: var(--c-accent); color:#fff; }

/* =========================== ТАРИФНАЯ ТАБЛИЦА ============================ */
.t-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.t-table thead th {
  text-align: left; font-family: var(--font-body); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--c-text-soft); padding: 0 var(--sp-4) var(--sp-3); border-bottom: 1.5px solid var(--c-line);
}
.t-table tbody td { padding: var(--sp-4); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.t-table tbody tr { transition: background var(--dur-1) var(--ease); }
.t-table tbody tr:hover { background: var(--c-surface-alt); }
.t-table .t-level { font-weight: 600; color: var(--c-primary); white-space: nowrap; }
.t-table .t-from { font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 600; color: var(--c-primary); white-space: nowrap; }
.t-table .t-from small { display:block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight:400; color: var(--c-text-soft); }

/* =========================== КАРТОЧКА КЕЙСА ============================== */
.case { display: grid; gap: var(--sp-4); padding: var(--sp-6); }
.case__row { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-4); align-items: baseline; }
.case__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-text-soft); }
.case__row p { font-size: var(--fs-sm); }
.case__result { border-top: 1px solid var(--c-line); padding-top: var(--sp-4); }
.case__result .case__label { color: var(--c-accent-600); }
.case__result-text { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 600; color: var(--c-primary); letter-spacing: -.01em; }

/* =========================== STATS ====================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line-on-dark); border-radius: var(--r-lg); overflow:hidden; }
.section:not(.section--dark) .stats { background: var(--c-line); }
.stat { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); background: var(--c-primary); }
.section:not(.section--dark) .stat { background: var(--c-surface); }
.stat__num { font-family: var(--font-head); font-size: clamp(2.6rem, 1.8rem + 3vw, 3.8rem); font-weight: 600; line-height: 1; color: var(--c-accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-sm); color: var(--c-on-dark-soft); }
.section:not(.section--dark) .stat__label { color: var(--c-text-soft); }

/* =========================== FAQ АККОРДЕОН ============================== */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 600; color: var(--c-primary);
}
:root[data-headings="sans"] .faq__q { font-weight: 700; }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; margin-top: 4px; transition: transform var(--dur-2) var(--ease); }
.faq__icon::before, .faq__icon::after { content:""; position:absolute; inset:0; margin:auto; background: var(--c-accent); }
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item[open] .faq__icon { transform: rotate(90deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding-bottom: var(--sp-5); color: var(--c-text-soft); max-width: var(--measure); }
/* нативный <details> fallback */
details.faq__item > summary { list-style: none; }
details.faq__item > summary::-webkit-details-marker { display: none; }

/* =========================== ЯКОРНОЕ МЕНЮ ============================== */
.anchor-nav { position: sticky; top: calc(var(--header-h-scrolled) + 16px); display: flex; flex-direction: column; gap: 2px; }
.anchor-nav a {
  font-size: var(--fs-sm); color: var(--c-text-soft); padding: 9px 14px; border-radius: var(--r-sm);
  border-left: 2px solid var(--c-line); transition: all var(--dur-1) var(--ease);
}
.anchor-nav a:hover { color: var(--c-primary); border-left-color: var(--c-accent); background: var(--c-surface); }
.anchor-nav a.is-active { color: var(--c-primary); font-weight: 600; border-left-color: var(--c-accent); background: var(--c-surface); }

/* =========================== ЛОГОТИПНАЯ ПОЛОСА ======================== */
.logostrip { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 72px); }
.logostrip__item { display: flex; align-items: center; gap: 10px; color: var(--c-text-soft); filter: grayscale(1); opacity: .72; transition: opacity var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.logostrip__item:hover { opacity: 1; filter: grayscale(0); }
.logostrip__mark { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--c-primary); letter-spacing: -.01em; }
.section--dark .logostrip__mark { color: #fff; }
.section--dark .logostrip__item { color: var(--c-on-dark-soft); }

/* =========================== ЦИТАТА ЭКСПЕРТА ========================= */
.quote { position: relative; padding: var(--sp-7) var(--sp-6) var(--sp-6); background: var(--c-surface); border-radius: var(--r-lg); border: 1px solid var(--c-line); }
.quote--soft { background: var(--c-accent-100); border-color: transparent; }
.quote::before { content: "\201C"; position: absolute; top: -.1em; left: var(--sp-5); font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--c-accent); opacity: .5; }
.quote__text { font-family: var(--font-head); font-size: var(--fs-h3); line-height: 1.4; color: var(--c-primary); font-weight: 500; letter-spacing: -.005em; }
.quote__by { margin-top: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--c-primary); color:#fff; display:grid; place-items:center; font-weight:600; font-size: var(--fs-sm); flex:none; }
.quote__name { font-weight: 600; font-size: var(--fs-sm); color: var(--c-primary); font-family: var(--font-body); }
.quote__role { font-size: var(--fs-xs); color: var(--c-text-soft); }

/* =========================== БУЛЛЕТЫ С ИКОНКАМИ ===================== */
.featurelist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.featurelist li { display: grid; grid-template-columns: 26px 1fr; gap: var(--sp-3); align-items: start; }
.featurelist .fl-ic { width: 26px; height: 26px; display:grid; place-items:center; color: var(--c-accent-600); flex:none; }
.featurelist .fl-ic svg { width: 22px; height: 22px; }
.section--dark .featurelist .fl-ic { color: var(--c-accent); }

/* Двухколоночный «что входит / что нет» */
.incl { display:grid; gap: var(--sp-3); list-style:none; padding:0; margin:0; }
.incl li { display:grid; grid-template-columns: 22px 1fr; gap:.6em; font-size: var(--fs-sm); align-items:start; }
.incl .ic { width:20px; height:20px; border-radius:50%; display:grid; place-items:center; flex:none; margin-top:1px; }
.incl--yes .ic { background: rgba(46,125,91,.12); color: var(--c-success); }
.incl--no  .ic { background: rgba(178,59,59,.10); color: var(--c-danger); }
.incl--no li { color: var(--c-text-soft); }
.incl .ic svg { width:12px; height:12px; }

/* =========================== BREADCRUMBS ============================ */
.crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:.5em; font-size: var(--fs-sm); color: var(--c-text-soft); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs .sep { color: var(--c-line); }
.crumbs [aria-current] { color: var(--c-primary); }
