/* 
Theme Name: Prostranstvo
Author: Perets & Co
Text Domain: prostranstvo
Version:  11.2
*/

:root {
	--font-primary: "Montserrat", sans-serif;
    --font-secondary: "EB Garamond", serif;;
    --transition: all linear .3s;
    --var16: 16px;
    --var32: 32px;
    --var48: 48px;
    --var60: 60px;
	--fs-mormal: 16px;
	--c-white: #fff;
	--c-black: #0C0D10;
    --c-dark-grey: #707070;
    --c-light-grey: #f9f9f9;
    --c-grey: #a0a0a0;
	--c-active: #f0c674;
}
#wpadminbar {
    bottom: 0 !important;
    top: auto !important;
}
html {
    margin-top: 0px !important;
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
}
html, body {
	padding: 0;
	margin: 0;
    height: 100%;
    scrollbar-gutter: stable;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
main {
    flex: 1;
}
header, footer {
    flex-shrink: 0;
}
video,
img {
    display: block;
    max-width: 100%;
}
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
	outline: none;
}
label {
    cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
}
.h2, h2 {
    font-size: 40px;
    margin-top: 32px;
    margin-bottom: 24px;
    font-weight: 300;
    text-transform: uppercase;
}
.h3, h3 {
    font-size: 32px;
    margin-top: 24px;
    margin-bottom: 18px;
    font-weight: 300;
    text-transform: uppercase;
}
.h4, h4 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 18px;
    font-weight: 400;
    text-transform: uppercase;
}
svg, img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
	transition: var(--transition);
	text-decoration: none;
}
p {
	margin: 0 0 15px 0;
}
p:last-child {
	margin-bottom: 0;
}
body {
	line-height: 1.3;
	font-weight: 400;
	font-family: var(--font-primary);
	font-size: var(--fs-mormal);
}
/* Stylesheet */
.container {
	width: 1320px;
	max-width: 100%;
	padding-left: 16px;
	padding-right: 16px;
	margin: 0 auto;
}
.container-fluid {
    width: 100%;
}
.relative {
    position: relative;
}
.z-2 {
    z-index: 2;
}
.row {
  --bs-gutter-x: 32px;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -.5);
  margin-left: calc(var(--bs-gutter-x) * -.5);
}
.no-gutter > [class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}
.row > * {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y);
}
.col {
  flex: 1 0 0%;
}
@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}
.d-flex  {
    display: flex;
}
.d-none {
    display: none;
}
.overflow-hidden {
    overflow: hidden;
}
.middle {
    align-items: center;
}
.relative {
    position: relative;
}
.h-100 {
    height: 100%;
}
.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}
.py-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}
.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}
.pt-60 {
    padding-top: var(--var60);
}
.pl-32 {
    padding-left: 32px;
}
.pr-60 {
    padding-right: 60px;
}
.pb-120 {
    padding-bottom: 120px;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.my-60 {
    margin-top: 60px;
    margin-bottom: 60px;
}
.mt-0 {
    margin-top: 0;
}
.mt-16 {
    margin-top: var(--var16);
}
.mt-24 {
    margin-top: 24px;
}
.mb-16 {
    margin-bottom: var(--var16);
}
.mb-48 {
    margin-bottom: var(--var48);
}
.mr-60 {
    margin-right: var(--var60);
}
.c-white {
    color: #fff;
}
.t-center {
    text-align: center;
}
.btn {
    display: inline-flex;
    line-height: 1;
    align-items: center;
    border-radius: 0;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    border: none;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    background-color: var(--c-active);
    box-shadow: 0 0 0 transparent;
    transform: translateY(0px);
}
#header.is-fixed .btn {
    padding: 10px 32px;
    font-size: 18px;
}
.btn:hover {
    box-shadow: 0 0 0 1px #fff, 0 0 0 4px var(--c-active);
    transition: var(--transition);
    transform: translateY(0px);
}
/* Stylesheet */

/* Header */
#header {
    padding: 16px 0;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 99;
    background-color: rgb(255 255 255 / 60%);
    backdrop-filter: blur(4px);
}
#header.is-fixed {
    padding: 10px 0;
    transition: var(--transition);
    background-color: rgb(255 255 255 / 60%);
}
.header__wrapper {
	display: grid;
	grid-template-columns: 270px 1fr 270px;
	gap: 16px;
}
.logo-img {
    transition: var(--transition);
    height: 86px;
    width: auto;
}
.menu {}
.btn-mob {
	text-align: right;
}
.header__burger {}
.icon {}
.is-fixed .logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}
/* menu */
.header-menu {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    justify-content: center;
    height: 100%;
    gap: 16px;
}
.header-menu a {
    display: flex;
    align-items: center;
    height: 100%;
    text-transform: uppercase;
    color: #000;
    font-weight: 500;
}
.header-menu a:hover {
	color: var(--c-active);
}
.btn-mob button {
    background: none;
    margin: 0;
    padding: 0;
    width: 40px;
    border: none;
    cursor: pointer;
}
.header__burger .icon {
    height: 16px;
}
.btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/* Content */
body:not(.home) main {
    margin-top: 120px;
}
/* Hero */
.hero-section {
    height: 100vh;
    min-height: 600px;
}
.hero-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slider__item {
    position: relative;
    height: 100%;
}
.hero-slider__body {
    position: absolute;
    inset: 0 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slider__body:before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 50%);
}
.hero-slider__title {
    text-align: center;
    font-size: 44px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 24px 0;
    color: #fff;
    font-family: var(--font-primary);
}
.hero-slider__subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
/* слово — контейнер. БЕЗ overflow:hidden, щоб translateY/blur не обрізались */

/* Базовий стан символів: приховані, зміщені та розмиті */
.hero-section .sr7_char {
    display: inline-block;
    opacity: 0;
     
    filter: blur(10px); /* Повертаємо початковий блюр */
    
    /* Базова затримка 200мс перед стартом + рандомна затримка символу */
    transition:
      transform 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      opacity   4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      filter    4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: calc(200ms + var(--char-delay, 0ms));
    will-change: opacity, transform, filter; /* Кажемо браузеру рендерити це через GPU */
}
.hero-section .sr7_char.is-even {
    transform: translateY(100%);
}
.hero-section .sr7_char.is-odd {
    transform: translateY(-100%);
}
/* Стан символів, коли слайд стає активним — усе стає чітким */
.hero-section swiper-slide.swiper-slide-active .sr7_char {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0); /* Блюр плавно зникає */
}

/* Інші стилі для структури (залишаються без змін) */
.hero-section .sr7_word {
    display: inline-block;
    white-space: nowrap;
}
.hero-section .sr7_space {
    display: inline-block;
}
/* End Hero */

/* Slider */
swiper-container {
    height: 100%;
    --swiper-navigation-color: #fff;
    --swiper-navigation-sides-offset: 20px;
    --swiper-navigation-size: 32px;
    --swiper-pagination-color: var(--c-active);
    --swiper-pagination-bullet-size: 12px;
    --swiper-pagination-bullet-horizontal-gap: 8px;
}
/* Стилізуємо обидві кнопки або конкретно swiper-button-prev */
swiper-container::part(button-prev),
swiper-container::part(button-next) {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background-color 0.3s ease;
    padding: 8px 4px;
}
swiper-container::part(button-prev) {
    border-radius: 0 4px 4px 0;
}
swiper-container::part(button-next) {
    border-radius: 4px 0 0 4px;
}
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    opacity: 0.2;
    cursor: auto;
    pointer-events: none;
}

/* Ефект при наведенні */
swiper-container::part(button-prev):hover,
swiper-container::part(button-next):hover {
    
}
/* Стиль для плавного переходу fade */
swiper-slide {
    background-position: center;
    background-size: cover;
}
/* End Slider */


/* About */
.about__image-wrapper {
    display: flex;
    gap: var(--var32);
    height: 480px;
    overflow: hidden;
}
.about__image-wrapper div {
    width: 100%;
    background-image: var(--bg-image);
    background-repeat: no-repeat;
    background-size: auto 480px;
    transition: background-position 0.1s ease-out;
}
.about__image-wrapper div:first-child {
    background-position: right calc(-1 * ((1320px - 32px) * 0.5833) * 0.5) center;
}
.about__image-wrapper div:last-child {
    background-position: right center;
}
.about__image-wrapper div:first-child:before {
    content: '';
    display: block;
    padding-top: 100%;
}
.shine-effect::before {
    position: absolute;
    top: 0px;
    left: -75%;
    z-index: 2;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
    transform: skewX(-25deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%);
}
/* End About */

/* Carousel */
swiper-container.carousel::part(container) {
    overflow: visible;
    height: auto;
    display: flex;
}
swiper-container.carousel swiper-slide {
    height: auto;
    display: flex;
    opacity: 0.4;
    transition: var(--transition);
}
.carousel swiper-slide.swiper-slide-active,
.carousel swiper-slide.swiper-slide-active ~ swiper-slide {
    opacity: 1;
    transition: var(--transition);
}
/* End Carousel */

/* Services */
.services-section {
    background-color: #0c0d10;
}
.services__card {
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.services__card:hover {
    transform: translateY(-10px);
}
.services__image-wrap {
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.services__img {
    filter: sepia(10%) contrast(105%);
    transition: var(--transition);
}
.services__card:hover .services__img {
    transform: scale(1.05);
    transition-delay: 0.3s;
}
.services__body {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: flex-start;
    padding-bottom: 0.5rem;
}
.services__body .btn {
    margin-top: 2rem;
    padding: 10px 32px;
    font-size: 18px;
}
.services__title {
    color: #fff;
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    margin-top: 0;
    min-height: 62px;
}
.services__content {
    color: var(--c-grey);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}
.services__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 16px ;
}
.services__data-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}
.services__label {
    display: block;
    color: var(--c-dark-grey);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
    font-family: var(--font-secondary);
    margin-top: auto;
}
.services__value {
    display: block;
    color: #f0c674;
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 400;
}
/* End Services */

/* Advantages */
.section-advantages {
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-advantages .bg-video__content {
    object-fit: cover;
    height: 100%;
    width: 100%;
    object-position: center center;
}
.section-advantages .bg-video {
    position: absolute;
    inset: 0 0 0 0;
}
.section-advantages .bg-video:after {
    content: '';
    display: block;
    background-color: hsl(0deg 0% 0% / 40%);
    position: absolute;
    inset: 0 0 0 0;
}
.section-advantages__wrapper {
    position: relative;
    z-index: 2;
}
.advantages__icon img {
    height: 80px;
    margin: 0 auto;
}
.advantages__title {
    min-height: 52px;
}
.advantages__text {
    color: var(--c-grey);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}
/* End Advantages */

/* Portfolio */
.col-portfolio__left {
    background-color: #0C0D10;
}
.portfolio-slider__body {
    padding: 60px 120px;
}
#nav-portfolio {
    pointer-events: none; 
}
#nav-portfolio .swiper-slide-active .btn {
    pointer-events: auto; 
}
#nav-portfolio .btn:hover {
    box-shadow: 0 0 0 2px var(--c-black), 0 0 0 4px var(--c-active);
}
.section-portfolio #nav-portfolio swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
}
.portfolio-slider__image {
    /* Прискорює рендеринг через GPU */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
    filter: brightness(0.95);
}
/* Якщо використовуєте Fade ефект у другому слайдері */
#nav-portfolio swiper-slide {
    pointer-events: none;
    transition-timing-function: ease-in-out;
}
.portfolio-slider__subtitle {
    color: var(--c-active);
    text-transform: uppercase;
    font-size: 12px;
}
.portfolio-slider__title {
    color: #fff;
}
.portfolio-slider__text {
    color: var(--c-grey);
}
.portfolio-slider__subtitle,
.portfolio-slider__title,
.portfolio-slider__text,
.portfolio__btn {
    opacity: 0;
}
#nav-portfolio .swiper-slide-active .portfolio-slider__subtitle {
    animation: fadeInUp 0.8s forwards;
}
#nav-portfolio .swiper-slide-active .portfolio-slider__title {
    animation: fadeInUp 1.2s forwards;
}
#nav-portfolio .swiper-slide-active .portfolio-slider__text {
    animation: fadeInUp 1.6s forwards;
}
#nav-portfolio .swiper-slide-active .btn {
    animation: fadeInUp 2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* End Portfolio */

/* FAQ */
.accordion__details > .accordion__summary {
                        list-style: none;
                    }
.accordion__summary {
    cursor: pointer;
    padding: 24px 0;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}
.accordion-item:first-child .accordion__summary {
    padding-top: 0;
}
.accordion-item:not(:first-child) .accordion__summary {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
                    .accordion__content {
                        display: grid;
                        grid-template-rows: 0fr;
                        transition-duration: 0.3s;
                    }
                    .accordion__content-body {
                        overflow: hidden;
                    }
.accordion__details[open] + .accordion__content {
    grid-template-rows: 1fr;
    padding-bottom: 24px;
}
.accordion__title {
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
}
.trigger {
    position: relative;
    width: 20px;  /* Ширина зони плюса */
    height: 20px; /* Висота зони плюса */
    flex-shrink: 0;
    margin-left: 20px;
}
.trigger::before,
.trigger::after {
    content: '';
    position: absolute;
    background-color: currentColor; /* Колір підлаштовується під текст */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.trigger::before {
    width: 100%;
    height: 1px;
}
.trigger::after {
    width: 1px;
    height: 100%;
}
details[open] .trigger::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0; /* Додаємо зникнення для більш чистого ефекту "мінуса" */
}
details[open] .trigger::before {
    transform: translate(-50%, -50%) rotate(180deg);
}
/* End FAQ */

/* Testimonials */
.section-testimonials {
    background-image: url(assets/img/bg/bg-testimonials.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.testimonial-card {
    padding: 60px 40px;
    background-color: #fff;
    box-shadow: 5px 5px 15px rgba(43, 41, 41, 0.1);
    text-align: center;
}
.testimonial-card__quote {}
.testimonial-card__content {
    line-height: 1.5;
}
.testimonial-card__footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin: 20px auto 0;
    display: inline-block;
    line-height: 1.5;
}
.testimonial-card__name {
    text-transform: uppercase;
    color: var(--c-grey);
}
.testimonial-card__meta {
    text-transform: uppercase;
    font-size: 12px;
    color: var(--c-active);
}
.testimonials-slider::part(pagination) {
    position: relative;
    bottom: 0;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 12px;
}
/* End Testimonials */

/* Footer */
footer {
    background-color: #0C0D10;
    padding: 40px 0;
    text-align: center;
    color: var(--c-grey);
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--c-light-grey);
    padding: 12px 0;
}
.breadcrumbs a {
    color: var(--c-grey);
}
.breadcrumbs a:hover {
    color: var(--c-active);
}
.breadcrumbs .sep {
    color: var(--c-grey);
}
.breadcrumbs .current {
    color: var(--c-black);
}
/* End Breadcrumbs */

/* Single */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.product-left {
    flex: 1;
    min-width: 300px; /* Для адаптивності */
}

.product-right {
    flex: 1;
    min-width: 300px;
}

.product-title {
    margin-top: 0;
    font-size: 2rem;
}

.product-details {
    margin: 25px 0;
    padding: 20px;
    background: var(--c-light-grey);
    border-radius: 8px;
}

.detail-item {
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.detail-item:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item.price {
    font-size: 1.5rem;
    color: #e44d26;
    border-bottom: 2px solid #e44d26;
    margin-bottom: 20px;
}

.button-order {
    display: inline-block;
    padding: 15px 35px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.button-order:hover {
    background-color: #555;
}

/* Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

/* Блок картки */
.content-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Елементи картки */
.content-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.6%; /* Співвідношення сторін 3:2 */
    overflow: hidden;
}

.content-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card__excerpt {
    margin-bottom: 16px;      /* Відступ до списку характеристик */
    font-size: 0.95rem;       /* Трохи менше за заголовок */
    line-height: 1.5;         /* Гарна читабельність */
    color: #555;              /* М'який колір тексту */
    display: -webkit-box;     /* Магія для обмеження кількості рядків */
    -webkit-line-clamp: 3;    /* Показувати не більше 3 рядків */
    -webkit-box-orient: vertical;
    overflow: hidden;         /* Ховати текст, що не вліз */
}

.content-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content-card__title {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.content-card__title-link {
    text-decoration: none;
    color: #1a1a1a;
}

.content-card__title-link:hover {
    color: #0073aa;
}

/* Список характеристик */
.content-card__details {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.content-card__detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.content-card__detail-item:last-child {
    border-bottom: none;
}

.content-card__detail-label {
    font-weight: 600;
    color: #666;
    margin: 0;
}

.content-card__detail-value {
    color: #333;
    margin: 0;
    text-align: right;
    padding-left: 10px;
}

/* Адаптивність: на мобільних пристроях колонки стануть одна під одною */
@media (max-width: 768px) {
    
}
/* End Single */

/* Popup */
/* Блокування скролу сторінки */
body.is-locked {
  overflow: hidden;
}

/* Базовий стан поп-апу (схований) */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

/* Стан коли поп-ап відкритий */
.popup.is-open {
  opacity: 1;
  visibility: visible;
  overflow: visible;
  pointer-events: auto;
}

/* Оверлей (затемнення всього екрану) */
.popup__overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Затемнення */
  cursor: pointer;
}

/* Тіло поп-апу */
.popup__body {
  position: relative;
  background-color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  max-width: 100%;
  width: 720px;
  cursor: default; /* Щоб клік по вікну не закривав його */
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Анімація появи самого вікна */
.popup.is-open .popup__body {
  transform: scale(1);
}

/* Кнопка закриття (хрестик) */
.popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: #333;
}
/* End Popup */

/* СF 7 */
.hidden-fields-container {
    display: none;
}
/* Ховає тільки ті теги p, всередині яких взагалі немає контенту */
.wpcf7 p:empty {
  display: none;
}
.cf7mls-btns .cf7mls_next.action-button, .cf7mls-btns .cf7mls_back.action-button {
    margin: 0 4px 4px 0;
    padding: 10px 32px;
    font-size: 18px;
    border-radius: 0;
    background-color: var(--c-active);
    font-weight: 500;
    font-family: var(--font-primary);
}
.fieldset-cf7mls-wrapper .fieldset-cf7mls {
    padding: 0;
    margin: 0;
}
.step-title {
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}
.wpcf7-form .fieldset-cf7mls .cf7mls-btns {
    min-height: initial;
    margin-top: 3rem;
}
.wpcf7-radio {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}
.fieldset-cf7mls[data-cf7mls-order="0"] .wpcf7-radio {
    flex-direction: row;
}
.fieldset-cf7mls[data-cf7mls-order="0"] label::before {
    content: "";
    display: block;
    width: 10rem;
    height: 10rem;
    margin-bottom: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.wpcf7-radio input {
    display: none;
}
.fieldset-cf7mls[data-cf7mls-order="0"] .wpcf7-radio > span:nth-of-type(1) label::before {
  background-image: url('https://prostranstvo.morisson.ru/wp-content/uploads/2026/06/step-1.avif');
}
.fieldset-cf7mls[data-cf7mls-order="0"] .wpcf7-radio > span:nth-of-type(2) label::before {
  background-image: url('https://prostranstvo.morisson.ru/wp-content/uploads/2026/06/step-2.avif');
}
.fieldset-cf7mls[data-cf7mls-order="0"] .wpcf7-radio > span:nth-of-type(3) label::before {
  background-image: url('https://prostranstvo.morisson.ru/wp-content/uploads/2026/06/step-3.avif');
}
.wpcf7-list-item-label {
  position: relative;
  padding-left: 28px; /* Місце під кастомний кружок */
  font-size: 16px;
  user-select: none;
  cursor: pointer;
}
.wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: #fff;
  transition: border-color 0.2s ease;
}
.wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 5px; /* Центрування точки всередині кола 20px */
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--c-active); /* Твій акцентний колір */
  transition: transform 0.2s ease;
}
label input[type="radio"]:checked + .wpcf7-list-item-label::before {
  border-color: var(--c-active);
}
label input[type="radio"]:checked + .wpcf7-list-item-label::after {
  transform: translateY(-50%) scale(1);
}
.cf7mls-btns .cf7mls_back.action-button {
    border: 1px solid var(--c-grey);
}
.cf7mls_back.action-button {
    float: initial;
}
.wpcf7-text,
.wpcf7-number {
    display: flex;
    border: none;
    border-bottom: 1px solid var(--c-grey);
    width: 100%;
    height: 60px;
    align-items: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: var(--c-grey);
    font-family: var(--font-primary);
    font-size: var(--fs-mormal);
}
.fieldset-cf7mls-wrapper div.wpcf7-validation-errors {
    font-size: 14px;
    margin-top: 0.5rem;
}
.fieldset-cf7mls-wrapper .wpcf7-not-valid-tip {
    font-size: 14px;
    color: #f00;
    margin-top: 0.25rem;
}
.wpcf7-list-item {
    margin: 0;
}
.codedropz-upload-container {
    padding: 16px 24px;
}
.codedropz-upload-handler {
    border: 1px dashed #c5c5c5;
    border-radius: 8px;
    margin-bottom: 0px;
    position: relative;
}
.dnd-upload-status .dnd-upload-details .dnd-progress-bar {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    background: var(--c-grey);
    height: 8px;
}
.dnd-upload-status .dnd-upload-details span.has-error {
    color: #f00;
    font-size: 14px;
    display: block;
    margin-top: 0.25rem;
}
.dnd-upload-status .dnd-upload-image {
    display: none;
}
.dnd-upload-status .dnd-upload-details .dnd-progress-bar span {
    background: #4CAF50;
    display: block;
    font-size: 8px;
    text-align: right;
    color: #fff;
    height: 100%;
    width: 0;
    line-height: 8px;
}
.wpcf7-spinner {
    display: none;
}
/* End СF 7 */

/* Footer */
/* Базові скидання для футера */
.footer {
  background-color: #111111; /* Темний преміум фон під стиль сайту */
  color: #ababab;
  font-size: 14px;
  line-height: 1.6;
}

/* Обмежувач ширини контенту */
.footer__container {
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}

/* Верхня секція */
.footer__primary {
  padding: 5rem 0 3rem;
}

/* Колонка (Блок) */
.footer__block {
  flex: 1 1 100%;
  margin-bottom: 40px;
}

/* Специфічний блок для логотипу (вирівнювання) */
.footer__block--logo {
  display: flex;
  align-items: flex-start;
}

.footer__logo {
  max-width: 100%;
  height: auto;
}

/* Заголовки колонок */
.footer__title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 25px 0;
}

/* Текстові дані та адреса */
.footer__text-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__address {
  font-style: normal;
}

/* Посилання загальні */
.footer__link {
  color: #ababab;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__link:hover {
  color: #ffffff;
}

/* Списки та меню */
.footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__menu-link {
  color: var(--c-grey);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer__menu-link:hover,
.footer__menu-link--active {
  color: #ffffff;
}

/* Нижня секція (копірайт та соцмережі) */
.footer__secondary {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.footer__container--secondary {
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Блок соцмереж */
.footer__socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer__socials-link {
  color: #ababab;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__socials-link:hover {
  color: #ffffff;
}

.footer__socials-link--svg svg {
  display: block;
}

/* Копірайт */
.footer__copyright {
  font-size: 12px;
  color: #666666;
  text-align: center;
}

.footer__copyright-link {
  color: #666666;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__copyright-link:hover {
  color: #ffffff;
}


/* ========================================================
   🎯 МЕДІА ЗАПИТИ (Адаптивність)
   ======================================================== */

/* Планшети (2 колонки в ряду) */
@media (min-width: 768px) {
  .footer__block {
    flex: 0 0 50%;
  }
}

/* Десктопи (4 колонки в ряду + зміна орієнтації низу) */
@media (min-width: 1024px) {
  .footer__block {
    flex: 1; /* Рівномірно розподіляє 4 колонки */
    margin-bottom: 0;
  }
  
  .footer__container--secondary {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer__copyright {
    text-align: right;
    order: 2; /* Копірайт праворуч */
  }
  
  .footer__socials {
    order: 1; /* Соцмережі ліворуч, як на скрині */
  }
}
/* End Footer */

/* Compare */
/* Головний контейнер */
.slider-compare {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0px;
  user-select: none;
}

/* Спільні стилі для обгорток картинок */
.slider-compare__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slider-compare__image.slider-compare__image--before {
    position: relative;
}
.slider-compare__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Запобігає деформації картинок */
  object-position: left center;
}

.slider-compare__image--after {
  width: 50%; /* Початкове положення шторки за замовчуванням (50%) */
}

.slider-compare__range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Робимо невидимим, але залишаємо клікабельним */
  z-index: 10;
  cursor: ew-resize;
  margin: 0;
}

.slider-compare__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* Співпадає з початковим значенням width */
  width: 2px;
  background-color: #ffffff;
  z-index: 5;
  pointer-events: none; /* Щоб лінія не заважала клікати на інпут */
  transform: translateX(-50%);
}

/* 🟢 Кулька-повзунок на лінії */
.slider-compare__button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--c-active); /* Твій акцентний колір */
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Стрілочки всередині кульки (опціонально) */
.slider-compare__button::before,
.slider-compare__button::after {
  content: "";
  position: absolute;
  border: solid #ffffff;
  border-width: 0 1px 1px 0;
  padding: 4px;
}

.slider-compare__button::before {
  left: 12px;
  transform: rotate(135deg);
}

.slider-compare__button::after {
  right: 12px;
  transform: rotate(-45deg);
}
/* End Compare */

/* Masonry */
/* Базовий контейнер */
.grid-gallery {
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.grid-gallery__container {
  display: grid;
  grid-template-columns: 1fr; /* Мобілки: в один стовпчик */
  gap: 15px; 
  width: 100%;
  margin: 0 auto;
}

/* Елемент сітки */
.grid-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 10; 
}

/* Картинка */
.grid-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-gallery__item:hover .grid-gallery__image {
  transform: scale(1.03);
}

/* ========================================================
   🎯 ДЕСКТОПНА СІТКА (Керування через nth-child)
   ======================================================== */
@media (min-width: 992px) {
  .grid-gallery__container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 30vh);
    gap: 20px;
  }

  .grid-gallery__item {
    aspect-ratio: auto; /* Скидаємо мобільний інваріант */
  }

  /* --- Перший рядок --- */
  
  /* 1-й елемент: великий (1 рядок, 2 стовпці) */
  .grid-gallery__item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  
  /* 2-й елемент: 1 рядок, 3 стовпець */
  .grid-gallery__item:nth-child(2) {
    grid-column: 3;
    grid-row: 1;
  }
  
  /* 3-й елемент: 1 рядок, 4 стовпець */
  .grid-gallery__item:nth-child(3) {
    grid-column: 4;
    grid-row: 1;
  }

  /* --- Другий рядок (Дзеркально) --- */
  
  /* 4-й елемент: 2 рядок, 1 стовпець */
  .grid-gallery__item:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }
  
  /* 5-й елемент: 2 рядок, 2 стовпець */
  .grid-gallery__item:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
  }
  
  /* 6-й елемент: великий (2 рядок, останні 2 стовпці) */
  .grid-gallery__item:nth-child(6) {
    grid-column: 3 / 5;
    grid-row: 2;
  }
}

/* Планшетний адаптив (в 2 стовпці) */
@media (min-width: 576px) and (max-width: 991px) {
  .grid-gallery__container {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Робимо великі блоки на всю ширину екрану планшета */
  .grid-gallery__item:nth-child(1),
  .grid-gallery__item:nth-child(6) {
    grid-column: span 2;
  }
}
/* End Masonry */

/* Media */
@media (width <= 1023px) {
	
}

@media (width <= 767px) {
    .product-grid {
        flex-direction: column;
    }
}