/* ============================================================
 * Leetchi-style donation landing
 * Single-page layout: 3 sections + sidebar (image + description)
 * Palette точно матчит референс @ leetchi.com.
 * ============================================================ */

/* ---------- CSS variables (Leetchi palette) ----------
 * Operator-themable vars (--lt-bg, --lt-header-bg, --lt-form-bg, --lt-side-bg,
 *  --lt-accent, --lt-accent-hov, --lt-text) — задаются ИНЛАЙНОМ из server.py
 *  через `<style>:root.lt-themed{...}</style>`. Здесь только дефолты.
 * ----------------------------------------------------------- */
:root {
  --lt-pink-100: #FFEAEF;
  --lt-pink-200: #FFD5E4;
  --lt-pink-300: #FFC2D6;
  --lt-green-200: #B8E5D4;
  --lt-green-600: #009772;
  --lt-green-700: #007A5C;
  --lt-green-800: #005E47;
  --lt-grey-100: #F5F5F7;
  --lt-grey-300: #E5E5EA;
  --lt-grey-400: #CBCBD2;
  --lt-grey-700: #5F5F66;
  --lt-grey-900: #1F1F23;
  --lt-black-800: #2D0F37;
  --lt-white: #FFFFFF;
  --lt-shadow-card: 0 12px 12px -10px rgba(0,0,0,0.05);
  --lt-shadow-hover: 0 8px 24px rgba(0,151,114,0.18);
  --lt-radius-sm: 4px;
  --lt-radius-md: 8px;
  --lt-radius-lg: 12px;
  --lt-radius-pill: 999px;
  --lt-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  /* Themable defaults (могут быть перезаписаны inline-блоком из server.py). */
  --lt-bg:         var(--lt-pink-200);
  --lt-header-bg:  var(--lt-white);
  --lt-form-bg:    var(--lt-white);
  --lt-side-bg:    var(--lt-white);
  --lt-accent:     var(--lt-green-600);
  --lt-accent-hov: var(--lt-green-700);
  --lt-text:       var(--lt-black-800);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.lt-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lt-text);
  background: var(--lt-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Fade-in main container on load (см. JS: body.lt-body--ready) */
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
body.lt-body--ready { opacity: 1; }

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---------- Container / grid ---------- */
.lt-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.lt-container--grid { display: block; }

/* ---------- Header ---------- */
.lt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lt-header-bg);
  border-bottom: 1px solid var(--lt-grey-300);
  box-shadow: var(--lt-shadow-card);
  transition: background-color var(--lt-transition);
}
.lt-header__bar {
  height: 64px;
  display: flex;
  align-items: center;
}
.lt-header__bar > .lt-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lt-header__row { gap: 16px; }
.lt-logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto; /* push payment-method icons right */
}
.lt-header__methods {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.lt-pmlogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Лёгкое скругление вокруг SVG чтобы единообразный look на любом фоне. */
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.lt-pmlogo svg { display: block; }
@media (max-width: 479px) {
  /* На очень узких экранах прячем чтобы header не переполнялся. */
  .lt-header__methods { display: none; }
}
.lt-logo svg {
  height: 28px;
  width: auto;
  display: block;
}

/* ---------- Main grid: offset / form / side ---------- */
.lt-main { padding-top: 24px; padding-bottom: 80px; }
.lt-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  --grid-gutter: 24px;
  margin-left: calc(var(--grid-gutter) / -2);
  margin-right: calc(var(--grid-gutter) / -2);
}
.lt-grid > * {
  padding-left: calc(var(--grid-gutter) / 2);
  padding-right: calc(var(--grid-gutter) / 2);
}
.lt-grid__offset {
  display: none;
}

/* ---------- Form column (center) ---------- */
.lt-form {
  width: 100%;
  background: var(--lt-form-bg);
  min-height: 100vh;
  padding-top: 0;
  padding-bottom: 0;
}
.lt-form__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Step heading ---------- */
.lt-step-heading {
  padding-top: 16px;
  margin-bottom: 16px;
  animation: lt-slide-in 0.4s ease-out both;
}
.lt-step-heading__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.lt-back-arrow {
  color: var(--lt-accent);
  cursor: pointer;
  display: inline-flex;
  transition: transform var(--lt-transition);
}
.lt-back-arrow:hover { transform: translateX(-3px); }
.lt-back-arrow svg { width: 24px; height: 24px; }

.lt-step-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lt-text);
  margin: 0 0 8px 0;
}
.lt-step-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--lt-grey-700);
  margin-bottom: 16px;
}

/* ---------- Sections ---------- */
.lt-sections > li {
  padding-bottom: 32px;
}
.lt-sections > li + li {
  border-top: 1px solid var(--lt-grey-300);
  padding-top: 32px;
}
.lt-section {
  animation: lt-slide-in 0.5s ease-out both;
}
.lt-sections > li:nth-child(1) { animation-delay: 0ms; }
.lt-sections > li:nth-child(2) { animation-delay: 100ms; }
.lt-sections > li:nth-child(3) { animation-delay: 200ms; }

.lt-section__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--lt-text);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.lt-section__num {
  color: var(--lt-accent);
  font-weight: 700;
}

/* ---------- Suggested-amounts grid ----------
 * Mobile: 3 в ряд × 2 ряда (компактнее под палец, как на leetchi.com).
 * Desktop (≥768px): 6 в ряд × 1 ряд — соответствует референсу 6-колоночного грида.
 * Активная кнопка получает .is-active (зелёная рамка + бэк).
 * Бейдж "Popular" — позиционируется снизу по центру (overflow visible).
 * ------------------------------------------------------------- */
.lt-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.lt-amount {
  position: relative;
  background: var(--lt-white);
  border: 1px solid var(--lt-grey-400);
  border-radius: var(--lt-radius-md);
  padding: 12px 8px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--lt-transition),
              background-color var(--lt-transition),
              transform var(--lt-transition),
              box-shadow var(--lt-transition);
  outline: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lt-amount:hover {
  border-color: var(--lt-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.lt-amount:active { transform: translateY(0); box-shadow: none; }
.lt-amount.is-active {
  border-color: var(--lt-accent);
  background: color-mix(in srgb, var(--lt-accent) 8%, transparent);
  /* Fallback для браузеров без color-mix (Safari < 16.4): просто рамка */
  box-shadow: inset 0 0 0 1px var(--lt-accent);
}
.lt-amount__val {
  font-size: 22px;
  font-weight: 700;
  color: var(--lt-text);
  line-height: 1;
  white-space: nowrap;
}
.lt-amount.is-active .lt-amount__val { color: var(--lt-accent); }
.lt-amount__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  background: var(--lt-green-800);
  color: var(--lt-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--lt-radius-pill);
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  letter-spacing: 0.2px;
}
/* Если в гриде есть .lt-amount--popular — добавляем доп. нижний отступ,
   чтобы badge "Popular" не наезжал на следующий блок (big input). */
.lt-amount-grid:has(.lt-amount--popular) { padding-bottom: 6px; }

@media (min-width: 768px) {
  .lt-amount-grid { grid-template-columns: repeat(6, 1fr); }
  .lt-amount { min-height: 56px; }
  .lt-amount__val { font-size: 24px; }
}

/* ---------- Big input (amount) ---------- */
.lt-input-big {
  margin-top: 16px;
  position: relative;
  font-size: 32px;
  font-weight: 700;
}
.lt-input-big__border {
  border-bottom: 1px solid var(--lt-grey-300);
  position: relative;
  transition: border-color var(--lt-transition);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
}
.lt-input-big:focus-within .lt-input-big__border {
  border-bottom-color: var(--lt-accent);
  border-bottom-width: 2px;
}
.lt-input-big__field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 32px;
  font-weight: 700;
  color: var(--lt-text);
  padding: 8px 0;
  min-width: 0;
}
.lt-input-big__field::placeholder { color: var(--lt-grey-400); }
.lt-input-big__currency {
  font-size: 32px;
  font-weight: 700;
  color: var(--lt-text);
  padding-right: 8px;
  margin-left: 8px;
}

/* ---------- Standard input (floating label) ---------- */
.lt-input {
  margin-top: 8px;
  position: relative;
}
.lt-input__inner {
  position: relative;
  border-bottom: 1px solid var(--lt-grey-300);
  transition: border-color var(--lt-transition), border-width var(--lt-transition);
  padding-top: 18px;
  padding-bottom: 4px;
}
.lt-input:focus-within .lt-input__inner {
  border-bottom-color: var(--lt-accent);
  border-bottom-width: 2px;
  padding-bottom: 3px;
}
.lt-input__label {
  position: absolute;
  left: 0;
  top: 22px;
  font-size: 14px;
  color: var(--lt-grey-700);
  font-weight: 400;
  pointer-events: none;
  transition: top var(--lt-transition), font-size var(--lt-transition), color var(--lt-transition);
  background: transparent;
}
.lt-input:focus-within .lt-input__label,
.lt-input[data-empty="false"] .lt-input__label {
  top: 0;
  font-size: 12px;
  color: var(--lt-accent);
  font-weight: 500;
}
.lt-input__field {
  display: block;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--lt-text);
  padding: 4px 0;
  min-height: 24px;
}

/* ---------- Switch ---------- */
.lt-switch {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  cursor: pointer;
}
.lt-switch--compact { margin-top: 16px; }
.lt-switch__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lt-switch__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lt-text);
}
.lt-switch__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--lt-grey-700);
}
.lt-switch__track {
  flex-shrink: 0;
  width: 48px;
  height: 24px;
  background: var(--lt-grey-400);
  border: none;
  border-radius: var(--lt-radius-pill);
  position: relative;
  padding: 0;
  margin-top: 2px;
  transition: background-color var(--lt-transition);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.lt-switch__track[data-state="checked"] {
  background: var(--lt-accent);
}
.lt-switch__track:hover { filter: brightness(1.05); }
.lt-switch__knob {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--lt-white);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform var(--lt-transition);
  will-change: transform;
}
.lt-switch__knob[data-state="checked"] {
  transform: translateX(24px);
}

/* ---------- Link ---------- */
.lt-link {
  color: var(--lt-accent);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--lt-transition);
}
.lt-link:hover { color: var(--lt-accent-hov); text-decoration: underline; }

/* ---------- Payment list ---------- */
.lt-payment-list {
  margin-top: 24px;
  border: 1px solid var(--lt-grey-300);
}
.lt-payment {
  border-bottom: 1px solid var(--lt-grey-300);
  position: relative;
  transition: background-color var(--lt-transition);
}
.lt-payment:last-child { border-bottom: none; }
.lt-payment__head {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}
.lt-payment__head:hover { background: var(--lt-grey-100); }
.lt-payment__radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--lt-grey-400);
  border-radius: 50%;
  margin: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--lt-transition);
}
.lt-payment__radio:checked {
  border-color: var(--lt-accent);
}
.lt-payment__radio:checked::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--lt-accent);
  border-radius: 50%;
  animation: lt-pop 240ms ease-out;
}
.lt-payment__title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--lt-text);
  cursor: pointer;
}
.lt-payment__icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lt-payment__icons svg { display: block; height: 16px; width: auto; }
.lt-payment__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-in-out;
  padding: 0 16px;
}
.lt-payment--selected .lt-payment__body {
  max-height: 320px;
  padding-bottom: 16px;
}
.lt-payment--selected { background: var(--lt-form-bg); }

/* Card form 2-col row */
.lt-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

/* ---------- Contribute button ---------- */
.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--lt-radius-pill);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--lt-transition),
              box-shadow var(--lt-transition),
              background-color var(--lt-transition);
  outline: none;
  padding: 12px 24px;
  font-size: 14px;
}
.lt-btn--primary {
  background: var(--lt-accent);
  color: var(--lt-white);
}
.lt-btn--primary:hover {
  background: var(--lt-accent-hov);
  transform: translateY(-1px);
  box-shadow: var(--lt-shadow-hover);
}
.lt-btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}
.lt-btn--large {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  margin-top: 24px;
}
.lt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Secure block + Mangopay pill (per reference screenshot) ----------
 * Серая полоса с щитом и текстом "Leetchi certifies that this page is 100% secure",
 * под ней — компактная капсула с чёрной рамкой: "Powered by mangopay".
 * Без визуального шума — точно как на скриншоте пользователя. */
.lt-secure {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #ECEDEF;
  margin-top: 32px;
  border-radius: var(--lt-radius-sm);
}
.lt-secure__icon { flex-shrink: 0; display: inline-flex; }
.lt-secure__text {
  font-size: 13px;
  font-weight: 500;
  color: #2D7A4F;
  letter-spacing: 0.1px;
}
.lt-mangopay-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  margin: 18px auto 0 auto;
  border: 1.5px solid #2D0F37;
  border-radius: var(--lt-radius-sm);
  background: var(--lt-white);
  /* Контейнер .lt-form__inner — block; используем margin auto + width: max-content
     чтобы pill реально центрировался по горизонтали. */
  width: max-content;
}
.lt-mangopay-pill__by {
  font-size: 9px;
  font-weight: 600;
  color: #2D0F37;
  line-height: 1;
  margin-bottom: 2px;
}
.lt-mangopay-pill__name {
  font-size: 14px;
  font-weight: 800;
  color: #2D0F37;
  line-height: 1;
  letter-spacing: -0.2px;
}

/* ---------- Side column: image + description ---------- */
/* На mobile (< 768px) фото идёт ВЫШЕ формы (order: -1).
   На desktop — справа (order сбрасывается в media-блоке ниже). */
.lt-side {
  width: 100%;
  margin-top: 0;
  margin-bottom: 16px;
  order: -1;
}
/* ---------- Gallery / carousel ---------- */
.lt-side__gallery {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--lt-radius-md);
  background: linear-gradient(135deg, var(--lt-pink-200) 0%, var(--lt-pink-300) 100%);
  box-shadow: var(--lt-shadow-card);
  position: relative;
  /* JS-driven swipe: track translateX управляется из app.js */
  touch-action: pan-y; /* allow vertical scroll, horizontal — наш swipe */
  user-select: none;
  -webkit-user-select: none;
}
.lt-side__gallery[data-count="0"] .lt-side__placeholder { display: flex; }
.lt-side__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: rgba(45, 15, 55, 0.35);
  pointer-events: none;
}
.lt-side__track {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.lt-side__track.is-dragging { transition: none; }
.lt-side__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* Контрастный fallback для прозрачных PNG/GIF: чтобы прозрачные пиксели
     не создавали "артефактов" поверх соседнего слайда — у каждого слайда
     собственный однородный фон в стиле бренд-палитры. */
  background: linear-gradient(135deg, var(--lt-pink-200) 0%, var(--lt-pink-300) 100%);
}
.lt-side__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Чёткое scaling для разных DPI (Chromium / WebKit). */
  image-rendering: -webkit-optimize-contrast;
  display: block;
  pointer-events: none; /* swipe ловит на gallery, не на img */
}

/* Prev/next nav arrows (показываются на hover, всегда видны на touch) */
.lt-side__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lt-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: opacity var(--lt-transition),
              transform var(--lt-transition),
              background-color var(--lt-transition);
  opacity: 0;
  z-index: 2;
}
.lt-side__nav svg { width: 20px; height: 20px; }
.lt-side__nav--prev { left: 12px; }
.lt-side__nav--next { right: 12px; }
.lt-side__gallery:hover .lt-side__nav { opacity: 1; }
.lt-side__nav:hover {
  background: var(--lt-white);
  transform: translateY(-50%) scale(1.05);
}
.lt-side__nav:active { transform: translateY(-50%) scale(0.95); }
.lt-side__nav--hidden { display: none !important; }
@media (hover: none) {
  /* Touch-устройства: всегда показываем стрелки. */
  .lt-side__nav { opacity: 0.85; }
}

/* Dots indicator */
.lt-side__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.35);
  border-radius: var(--lt-radius-pill);
  z-index: 2;
  backdrop-filter: blur(2px);
}
.lt-side__gallery[data-count="0"] .lt-side__dots,
.lt-side__gallery[data-count="1"] .lt-side__dots { display: none; }
.lt-side__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background-color var(--lt-transition),
              transform var(--lt-transition);
}
.lt-side__dot:hover { background: rgba(255,255,255,0.85); }
.lt-side__dot.is-active {
  background: var(--lt-white);
  transform: scale(1.2);
}
.lt-side__desc {
  margin-top: 16px;
  padding: 24px;
  background: var(--lt-side-bg);
  border-radius: var(--lt-radius-md);
  font-size: 14px;
  line-height: 1.65;
  color: var(--lt-text);
  box-shadow: var(--lt-shadow-card);
  animation: lt-fade-in 0.6s ease-out 100ms both;
}
.lt-side__desc p { margin: 0 0 12px 0; }
.lt-side__desc p:last-child { margin-bottom: 0; }
.lt-side__desc h1, .lt-side__desc h2, .lt-side__desc h3, .lt-side__desc h4 {
  color: var(--lt-text);
  margin: 0 0 12px 0;
  font-weight: 700;
}
.lt-side__desc h1 { font-size: 22px; }
.lt-side__desc h2 { font-size: 18px; }
.lt-side__desc h3 { font-size: 16px; }
.lt-side__desc img {
  max-width: 100%;
  border-radius: var(--lt-radius-sm);
  margin: 12px 0;
}
.lt-side__desc a {
  color: var(--lt-accent);
  font-weight: 600;
  text-decoration: underline;
}
.lt-side__desc strong { font-weight: 700; }
.lt-side__desc em { font-style: italic; }
.lt-side__desc ul, .lt-side__desc ol {
  margin: 0 0 12px 0;
  padding-left: 24px;
}
.lt-side__desc ul { list-style: disc; }
.lt-side__desc ol { list-style: decimal; }
.lt-side__desc li { margin-bottom: 4px; }

/* ---------- Toast (для unavailable payment methods) ---------- */
.lt-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--lt-black-800);
  color: var(--lt-white);
  padding: 12px 20px;
  border-radius: var(--lt-radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  transition: transform 250ms ease-out, opacity 250ms ease-out;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
}
.lt-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Animations ---------- */
@keyframes lt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lt-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lt-pop {
  0% { transform: translate(-50%, -50%) scale(0); }
  60% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
 * Desktop layout (≥768px): center 5/12, side 5/12, left offset 2/12
 * ============================================================ */
@media (min-width: 768px) {
  .lt-main { padding-bottom: 120px; }
  .lt-grid__offset {
    display: block;
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
    min-height: 1px;
  }
  .lt-form {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
  }
  .lt-form__inner {
    max-width: 480px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .lt-side {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
    margin-top: 32px;
    margin-bottom: 0;
    padding-left: 32px;
    order: 0;
  }
  .lt-side__gallery {
    aspect-ratio: 4/5;
  }
  .lt-step-title { font-size: 32px; }
  /* На десктопе зелёная "Back" стрелка не нужна — там нет step-flow.
     Скрываем только сам блок-обёртку (heading top), чтобы заголовок не
     терял свой топ-margin. */
  .lt-step-heading__top { display: none; }
}

@media (min-width: 1024px) {
  .lt-step-title { font-size: 36px; }
  .lt-side { padding-left: 48px; }
}

/* ============================================================
 * Validation: error states for inputs
 * Подсветка невалидных полей. JS добавляет .is-invalid на .lt-input /
 * .lt-input-big и .lt-input__error <small> с текстом ошибки.
 * ============================================================ */
.lt-input.is-invalid .lt-input__inner,
.lt-input-big.is-invalid .lt-input-big__border {
  border-bottom-color: #D6233A !important;
  border-bottom-width: 2px !important;
}
.lt-input.is-invalid .lt-input__label {
  color: #D6233A !important;
}
.lt-input__error,
.lt-input-big__error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #D6233A;
  line-height: 1.3;
  animation: lt-fade-in 0.18s ease-out;
}
/* CGU невалидно (не отмечено) → подсвечиваем рамку switch + текст. */
.lt-switch.is-invalid {
  background: rgba(214, 35, 58, 0.06);
  border-radius: var(--lt-radius-sm);
  padding: 8px;
  margin: -8px;
  margin-top: 8px;
  border: 1px solid rgba(214, 35, 58, 0.4);
}
.lt-switch.is-invalid .lt-switch__title { color: #D6233A; }

/* ============================================================
 * Verification modal
 * Полноэкранный backdrop + центрированная панель.
 * Два состояния: loading (spinner) и error (warn icon + кнопка Verify).
 * Появляется после валидного contribute_click — управляется JS.
 * ============================================================ */
.lt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lt-modal[hidden] { display: none; }
.lt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 26, 0.55);
  backdrop-filter: blur(2px);
  animation: lt-fade-in 0.18s ease-out;
}
.lt-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--lt-white);
  border-radius: var(--lt-radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 32px 28px 28px 28px;
  animation: lt-slide-in 0.24s ease-out;
}
.lt-modal__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.lt-modal__state[hidden] { display: none; }
.lt-modal__caption {
  font-size: 15px;
  font-weight: 600;
  color: var(--lt-text);
  margin: 4px 0 0 0;
}
.lt-modal__sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--lt-grey-700);
  margin: 0;
  line-height: 1.5;
}
.lt-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--lt-text);
  margin: 8px 0 4px 0;
  line-height: 1.25;
}
.lt-modal__icon { display: inline-flex; }
.lt-modal__icon--warn {
  color: #E89500;
  background: rgba(232, 149, 0, 0.12);
  width: 64px; height: 64px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.lt-modal__state[data-state="error"] .lt-btn { margin-top: 16px; }

/* Spinner: 32px ring с зелёным сегментом, бесконечное вращение. */
.lt-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--lt-grey-300);
  border-top-color: var(--lt-accent);
  animation: lt-spin 720ms linear infinite;
  margin-bottom: 4px;
}
@keyframes lt-spin {
  to { transform: rotate(360deg); }
}
