/**
 * 3 СУПЕРСИЛЫ - Стили лендинга
 *
 * CSS ПЕРЕМЕННЫЕ ДЛЯ SPACING - редактируй их для изменения отступов
 */

/* === SPACING SYSTEM === */
:root {
  /* GAP - отступы между элементами */
  --gap-xs: 5px;
  --gap-sm: 10px;
  --gap-md: 15px;
  --gap-lg: 20px;
  --gap-xl: 30px;
  --gap-xxl: 50px;

  /* PADDING - внутренние отступы */
  --pad-btn: 9px 40px;
  --pad-text: 10px 40px;
  --pad-review: 25px;
  --pad-legal: 15px 20px;

  /* MARGIN - внешние отступы */
  --margin-review-top: 15vh;
  --margin-review-bottom: 30px;
  --margin-link-top: 5px;
  --margin-text-top: -20vh;

  /* WIDTH - ширина блоков */
  --width-content: 1200px;
  --width-review: 450px;
  --width-review-mobile: 320px;
  --width-button: 280px;
  --width-text-mobile: 400px;

  /* GAP между элементами */
  --gap-content: 20px;
  --gap-container: 15px;
  --gap-legal: 15px;

  /* BORDER RADIUS */
  --radius-lg: 50px;
  --radius-md: 30px;
  --radius-sm: 12px;

  /* Анимация появления - задержки */
  --delay-1: 0.3s;
  --delay-2: 0.8s;
  --delay-3: 1.3s;
  --delay-4: 1.8s;
  --delay-5: 2.5s;
}

/* === БАЗОВЫЕ СТИЛИ === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: url('../../parents_pic.jpg') no-repeat center +25% fixed;
  background-size: cover;
  color: white;
  text-align: center;
}

/* === СЕКЦИИ (ЭКРАНЫ) === */
.screen {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Третий экран - без принудительного центрирования по вертикали */
#screen-tariffs {
  justify-content: flex-start;
  min-height: auto;
  padding-bottom: 40px;
}

/* Четвертый экран - без принудительного центрирования по вертикали */
#screen-faq {
  justify-content: flex-start;
  min-height: auto;
  padding-bottom: 80px;
}

#screen-tariffs .header-main {
  position: absolute;
  top: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
}

/* Для мобильных браузеров - компенсация адресной строки */
@supports (-webkit-touch-callout: none) {
  .screen {
    min-height: -webkit-fill-available;
  }
}

/* Fallback для Safari mobile */
@supports (-webkit-touch-callout: none) and (not (min-height: 100vh)) {
  .screen {
    min-height: 100vh;
  }
}

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-content);
  width: 100%;
  max-width: var(--width-content);
  padding: 0 var(--gap-lg);
}

/* === ГЛАВНЫЙ ТЕКСТ === */
#main-text {
  position: absolute;
  top: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
}

.text-only {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--pad-text);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  width: max-content;
  max-width: 95vw;
}

.text-only h1 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(50px, 10vw, 100px);
  line-height: 0.85;
  margin-bottom: var(--gap-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.text-only p {
  font-size: clamp(16px, 2.5vw, 22px);
  opacity: 0.9;
  line-height: 1.4;
  white-space: nowrap;
}

/* === СЛАЙДЕР ОТЗЫВОВ === */
.review-container {
  width: 100%;
  max-width: var(--width-review);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 35vh 0 var(--margin-review-bottom) 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.review-box {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--pad-review);
  width: 100%;
  text-align: center;
  position: relative;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.review-text {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
  margin-bottom: var(--gap-md);
  transition: opacity 0.5s ease;
  display: flex;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  align-items: center;
  justify-content: center;
}

.review-author {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  transition: opacity 0.5s ease;
}

/* === КНОПКА === */
.mobile-button {
  display: block;
  font-weight: 700;
  color: #E4E9B1 !important;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  padding: var(--pad-btn);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  width: fit-content;
}

.mobile-button:hover {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.8);
  color: white !important;
}

/* Кнопка FAQ - сразу видимая */
.faq-button-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.mobile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-container);
  width: 100%;
}

/* === ССЫЛКА НАЗАД === */
.back-link {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  text-decoration: none;
  margin: var(--margin-link-top) 0 0 0;
  transition: color 0.3s ease;
  opacity: 0;
}

.back-link:hover {
  color: rgba(255,255,255,1);
}

/* === ВТОРОЙ ЭКРАН - отдельные классы === */
#screen-content {
  position: relative;
}

#content-text {
  position: absolute;
  top: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
}

.header-main {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--pad-text);
  text-align: center;
  width: max-content;
  max-width: 95vw;
}

.header-main h1 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(50px, 10vw, 100px);
  line-height: 0.85;
  margin-bottom: var(--gap-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.slider-main {
  width: 100%;
  max-width: var(--width-review);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 35vh 0 var(--margin-review-bottom) 0;
}

.slider-box {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--pad-review);
  width: 100%;
  text-align: center;
  position: relative;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.slider-content {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.2;
  color: rgba(255,255,255,0.95);
  text-align: justify;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.slider-content ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
  text-align: left;
}

.slider-content li {
  margin-bottom: 5px;
  list-style-type: disc;
}

/* === СТРЕЛКИ И ТОЧКИ СЛАЙДЕРОВ === */
.review-container,
.slider-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
}

.slider-arrow {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: rgba(255,255,255,0.8);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-arrow:hover {
  background: rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.8);
  color: white;
  transform: scale(1.1);
}

.slider-arrow:active {
  transform: scale(0.95);
}

.slider-arrow-left {
  left: -50px;
}

.slider-arrow-right {
  right: -50px;
}

.slider-dots {
  display: flex;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255,255,255,0.5);
}

.dot.active {
  background: #E4E9B1;
  width: 30px;
  border-radius: 5px;
}

/* Мобильные адаптеры для стрелок и точек */
@media (max-width: 480px) {
  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .slider-arrow-left {
    left: 5px;
  }

  .slider-arrow-right {
    right: 5px;
  }

  .review-container,
  .slider-main {
    gap: var(--gap-sm);
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 24px;
  }
}

/* === ТАРИФЫ === */
.tariffs-container {
  display: flex;
  flex-direction: row;
  gap: var(--gap-xl);
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin-top: 18vh;
}

.tariff-card {
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tariff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.3);
}

.tariff-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--gap-md);
  color: #E4E9B1;
}

.tariff-features {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-md);
  flex: 1;
}

.tariff-feature {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.2;
  color: rgba(255,255,255,0.9);
}

.tariff-feature-small {
  font-size: clamp(12px, 1.5vw, 14px);
  line-height: 1.3;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
}

.tariff-price {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 400;
  color: white;
}

.tariff-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  margin-bottom: var(--gap-md);
}

.tariff-old-price {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
}

.tariff-button {
  display: block;
  font-weight: 700;
  color: #E4E9B1 !important;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  padding: var(--pad-btn);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 200px;
}

.tariff-button:hover {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.8);
  color: white !important;
}

/* === ТАЙМЕР === */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  margin-top: 0;
}

.timer-text {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timer-value {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  color: #E4E9B1;
  text-shadow: 1px1px 3px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  padding: var(--gap-xs) var(--gap-lg);
  letter-spacing: 2px;
}

/* === FAQ (ЧАСТЫЕ ВОПРОСЫ) === */
#screen-faq .header-main {
  position: absolute;
  top: 2.5vh;
  left: 50%;
  transform: translateX(-50%);
}

.faq-container {
  width: 100%;
  max-width: 900px;
  margin: 20vh auto 0;
}

.faq-item {
  width: 100%;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--gap-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255,255,255,0.05);
}

.faq-text {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  font-family: 'Roboto', sans-serif;
  flex: 1;
  padding-right: var(--gap-md);
}

.faq-icon {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 28px;
  font-weight: 300;
  color: #E4E9B1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 var(--gap-lg) var(--gap-lg);
}

.faq-answer p {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  font-family: 'Roboto', sans-serif;
  margin: 0 0 10px 0;
  text-align: justify;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 10px 0 0 20px;
  padding-left: 20px;
  text-align: left;
}

.faq-answer li {
  margin-bottom: 8px;
  list-style-type: disc;
  color: rgba(255,255,255,0.8);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.5;
  font-family: 'Roboto', sans-serif;
  hyphens: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* === ЮРИДИЧЕСКИЙ БЛОК === */
.legal-info {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--gap-legal);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2000;
}

.legal-info:hover .legal-block {
  max-height: 300px;
  transform: translateY(-5px);
}

.legal-block {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  line-height: 1.4;
  padding: var(--pad-legal);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-align: left;
  max-height: 35px;
  overflow: hidden;
  transition: max-height 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.legal-block strong {
  display: block;
  text-align: center;
  font-weight: 700;
  margin-bottom: var(--gap-xs);
}

.legal-block a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-block a:hover {
  color: rgba(255,255,255,1);
  text-decoration: underline;
}

/* === МОБИЛЬНЫЕ АДАПТЕРЫ === */
.mobile-br { display: none; }
.desktop-br { display: block; }

@media (max-width: 480px) {
  .mobile-br { display: block; }
  .desktop-br { display: none; }

  /* Заголовки на мобильном - ниже от края */
  #main-text,
  #content-text,
  #screen-tariffs .header-main {
    top: 6vh !important;
  }

  .text-only {
    width: 100%;
    max-width: var(--width-text-mobile);
    padding: var(--gap-sm) var(--gap-lg);
    border-radius: var(--radius-md);
  }
  .text-only h1 { white-space: normal; font-size: 50px; line-height: 1; }
  .text-only p { white-space: normal; font-size: 16px; padding: 0 var(--gap-sm); }
  .review-container {
    max-width: var(--width-review-mobile);
    margin: 35vh 0 var(--gap-lg) 0;
  }

  /* Мобильные адаптеры для второго экрана */
  .header-main {
    width: 100%;
    max-width: var(--width-text-mobile);
    padding: var(--gap-sm) var(--gap-lg);
    border-radius: var(--radius-md);
  }
  .header-main h1 { white-space: normal; font-size: 50px; line-height: 1; }
  .slider-main {
    max-width: var(--width-review-mobile);
    margin: 35vh 0 var(--gap-lg) 0;
  }

  /* Мобильные адаптеры для третьего экрана */
  #screen-tariffs .header-main {
    margin-top: 0 !important;
  }

  /* Мобильные адаптеры для тарифов */
  .tariffs-container {
    flex-direction: column;
    align-items: center;
    gap: var(--gap-lg);
    margin-top: 20vh;
  }

  .tariff-card {
    min-width: auto;
    max-width: var(--width-text-mobile);
    width: 100%;
    padding: var(--gap-lg);
  }

  .tariff-title {
    font-size: 28px;
  }

  .tariff-price {
    font-size: 32px;
  }

  .legal-info {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    left: 0;
    transform: none;
    gap: 0;
    max-height: 45px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
  }
  .legal-info.expanded {
    max-height: 80vh;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
  }
  .legal-block {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: none !important;
    padding: var(--gap-md) var(--gap-lg);
    text-align: center;
    max-height: none !important;
  }
}

@media (min-width: 481px) {
  .mobile-button { width: var(--width-button); }
}

/* === FLOATING WIDGET === */
.floating-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E4E9B1 0%, #c5d98a 100%);
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: floating-pulse 2s infinite;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.floating-btn-icon {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

@keyframes floating-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  50% {
    box-shadow: 0 4px 30px rgba(228, 233, 177, 0.5);
  }
}

/* Модальное окно */
.floating-modal {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-modal-content {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: var(--gap-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative;
}

.floating-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease;
}

.floating-close:hover {
  background: rgba(255,255,255,0.2);
}

.floating-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #E4E9B1;
  text-align: center;
  margin-bottom: var(--gap-md);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-sm) var(--gap-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(5px);
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.social-vk .social-icon {
  background: #0077FF;
}

.social-telegram .social-icon {
  background: #0088cc;
}

.social-max {
  width: 100%;
  cursor: pointer;
}

.social-max .social-icon {
  background: #9B59B6;
  color: white;
}

.social-max:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateX(5px);
}

.social-name {
  font-size: 14px;
  font-weight: 500;
}

/* QR модальное окно */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal.active {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-xl);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
}

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s ease;
}

.qr-modal-close:hover {
  background: rgba(255,255,255,0.2);
}

.qr-modal-image {
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 3px solid rgba(255,255,255,0.3);
}

.qr-modal-text {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

/* Мобильные адаптеры для виджета */
@media (max-width: 480px) {
  .floating-widget {
    bottom: 60px;
    right: 15px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .floating-btn-icon {
    font-size: 24px;
  }

  .floating-modal {
    width: 260px;
    bottom: 70px;
  }

  .floating-modal-content {
    padding: var(--gap-md);
  }

  .floating-title {
    font-size: 20px;
  }

  .social-name {
    font-size: 13px;
  }

  .qr-modal-text {
    font-size: 14px;
  }
}
