/* =====================================================
   yuti-credit — публичный фронт
   Redesign 2025 — Banking-grade UI
   Шрифт: Manrope (Google Fonts, свободный, Кириллица)
   Референсы: open.ru, credistory.ru, sovcombank.ru
   ===================================================== */

/* ── Переменные ─────────────────────────────────────── */
:root {
  --fin-navy:        #06122A;
  --fin-blue:        #1751D0;
  --fin-blue-dark:   #1142B0;
  --fin-blue-light:  #EEF3FF;
  --fin-text:        #0F172A;
  --fin-text-2:      #4A5568;
  --fin-text-3:      #94A3B8;
  --fin-border:      #E4EAF2;
  --fin-bg:          #F6F8FB;
  --fin-white:       #FFFFFF;
  --fin-green:       #16A34A;
  --fin-danger:      #DC2626;
  --fin-shadow-xs:   0 1px 3px rgba(6, 18, 42, 0.06);
  --fin-shadow-sm:   0 2px 8px rgba(6, 18, 42, 0.08);
  --fin-shadow:      0 4px 24px rgba(6, 18, 42, 0.10);
  --fin-shadow-lg:   0 8px 40px rgba(6, 18, 42, 0.14);
  --fin-r-sm:        8px;
  --fin-r:           12px;
  --fin-r-lg:        16px;

  /* Legacy aliases — не ломаем успешные страницы */
  --yc-navy:          var(--fin-navy);
  --yc-blue:          var(--fin-blue);
  --yc-blue-soft:     var(--fin-blue-light);
  --yc-border:        var(--fin-border);
  --yc-muted:         var(--fin-text-2);
  --yc-danger-bg:     #FEF2F2;
  --yc-danger-border: #FECACA;
  --yc-danger-text:   #991B1B;
  --yc-radius:        var(--fin-r);
  --yc-shadow:        var(--fin-shadow-sm);
}

/* ── Типографика ─────────────────────────────────────── */
body {
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Страница фона ───────────────────────────────────── */
body.web {
  background: var(--fin-bg);
}

/* ── Снимаем ограничение контейнера для PC ──────────── */
body.web main.container {
  max-width: none;
  padding: 0;
  padding-bottom: 0;
}

/* ── Навигационная шапка ─────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  height: 60px;
  background: var(--fin-white);
  border-bottom: 1px solid var(--fin-border);
  box-shadow: var(--fin-shadow-xs);
  position: sticky;
  top: 0;
  z-index: 200;
}

.topbar .brand {
  display: flex;
  align-items: center;
}

.topbar .dot { display: none; }

.topbar .brand-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fin-navy);
  line-height: 1;
  text-decoration: none;
}

.topbar .lang { display: flex; gap: 4px; }

.topbar .chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--fin-border);
  color: var(--fin-text-2);
  background: var(--fin-white);
  transition: all 0.15s;
  text-decoration: none;
}

.topbar .chip:hover {
  border-color: var(--fin-blue);
  color: var(--fin-blue);
}

.topbar .chip-active {
  background: var(--fin-blue-light);
  border-color: #A5B4FC;
  color: var(--fin-blue);
}

/* ── Landing / Главная ───────────────────────────────── */
.landing {
  max-width: none;
}

/* Hero */
.landing-hero {
  margin-bottom: 0;
  padding: 60px max(24px, calc((100vw - 1280px) / 2 + 40px)) 56px;
  border-radius: 0;
  background: linear-gradient(165deg, #06122A 0%, #0D1F45 50%, #0C2361 100%);
  color: var(--fin-white);
  box-shadow: none;
}

@media (max-width: 640px) {
  .landing-hero { padding: 36px 20px 38px; }
}

.landing-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.landing-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93C5FD;
  opacity: 0.85;
  margin: 0;
  padding-top: 4px;
  flex: 1 1 auto;
  min-width: min(12rem, 100%);
}

.landing-hero__auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.landing-hero__auth--logged {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.landing-hero__user {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  text-align: right;
}

.landing-hero__user strong { font-weight: 700; color: #fff; }

.landing-hero__auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.landing-hero__btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--fin-r-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  backdrop-filter: blur(4px);
}

.landing-hero__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
}

.landing-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--fin-white);
}

.landing-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  font-weight: 400;
}

/* ── Панель доверия ──────────────────────────────────── */
.fin-trust-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--fin-white);
  border-bottom: 1px solid var(--fin-border);
  box-shadow: var(--fin-shadow-xs);
  /* Та же горизонтальная зона, что и у секции продуктов */
  padding-left:  max(24px, calc((100vw - 1280px) / 2 + 40px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 40px));
}

.fin-trust-bar__item {
  flex: 1 1 0;
  min-width: 120px;
  padding: 16px 20px;
  border-right: 1px solid var(--fin-border);
  text-align: center;
}

.fin-trust-bar__item:last-child { border-right: none; }

.fin-trust-bar__val {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fin-navy);
  line-height: 1;
  margin-bottom: 3px;
}

.fin-trust-bar__label {
  display: block;
  font-size: 0.74rem;
  color: var(--fin-text-2);
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .fin-trust-bar { display: none; }
}

/* ── Продукты ────────────────────────────────────────── */
.section.landing-products {
  background: var(--fin-white);
  padding: 40px max(24px, calc((100vw - 1280px) / 2 + 40px)) 44px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .section.landing-products { padding: 28px 20px 32px; }
}

.landing-products__h {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fin-navy);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

@media (min-width: 560px) {
  .landing-grid .land-card--wide { grid-column: span 2; }
}

.land-card {
  margin: 0;
  border-radius: var(--fin-r);
  border: 1px solid var(--fin-border);
  background: var(--fin-white);
  box-shadow: var(--fin-shadow-xs);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.15s ease;
}

.land-card:hover {
  box-shadow: var(--fin-shadow);
  transform: translateY(-2px);
  border-color: #C7D7F5;
}

.land-card__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  height: 100%;
  padding: 20px 20px 22px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.land-card__link:hover { color: inherit; }

/* Иконка карточки продукта — SVG в круглом контейнере */
.land-card__icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--fin-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.land-card__icon-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--fin-blue);
  stroke: currentColor;
  fill: none;
}

.land-card:hover .land-card__icon-wrap {
  background: var(--fin-blue);
}

.land-card:hover .land-card__icon-wrap svg {
  color: #fff;
}

/* скрываем оригинальный emoji (оставляем для обратной совместимости) */
.land-card__emoji { display: none; }

.land-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fin-navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.land-card__line {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fin-blue);
  line-height: 1.3;
}

.land-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.84rem;
  color: var(--fin-text-2);
  line-height: 1.5;
  font-weight: 400;
}

.land-card__cta {
  margin-top: 14px;
  align-self: stretch;
  text-align: center;
  justify-content: center;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--fin-r-sm);
  background: var(--fin-blue);
  color: var(--fin-white) !important;
  pointer-events: none;
  transition: background 0.15s;
}

.land-card:hover .land-card__cta { background: var(--fin-blue-dark); }

/* ── Карточка-кнопка на главной ──────────────────────── */
.credit-home-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--fin-r);
  text-decoration: none;
  color: var(--fin-white);
  background: linear-gradient(135deg, var(--fin-navy) 0%, var(--fin-blue) 100%);
  box-shadow: var(--fin-shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.credit-home-cta:hover {
  color: var(--fin-white);
  transform: translateY(-1px);
  box-shadow: var(--fin-shadow);
}

.credit-home-cta__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.credit-home-cta__sub { font-size: 0.8rem; opacity: 0.88; }

/* ── Кредитный калькулятор ───────────────────────────── */
.landing-calc-section {
  background: var(--fin-navy);
  padding: 56px max(24px, calc((100vw - 1280px) / 2 + 40px)) 64px;
}

.calc-wrap {
  width: 100%;
}

.calc-header {
  margin-bottom: 36px;
}

.calc-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.calc-sub {
  font-size: 0.95rem;
  color: #94A3B8;
  margin: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Левая колонка */
.calc-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calc-amount-display {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: -0.02em;
}

.calc-slider {
  --pct: 17%;
}

.calc-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--fin-r-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.calc-input:focus {
  border-color: #38BDF8;
  background: rgba(255,255,255,0.09);
}

/* Таблица результатов */
.calc-results {
  border-radius: var(--fin-r);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.calc-result-row:last-child { border-bottom: none; }

.calc-result-row--main {
  background: rgba(23, 81, 208, 0.25);
  padding: 14px 16px;
}

.calc-result-label {
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.calc-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(148,163,184,0.2);
  border: none;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.calc-result-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
  white-space: nowrap;
}

.calc-result-val--accent {
  font-size: 1.15rem;
  font-weight: 800;
  color: #38BDF8;
}

.calc-cta {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
}

/* Правая колонка */
.calc-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-chart-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--fin-r);
  padding: 20px;
}

.calc-chart-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.calc-pie-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.calc-pie-wrap canvas {
  flex-shrink: 0;
  width: 120px !important;
  height: 120px !important;
}

.calc-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cpl-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cpl-lbl {
  font-size: 0.8rem;
  color: #94A3B8;
  flex: 1;
}

.cpl-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F1F5F9;
}

.calc-bar-wrap {
  position: relative;
  height: 200px;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .landing-calc-section { padding: 36px 20px 44px; }
  .calc-inputs-row { grid-template-columns: 1fr 1fr; }
  .calc-pie-wrap canvas { width: 100px !important; height: 100px !important; }
}

/* ── Секция карты/адреса ─────────────────────────────── */
.landing-map-section {
  background: var(--fin-bg);
  padding: 56px max(24px, calc((100vw - 1280px) / 2 + 40px)) 64px;
  margin-top: 0;
}

@media (max-width: 640px) {
  .landing-map-section { padding: 36px 20px 44px; }
}

.landing-map-inner { max-width: 960px; margin: 0 auto; }

.landing-map-grid {
  display: grid;
  gap: 2rem 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .landing-map-grid { grid-template-columns: 1fr 1fr; }
}

.landing-map-col--text { text-align: center; }

.landing-map-icon-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.landing-map-pin {
  display: block;
  max-width: min(160px, 38vw);
  height: auto;
}

.landing-map-lead {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fin-navy);
  letter-spacing: -0.02em;
}

.landing-map-actions { display: flex; justify-content: center; }

.landing-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--fin-white) !important;
  background: var(--fin-navy);
  box-shadow: var(--fin-shadow-sm);
  letter-spacing: -0.01em;
}

.landing-map-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--fin-shadow);
  text-decoration: none;
}

.landing-map-btn img { width: 24px; height: 24px; flex-shrink: 0; }

.landing-map-col--visual { min-width: 0; }

.landing-map-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--fin-r-lg);
  box-shadow: var(--fin-shadow);
}

@keyframes landing-float-up-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.floating-up { animation: landing-float-up-down 3s ease-in-out infinite; }

/* ── Auth bar (на других страницах) ─────────────────── */
.auth-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--fin-r);
  background: var(--fin-white);
  border: 1px solid var(--fin-border);
  box-shadow: var(--fin-shadow-xs);
}

.auth-bar__user { font-size: 0.9rem; color: var(--fin-text); font-weight: 500; }
.auth-bar__actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.auth-bar__hint { flex: 1; min-width: 0; }

/* ── Auth modal ──────────────────────────────────────── */
.yc-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.yc-auth-modal[hidden] { display: none !important; }

.yc-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 42, 0.55);
  cursor: pointer;
}

.yc-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: min(90vh, 540px);
  overflow: auto;
  padding: 28px 28px 24px;
  border-radius: var(--fin-r-lg);
  background: var(--fin-white);
  box-shadow: var(--fin-shadow-lg);
  border: 1px solid var(--fin-border);
}

.yc-auth-modal__dialog::before {
  content: "";
  display: block;
  height: 4px;
  margin: -28px -28px 20px;
  border-radius: var(--fin-r-lg) var(--fin-r-lg) 0 0;
  background: linear-gradient(90deg, var(--fin-navy) 0%, var(--fin-blue) 100%);
}

.yc-auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--fin-r-sm);
  background: var(--fin-bg);
  color: var(--fin-text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yc-auth-modal__close:hover { background: var(--fin-border); color: var(--fin-text); }

.yc-auth-modal__title {
  margin: 0 2rem 16px 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fin-navy);
}

.yc-auth-modal__error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--fin-r-sm);
  font-size: 0.88rem;
  line-height: 1.4;
  background: var(--yc-danger-bg);
  border: 1px solid var(--yc-danger-border);
  color: var(--yc-danger-text);
}

.yc-auth-tabs {
  display: flex;
  margin-bottom: 16px;
  border-radius: 10px;
  padding: 3px;
  background: var(--fin-bg);
}

.yc-auth-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--fin-text-2);
}

.yc-auth-tab.is-active {
  background: var(--fin-white);
  color: var(--fin-navy);
  box-shadow: var(--fin-shadow-xs);
}

.yc-auth-panel:not(.is-active) { display: none; }

.yc-auth-form { display: flex; flex-direction: column; gap: 14px; }

.yc-auth-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fin-text);
}

.yc-auth-label .input { font-weight: 400; }

.yc-auth-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ── Страница формы заявки ───────────────────────────── */
.credit-page { padding-bottom: 40px; }

.credit-hero {
  margin-bottom: 0;
  padding: 48px max(20px, calc((100vw - 860px) / 2 + 20px)) 52px;
  border-radius: 0;
  background: linear-gradient(165deg, #06122A 0%, #0D1F45 50%, #0C2361 100%);
  color: var(--fin-white);
}

@media (max-width: 640px) {
  .credit-hero { padding: 28px 20px 32px; }
}

.credit-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.credit-hero__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

.credit-hero__product-emoji { display: none; }

/* Строка иконка + заголовок в герое */
.credit-hero__heading-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.credit-hero__heading-row .credit-hero__title {
  margin: 0;
}

/* Иконка продукта в тёмном герое — белая */
.credit-hero .land-card__icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
  transition: none;
}

.credit-hero .land-card__icon-wrap svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.credit-hero .land-card__icon-wrap:hover {
  background: rgba(255, 255, 255, 0.12);
}

.credit-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--fin-r);
  background: var(--yc-danger-bg);
  border: 1px solid var(--yc-danger-border);
  color: var(--yc-danger-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.credit-alert::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.credit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  background: var(--fin-bg);
  padding: 28px 32px 40px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .credit-form { padding: 20px 16px 32px; }
}

.credit-section {
  background: var(--fin-white);
  border: 1px solid var(--fin-border);
  border-radius: var(--fin-r);
  padding: 22px 24px;
  box-shadow: var(--fin-shadow-xs);
}

.credit-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fin-border);
}

.credit-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--fin-r-sm);
  background: var(--fin-blue-light);
  color: var(--fin-blue);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.credit-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fin-navy);
  letter-spacing: -0.01em;
}

.credit-section__hint {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--fin-text-2);
  line-height: 1.4;
}

.credit-grid { display: grid; gap: 14px; }

@media (min-width: 520px) {
  .credit-grid--2 { grid-template-columns: 1fr 1fr; }
  .credit-grid--2 .credit-field--full { grid-column: 1 / -1; }
}

.credit-field label,
.credit-field .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--fin-text);
  letter-spacing: -0.005em;
}

.credit-field .req { color: var(--fin-danger); font-weight: 700; }
.credit-field .input { width: 100%; }

.credit-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.credit-amount-wrap .input {
  padding-right: 36px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.credit-amount-suffix {
  position: absolute;
  right: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fin-text-2);
  pointer-events: none;
}

/* ── Loan amount slider ─────────────────────────────────── */
.loan-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loan-slider-display {
  display: flex;
  justify-content: center;
}

.loan-slider-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fin-blue);
  line-height: 1;
}

.loan-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--fin-blue) 0%,
    var(--fin-blue) var(--pct, 17%),
    #E2E8F0 var(--pct, 17%),
    #E2E8F0 100%
  );
  outline: none;
  cursor: pointer;
}

/* На тёмном фоне калькулятора: неактивная часть трека темнее */
.landing-calc-section .loan-slider {
  background: linear-gradient(
    to right,
    #38BDF8 0%,
    #38BDF8 var(--pct, 17%),
    rgba(255,255,255,0.15) var(--pct, 17%),
    rgba(255,255,255,0.15) 100%
  );
}

.landing-calc-section .loan-slider::-webkit-slider-thumb {
  border-color: #38BDF8;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

.landing-calc-section .loan-slider::-webkit-slider-thumb:hover,
.landing-calc-section .loan-slider::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.2);
}

.landing-calc-section .loan-slider-labels span {
  color: #64748B;
}

.landing-calc-section .loan-slider-labels {
  margin-top: 4px;
}

.loan-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--fin-blue);
  box-shadow: 0 2px 8px rgba(23, 81, 208, 0.25);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.loan-slider::-webkit-slider-thumb:hover,
.loan-slider::-webkit-slider-thumb:active {
  box-shadow: 0 0 0 6px rgba(23, 81, 208, 0.15);
}

.loan-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--fin-blue);
  box-shadow: 0 2px 8px rgba(23, 81, 208, 0.25);
  cursor: pointer;
}

.loan-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.loan-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fin-text-2);
  font-weight: 500;
}

/* Зоны загрузки */
.upload-zone {
  display: flex;
  flex-direction: column;
  border-radius: var(--fin-r);
  overflow: hidden;
  border: 1px solid var(--fin-border);
  background: var(--fin-bg);
}

.upload-zone__click {
  position: relative;
  min-height: 120px;
  padding: 20px 16px;
  border: 2px dashed #C7D7F0;
  border-radius: var(--fin-r);
  background: var(--fin-bg);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.upload-zone:hover .upload-zone__click,
.upload-zone:focus-within .upload-zone__click {
  border-color: var(--fin-blue);
  background: var(--fin-blue-light);
}

.upload-zone--required .upload-zone__click { border-color: #93C5FD; }

.upload-zone__inner { pointer-events: none; text-align: center; }

.upload-zone__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 6px;
  opacity: 0.85;
}

.upload-zone__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fin-navy);
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.upload-zone__sub {
  margin: 0;
  font-size: 0.76rem;
  color: var(--fin-text-2);
  line-height: 1.35;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.upload-zone__picked {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--fin-green);
  font-weight: 600;
  word-break: break-word;
  line-height: 1.4;
  background: var(--fin-white);
  border-top: 1px solid var(--fin-border);
  min-height: 40px;
}

.upload-zone__picked.is-empty {
  color: var(--fin-text-2);
  font-weight: 400;
}

/* Кнопки формы */
.credit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.credit-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
  padding: 2px 0;
}
.credit-consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--fin-blue, #1751D0);
  cursor: pointer;
}
.credit-consent-label a {
  color: var(--fin-blue, #1751D0);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.credit-consent-label a:hover { text-decoration: none; }

.credit-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: -0.01em;
}

.credit-actions .btn-secondary { text-align: center; }

.credit-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 480px) {
  .credit-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .credit-actions .btn { width: auto; min-width: 200px; }
  .credit-actions .btn-secondary { flex: 1; min-width: 140px; }
}

/* Telegram miniapp — компактные отступы */
body.miniapp .credit-hero        { padding: 20px 16px 24px; }
body.miniapp .credit-form        { padding: 16px; }
body.miniapp .landing-hero       { padding: 28px 16px 32px; }
body.miniapp .section.landing-products { padding: 20px 16px 24px; }

/* Прочее */
.landing-details {
  border: 1px solid var(--fin-border);
  border-radius: var(--fin-r);
  padding: 8px 16px;
  background: var(--fin-bg);
}

.landing-details__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fin-text-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Кнопки — типографика */
.btn {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════════════════════
   /success — страница заявки клиента (тёмная тема)
   ══════════════════════════════════════════════════════ */

.order-page {
  margin: 0;
  min-height: 100vh;
  background: #090E1A;
  color: #E2EAF6;
  font-family: 'Manrope', system-ui, sans-serif;
}

.order-page a { color: #93C5FD; }

.order-page .bg-image-1 {
  background: linear-gradient(165deg, #090E1A 0%, #0D1935 40%, #0A1628 100%);
  padding-bottom: 2rem;
}

.order-page .success-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.25rem;
}

.order-page .success-header--minimal {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
}

.order-page .success-header__back {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s;
}

.order-page .success-header__back:hover { color: #CBD5E1; }

.order-page .btn-success-chat {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--fin-white) !important;
  background: var(--fin-blue);
  border: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(23, 81, 208, 0.35);
}

.order-page .btn-success-chat:hover { filter: brightness(1.08); color: #fff !important; }

.order-success-hero {
  max-width: 500px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  border-radius: var(--fin-r-lg);
  background: rgba(10, 20, 44, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  text-align: center;
}

.order-success-hero__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #4ADE80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.order-success-hero__title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #F1F5F9;
}

.order-success-hero__lead {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: #94A3B8;
  font-weight: 400;
}

.order-success-hero__number-card {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--fin-r);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.order-success-hero__number-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 5px;
}

.order-success-hero__number {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.35;
  word-break: break-word;
}

.order-success-hero__queue {
  margin: 0 0 14px !important;
  font-size: 1rem !important;
  color: #93C5FD !important;
  font-weight: 600 !important;
}

.order-success-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

@media (min-width: 480px) {
  .order-success-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .order-success-hero__actions .btn { flex: 0 1 auto; min-width: 0; }
}

.order-page .order-btn-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  box-shadow: none !important;
  font-weight: 600;
}

.order-page .order-btn-cancel:hover {
  color: #FCA5A5 !important;
  border-color: rgba(248, 113, 113, 0.5) !important;
  background: rgba(127, 29, 29, 0.12) !important;
}

.order-page .order-btn-cancel:disabled { opacity: 0.45; cursor: not-allowed; }

.order-success-hero__cancel-status { color: #94A3B8 !important; }

.order-page-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.order-page .btn.gradient-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #F8FAFC !important;
  background: linear-gradient(135deg, #15803D 0%, #16A34A 60%, #22C55E 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.order-page .btn.gradient-green:hover { filter: brightness(1.06); color: #fff !important; }
.order-page .btn.gradient-green:disabled { opacity: 0.5; cursor: not-allowed; }

.order-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.order-grid {
  display: grid;
  row-gap: 10px;
  column-gap: 18px;
  grid-template-columns: 1fr;
  margin: 0;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--fin-r-sm);
}

.order-row dt { font-size: 14px; color: #94A3B8; font-weight: 500; }
.order-row dd { margin: 0; font-size: 15px; font-weight: 700; text-align: right; min-width: 130px; color: #F1F5F9; }

.order-page .order-success-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.order-page .order-success-block { width: 100%; max-width: 600px; text-align: center; }
.order-page .order-success-block h1,
.order-page .order-success-block p { text-align: center; }
.order-page .order-success-block .order-id { display: block; margin-top: 5px; font-size: 0.85em; font-weight: 500; opacity: 0.8; }

.gradient-wrapper {
  position: relative;
  border-radius: var(--fin-r);
  overflow: hidden;
  background: radial-gradient(circle at 95% 5%, #112040 0%, #0A1525 50%, #07101F 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.gradient-overlay { padding: 20px 20px 28px; }

.order-page footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  margin-top: 2rem;
}

.order-page footer .tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1 !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.order-page footer .tg-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }

.order-page .subfooter { font-size: 0.83rem; color: #64748B; }
.order-page .subfooter a { color: #64748B; }

@media (max-width: 640px) {
  .order-row dd { font-size: 14px; min-width: 100px; }
}
