/* ==========================================================================
   LEXIT — кастомные стили поверх Tailwind CDN
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

.font-display {
  font-family: 'Manrope', sans-serif;
}

::selection {
  background-color: #7A1533;
  color: #ffffff;
}

/* ---------- Заголовки секций ---------- */
.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.2;
  color: #18191C;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .section-title { font-size: 2.5rem; }
}

.text-balance {
  text-wrap: balance;
}

/* ---------- Header ---------- */
#site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(24, 25, 28, 0.06);
  box-shadow: 0 4px 24px rgba(24, 25, 28, 0.05);
}

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3E4048;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background-color: #7A1533;
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: #18191C;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  padding: 0.85rem 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #26272C;
  border-bottom: 1px solid #F0F0F1;
}

#menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
  width: 100%;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Кнопки ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #7A1533;
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.85rem;
  box-shadow: 0 8px 20px rgba(122, 21, 51, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background-color: #650F29;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(122, 21, 51, 0.32);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1rem;
}

/* ---------- Eyebrow badge ---------- */
.badge-eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7A1533;
  background-color: #FBF2F4;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.badge-eyebrow--dark {
  color: #D4AF6A;
  background-color: rgba(212, 175, 106, 0.12);
}

/* ---------- Карточки ситуаций ---------- */
.situation-card {
  background-color: #ffffff;
  border: 1px solid #EDEEEF;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.situation-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(24, 25, 28, 0.08);
  border-color: #F6E1E6;
}

.icon-tile {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FBF2F4;
  color: #7A1533;
}
.icon-tile--solid {
  background-color: #7A1533;
  color: #ffffff;
}

/* ---------- Риски (тёмная секция) ---------- */
.risk-row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: 1.1rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.risk-row:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 106, 0.25);
}
.risk-row__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(212, 175, 106, 0.12);
  color: #D4AF6A;
}

/* ---------- Списки с тире ---------- */
.dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background-color: #7A1533;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* ---------- Результат ---------- */
.result-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(83, 11, 30, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(83, 11, 30, 0.12);
}

/* ---------- Check / cross bullets ---------- */
.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background-color: #7A1533;
  color: #ffffff;
  margin-top: 0.05rem;
}
.check-dot--sm {
  width: 1.25rem;
  height: 1.25rem;
}
.cross-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background-color: #E3E4E6;
  color: #6B6E77;
  margin-top: 0.05rem;
}

/* ---------- Таблица сравнения ---------- */
.comparison-table {
  font-size: 0.9rem;
}
.comparison-table thead th {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #18191C;
  text-align: center;
  padding: 1rem 1.25rem;
  background-color: #F7F7F8;
  border-bottom: 2px solid #EDEEEF;
}
.comparison-table thead th:first-child {
  background-color: transparent;
  border-bottom-color: transparent;
}
.comparison-table tbody td {
  text-align: center;
  padding: 1.15rem 1.25rem;
  color: #52555E;
  border-bottom: 1px solid #EDEEEF;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table__label {
  text-align: left !important;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: #18191C !important;
}
.comparison-table__highlight-head {
  background-color: #7A1533 !important;
  color: #ffffff !important;
  border-radius: 1rem 1rem 0 0;
}
.comparison-table__highlight-cell {
  background-color: #FBF2F4;
  color: #650F29 !important;
}

/* ---------- Кому подходит ---------- */
.fit-card {
  border-radius: 1.5rem;
  padding: 2.25rem;
}
.fit-card--yes {
  background-color: #FBF2F4;
  border: 1px solid #F6E1E6;
}
.fit-card--no {
  background-color: #ffffff;
  border: 1px solid #EDEEEF;
}

/* ---------- Процесс ---------- */
.process-step {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #EDEEEF;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(24, 25, 28, 0.08);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background-color: #18191C;
  color: #D4AF6A;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ---------- Гарантии ---------- */
.guarantee-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.35s ease, background-color 0.35s ease;
}
.guarantee-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---------- Кейсы ---------- */
.case-card {
  background-color: #ffffff;
  border: 1px solid #EDEEEF;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(24, 25, 28, 0.08);
}
.case-card__badge {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  background-color: #7A1533;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ---------- Форма ---------- */
.form-label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #26272C;
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background-color: #F7F7F8;
  border: 1.5px solid #EDEEEF;
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: #18191C;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input::placeholder {
  color: #ABAEB6;
}
.form-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #7A1533;
  box-shadow: 0 0 0 4px rgba(122, 21, 51, 0.08);
}
.form-input.cform--error {
  border-color: #C0334F;
  background-color: #FBF2F4;
}
.form-alert {
  border-radius: 0.85rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}
.form-alert--success {
  background-color: #F0F8F1;
  color: #1E7B34;
  border: 1px solid #CBEBD1;
}
.form-alert--fail {
  background-color: #FBF2F4;
  color: #A31C3C;
  border: 1px solid #F0CBD5;
}

/* ---------- Footer ---------- */
.footer-link {
  color: #B7B9BE;
  transition: color 0.25s ease;
}
.footer-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Scroll reveal — плавное появление элементов при прокрутке
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
