:root {
  /* Тёплая база */
  --bg-body: #f3f0ea;
  --card-bg: #faf8f5;
  --bg-inner: #f1ece5;

  /* Текст — глубокий синий логотипа */
  --text-main: #0a0a2e;
  --text-muted: #6e6879;

  /* Акцент — красный только в ключевых точках */
  --accent: #e30613;
  --accent-hover: #c20510;
  --accent-soft: rgba(227, 6, 19, 0.07);

  /* Глубокий синий */
  --blue-deep: #00008b;
  --blue-soft: rgba(0, 0, 139, 0.06);

  /* Бордеры */
  --border: #e6e0d7;
  --border-strong: #d8d0c5;

  --font-global: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Соцсети */
  --color-tg: #2a9fd8;
  --color-vk: #4a7fd4;
  --color-max: #6b6fd4;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-global);
  -webkit-tap-highlight-color: transparent;
}

html {
  scrollbar-gutter: stable;
}

body {
  position: relative;
  background-color: var(--bg-body);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 12px 0;
  overflow-x: hidden;
}

/* Анимация фона */
@keyframes bgPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(2);
  }
  100% {
    transform: scale(1);
  }
}


/* Размытый фоновый слой */
body::before {
  content: '';
  position: fixed;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  z-index: -1;

  background:
    linear-gradient(rgba(10, 10, 46, 0.48), rgba(10, 10, 46, 0.48)),
    url('background/backgroundLogoRSKCity.png');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(6px);

  animation: bgPulse 20s ease-in-out infinite;
}



/* ОБЕРТКА ДЛЯ JS-МАСШТАБИРОВАНИЯ */
.card-scale-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  position: relative;
}

/* ГЛАВНЫЙ КОНТЕЙНЕР */
.phone-container {
  width: 480px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow:
    0 22px 50px rgba(10, 10, 46, 0.10),
    0 6px 16px rgba(10, 10, 46, 0.05);
  position: relative;
  overflow: hidden;
}

/* БЕГУЩАЯ СТРОКА — красный акцент */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid rgba(227, 6, 19, 0.22);
  border-radius: 14px;
  padding: 11px 0;
  margin-bottom: 20px;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  animation: marquee 15s linear infinite;
}

.ticker-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.ticker-item {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 16px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* HEADER */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-inner);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  font-size: 1.18rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-logo span {
  color: var(--accent); /* красный только в логотипе */
}

.brand-details {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 10px;
  line-height: 1.3;
}

/* Бейдж СРО — красный */
.badge-sro {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  box-shadow: 0 5px 16px rgba(227, 6, 19, 0.28);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  margin-top: -4px;
  margin-left: 6px;
  flex-shrink: 0;
}

.badge-sro:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.38);
}

.badge-sro:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(227, 6, 19, 0.22);
}

/* РАЗДЕЛИТЕЛЬ */
.section-divider {
  border: none;
  border-top: 1px solid var(--border-strong);
  margin: 20px 0;
}

/* HERO */
.hero-bento {
  background: var(--bg-inner);
  padding: 22px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.hero-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);          /* спокойный, без красного */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 1.48rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* METRICS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  background: var(--bg-inner);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.metric-card:active {
  transform: translateY(2px);
  background: #ebe6de;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 5px;
}

.metric-value .unit {
  color: var(--accent);               /* красный только в единицах */
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* SUB-METRICS */
.sub-metrics-actions {
  margin-bottom: 20px;
}

/* TABS */
.slider-header {
  margin-bottom: 10px;
}

.tab-switcher {
  display: flex;
  background: var(--bg-inner);
  padding: 4px;
  border-radius: 100px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  width: 100%;
  gap: 3px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 9px 2px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.tab-btn.active {
  background: var(--accent);           /* красный только у активного */
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.28);
}

/* SLIDER */
.slider-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 360px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: var(--bg-inner);
  border: 1px solid var(--border);
}

.slider-viewport::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('logo/LogoRSKBlack.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.07;
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

.slider-track {
  position: relative;
  z-index: 1;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 600%;
  height: 100%;
}

.slide-item {
  position: relative;
  width: 16.66667%;
  height: 100%;
  background: transparent;
  padding: 22px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.tab-title,
.tab-subtitle {
  color: var(--text-main);             /* спокойный тёмно-синий */
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.tab-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.tab-desc-main {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.staff-list,
.digital-list,
.base-list,
.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 7px 14px;
  padding-left: 18px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  list-style-type: disc;
}

.staff-list li::marker,
.digital-list li::marker,
.base-list li::marker,
.values-list li::marker {
  color: var(--accent);                /* красный только маркеры */
}

.mission-box {
  background: var(--blue-soft);        /* синяя мягкая подложка */
  border-left: 3px solid var(--blue-deep);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  font-style: italic;
  border-radius: 0 12px 12px 0;
  margin-bottom: 20px;
}

/* ГАЛЕРЕЯ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
  align-items: stretch;
  flex: 1;
}


.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease,
              filter 0.3s ease,
              opacity 0.3s ease;
  z-index: 1;
  height: 100%;
}

.gallery-grid:hover .gallery-card {
  filter: brightness(0.72) grayscale(10%);
  opacity: 0.88;
}

.gallery-grid .gallery-card:hover {
  transform: scale(1.025) translateY(-4px);
  filter: brightness(1) grayscale(0%);
  opacity: 1;
  z-index: 10;
  box-shadow: 0 12px 26px rgba(10, 10, 46, 0.15);
}

.gallery-card:active {
  transform: scale(0.98);
}

.gallery-thumb {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.gallery-info {
  padding: 10px;
  text-align: left;
}

.gallery-name {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
}

.gallery-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* АЧИВКИ*/

/* Контейнер слайда достижений */
.achievements-slide {
    display: flex;
    flex-direction: column;
    height: auto; /* ВАЖНО: не фиксируем высоту */
}

/* Сетка достижений */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
    height: 100%; /* растягиваем контейнер */
}

/* Карточка достижения */
.achievement-card {
	background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
	height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;          /* центр по горизонтали */
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.3s ease,
                filter 0.3s ease,
                opacity 0.3s ease;
}

/* Картинка */
.achievement-thumb {
    width: auto;                  /* НЕ растягиваем по ширине */
    height: auto;                 /* НЕ растягиваем по высоте */
    max-width: 50%;              /* чтобы не вылезала */
    max-height: 70%;             /* чтобы не вылезала */
    object-fit: contain;          /* сохраняем пропорции, фон прозрачный */
}

/* Информация */
.achievement-info {
    padding: 10px;
}

.achievement-name {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--text-main);
}

.achievement-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Hover-эффекты как в галерее */
.achievements-grid:hover .achievement-card {
    filter: brightness(0.72) grayscale(10%);
    opacity: 0.88;
}

.achievements-grid .achievement-card:hover {
    transform: scale(1.025) translateY(-4px);
    filter: brightness(1) grayscale(0%);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 12px 26px rgba(10, 10, 46, 0.15);
}

.achievement-card:active {
    transform: scale(0.98);
}


/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  background-color: rgba(10, 10, 46, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  background: #faf8f5;
  border-radius: 20px;
  width: 760px;
  max-width: 90vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  transition: transform 0.15s ease-out;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  background: #0a0a2e;
  display: block;
}

.lightbox-caption {
  padding: 18px 22px;
  background: #faf8f5;
}

.lightbox-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.lightbox-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  z-index: 10;
  line-height: 1;
}

@media (max-width: 600px) {
  .lightbox-content {
    width: 88vw !important;
    max-height: 78vh;
  }
  .lightbox-content img {
    max-height: 48vh;
  }
  .lightbox-caption {
    padding: 14px 16px;
  }
  .lightbox-title {
    font-size: 0.9rem;
  }
  .lightbox-text {
    font-size: 0.75rem;
  }
}

/* КНОПКИ */
.btn-act {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-act > span {
  text-align: center;
}

.btn-act > span:not(:only-child):last-child {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-act:active {
  transform: translateY(2px);
}

/* Главная кнопка — красный */
.btn-main {
  background: var(--accent);
  color: #ffffff;
  border-radius: 100px;
  border: 1px solid var(--accent);
  box-shadow: 0 7px 20px rgba(227, 6, 19, 0.30);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-main > span {
  margin: 0 auto;
  text-align: center;
  font-weight: 700;
}

.btn-main:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.40);
}

.btn-main:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.22);
}

/* Контакты */
.contact-header {
  text-align: center;
  margin-bottom: 8px;
}

.contact-header-details {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: -8px;
  line-height: 1.3;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.method-item {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  background: var(--bg-inner);
  height: 48px;
  padding: 0 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: all 0.25s ease;
  cursor: pointer;
}

.method-item:hover {
  color: var(--accent);
  border-color: rgba(227, 6, 19, 0.45);
  background: #ebe6de;
  transform: translateY(-2px);
}

.method-item:active {
  transform: translateY(1px);
  opacity: 0.9;
}

/* Пульсация телефона — красный */
.method-item.phone-pulse {
  border-color: var(--accent);
  animation: phonePulseGlow 2.8s infinite ease-in-out;
}

@keyframes phonePulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.35);
    border-color: rgba(227, 6, 19, 0.35);
  }
  50% {
    box-shadow: 0 0 16px rgba(227, 6, 19, 0.45);
    border-color: var(--accent);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.35);
    border-color: rgba(227, 6, 19, 0.35);
  }
}

/* Кнопка адреса / secondary */
.toggle-content-btn,
.btn-secondary {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.toggle-content-btn:hover,
.btn-secondary:hover {
  color: var(--accent);
  border-color: rgba(227, 6, 19, 0.45);
  background: #ebe6de;
  transform: translateY(-2px);
}

.toggle-content-btn:active,
.btn-secondary:active {
  transform: translateY(1px);
  opacity: 0.9;
}

/* СОЦСЕТИ */
.socials-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px 0;
  width: 100%;
}

.socials-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.socials-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  width: 100%;
}

.social-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-inner);
  box-shadow: 0 3px 8px rgba(10, 10, 46, 0.05);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.social-circle-btn svg {
  width: 30px;
  height: 30px;
}

.social-circle-btn.tg {
  color: var(--color-tg);
  border-color: rgba(42, 159, 216, 0.22);
  background: rgba(42, 159, 216, 0.06);
}

.social-circle-btn.vk {
  color: var(--color-vk);
  border-color: rgba(74, 127, 212, 0.22);
  background: rgba(74, 127, 212, 0.06);
}

.social-circle-btn.max {
  color: var(--color-max);
  border-color: rgba(107, 111, 212, 0.22);
  background: rgba(107, 111, 212, 0.06);
}

.social-circle-btn.tg:hover {
  transform: translateY(-5px) scale(1.07) rotate(360deg);
  border-color: var(--color-tg);
  box-shadow: 0 9px 20px rgba(42, 159, 216, 0.28);
}

.social-circle-btn.vk:hover {
  transform: translateY(-5px) scale(1.07) rotate(360deg);
  border-color: var(--color-vk);
  box-shadow: 0 9px 20px rgba(74, 127, 212, 0.28);
}

.social-circle-btn.max:hover {
  transform: translateY(-5px) scale(1.07) rotate(360deg);
  border-color: var(--color-max);
  box-shadow: 0 9px 20px rgba(107, 111, 212, 0.28);
}

.social-circle-btn:active {
  transform: translateY(-1px) scale(0.96);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* vCard кнопка — глубокий синий */
.vcard-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--text-main);
  color: #faf8f5;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.vcard-save-btn:hover {
  background: #1a1a4a;
  transform: translateY(-2px);
}

.vcard-save-btn:active {
  transform: translateY(1px);
}

/* Expand-боксы */
.expand-box {
  display: none;
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-top: 8px;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
  text-align: left;
}

.expand-box.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
}

.spec-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 900;
}

/* Карта */
.map-iframe-container {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border-dark);
}

/* CTA — больше синего, красный только акцентом */
.cta-bento {
  background: linear-gradient(-45deg, #0a0a2e, #1a1a5a, #00008b, #e30613);
  background-size: 400% 400%;
  animation: gradientBG 11s ease infinite;
  padding: 26px;
  border-radius: 20px;
  text-align: left;
  margin-top: 28px;
  margin-bottom: 28px;
  box-shadow: 0 10px 28px rgba(10, 10, 46, 0.18);
}

@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cta-title {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.cta-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  line-height: 1.5;
}

/* ФУТЕР */
footer {
  border-top: 1px solid var(--border-strong);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vcard-avatar {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 5px 16px rgba(227, 6, 19, 0.28);
}

.vcard-title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.vcard-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.35;
}

.vcard-avatar-img {
  max-width: 48%;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.copyright-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.copyright-box p {
  margin: 0;
  padding: 0;
}

.disclaimer-text {
  font-size: 0.58rem;
  font-weight: 400;
  opacity: 0.7;
  max-width: 90%;
  line-height: 1.35;
}

/* Сворачивание */
.main-content {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.content-top,
.content-bottom {
  max-height: 3000px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1),
              opacity 0.3s ease,
              margin 0.4s ease;
}

.main-content.collapsed .content-top,
.main-content.collapsed .content-bottom {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Модалка */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 10, 46, 0.70);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.confirm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.confirm-modal-card {
  background: #faf8f5;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  width: 320px;
  max-width: 85vw;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 16px 40px rgba(10, 10, 46, 0.22);
  transform-origin: center center;
  transition: opacity 0.25s ease;
}

.confirm-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.confirm-modal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.confirm-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.modal-btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.modal-btn.btn-action {
  background: var(--accent);
  color: #ffffff;
}

.modal-btn.btn-action:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.modal-btn.btn-copy {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(227, 6, 19, 0.28);
}

.modal-btn.btn-cancel {
  background: transparent;
  color: var(--text-muted);
}