/* Premium black and gold theme – styling and colors only */

/* ---- Color variables (for reference in comments) ----
   Main background: #0B0B0C
   Section: #151515
   Cards/UI: #1C1C1C
   Borders: #2A2A2A
   Primary text: #F2F2F2
   Secondary text: #9A9A9A
   Accent gold: #C6A86A
   Hover gold: #D7B97A
   Light gold: #E5D0A0
*/

/* Пульс для кнопки «Видеоотзывы» — ярче и угасает */
@keyframes hero-video-reviews-pulse {
  0%, 100% { opacity: 0.92; filter: brightness(1); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
  50% { opacity: 1; filter: brightness(1.15); box-shadow: 0 4px 20px rgba(198, 168, 106, 0.25); }
}

/* Переливание снизу вверх, справа налево — блок Наши предложения (центральная карточка) */
@keyframes offers-shimmer-bottom-right-to-left {
  0% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ---- Base ---- */
body {
  background-color: #0B0B0C !important;
  color: #F2F2F2 !important;
}

/* ---- Sections ---- */
section,
.offers-section,
.video-section {
  background-color: #151515 !important;
}

.offers-section {
  padding-top: 8em !important;
}

/* ---- Headings & text ---- */
h2, h3, h4, h5,
.section-title {
  color: #F2F2F2 !important;
}

/* «Наши предложения» и «Отзывы клиентов» — мигают: ярче и слегка угасают */
@keyframes section-title-pulse {
  0%, 100% { filter: brightness(0.96); opacity: 0.98; }
  50% { filter: brightness(1.38); opacity: 1; }
}
@keyframes section-title-pulse-strong {
  0%, 100% { filter: brightness(0.88); opacity: 0.96; }
  50% { filter: brightness(1.72); opacity: 1; }
}
.offers-section .section-title,
.video-section .section-title {
  color: #F2F2F2 !important;
  animation: section-title-pulse 1.7s ease-in-out infinite;
}

h3 span {
  color: #C6A86A !important;
}

/* Заголовок H1 — жирнее, крупнее; отступ справа, чтобы не наезжать на видео */
.main .left h1 {
  color: #F2F2F2;
  font-weight: 800 !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  letter-spacing: 0.02em;
  margin-bottom: 0.35em;
  margin-right: 0.5em;
  animation: h1-gold-shimmer 6s ease-in-out infinite;
}
@keyframes h1-gold-shimmer {
  0%, 100% { color: #F2F2F2; }
  33% { color: #E8DFC8; }
  66% { color: #E5D0A0; }
}

.main .left .h1_dop {
  color: #F2F2F2 !important;
  font-size: 1.05em;
  line-height: 1.6;
  margin-top: 0.6em;
}

.main .left .plusi {
  margin-top: 1.25em;
}

.main .left .plusi li {
  color: #F2F2F2 !important;
  line-height: 1.6;
  padding-left: 1.75em !important;
  position: relative;
  list-style: none !important;
  margin-top: 0.5em !important;
}

.main .left .plusi li:first-child {
  margin-top: 0 !important;
}

/* Кнопка «Видеоотзывы клиентов» — крупнее, мигает: яркая и угасает */
.hero-video-reviews-link {
  display: inline-block;
  margin-top: 1.25em;
  padding: 18px 36px;
  background: #1C1C1C;
  color: #C8B896 !important;
  text-decoration: none;
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  border: 1px solid #2A2A2A;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  animation: hero-video-reviews-pulse 2.2s ease-in-out infinite;
}
.hero-video-reviews-link:hover {
  background: #242424;
  border-color: rgba(200, 184, 150, 0.5);
  color: #D9C9A8 !important;
  animation: none;
}
.hero-video-reviews-arrow {
  display: inline-block;
  margin-left: 0.35em;
  color: inherit;
  font-size: 1.2em;
  vertical-align: middle;
  font-weight: 700;
}

/* Premium gold markers for list (replace default pin) */
.main .left .plusi li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C6A86A !important;
  background-image: none !important;
  box-shadow: 0 0 0 2px rgba(198, 168, 106, 0.25);
}

.main .left h1 span {
  color: #C6A86A !important;
}

.text > p,
.mobile-text {
  color: #9A9A9A !important;
}

.mobile-title,
.offers-carousel-viewport .mobile-card h2 {
  color: #F2F2F2 !important;
}

.price {
  color: #C6A86A !important;
}

.ip,
.ip p {
  color: #9A9A9A !important;
}

.menu p,
.menu .tel a {
  color: #9A9A9A !important;
}

.menu .tel a:hover {
  color: #D7B97A !important;
}

.animate {
  background-color: #151515 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* ---- Cards and UI blocks ---- */
.offers-carousel-viewport .mobile-card {
  background-color: #1C1C1C !important;
  border: 1px solid #2A2A2A !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.offers-carousel-viewport .mobile-card:hover {
  border-color: rgba(198, 168, 106, 0.4) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45) !important;
}

/* Center card – золотая обводка, глянец и переливание снизу вверх, справа налево */
.offers-carousel-viewport .mobile-card.is-center {
  border-color: rgba(200, 184, 150, 0.5) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 184, 150, 0.2), 0 1px 0 rgba(255,255,255,0.04) inset !important;
  position: relative;
  overflow: hidden;
}

.offers-carousel-viewport .mobile-card.is-center::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(229, 208, 160, 0.06) 50%,
    rgba(215, 185, 122, 0.1) 55%,
    rgba(229, 208, 160, 0.06) 60%,
    transparent 70%,
    transparent 100%
  );
  background-size: 200% 200%;
  background-position: 100% 100%;
  animation: offers-shimmer-bottom-right-to-left 4s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

/* ---- Primary buttons: мягкое золото, только глянец (без переливания) ---- */
.button,
.button-tg-highlight {
  border-radius: 8px;
}

.button button,
.button-tg-highlight button {
  background: linear-gradient(180deg, #D9C9A8 0%, #C8B890 50%, #B8A878 100%) !important;
  background-color: #C8B890 !important;
  color: #1a1a1a !important;
  border: none;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 16px rgba(184, 168, 128, 0.35), 0 1px 0 rgba(255,255,255,0.2) inset, 0 -1px 0 rgba(0,0,0,0.08) inset !important;
  animation: hero-video-reviews-pulse 2.2s ease-in-out infinite;
}

.button button:hover,
.button-tg-highlight button:hover {
  background: linear-gradient(180deg, #E2D4B8 0%, #D4C4A0 50%, #C8B890 100%) !important;
  box-shadow: 0 6px 22px rgba(184, 168, 128, 0.4), 0 1px 0 rgba(255,255,255,0.25) inset !important;
  animation: none;
}

.button button::before,
.button-tg-highlight button::before {
  display: none !important;
}

.button button::after,
.button-tg-highlight button::after {
  display: none !important;
}

.button button p,
.button-tg-highlight button p {
  color: #1a1a1a !important;
}

/* "Купить" – подсветка, мягкое золото, пульс */
.mobile-button {
  background: #C8B890 !important;
  color: #1a1a1a !important;
  border: none !important;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(184, 168, 128, 0.5), 0 0 0 1px rgba(255,255,255,0.15) inset !important;
  transition: background 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  animation: hero-video-reviews-pulse 2.2s ease-in-out infinite;
}

.mobile-button:hover {
  background: #D4C4A0 !important;
  box-shadow: 0 6px 24px rgba(184, 168, 128, 0.55), 0 0 0 1px rgba(255,255,255,0.2) inset !important;
  animation: none;
}

/* ---- Carousel arrows (чёрный + мягкое золото): и авто, и видео ---- */
.offers-carousel-viewport .carousel-arrow,
.video-carousel-viewport .carousel-arrow {
  background: #1C1C1C !important;
  color: #C8B896 !important;
  border: 1px solid #2A2A2A;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.offers-carousel-viewport .carousel-arrow:hover,
.video-carousel-viewport .carousel-arrow:hover {
  background: #242424 !important;
  border-color: rgba(200, 184, 150, 0.45);
  color: #D9C9A8 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.offers-carousel-viewport .carousel-arrow::before,
.video-carousel-viewport .carousel-arrow::before {
  color: inherit;
}

.offers-carousel-viewport .carousel-arrow::after,
.video-carousel-viewport .carousel-arrow::after {
  display: none !important;
}

/* ---- Плавающая кнопка ТГ – всегда видна, справа по середине; мигает как остальные ---- */
.callback-bt-tel {
  position: fixed !important;
  top: 50% !important;
  right: 24px !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  z-index: 999 !important;
  overflow: visible;
  background: linear-gradient(180deg, #D9C9A8 0%, #C8B890 50%, #B8A878 100%) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(184, 168, 128, 0.35), 0 1px 0 rgba(255,255,255,0.2) inset !important;
  transition: box-shadow 0.3s ease;
  animation: hero-video-reviews-pulse 2.2s ease-in-out infinite;
}
.callback-bt-tel:hover {
  animation: none;
}
.callback-bt-tel.show {
  top: 50% !important;
  right: 24px !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
}

.callback-bt-tel::after {
  display: none !important;
}

.callback-bt-tel:hover {
  box-shadow: 0 6px 22px rgba(184, 168, 128, 0.45), 0 1px 0 rgba(255,255,255,0.25) inset !important;
}

.callback-bt-tel a {
  color: #1a1a1a !important;
}

.callback-bt-tel .text-call p {
  color: #1a1a1a !important;
}

/* ---- Hero video play/pause button ---- */
.hero-video-top .hero-video-play-pause {
  background: #1C1C1C !important;
  color: #C6A86A !important;
  border: 1px solid #2A2A2A;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-video-top .hero-video-play-pause:hover {
  background: #242424 !important;
  border-color: rgba(198, 168, 106, 0.4);
  color: #D7B97A !important;
}

/* ---- Links in content ---- */
a {
  color: #C6A86A;
  transition: color 0.2s ease;
}

a:hover {
  color: #D7B97A;
}

.h1_dop a {
  color: #C6A86A;
}

/* Mobile-only replica of text block under top video button */
.hero-video-top .hero-block-under-btn {
  display: none;
}

/* Telegram icon – gold only, no blue */
.h1_dop a img,
.callback-bt-tel .text-call img,
.callback-bt-tel img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(28%) saturate(900%) hue-rotate(360deg) !important;
}

/* ---- Dividers in cards ---- */
.offers-carousel-viewport .mobile-card div[style*="border-top"] {
  border-top-color: #2A2A2A !important;
}


/* ========== Мобильная адаптация (до 700px) ========== */
@media screen and (max-width: 700px) {
  /* Первый экран: заголовок жирнее и крупнее (как в десктопе) */
  .main .left h1 {
    font-weight: 800 !important;
    font-size: clamp(1.75rem, 7.5vw, 2.5rem) !important;
    line-height: 1.3 !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
  }

  /* Текст сразу под верхней кнопкой: визуально единый блок */
  .main .left .h1_dop,
  .main .left .plusi,
  .main .left .hero-video-reviews-link {
    position: static !important;
    top: auto !important;
    transform: none !important;
  }

  /* Берем расположение как в work: текст внутри верхнего блока под кнопкой */
  .hero-video-top .hero-block-under-btn {
    display: block !important;
  }
  .main .left > .h1_dop,
  .main .left > .plusi,
  .main .left > .hero-video-reviews-link {
    display: none !important;
  }
  .hero-video-top .hero-block-under-btn .h1_dop {
    margin-top: 0.25rem !important;
    font-size: 1.08rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }
  .hero-video-top .hero-block-under-btn .plusi {
    margin-top: 0.5rem !important;
  }
  .hero-video-top .hero-block-under-btn .plusi li {
    margin-top: 0.35rem !important;
    font-size: 1.03rem !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .hero-video-top .hero-block-under-btn .plusi li:first-child {
    margin-top: 0 !important;
  }
  .hero-video-top .hero-block-under-btn .hero-video-reviews-link {
    margin-top: 0.75rem !important;
    padding: 12px 20px !important;
    font-size: 1.08rem !important;
    display: block;
    text-align: center;
  }
  .main .left .right.hero-media {
    display: none !important;
  }

  /* Секция «Наши предложения» — шире: меньше боковые отступы, контент ближе к полной ширине */
  .offers-section .container {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .offers-section .offers-carousel-viewport {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .offers-section {
    padding-top: 4em !important;
  }
  .offers-section .section-title,
  .video-section .section-title {
    font-size: 3.38rem !important;
    line-height: 1.08 !important;
    animation: section-title-pulse-strong 1.1s ease-in-out infinite !important;
  }

  .hero-video-reviews-link {
    padding: 14px 24px;
    font-size: 1.1em;
    display: block;
    text-align: center;
  }

  .callback-bt-tel {
    right: 12px !important;
    padding: 8px 12px !important;
  }
  .callback-bt-tel.show {
    right: 12px !important;
  }
  .callback-bt-tel .text-call p {
    font-size: 12px !important;
  }
  .callback-bt-tel .text-call img {
    width: 20px !important;
  }

  .button,
  .button-tg-highlight {
    width: 100%;
    max-width: 100%;
  }
  .button button,
  .button-tg-highlight button {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .video-section .container.video {
    padding-left: 12px;
    padding-right: 12px;
  }
}
