/* TAB1 - Істрорія */
.about-section__wrapper {
	display: flex;
	flex-direction: column;
	gap: 120px;
}

.wysiwyg-content ul li::after {
	transform: translateY(10px);
}

.hidden { display: none !important; }

.about-title { 
	color: var(--second-text-color);
	font-size: 64px;
	font-weight: 700;
	font-family: 'Playfair Display';
	margin-bottom: 64px;
	line-height: 60px;
}

.about-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 64px;
}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(1){ --img:65%; --img-align-m: flex-start; }
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(2){--img: 48%;--img-align-m: flex-start;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(3){--img: 40%;--img-align-m: center;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(4){--img: 20%;--img-align-m: flex-start;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(5){--img: 31%;--img-align-m: flex-start;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(6){--img: 36%;--img-align-m: flex-end;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(7){--img: 32%;--img-align-m: flex-start;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(8){--img: 47%;--img-align-m: flex-start;}


.about-button {
    padding: 5px 16px;
    border-radius: 10px;
    border: none;
    font-size: 18px;
	background: transparent;
	color: var(--second-text-color);
	transition: .2s;
	line-height: 38px;
}

.about-button:hover {
	background: var(--second-text-color);
	color: black;
	cursor: pointer;
}

.about-button.active {
	background: var(--second-text-color);
	color: black;
}

.about-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 75px;
    /* --img: 50%; */
}

.about-section.right {
	flex-direction: row-reverse;
}

.about-subsection.text {
	flex-direction: column;
	gap: 20px;
	color: var(--second-text-color);
	line-height: 40px;
	font-size: 18px; 
	flex: 1 1 0;
	box-sizing: border-box;
}

.about-subsection__content .wysiwyg-content {
  	margin-top: 0;
}

.wysiwyg-content ul li {
    position: relative;
    margin-left: 20px;
    line-height: 30px;
    font-size: 18px;
}

.about-subsection.text h2 {
	margin-top: 0px;
	margin-bottom: 32px;
	text-transform: uppercase;
}

h3 {
  	font-size: 32px;
  	margin-top: 24px;
  	line-height: 40px;
  	margin-bottom: 16px;
  	font-weight: 700;
  	font-family: 'Playfair Display', serif;
}


.about-subsection.text h4 {
	margin-top: 0px;
	margin-bottom: 16px;
}

.about-subsection.text p {
	margin-top: 0px;
	margin-bottom: 24px;
}

.about-section.right .about-subsection.image.has-shadow {
	margin-right: 32px;
}

.about-subsection.image {
	border-radius: 10px;
	position: relative;
	z-index: 3;
	overflow: visible;
	flex: 0 0 var(--img);
  	max-width: var(--img);
}

.about-subsection.image::before {
    content: '';
    background:  linear-gradient(90deg,rgba(84, 19, 25, 1) 0%, rgba(54, 6, 10, 1) 100%);
    position: absolute;
	inset: 32px;
    border-radius: 10px;
	height: 100%;
	width: 100%;
    z-index: 0;
}

.about-subsection.image.no-shadow::before {
    display: none;
}
.about-ul {
    gap: 16px;
}
.about-subsection.image img {
	display: block;
	border-radius: inherit;
	position: relative;
	z-index: 2;
	height: auto;
	width: 100%;
}

.about-section__wrapper[data-content-id="history"] .wysiwyg-content ul li::after {
	background: var(--second-text-color);
}

.about-subsection__button-wrapper {
	display: flex;
	justify-content: flex-end;
	margin-top: 59px;
}

.about-subsection__button-wrapper:not(:has(button)) {
  margin-top: 0;
}

.about-section .about-subsection__content p:last-of-type {
  margin-bottom: 0;
}

.about-section__wrapper-final {
	max-width: 51%;
}

.about-subsection__button-wrapper__last {
	display: flex;
	justify-content: flex-end;
	margin-top: 23px;
}

/* TAB2 - Віртуальний тур  */
.virtual-tour-wrapper iframe {
    width: 100%;
    border-radius: 10px;
	height: 800px;
}

/* TAB3 - План Зали  */

.about-section__hall-plan__image {
	display: block;
	max-width: 100%;   
	height: auto;
	border-radius: 10px;
}

.about-section__hall-plan__image img {
	width: 100%;
}

.about-section__hall-plan {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.about-section__hall-plan img {
	width: 100%;
    margin: 0 100px;
}
/* TAB4 - Партнери  */

.partners-row {
	display: flex;
	gap: 21px;
	flex-wrap: wrap; 
	max-width: calc((257px * 4) + (21px * 3));
}

.partner-card {
	display: flex;
  	flex-direction: column;
  	gap: 16px;
	width: 257px; 
	height: auto;
	transition: transform .18s ease, box-shadow .18s ease; 
    will-change: transform;
}

.partner-card-link:hover .partner-card,
.partner-card-link:focus-visible .partner-card,
.partner-card:hover,
.partner-card:focus-visible {
    
	text-decoration: none;
	color: inherit;
}

.partner-card-link {
    display: block;
    text-decoration: none; 
    color: inherit;       
}

.partner-card__logo-box {
	width: 257px;
	height: 168px;
	background: #F4EBE0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;      
}

.partner-card__logo-wrapper {
    display: flex;
    justify-content: center;
}

.partner-card__desc {
	margin: 0;
	font-size: 16px;
	color: #F2DFC8B0;
	line-height: 1.4;  
}

.partner-card__name {
	margin-top: 8px;
	font-size: 18px;
	color: var(--second-text-color);
	font-weight: 400;
	font-size: 24px;
}

.partner-card__text {
	display: flex;
	flex-direction: column;
	font-size: 15px;
}

.partner-card__name-title {
	font-size: 24px;
}

.partner-card__role-content {
	font-size: 16px;
	margin-bottom: 8px;
}

.partner-card__name-title h3 {
	margin: 0px;
}

/* TAB5 - Контакти  */

.about-section__wrapper[data-content-id="contacts"] {
	gap: 64px;
}

.contacts__map iframe {
    width: 100%;
    height: 426px;
    border-radius: 10px;
}

.contacts-elements {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.contacts-elements .contact-element {
    color: var(--second-text-color);
}

.contact-element h2 {
	margin: 0px;
	line-height: 40px;
	font-size: 32px;
	text-transform: uppercase;
	font-family: 'Playfair Display'
}

.contact-element__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 64px;
	margin-top: 32px;
}

.contact-element__content-item {
    max-width: 305px;
}

.contact-element__content-item__title {
	line-height: 38px;
	font-size: 24px;
	font-weight: 700;
	margin: 0px;
	margin-bottom: 16px;
	font-family: 'Playfair Display'
}

.contact-element__content-item__sub-item {
	font-size: 16px;
	line-height: 30px;
	font-weight: 400;
}

.contacts-elements .contact-element:nth-child(2) .contact-element__content-item {
  max-width: 35%;
}

.contacts-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
	width: fit-content;
}
.contacts-links a {
	color: var(--second-text-color);
	line-height: 38px;
	font-size: 24px;
	font-weight: 700;
}
/* Контейнер */
.contact-text {
    width: 100%;
    margin-top: 40px;
}


.contact-text,
.contact-text p,
.contact-text li,
.contact-text a {
    font-family: 'Libre Franklin';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    color: #F4EBE0;
}


.contact-text ul {
    list-style: none;
    padding-left: 20px;
    margin: 0 0 20px 0;
    position: relative;
}


.contact-text ul li {
    position: relative;
    padding-left: 18px;
}


.contact-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: #6E050F;
}


/* acces */
body.accessibility-mode .partner-card__logo-box {
	
	background: #ffffff;
	    
}

/* ====== Адаптив ====== */
/*tablet*/

@media (max-width: 1200px) and (min-width: 769px) {
    .about-section__wrapper {
        max-width: 100%;
        box-sizing: border-box;
        gap: 64px;
        margin: 0 0;
    }

    .about-section,
    .about-section.right {
        flex-direction: column;
        gap: 48px;
        align-items: stretch;
        --img: 75%; 
    }

    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(1){ --img:65%; --img-align-m: flex-start; }
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(2){ --img:60%; --img-align-m: flex-start; }
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(3){--img: 50%;--img-align-m: center;}
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(4){--img: 30%;--img-align-m: flex-start;}
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(5){--img: 55%;--img-align-m: flex-start;}
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(6){ --img:55%; --img-align-m: flex-end; }
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(7){--img: 50%;--img-align-m: flex-start;}
    .about-section__wrapper[data-content-id="history"] > .about-section:nth-child(8){ --img:65%; --img-align-m: flex-start; }

    .about-subsection.image {
        width: var(--img);
        flex: 0 0 auto;
        align-self: var(--img-align-m);
    }

    .about-subsection.image img {
        width: 100%;
        height: auto;
    }

    .about-subsection.image::before {
        content: '';
        position: absolute;
        top: 24px; 
        left: 24px;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        z-index: 1;
    }

    .about-section.right .about-subsection.image.has-shadow,
    .about-section .about-subsection.image.has-shadow {
        margin-right: 24px;
        margin-bottom: 20px;
    }

	.virtual-tour-wrapper iframe {
		height: 500px;
	}
	
    /* Заголовки и текст */
    .about-title {
        font-size: 52px;
        line-height: 52px;
        margin-bottom: 52px;
    }

    .about-subsection.text {
        gap: 20px;
        line-height: 34px;
        font-size: 17px;
    }

    .about-subsection.text h2 {
        margin-top: 0px;
        margin-bottom: 28px;
        text-transform: uppercase;
        font-size: 19px;
    }

    .about-subsection.text h4 {
        margin-top: 0px;
        margin-bottom: 16px;
        font-size: 18px;
    }

    h3 {
        font-size: 28px;
        line-height: 30px;
        margin-top: 24px;
        margin-bottom: 16px;
    }

    .about-subsection.text p {
        margin-top: 0px;
        margin-bottom: 28px;
    }

    /* Кнопки */
    .about-buttons {
        display: flex;
        gap: 10px;
        margin-bottom: 48px;
        overflow-x: auto;
    }

    .about-buttons::-webkit-scrollbar {
        display: none;
    }

    .about-button {
        white-space: nowrap;
        padding: 6px 18px;
        font-size: 17px;
        line-height: 38px;
    }

    .about-subsection__button-wrapper {
        margin-top: 28px;
    }

    
    .about-section__wrapper-final {
        max-width: 80%;
    }
    .partner-card__desc {
        font-size: 15px;
        line-height: 18px;
        opacity: .85;
        margin: 4px 0 0;
    }

    .partner-card__name {
        font-size: 22px;
        font-weight: 400;
        color: var(--second-text-color);
        margin: 0 0 4px 0;
    }

    .partner-card__name-title {
        font-size: 20px;
    }

    .partner-card__role-content p {
        font-size: 15px;
        margin-bottom: 0px;
        line-height: 18px;
    }
    /* --- CONTACTS --- */
    .about-section__wrapper[data-content-id="contacts"] {
        gap: 50px; 
    }

    .contacts__map iframe {
        width: 100%;
        height: 300px; 
        border-radius: 10px;
    }

    .contacts-elements {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .contact-element h2 {
        font-size: 24px;
        line-height: 34px;
        margin: 0;
        text-transform: uppercase;
        font-family: 'Playfair Display';
    }

    .contact-element__content-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 32px; 
        margin-top: 24px;
        flex-direction: row; 
        max-width: 100%;
        width: 100%;
        flex-wrap: wrap;
    }

    .contact-element__content-item {
        max-width: 35%; 
    }

    .contact-element__content-item__title {
        font-size: 20px;
        line-height: 28px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .contact-element__content-item__sub-item {
        font-size: 16px;
        line-height: 28px;
    }

    .contacts-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: fit-content;
    }

    .contacts-links a {
        font-size: 20px;
        line-height: 32px;
        font-weight: 700;
    }
}


/*mobile*/
@media (max-width: 768px) {
.container.divider {
	margin-top: 104px;
}
.about-button{
    font-size: 14px;
    line-height: 100%;
    padding: 15.5px 16px;
}
.about-ul {
    gap: 8px;
}
.about-section__wrapper {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  gap: 32px;
}

.about-section{ --img-m: 100%; --img-align-m: center; }

.about-section,
.about-section.right {
    flex-direction: column;             
    gap: 32px;
	align-items: stretch;
    --img: 95%; 
}

.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(1){ --img:95%; --img-align-m: flex-start; }
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(2){ --img:100%; --img-align-m: flex-start; }
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(3){--img: 100%;--img-align-m: center;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(4){--img: 50%;--img-align-m: center;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(5){--img: 72%;--img-align-m: flex-start;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(6){ --img:70%; --img-align-m: flex-end; }
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(7){--img: 72%;--img-align-m: flex-end;}
.about-section__wrapper[data-content-id="history"] > .about-section:nth-child(8){ --img:100%; --img-align-m: flex-start; }

.about-section.right .about-subsection.image.has-shadow {
    margin-right: 20px;
    margin-bottom: 18px;
}

.about-section .about-subsection.image.has-shadow {
    margin-right: 20px;
	margin-bottom: 18px;
}

.about-subsection.image { 
	width: var(--img-m);
    flex: 0 0 auto;
    align-self: var(--img-align-m); 
}

  .about-subsection.image img{
    width: 94%;
    height: auto;
  }

.about-subsection.image::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 34px;
    width: 90%;
    height: 100%;
    border-radius: inherit;
    z-index: 1;
}

.about-subsection.image.no-shadow img {
    max-width: 100%;
    width: 100%;
}

.about-button {
    white-space: nowrap;
}

.about-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    overflow-x: auto; 
}

  .about-subsection__button-wrapper {
    margin-top: 24px;
}

.about-buttons::-webkit-scrollbar {
    display: none;
}

.about-title {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 40px;
}

.about-subsection.text {
	gap: 20px;
	line-height: 30px;
	font-size: 16px; 
}

.about-subsection.text h2 {
	margin-top: 0px;
	margin-bottom: 24px;
	text-transform: uppercase;
	font-size: 18px;
}

.about-subsection.text h4 {
	margin-top: 0px;
	margin-bottom: 16px;
	font-size: 18px; 
}

.about-subsection.text p {
	margin-top: 0px;
	margin-bottom: 30px;
}

h3 {
  	font-size: 18px;
	margin-top: 24px;
	margin-bottom: 16px;
}

 .about-section.has-button .about-subsection.text p {
    margin-bottom: 0; 
}

.wysiwyg-content ul li {
    position: relative;
    margin-left: 20px;
    line-height: 30px;
    font-size: 16px;
}

.about-section__wrapper[data-content-id="history"] .wysiwyg-content ul li::after {
	transform: translateY(10px);
}

.about-section__wrapper-final {
	max-width: 100%;
}

.wysiwyg-content p:last-child {
  margin-bottom: 0;
}

	.virtual-tour-wrapper iframe {
		height: 300px;
	}
	
/*TAB3 ADAPT*/
.partners-row {
	display: flex;
	gap: 24px;
	flex-direction: column
}

.partner-card {
    display: flex;
    flex-direction: row;
	gap: 21px;
	width: 100%; 
	max-width: 100%;
	height: 98px;
}

.partner-card__logo-box {
	width: 150px;
	height: 98px;
	background: #F4EBE0;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;      
}

.partner-card__logo {
	max-width: 85%;
	max-height: 85%;
	object-fit: contain;
	display: block;
}

.partner-card__desc {
	margin: 8px 0 0px;
	font-size: 14px;
	line-height: 1.3;
	opacity: .85;
	color: #F2DFC8B0;
	line-height: 100%;
}

.partner-card__text {
    flex-direction: column-reverse;
	align-items: flex-start;
	justify-content: flex-end;
	flex: 1;
}

.partner-card__name-title {
	font-size: 18px;
}

.partner-card__role-content p {
	font-size: 14px;
	margin-bottom: 0px;
	line-height: 17px;
}

.partner-card__name {
	margin: 0;
	font-size: 20px;
	color: var(--second-text-color);
	font-weight: 400;
	font-size: 18px;
	line-height: 100%;
}

.partner-card__name-title h3 {
	font-size: 18px;
}

/* TAB4 - Контакти  */

.about-section__wrapper[data-content-id="contacts"] {
	gap: 32px;
}

.contacts__map iframe {
    height: 193px;
	margin: 0 0 7px;
}

.contacts-elements {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contacts-elements .contact-element {
    color: var(--second-text-color);
}

.contact-element h2 {
	margin: 0px;
	line-height: 40px;
	font-size: 18px;
	text-transform: uppercase;
}

.contact-element__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
	margin-top: 24px;
	flex-direction: column;
	max-width: 100%;
	width: 100%;
}

.contact-element__content-item {
    max-width: 100%;
}

.contact-element__content-item__title {
	line-height: 30px;
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
}

.contact-element__content-item__sub-item {
	font-size: 16px;
	line-height: 30px;
}

.contacts-elements .contact-element:nth-child(2) .contact-element__content-item {
  	max-width: 100%;
}

.contacts-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
	width: fit-content;
}
.contacts-links a {
	line-height: 30px;
	font-size: 18px;
	font-weight: 700;
}
/* acces */
body.accessibility-mode .partner-card__logo-box {
	width: 180px;
	height: 128px;
	background: #ffffff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;      
}
body.accessibility-mode .about-buttons {
        display: flex;
        padding: 4px 4px 4px 4px;
        gap: 10px;
        margin-bottom: 40px;
        overflow-x: auto;
    }
   body.accessibility-mode .about-button.active {
    background:#ffffff;
}
 
}