:root {
  /* Палітра з асоціаціями довіри:
     --bg: теплий білий → чистота процесів;
     --text: насичений графіт → професіоналізм;
     --muted: м'який синьо-сірий → спокій/структурність;
     --accent: бургунді (глибокий малиновий) → лідерство/енергія;
  */
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #232a3a;
  --muted: #64748b;
  --accent: #b8143a;
  --accent-2: #8f1030;

  /* Тіні для відчуття «легкого преміуму» */
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-2: 0 16px 40px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

/* Типографіка */
.fw-800 {
  font-weight: 800
}

.text-accent {
  color: var(--accent)
}

.text-muted-2 {
  color: #475569
}


:root {
  --gold: #e5b35d;
  --dark: #0b0e12;
}

html,
body {
  height: 100%
}

body {
  scroll-behavior: smooth
}

/* Базовая скруглённость кнопок */
.navbar .btn {
  border-radius: 999px
}

/* Прозрачный фон по умолчанию + иконки/бордеры тогглера под светлый текст */
#siteNav {
  background-color: transparent;
  transition: background-color .9s ease, backdrop-filter .9s ease;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, .6);
}

.navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg);
}

.navbar-toggler {
  border-color: transparent !important
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  border-color: transparent !important;
  box-shadow: none !important
}

/* Offcanvas */
#offcanvasNav {
  --bs-offcanvas-width: 300px;
  background-color: #0b0b0bd4;
}

.offcanvas-header .btn-close {
  margin: 0;
}

#offcanvasNav .btn-close {
  --bs-btn-close-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2L14 14M14 2L2 14' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-image: var(--bs-btn-close-bg) !important;
  filter: none !important;
  opacity: 1 !important;
  width: 1.25rem;
  height: 1.25rem;
  background-size: 1.25rem 1.25rem;
}

#offcanvasNav .btn-close:hover,
#offcanvasNav .btn-close:focus {
  box-shadow: none !important
}

/* Синий фон + blur при прокрутке */
#siteNav.scrolled {
  background-color: rgb(218 220 215 / 35%) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Анимация: белый -> прозрачный при возврате к верху */
@keyframes whiteToTransparent {
  0% {
    background-color: rgba(255, 255, 255, .45)
  }

  100% {
    background-color: transparent
  }
}

#siteNav.fade-top {
  animation: whiteToTransparent .7s ease forwards
}

/* Плавное появление при входе в состояние скролла */
@keyframes navReveal {
  from {
    opacity: 0;
    transform: translateY(-6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

#siteNav.reveal {
  animation: navReveal .9s ease, backdrop-filter .9s ease
}

/* Светлые ссылки на фоне хедера */
.navbar .nav-link {
  color: rgba(255, 255, 255, .92)
}

.navbar .nav-link:hover {
  color: #fff
}

/* Если пользователь против анимаций */
@media (prefers-reduced-motion:reduce) {

  #siteNav,
  #siteNav.scrolled {
    transition: none
  }

  #siteNav.fade-top,
  #siteNav.reveal {
    animation: none !important
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 48px;
  /* background: linear-gradient(180deg, #fff 0%, #f9f9fb 100%) */
}

.hero .hero-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 18px;
  position: relative
}

.hero .hero-card .badge-soft {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  border: 1px solid #e9ecf2;
  border-radius: 999px;
  padding: .35rem .6rem;
  font-size: .8rem;
  box-shadow: var(--shadow)
}

.hero .hero-card .badge-soft.r {
  left: auto;
  right: 14px
}

.hero .hero-figure {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow)
}

.hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px
}

.hero .hero-stats div {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: .6rem;
  text-align: center
}

.hero .hero-stats strong {
  display: block;
  font-size: 1.1rem
}

.blob-1,
.blob-2 {
  position: absolute;
  filter: blur(60px);
  opacity: .35;
  z-index: 0
}

.blob-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(50% 50% at 50% 50%, #e5e7ff 0%, rgba(229, 231, 255, 0) 70%);
  top: -40px;
  left: -40px
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(50% 50% at 50% 50%, #ffd7e3 0%, rgba(255, 215, 227, 0) 70%);
  bottom: -60px;
  right: -40px
}



/* Общая база для CTA */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  transition: transform .2s ease, box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
  will-change: transform;
}

/* №1 — тёмная кнопка с внутренним свечением и выезжающей стрелкой */
.btn-cta-main {
  background: linear-gradient(90deg, #0b0e12, #1b1f29);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.btn-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}

.btn-cta-main:active {
  transform: translateY(0) scale(.98);
}

/* Подпись */
.btn-cta .cta-label {
  position: relative;
  z-index: 2;
  letter-spacing: .2px;
}

/* Стрелка внутри, по умолчанию чуть сдвинута влево и прозрачна */
.cta-arrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.btn-cta-main:hover .cta-arrow {
  transform: translateX(0);
  opacity: 1;
}

.arrow-svg {
  display: block;
}

/* Внутренний «блик» — тонкая бегущая полоса внутри кнопки */
.cta-glow {
  pointer-events: none;
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .35) 50%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-120%);
  animation: ctaGlowRun 2.2s cubic-bezier(.22, .61, .36, 1) infinite;
  opacity: .75;
}

@keyframes ctaGlowRun {
  0% {
    transform: translateX(-120%);
  }

  45% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* №2 — светлая с бегущими точками внутри */
.btn-cta-alt {
  background: #ffffff;
  color: #0b0e12;
  border: 2px solid #0b0e12;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.btn-cta-alt:hover {
  background: #0b0e12;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.btn-cta-alt:active {
  transform: translateY(0) scale(.98);
}

/* Контейнер точек */
.cta-dots {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: .25rem;
}

.cta-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
  transform: translateY(0);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.cta-dots .dot:nth-child(2) {
  animation-delay: .15s;
}

.cta-dots .dot:nth-child(3) {
  animation-delay: .30s;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: .6;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* Лёгкий внутренний риппл при hover — только границы кнопки */
.btn-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid transparent;
  transform: scale(.96);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease, border-color .35s ease;
}

.btn-cta-main:hover::after {
  border-color: rgba(255, 255, 255, .35);
  opacity: 1;
  transform: scale(1);
}

.btn-cta-alt:hover::after {
  border-color: rgba(255, 255, 255, .25);
  opacity: 1;
  transform: scale(1);
}

/* Доступность: фокусное кольцо */
.btn-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 148, 255, .35);
}

/* Сокращённая версия на очень узких экранах: уменьшим отступы */
@media (max-width: 360px) {
  .btn-cta {
    padding: .7rem 1.1rem;
    font-size: .95rem;
  }
}


/* Центровка и защита от горизонтального скролла */
.section-features {
  overflow-x: clip;
}

/* fallback можно hidden */
.feature-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-col .desc-box {
  background: #f9f9f9;
  color: #333;
  font-size: .95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  max-width: 360px;
  width: 100%;
}

/* на очень узких экранах чуть компактнее */
@media (max-width:360px) {
  .feature-col .desc-box {
    padding: .75rem !important;
  }
}

/* страховка от субпиксельных «сдвигов» на мобилках */
.btn-cta {
  overflow: hidden;
  contain: paint;
  transform: translateZ(0);
}

/* как крайняя мера — можно включить для всей страницы:
     body{ overflow-x:hidden; } */

/* Блок описания */
.desc-box {
  background: #f9f9f9;
  color: #333;
  font-size: .95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}



/* Sections */
.section {
  padding: 72px 0
}

.section-alt {
  background: #fff
}


/* База секции */
/* 1) Секция: оставляем цвет бэкапа, фон перенесём в ::before */
.section-accent{
  position: relative;
  overflow: hidden;
  color: #000;
  background: #fff;              /* бэкап на случай, если картинка не загрузится */
  isolation: isolate;
}
.section-accent > .container{ position: relative; z-index: 3; }

/* 2) Размытый фон (нижний слой) */
.section-accent::before{
  content: "";
  position: absolute;
  inset: -12px;                          /* вылет, чтобы края blur не резались */
  z-index: 0;                            /* самый низ */
  background: url("../img/fon-loft.webp") center / contain no-repeat;
  /* при необходимости фолбэк:
     background-image: url("../img/fon-loft.jpg"); */
  filter: blur(10px) saturate(105%);
  transform: scale(1.03);                /* компенсируем blur по краям */
  pointer-events: none;
  will-change: transform, filter;
}

/* Светлая маска поверх (как в вашем примере для ::after) */
.section-accent::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;                            /* между шарами и контентом */
  background:
    radial-gradient(120% 100% at 50% 20%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.28) 100%);
  mix-blend-mode: screen;                /* осветление без «забеливания» теней */
  pointer-events: none;
  /* общий регулятор силы эффекта:
     opacity: .85;  /* меньше — слабее подсветка, больше — сильнее */
}
@media (max-width: 575.98px) {
  .section-accent::before{
  content: "";
  position: absolute;
  inset: -12px;                  /* лёгкий вылет, чтобы края блюра не обрезались */
  z-index: 0;                    /* САМЫЙ НИЗ */
  background: url("../img/fon-loft-vertical.webp") center / cover no-repeat;
  filter: blur(10px) saturate(105%);
  transform: scale(1.03);        /* компенсируем блюр по краям */
  pointer-events: none;
}
.section-accent::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 100% at 50% 20%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.28) 100%);
  mix-blend-mode: screen;  /* светлее без «забеливания» теней */
  pointer-events: none;
  /* общий регулятор силы эффекта */
  /* opacity: .85; */
}

}





/* Cards & UI */
.shadow-soft {
  box-shadow: var(--shadow)
}

.shadow-xxl {
  box-shadow: var(--shadow-2)
}

.hover-up {
  transition: transform .25s ease, box-shadow .25s ease
}

.hover-up:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2)
}

.card .icon {
  font-size: 28px;
  margin-bottom: .5rem;
  color: var(--accent)
}

.price {
  font-weight: 800;
  font-size: 1.25rem
}

.citate {
  position: absolute;
  display: block;
  width: 400px;
  margin-top: -150px;
  margin-left: 20px;
  background-color: #03ffbe;
}

@media (max-width: 576px) {
  .citate {
    position: absolute;
    display: block;
    width: 350px;
    margin-top: -60px;
    margin-left: 10px;
    background-color: #03ffbe;
  }
}

/* About */
.about-card {
  background: linear-gradient(180deg, #fff, #f6f7fb);
  border-radius: 24px;
  padding: 28px
}

.about-card .ribbon {
  position: relative;
  display: inline-block;
  background: rgba(184, 20, 58, .1);
  color: var(--accent);
  border: 1px solid rgba(184, 20, 58, .25);
  border-radius: 999px;
  padding: .35rem .6rem;
  margin-bottom: 12px
}

.about-card .quote {
  font-size: 1.1rem;
  line-height: 1.5
}

.about-card .sign {
  margin-top: 10px;
  font-weight: 700
}

/* Cases */
.case-metrics {
  list-style: none;
  padding-left: 0;
  margin: 0 0 .5rem 0
}

.case-metrics li {
  padding-left: 0
}


/* Lists */
.list-checked {
  list-style: none;
  padding-left: 0
}

.list-checked li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .35rem
}

.list-checked li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800
}

.list-checked.light li::before {
  color: #fff
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid #edf0f6
}

/* Accent contrast */
.text-accent-contrast {
  color: #ffe9ef
}

/* Анімації (Intersection Observer додає .reveal) */
[data-animate] {
  opacity: 0;
  transform: translateY(16px)
}

.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: all .6s cubic-bezier(.2, .6, .2, 1)
}

[data-animate="float"] {
  transform: translateY(10px)
}

[data-delay="100"] {
  transition-delay: .1s
}

[data-delay="200"] {
  transition-delay: .2s
}

[data-delay="300"] {
  transition-delay: .3s
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 40px
  }

  .hero .hero-stats {
    grid-template-columns: 1fr
  }
}

.section-video {
  background: #fff;
  position: relative;
}

.section-video .section-title {
  font-weight: 800;
}

.video-swiper {
  padding: 8px 8px 32px 8px;
}

.video-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .08);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #e9eef6;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-play .play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(184, 20, 58, .92);
  box-shadow: 0 10px 30px rgba(184, 20, 58, .35);
  display: grid;
  place-items: center;
  transition: transform .15s ease;
}

.video-card:hover .play-btn {
  transform: scale(1.05);
}

.video-play i {
  color: #fff;
  font-size: 26px;
  margin-left: 2px;
}

.video-body {
  padding: 14px 14px 12px;
}

.video-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
}

.video-meta {
  font-size: .875rem;
  color: #6b7280;
}

/* Стрілки Swiper */
.video-swiper .swiper-button-prev,
.video-swiper .swiper-button-next {
  color: #232a3a;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.video-swiper .swiper-button-prev:after,
.video-swiper .swiper-button-next:after {
  font-size: 18px;
}

/* Пагінація */
.video-swiper .swiper-pagination-bullet {
  background: #c4c9d4;
  opacity: 1;
}

.video-swiper .swiper-pagination-bullet-active {
  background: #b8143a;
}


/* Telegram Instagram */
/* контейнер */
.soc-row { --size: 80px; }

/* ссылка */
.soc-row a.icon-link {
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* КРУГ: всегда круглый, клиппинг гарантирован */
.soc-row .circle {
  width: var(--size);
  height: var(--size);
  aspect-ratio: 1 / 1;              /* не «ломаемся» на мобиле */
  border-radius: 9999px !important; /* форс-круг */
  position: relative;
  overflow: hidden;                  /* режем всё внутри */
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; isolation: isolate;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.10));
  line-height: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* WebKit fix: приклеиваем маску радиуса при анимации */
  -webkit-mask-image: radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* Иконка: адаптивный размер, не вылазит из круга */
.soc-row .circle i {
  position: relative; z-index: 2; line-height: 1;
  font-size: clamp(28px, calc(var(--size) * 0.6), 60px);
}

/* Стеклянный блик — строго внутри */
.soc-row .circle .glass {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 120% at 30% 18%, rgba(255,255,255,.38), rgba(255,255,255,0) 60%);
  mix-blend-mode: screen; z-index: 1; pointer-events: none;
}

/* ===== Instagram: фон и анимация ТОЛЬКО внутри круга ===== */
.soc-row .ig {
  background: conic-gradient(from 0deg,
    #FFDC80, #F77737 20%, #F56040 40%, #E1306C 60%, #833AB4 80%, #FFDC80 100%);
  position: relative;
}
.soc-row .ig::before {
  content: ""; position: absolute; inset: 0;    /* ровно по кругу */
  border-radius: inherit; z-index: 0;
  background: conic-gradient(from 0deg,
    rgba(255,220,128,.95), rgba(247,119,55,.95) 20%, rgba(245,96,64,.95) 40%,
    rgba(225,48,108,.95) 60%, rgba(131,58,180,.95) 80%, rgba(255,220,128,.95) 100%);
  transform: scale(1.35);                       /* запас вместо inset:-42% */
  transform-origin: 50% 50%;
  animation: spin 6s linear infinite;
  will-change: transform;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* ===== Telegram: бегущий блик — тоже внутри круга ===== */
.soc-row .tg {
  background: #229ED9;
  position: relative;
}
.soc-row .tg::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; z-index: 0;
  background:
    radial-gradient(40% 60% at -20% 50%, rgba(255,255,255,.35), rgba(255,255,255,0) 60%) no-repeat,
    radial-gradient(30% 50% at 120% 50%, rgba(255,255,255,.25), rgba(255,255,255,0) 60%) no-repeat;
  animation: sweepX 3s ease-in-out infinite;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

/* hover (по желанию) */
.soc-row a.icon-link:hover .circle { transform: translateY(-2px); transition: transform .25s ease; }

/* a11y: меньше движения */
@media (prefers-reduced-motion: reduce) {
  .soc-row .ig::before, .soc-row .tg::before { animation: none; }
}

/* анимации */
@keyframes spin { to { transform: scale(1.35) rotate(360deg); } }
@keyframes sweepX {
  0%   { transform: translateX(-12%); }
  50%  { transform: translateX(12%); }
  100% { transform: translateX(-12%); }
}

/* мобильная подстройка размера круга (опционально) */
@media (max-width: 576px) {
  .soc-row { --size: 64px; }
}

  /* End Telegram Instagram */


  /* Стеклянный blur для card-body (как #siteNav.scrolled) */
.glass-body {
  background-color: rgba(218,220,215,0.35);         /* тот же цвет/прозрачность */
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);/* Safari */
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 1rem;                               /* мягкие углы (по желанию) */
  box-shadow: 0 10px 30px rgba(0,0,0,.08);        
}
/* Опционально: убрать сильный фон у .card (если есть), чтобы blur читался */
.card {
  background: transparent;
  border: none;
}

/* Тёмный текст на «стекле» остаётся читабельным */
.glass-body .form-label,
.glass-body .form-check-label,
.glass-body .text-muted-2{ color: rgba(0,0,0,.75); }
.glass-body .form-control,
.glass-body .form-select,
.glass-body .btn{ backdrop-filter: none; } /* чтобы элементы не размывали сами себя */


@media (max-width: 575.98px) {
  #leadForm .col-12.d-flex.align-items-center.justify-content-between {
    flex-direction: column;
    align-items: stretch;   /* тянем элементы на всю ширину */
    gap: 12px;              /* расстояние между чекбоксом и кнопкой */
    justify-content: flex-start;
  }
  #leadForm .col-12.d-flex.align-items-center.justify-content-between .btn {
    width: 100%;
  }
}


/*  ошибки  */
    /* Overlay + card */
    .err-backdrop {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(2, 6, 23, .65);
      z-index: 1080;
      animation: errFadeIn .25s ease-out forwards;
    }

    .err-card {
      width: min(92vw, 520px);
      background: #ffffff;
      color: #0f172a;
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(2, 6, 23, .25), 0 2px 8px rgba(2, 6, 23, .12);
      overflow: hidden;
      transform-origin: 50% 50%;
      animation: errPopIn .2s cubic-bezier(.2, .75, .3, 1.1) .05s both;
    }

    .err-head {
      padding: 16px 20px;
      color: #fff;
      background: radial-gradient(120% 120% at 0% 0%, #e52037 0%, #c2172d 60%, #8b1020 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .err-title {
      margin: 0;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: .3px;
    }

    .err-close {
      appearance: none;
      border: 0;
      background: rgba(255, 255, 255, .15);
      color: #fff;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      cursor: pointer;
      transition: transform .12s ease, background .12s ease;
    }

    .err-close:hover {
      transform: translateY(-1px);
      background: rgba(255, 255, 255, .22)
    }

    .err-body {
      padding: 22px 20px 8px 20px;
    }

    .err-msg {
      margin: 0 0 8px;
      font-size: 16px;
      line-height: 1.55;
      word-wrap: break-word;
    }

    .err-hint {
      font-size: 14px;
      color: #64748b;
      margin: 0 0 2px
    }

    .err-actions {
      display: flex;
      gap: 12px;
      padding: 16px 20px 22px 20px;
      flex-wrap: wrap;
    }

    .err-btn {
      appearance: none;
      border: 0;
      border-radius: 12px;
      padding: 12px 16px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .08);
      transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
    }

    .err-btn:active {
      transform: translateY(0);
    }

    .err-btn-primary {
      background: linear-gradient(90deg, #e52037, #c2172d);
      color: #fff;
    }

    .err-btn-primary:hover {
      box-shadow: 0 10px 22px rgba(229, 32, 55, .25);
      transform: translateY(-1px);
    }

    .err-btn-ghost {
      background: #f1f5f9;
      color: #0f172a;
    }

    .err-btn-ghost:hover {
      box-shadow: 0 6px 14px rgba(2, 6, 23, .12);
      transform: translateY(-1px);
    }

    .err-foot {
      padding: 10px 20px 18px;
      font-size: 12px;
      color: #94a3b8;
      text-align: right;
    }

    @keyframes errFadeIn {
      from {
        opacity: 0
      }

      to {
        opacity: 1
      }
    }

    @keyframes errPopIn {
      from {
        opacity: 0;
        transform: scale(.96) translateY(6px)
      }

      to {
        opacity: 1;
        transform: scale(1) translateY(0)
      }
    }

    @media (prefers-reduced-motion: reduce) {

      .err-backdrop,
      .err-card {
        animation: none !important
      }

      .err-btn,
      .err-close {
        transition: none !important
      }
    }
/*  End ошибки  */