:root {
  --color-primary: #d2cbc2;
  --color-primary-dark: #99725a;
  --color-accent: #c0392b;
  --color-text: #222;
  --color-text-muted: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f5f5;
  --section-gap: 70px;
  --border-radius: 12px;
}

section {
    padding: var(--section-gap) 0;
}

.hero-section {
    min-height: 100vh;
    background-repeat: no-repeat;
	background-position:center right;
    background-size: cover;
    display: flex;
    align-items: center;
    position: relative;
    z-index:0;
}
.hero-section:before {
    content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}
.hero-section h1,
.hero-section h2,
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .text-white {
	text-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}
.hero-content {
    max-width: 960px;
}
.row {
    row-gap: 15px;
}

.btn {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:10px;
    min-width:min(300px,100%);
}

.hero-details {
    font-family: "IBM Plex Sans", Helvetica Neue, Arial, sans-serif;
}
@media (max-width:991px){
    .hero-section {
        background-position: 90% center;
    }
}
@media (max-width:767px){
    .hero-section {
        background-position: 75% center;
    }
    .hero-section .h2 {
        font-size: 28px;
    }
    .hero-section .h3 {
        font-size: 20px;
    }
    .hero-section .h5 {
        font-size: 16px;
    }
    .hero-details {
        font-size: 16px;
    }
}




.extra-text {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.6s ease;
}

.extra-text.open {
  max-height: 2000px;
}

.extra-text p:first-child {
    margin-top: 0;
}


.feature-card {
    border: 2px solid #333;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    transition: 0.3s;
}

.section-formats { background: var(--color-bg-gray); }

.format-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.format-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.format-card__icon {
  color: var(--color-primary-dark);
  display: block;
  width:4rem;
  margin:0 auto;
  height: auto;
  aspect-ratio: 1/1;
  filter: invert(55%) sepia(6%) saturate(3267%) hue-rotate(339deg) brightness(83%) contrast(68%);
}

.format-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.format-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-top:0;
}
@media (min-width:768px) {
    .format-card .row {
        align-items: center;
    }
.format-card .btn {
    width:fit-content;
    min-width:290px;
}

}
@media (min-width:1260px) {
    .format-card .row {
        height: 100%;
        flex-direction: column;
    }
    .format-card .row > div:last-child {
        display: flex;
        flex-direction: column;
        flex:1;
    }
.format-card .btn {
    width:auto;
    margin-top: auto;
}

}


.section-benefits { background: var(--color-bg); }

.benefits__list {
    max-width:800px;
    margin: 30px auto;
}
.benefits__list ul {
    list-style: none;
    padding:0;
}

.benefits__list ul li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 1em;
}
.benefits__list ul li:last-child {
    margin-bottom: 0;
}

.benefits__list ul li:before {
    content:"➤";
    position: absolute;
    left:0;
    top:0;
}


.benefit-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--border-radius);
  padding: 32px 28px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  border-color: var(--color-primary-dark);
}

.benefit-card svg {
  color: var(--color-primary-dark);
  display: block;
  margin: 0 0 16px;
  width:2.2rem;
  height: auto;
  object-position: center;
  aspect-ratio: 1/1;
}

.benefit-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.benefit-card h5 {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   5. ВІДЕО + СЛАЙДЕР
   ============================================================ */
.section-media { background: var(--color-bg-gray); }

.video-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Відео */
.video-block {
    max-width: 100%;
}

#videoOverlay {
    transition: opacity 0.3s ease;
    top:0;
    left:0;
}

#videoOverlay .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #fff;
    background-color: rgba(0, 0, 0, 0.5);
}
#videoOverlay .play-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #fff;
}

/* Ховаємо оверлей, коли відео грає */
.video-playing #videoOverlay {
    opacity: 0;
    pointer-events: none;
}

/* Збільшення кнопки при наведенні */
.play-button i {
    transition: transform 0.2s ease;
}
#videoOverlay:hover .play-button i {
    transform: scale(1.1);
}


/* Слайдер */
.slider-wrapper {
    margin-top:40px;
}
.slick-slider {
    margin-left:-10px!important;
    margin-right:-10px!important;
}
.slick-slide {
  height: unset;
  min-height: unset;
}
.slick-slide img {
    width:100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    padding:0 10px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn--prev { left: 12px; }
.slider-btn--next { right: 12px; }

.slick-dots {
    bottom:-30px;
}
.slick-dots button {
  background-color:var(--color-primary)!important;
  border-radius:10px;
}

.slick-dots .slick-active button {
  background-color:var(--color-primary-dark)!important;
}

@media (max-width: 767.98px) {
    #sliderPrev, 
    #sliderNext {
        display: none !important;
    }
}

.audience-img {
  display: block;
  max-width: 500px;
  position: sticky;
  top: 150px;
  margin-left: auto;
}

.section-ways { background: var(--color-bg-gray); }

.section-ways .row {
    row-gap: 30px;
}
.way-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.way-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.way-card__icon {
  color: var(--color-primary-dark);
  display: block;
  width:4rem;
  margin:0 auto 30px;
  height: auto;
  aspect-ratio: 1/1;
}

.way-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* CTA */

.section-cta {
  position: relative;
  overflow: hidden;
  background: #111;
  padding: var(--section-gap) 0;
  background: no-repeat center center;
  background-size: cover;
}

.section-cta:before {
    content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.section-cta__content {
  position: relative;
  z-index: 2;
  color: #fff;
}

/* ============================================================
   POP-UP
   ============================================================ */
   
/* Pop-up стилі */
.custom-popup {
  display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 650px;
    background-color: #660000;
    color: white;
    border: 2px solid #333;
    border-radius: 15px;
    z-index: 1050;
    padding: 15px;
}

.custom-popup__img {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto -15px;
}

@media (max-width: 767.98px) {
    .custom-popup {
        max-width:90%;
        width:400px;
        margin:0 auto;
        bottom: 0;
        right: 50%;
        transform:translateX(50%);
        border-radius: 15px 15px 0 0;
    }
    .custom-popup__img {
        margin: 0 auto;
    }
}

.btn-close {
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding:0;
  background:none;
}
.btn-close svg {
    display: block;
    width:30px;
    height:30px;
}

.btn-close:hover { color: #fff; }

.post-item.pdf-item .post-image {
    background-repeat: no-repeat;
    background-size: 40%;
	border: 1px solid #d2cbc2;
}