/*
===================================================
ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦЫ ЦЕН
===================================================
*/

.sub-title {
    font-size: 22px;
    font-weight: bold;
    color: #00aaff;
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
}

.price-list {
    padding-left: 0;
    list-style-type: none;
}

.price-list li {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 1. СТИЛЬ ЦЕН — АКЦЕНТ ЦВЕТОМ */
.price-list b, .price-list .default-price {
    color: #00d4ff;
    font-size: 18px;
    font-weight: bold;
}

.price-list li {
    color: rgba(255,255,255,0.82);
}

.price-image {
    border-radius: 10px;
    width: 100%;
    display: block;
}

.section-description {
    font-size: 18px;
    color: white;
    max-width: 1200px;
    margin: 0 auto 20px;
    line-height: 1.6;
    text-align: center;
}

.separator {
    width: 80px;
    height: 4px;
    background-color: #00aaff;
    margin: 0 auto 5px;
    border-radius: 2px;
}

.card {
    background: linear-gradient(145deg, rgba(6,15,38,0.90) 0%, rgba(0,28,62,0.78) 100%);
    border: 1px solid rgba(0,160,255,0.16);
    border-radius: 16px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0,0,0,0.22);
    border-bottom: 1px solid rgba(0,160,255,0.14);
}

.card-header-title {
    color: #00d4ff;
    font-weight: bold;
    align-items: center;
    margin: 0 auto;
}

.card-content .content p,
.card-content .content li {
    color: rgba(255,255,255,0.80);
}

.content p {
    margin-top: 15px;
}

.content p:first-of-type {
    font-weight: bold;
    margin-bottom: 10px;
}

.card-content {
    transition: max-height 0.5s ease;
}

.card.open .card-content {
    display: block;
}

.highlight {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 10px;
}

.button.is-primary {
    margin-top: 10px;
}

.title {
    margin-top: 70px; /* Сохранено для H1/H2, если нет других перебивающих правил */
}

/*
===================================================
АДАПТИВНОСТЬ
===================================================
*/

@media (min-width: 1024px) {
    .card-content {
        display: block;
    }
    .cards-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .cards-container > div {
        flex: 1 1 calc(50% - 20px);
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .card-header-title + .preview-text {
        display: inline;
        color: #555;
        font-weight: normal;
    }
    .card-content {
        display: none;
    }
}


/*
===================================================
СТИЛИ POPUP СКИДОК
===================================================
*/
.discount-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1002;
  display: none;
  background: none;
}

.discount-popup-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 20px 24px 15px 24px;
  max-width: 300px;
  min-width: 220px;
  color: #222;
  position: relative;
  animation: popfadein 0.6s;
}

.discount-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.discount-popup-close:hover { color: #111; }

.discount-popup h2 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #0077cc;
  font-weight: 700;
}

.discount-popup p {
  margin: 0 0 10px 0;
  font-size: 0.95em;
}

.discount-popup-socials {
  display: flex;
  gap: 14px;
  margin-top: 5px;
}
.discount-popup-socials img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
}
.discount-popup-socials a:hover img {
  transform: scale(1.12);
}

@media (max-width: 600px) {
  .discount-popup {
    right: 15px;
    left: auto;
    bottom: 15px;
  }
  .discount-popup-content {
    max-width: 280px;
    min-width: 0;
    padding: 15px 15px 12px 15px;
  }
}

@keyframes popfadein {
  from { opacity: 0; transform: translateY(30px);}
  to   { opacity: 1; transform: translateY(0);}
}

/*
===================================================
СТИЛИ БАННЕРА (SEASON DISCOUNT BANNER)
===================================================
*/

.season-discount-banner {
    margin-top: 60px !important;
    padding: 1rem 0.75rem;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ── ТЁМНЫЙ ПРОМО-БАННЕР ──────────────────────────────── */
.season-promo-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(120deg, rgba(0,8,30,0.92) 0%, rgba(0,50,100,0.74) 100%);
    border: 1px solid rgba(0,180,255,0.24);
    border-radius: 12px;
    padding: 14px 24px;
    backdrop-filter: blur(14px);
    width: 100%;
    max-width: 720px;
    transition: box-shadow 0.25s;
}
.season-promo-inner:hover {
    box-shadow: 0 6px 24px rgba(0,180,255,0.18);
}
@media (max-width: 600px) {
    .season-promo-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        gap: 10px;
    }
}

.season-discount-banner .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.banner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 6px;
    overflow: hidden;
}

.banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 0, 0, 0.2);
}

.season-discount-banner .notification {
    border: none;
    box-shadow: inset 0 0 10px rgba(255, 0, 0, 0.1);
    /* Flexbox для гарантии, что строки не накладываются */
    display: flex !important; 
    flex-direction: column; 
    align-items: center;
    padding: 1rem 1rem !important; 
}

/* ГАРАНТИРУЕМ, ЧТО ЗАГОЛОВКИ БАННЕРА РАЗНЕСЕНЫ */
.season-discount-banner .title,
.season-discount-banner .subtitle {
    display: block !important;
    width: 100% !important; 
    text-align: center !important;
    line-height: 1.3 !important; 
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
    color: #94001A !important; /* Темный красный для контраста */
    white-space: normal !important; 
}

.season-discount-banner .title.mb-1 {
    margin-bottom: 0.25rem !important;
}

@media screen and (max-width: 768px) {
    .season-discount-banner .title {
        font-size: 1.1rem !important;
    }
    .season-discount-banner .subtitle {
        font-size: 0.8rem !important;
    }
}


/*
===================================================
СТИЛИ ДЛЯ СТРАНИЦЫ РАСПРОДАЖ (is-discount-page)
===================================================
*/

/* Уникальный фон и рамка для страницы скидок */
.season-discount-banner.is-discount-page {
    background-color: #f1f8e9;
    border-bottom: 3px solid #689f38;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Убираем эффект hover на странице скидок */
.season-discount-banner.is-discount-page .banner-link:hover {
    transform: none;
    box-shadow: none;
}

/* Изменение основного заголовка H2 для страницы скидок */
.main-title.is-discount-title {
    color: #689f38;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* 2. СТИЛИ ДЛЯ СТАРЫХ (ЗАЧЕРКНУТЫХ) ЦЕН (Только на странице скидок) */
.old-price {
    color: #aaa; 
    text-decoration: line-through; 
    font-weight: normal;
    font-size: 0.9em;
    margin-right: 8px;
}

/* 3. СТИЛИ ДЛЯ НОВЫХ (КРАСНЫХ) ЦЕН (Только на странице скидок) */
.is-discount-page .price-list b, 
.is-discount-page .price-list .new-price {
    color: #cc0000 !important; /* Ярко-красный для скидки */
    font-size: 1.1em !important;
    font-weight: 900 !important;
}