:root {
  /* Теплая, "вкусная", но профессиональная палитра */
  --primary: #c53030;
  --primary-hover: #9b2c2c;
  --text-main: #1f2937; /* Темно-сизо-серый для мягкого чтения */
  --text-muted: #4b5563;
  --bg-main: #ffffff;
  --bg-light: #f8fafc; /* Очень легкий, чистый фон для секций */
  --border-color: #e5e7eb;

  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Аккуратные, современные тени */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 90px 0;
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-white {
  background-color: var(--bg-main);
}

.section-title {
  text-align: center;
  font-size: 2.3rem; /* Чуть уменьшили базовый размер для лучшего баланса */
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em; /* Делает жирный шрифт собранным и дорогим */
  line-height: 1.2;
  margin-bottom: 45px;
}
.text-center {
  text-align: center;
}

/* Иконки */
.icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.icon-large {
  width: 48px;
  height: 48px;
  stroke: var(--primary);
  margin-bottom: 15px;
}
.icon-accent {
  width: 32px;
  height: 32px;
  stroke: var(--primary);
  flex-shrink: 0;
}

/* Кнопки (Дружелюбные, но заметные) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(197, 48, 48, 0.3);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(197, 48, 48, 0.4);
}
.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: white;
  border: 2px solid white;
}
.btn-outline:hover {
  background-color: white;
  color: var(--text-main);
}
.btn-telegram {
  background-color: #0088cc;
  color: white;
  width: 100%;
}
.btn-telegram:hover {
  background-color: #0077b5;
  transform: translateY(-2px);
}
.btn-youtube {
  background-color: #ef4444;
  color: white;
  margin-top: 20px;
  border-radius: 8px;
}
.btn-youtube:hover {
  background-color: #dc2626;
}

/* --- ГЕРОЙ И ВИДЕО --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
}
.hero-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
}
.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  z-index: -2;
  aspect-ratio: 16/9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: -1;
}
.hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 40px;
  color: #f3f4f6;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- ДЕКОРАТИВНЫЕ PNG --- */
.decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.decor-item {
  position: absolute;
  pointer-events: none;
}
@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}
@keyframes floatMedium {
  0% {
    transform: translateY(0px) rotate(10deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(10deg);
  }
}
.float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}
.float-medium {
  animation: floatMedium 6s ease-in-out infinite;
}
.float-fast {
  animation: floatSlow 5s ease-in-out infinite;
}

/* =========================================
   ИСПРАВЛЕННЫЙ БЛОК ПРО АВТОРА
   ========================================= */
.about-grid {
  display: grid;
  /* Выделяем 5 долей ширины под фото, 7 долей под текст */
  grid-template-columns: 5fr 7fr;
  gap: 50px;
  align-items: stretch; /* Заставляет фото тянуться на всю высоту текста */
  position: relative;
  z-index: 2;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%; /* Занимает всю доступную высоту */
  min-height: 400px; /* Защита, чтобы не сплющилось на пустых экранах */
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* КЛЮЧЕВОЙ МОМЕНТ: обрезает горизонтальное фото до вертикального портрета */
  object-position: center;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

/* Красивая типографика для текста "Обо мне" */
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Центрирует текст по вертикали относительно фото */
}
.about-greeting {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 15px;
}
.about-text .lead-text {
  font-size: 1.15rem;
  color: #374151;
  font-weight: 500;
}
.text-divider {
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
  margin: 25px 0;
  opacity: 0.8;
}
.about-text p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.about-text strong {
  color: #111827;
}

.highlight-box {
  background: white;
  border-left: 4px solid var(--primary);
  padding: 20px 25px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
  margin-top: 15px;
}
.highlight-box p {
  margin: 0;
  color: #111827;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Особливості (Картки) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}
.feature-card {
  background: var(--bg-main);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(197, 48, 48, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-wrapper .icon {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}
.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #111827;
}

/* Програма курсу */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 2;
}
.program-item {
  display: flex;
  gap: 20px;
  background: var(--bg-main);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.program-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #111827;
}

/* YouTube секція */
.youtube-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.clean-list {
  list-style: none;
  margin: 20px 0;
}
.clean-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #111827;
}
.video-grid-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.video-grid-small iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* Ціна (Светлая, чистая, вызывающая доверие) */
.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-main);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 50px;
  position: relative;
  border: 1px solid var(--border-color);
}
.pricing-header {
  text-align: center;
  margin-bottom: 30px;
}
.pricing-header h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #111827;
}
.badge-discount {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}
.price {
  text-align: center;
  font-size: 4rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  margin-bottom: 15px;
}
.price .currency {
  font-size: 2rem;
  vertical-align: top;
  color: var(--text-muted);
}
.price .note {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 5px;
}

.urgency {
  text-align: center;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 30px;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #111827;
}
.pricing-features li svg {
  width: 24px;
  height: 24px;
  stroke: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer */
footer {
  background: #111827;
  color: #d1d5db;
  padding: 50px 0;
  position: relative;
  z-index: 3;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-content h3 {
  color: white;
  margin-bottom: 5px;
}
.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

/* Анімації появи */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   ИДЕАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================= */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  /* На планшетах фото становится над текстом, задаем ему фиксированную высоту */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-image-wrapper {
    height: 400px;
    min-height: auto;
    order: -1;
  }

  .youtube-block {
    grid-template-columns: 1fr;
  }
  .program-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    min-height: 100vh;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .subtitle {
    font-size: 1.1rem;
  }

  /* Заголовки секций (Кто я, Что мы готовим, Программа и т.д.) */
  .section-title {
    font-size: 1.65rem !important; /* Идеальный размер для читаемости на смартфонах */
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
    margin-bottom: 25px !important;
    padding: 0 5px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  .hero-buttons .btn {
    width: 100%;
    padding: 16px;
  }

  .decorations {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .video-grid-small {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 30px 20px;
    border-radius: 16px;
  }
  .price {
    font-size: 3.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Стилі для нового професійного футера */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-desc {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 400px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item:hover {
  color: #ffffff;
}

.footer-contact-item svg {
  width: 22px;
  height: 22px;
  stroke: #c53030; /* Акцентний червоний колір */
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.9rem;
}

.footer-legal a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #d1d5db;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-desc {
    margin: 0 auto 20px;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .footer-legal a {
    margin: 0 10px;
    display: inline-block;
    margin-top: 10px;
  }
}

/* Новий дизайн: Централізована акцентна картка */
.pricing-focus-card {
  max-width: 850px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  border-top: 8px solid var(--primary); /* Червона акцентна лінія зверху */
  position: relative;
}

.pricing-focus-header {
  text-align: center;
  padding: 50px 40px 20px;
}

.pricing-focus-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.pricing-focus-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.pricing-focus-price {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 25px 0 15px;
}

.pricing-focus-currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 10px;
  margin-right: 5px;
}

.pricing-focus-amount {
  font-size: 5.5rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}

.pricing-focus-note {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-focus-body {
  padding: 0 50px 50px;
}

.pricing-cta-wrap {
  text-align: center;
  margin-top: 35px;
}

.btn-telegram-large {
  background-color: #0088cc;
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
  width: 100%;
  max-width: 450px;
}

.btn-telegram-large:hover {
  background-color: #0077b5;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4);
}

.pricing-urgency {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #c53030;
  font-weight: 600;
}

/* Сітка переваг (2 колонки) */
.pricing-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.4;
}

.pricing-feature svg {
  width: 24px;
  height: 24px;
  stroke: #10b981; /* Зелені акуратні галочки */
  flex-shrink: 0;
  margin-top: 2px;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .pricing-focus-header {
    padding: 40px 20px 20px;
  }
  .pricing-focus-body {
    padding: 0 20px 40px;
  }
  /* Адаптуємо заголовки та ціну */
  .pricing-focus-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
    margin-bottom: 15px !important;
  }
  .pricing-focus-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
  .pricing-focus-amount {
    font-size: 4rem;
  }
  .pricing-focus-currency {
    font-size: 1.5rem;
    margin-top: 5px;
  }
  /* Переводимо переваги в одну колонку */
  .pricing-features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
  }
  .btn-telegram-large {
    font-size: 1.1rem;
    padding: 16px 20px;
  }
}
/* =========================================
   VIBER КНОПКИ ТА АСОРТИМЕНТ
   ========================================= */
.btn-viber {
  background-color: #7360f2;
  color: white;
  box-shadow: 0 4px 14px 0 rgba(115, 96, 242, 0.3);
  border: 2px solid transparent;
}
.btn-viber:hover {
  background-color: #5c4cdb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(115, 96, 242, 0.4);
}

.btn-viber-large {
  background-color: #7360f2;
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(115, 96, 242, 0.3);
}
.btn-viber-large:hover {
  background-color: #5c4cdb;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(115, 96, 242, 0.4);
}

/* =========================================
   MARQUEE — бегущие ленты с тегами
   ========================================= */
.product-tags-marquee {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  max-width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 12px;
  width: max-content;
  /* Анимация по умолчанию — влево */
  animation: marquee-left 28s linear infinite;
}

/* Ряд вправо */
.marquee-row[data-direction="right"] .marquee-track {
  animation: marquee-right 32s linear infinite;
}

/* Пауза при hover и touch */
.marquee-row:hover .marquee-track,
.marquee-row.paused .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.product-tag {
  background: white;
  border: 1px solid var(--border-color);
  padding: 11px 22px;
  border-radius: 30px;
  font-weight: 600;
  color: #111827;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  cursor: default;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-tag:hover {
  border-color: #7360f2;
  color: #7360f2;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .btn-viber-large {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px 20px;
  }
}
/* =========================================
   ПІДПИС РОЗРОБНИКА
   ========================================= */
.ksibe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280; /* Колір під загальний стиль футера */
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.ksibe:hover {
  opacity: 0.8;
}

.ksibe img {
  height: 18px; /* Висота логотипу, змініть за потреби */
  width: auto;
  display: block;
}
/* =========================================
   ОНОВЛЕНІ ПЛАВАЮЧІ КНОПКИ (СТРІЛКА ЗВЕРХУ)
   ========================================= */
.contact-floating {
  position: fixed;
  bottom: 30px; /* Кнопка зв'язку найнижча */
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2a59bd;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-to-top {
  position: fixed;
  bottom: 95px; /* Стрілка знаходиться рівно над кнопкою зв'язку */
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(197, 48, 48, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-floating svg,
.scroll-to-top svg {
  width: 22px;
  height: 22px;
}

.contact-floating.show,
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-floating:hover {
  background-color: #1f2937;
  transform: translateY(-4px) scale(1.05);
}
.scroll-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(197, 48, 48, 0.6);
}

/* =========================================
   НОВИЙ ДИЗАЙН МОДАЛЬНОГО ВІКНА (VIP РІВЕНЬ)
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #ffffff;
  width: 100%;
  max-width: 780px; /* 🔥 ЗБІЛЬШИЛИ з 580px до 780px, щоб обидві картки ідеально вмістилися на ПК */
  border-radius: var(--radius-lg);
  padding: 45px 40px; /* Трохи збільшили внутрішній простір для "повітря" */
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  text-align: center;
  box-sizing: border-box;
  transform: scale(0.95) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden; /* 🔥 ЖОРСТКО ЗАБОРОНЯЄМО ГОРИЗОНТАЛЬНИЙ СКРОЛ */
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.modal-close:hover {
  color: #111827;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Сітка карток всередині модалки */
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.modal-card {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.modal-card:hover {
  background: #ffffff;
  border-color: rgba(115, 96, 242, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Обгортка для красивих іконок */
.modal-card-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(197, 48, 48, 0.08); /* Легкий крафтовий відтінок */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}
.modal-card:last-child .modal-card-icon-wrap {
  background: rgba(0, 136, 204, 0.08); /* Легкий блакитний відтінок для ТГ */
  color: #0088cc;
}
.modal-card-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.modal-card-content {
  margin-bottom: 24px;
  flex-grow: 1;
}
.modal-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.modal-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Кнопки зв'язку всередині модалки */
.btn-modal-link {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: block;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap; /* ЗАХИСТ ВІД ПЕРЕНОСУ СЛІВ */
}

.btn-viber-modal {
  background-color: #7360f2;
  color: white;
  box-shadow: 0 4px 10px rgba(115, 96, 242, 0.2);
}
.btn-viber-modal:hover {
  background-color: #5c4cdb;
  box-shadow: 0 6px 14px rgba(115, 96, 242, 0.3);
}

.btn-telegram-modal {
  background-color: #0088cc;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 136, 204, 0.2);
}
.btn-telegram-modal:hover {
  background-color: #0077b5;
  box-shadow: 0 6px 14px rgba(0, 136, 204, 0.3);
}

/* =========================================
   ПОВНА МОБІЛЬНА АДАПТАЦІЯ (ОБОВ'ЯЗКОВО!)
   ========================================= */
@media (max-width: 768px) {
  .contact-floating {
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
  }
  .scroll-to-top {
    bottom: 78px; /* Розумний перерахунок висоти на мобільних */
    right: 20px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 640px) {
  .modal-window {
    padding: 30px 15px 20px; /* Зробили відступи меншими, щоб зберегти висоту */
    max-width: calc(100% - 24px);
    max-height: calc(
      100dvh - 24px
    ); /* dVH захищає від інтерфейсу браузера Safari/Chrome */
  }
  .modal-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }
  .modal-subtitle {
    margin-bottom: 15px;
    font-size: 0.85rem;
  }

  .modal-actions {
    grid-template-columns: 1fr;
    gap: 12px; /* Менша відстань між картками */
  }

  .modal-card {
    padding: 16px 12px; /* Компактніша внутрішня рамка */
  }
  .modal-card-icon-wrap {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }
  .modal-card-icon-wrap svg {
    width: 22px;
    height: 22px;
  }
  .modal-card-content {
    margin-bottom: 12px;
  }
  .btn-modal-link {
    font-size: 0.9rem;
    padding: 12px;
  }
}
/* =========================================
   ПРЕМИУМ БЕЙДЖ (ТЕМНОЕ СТЕКЛО + БЛИК)
   ========================================= */
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(17, 24, 39, 0.65); /* Темное благородное стекло */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* Обязательно, чтобы блик не вылезал за края */
}

/* Создаем сам световой блик */
.badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg); /* Наклоняем блик для динамики */
  animation: badge-shine 4s infinite; /* Пробегает раз в 4 секунды */
}

/* Анимация пробегания блика */
@keyframes badge-shine {
  0% {
    left: -100%;
  }
  15% {
    left: 200%;
  } /* Блик быстро пробегает */
  100% {
    left: 200%;
  } /* Пауза между бликами */
}
/* =========================================
   БЛАГОДІЙНИЙ ЗБІР — КОМПАКТНА МОДАЛКА
   (вміщується без скролу навіть на 14" ноутах)
   ========================================= */
.donate-modal {
  max-width: 560px;
  padding: 34px 36px 30px;
  text-align: center;
}

.donate-badge {
  display: inline-block;
  background: #fee2e2;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.donate-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 10px;
  text-wrap: balance;
}

.donate-lead {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 18px;
  text-wrap: pretty;
}

/* Ціль збору + приз — дві плашки в ряд */
.donate-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.donate-stat {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.donate-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.donate-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

/* Умова участі — коротко і просто */
.donate-terms {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  text-align: left;
}

.donate-terms-main {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
  line-height: 1.4;
}

.donate-terms-main strong {
  color: var(--primary);
}

.donate-terms-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.45;
  margin: 0;
}

.donate-terms-note svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: var(--primary);
  margin-top: 2px;
}

.donate-terms-note strong {
  color: #111827;
}

/* Номер картки — клік копіює */
.donate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  margin-bottom: 12px;
  background: #f9fafb;
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.donate-card:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.donate-card-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.donate-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.donate-card-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.5px;
}

.donate-card-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.donate-card-copy svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

/* Головна кнопка Monobank */
.donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #000000;
  color: #ffffff;
  padding: 15px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.donate-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* Кнопка закриття поверх контенту */
.donate-modal .modal-close {
  z-index: 5;
}

/* Адаптив: вузькі екрани */
@media (max-width: 520px) {
  .donate-modal {
    padding: 26px 18px 22px;
  }
  .donate-title {
    font-size: 1.4rem;
  }
  .donate-lead {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
  .donate-stats {
    gap: 8px;
    margin-bottom: 14px;
  }
  .donate-stat {
    padding: 9px 8px;
  }
  .donate-stat-value {
    font-size: 1rem;
  }
  .donate-terms {
    padding: 14px 15px;
    margin-bottom: 14px;
  }
  .donate-terms-main {
    font-size: 0.95rem;
  }
  .donate-terms-note {
    font-size: 0.85rem;
  }
  .donate-card-number {
    font-size: 0.95rem;
  }
  .donate-btn {
    font-size: 0.98rem;
    padding: 14px;
  }
}

/* Адаптив: невисокі екрани (14" ноутбуки, landscape) */
@media (max-height: 720px) {
  .donate-modal {
    padding: 22px 30px 20px;
  }
  .donate-badge {
    margin-bottom: 8px;
    padding: 5px 14px;
  }
  .donate-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .donate-lead {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }
  .donate-stats {
    margin-bottom: 12px;
  }
  .donate-stat {
    padding: 8px 8px;
  }
  .donate-stat-value {
    font-size: 1.05rem;
  }
  .donate-terms {
    padding: 13px 15px;
    margin-bottom: 12px;
  }
  .donate-terms-main {
    font-size: 0.96rem;
    margin-bottom: 6px;
  }
  .donate-terms-note {
    font-size: 0.87rem;
  }
  .donate-card {
    margin-bottom: 10px;
    padding: 9px 14px;
  }
  .donate-btn {
    padding: 13px;
  }
}

/* =========================================
   ЗАКРІПЛЕНИЙ БАНЕР ЗБОРУ (PINNED BAR)
   ========================================= */
.donate-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: linear-gradient(90deg, #0057b7, #0072e6);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.donate-bar.show {
  transform: translateY(0);
}

.donate-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
}

.donate-bar-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.donate-bar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}

.donate-bar-text strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.donate-bar-text span {
  font-size: 0.82rem;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donate-bar-btn {
  flex-shrink: 0;
  background: #ffd700;
  color: #0a1a2f;
  border: none;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.donate-bar-btn:hover {
  background: #ffdd33;
  transform: translateY(-1px);
}

.donate-bar-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s ease;
}

.donate-bar-close:hover {
  color: #ffffff;
}

@media (max-width: 600px) {
  .donate-bar-inner {
    gap: 9px;
    padding: 7px 10px;
  }
  .donate-bar-emoji {
    font-size: 1.3rem;
  }
  .donate-bar-text strong {
    font-size: 0.85rem;
  }
  .donate-bar-text span {
    display: none;
  }
  .donate-bar-btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
  .charity-card {
    max-width: 100%;
    padding: 10px 14px;
  }
  .charity-card-number {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }
}

/* =========================================
   КОМПАКТНА СЕКЦІЯ: СОНЯЧНІ СТАНЦІЇ
   ========================================= */
.solar-section-compact {
  position: relative;
  background-image: url("../img/solar-panel.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Эффект параллакса */
  padding: 45px 0;
  z-index: 3;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.solar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.92) 0%,
    rgba(31, 41, 55, 0.8) 100%
  );
  z-index: 1;
}

.solar-content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.solar-text-block {
  text-align: left;
  max-width: 620px;
}

.solar-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.solar-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.solar-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.45;
}

.solar-actions-block {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}

.solar-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.solar-phone-icon {
  width: 22px;
  height: 22px;
  stroke: #f59e0b; /* Солнечный оранжевый цвет */
}

.solar-phone-link:hover {
  color: #f59e0b;
  transform: translateY(-1px);
}

.btn-solar-compact {
  background-color: #f59e0b;
  color: #111827;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
  border: none;
  display: inline-block;
}

.btn-solar-compact:hover {
  background-color: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Адаптивность для планшетов и смартфонов */
@media (max-width: 992px) {
  .solar-content-wrap {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  .solar-text-block {
    text-align: center;
  }
  .solar-actions-block {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .btn-solar-compact {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .solar-section-compact {
    padding: 35px 0;
    /* Явно залишаємо паралакс для мобільних */
    background-attachment: fixed;
  }
  .solar-title {
    font-size: 1.25rem !important;
  }
  .solar-subtitle {
    font-size: 0.85rem;
  }
  .solar-phone-link {
    font-size: 1.15rem;
  }
}
