/*
    Header 
    Footer
    Section
    Decoration
    Breadcrumbs
    Contacts
    Other
    Tabs
    Modal
    Contact Form 7
    404 Not Found
*/

/* ================================================== */
/*                        Header                      */
/* ================================================== */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: calc(var(--indent) / 2) 0;
    background-color: var(--bg-main);
    transition: all 0.3s ease;
    z-index: 10;
}
header.active {
    box-shadow: var(--shadow-default);
}
header > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--border-radius);
}
header nav ul {
    display: contents;
}
header nav ul li {
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--indent);
    text-align: center;
}

@media (1200px <= width) {
    header nav {
        display: flex;
    }
    header button.menu {
        display: none;
    }
    header nav ul > li[data-has-submenu="true"]::after {
        content: "▾";
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-size: 20px;
    }
    header nav ul > li > [data-menu="submenu"] {
        display: none;
        position: absolute;
        left: 0;
        top: 100%;
        right: 0;
        width: max-content;
        background-color: var(--bg-main);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-default);
    }
    header nav ul > li[data-has-submenu="true"]:hover > [data-menu="submenu"] {
        display: flex;
        flex-direction: column;
    }
}

@media (width < 1200px) {
    header nav {
        display: none;
        opacity: 0;
        transition: all 0.3s ease-in;
    }
    header nav.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-main);
        opacity: 1;
    }
    header button.menu {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        width: 50px;
        flex: 0 0 50px;
        margin-right: var(--indent);
        border-radius: var(--border-radius);
        color: var(--color-second);
        background-color: var(--bg-second);
    }
    header button.menu::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 60%;
        height: 3px;
        border-radius: 2px;
        background-color: currentColor;
        transform: translate(-50%, -50%);
        box-shadow:
            0 -10px 0 currentColor,
            0 10px 0 currentColor;
    }
    header nav ul li [data-menu="submenu"] {
        display: none;
    }
}

/* ================================================== */
/*                        Footer                      */
/* ================================================== */
footer {
    margin-top: auto;
    padding: var(--indent);
    box-shadow: var(--shadow-default);
}
.footer__top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--indent);
    gap: var(--indent);
}
.footer__top nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--indent);
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: var(--indent);
    gap: var(--indent);
    border-top: 2px solid;
    border-color: var(--border-color);
}
.footer__bottom span { 
    opacity: 0.7;
}
.footer__bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--indent);
}
@media (width < 992px) {
    .footer__bottom * {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .footer__bottom span { 
        order: 1;
    }
}
/* ================================================== */
/*                      Section                       */
/* ================================================== */
.container {
    max-width: 1440px;
}
section {
    margin: var(--indent-block) 0;
}
.title + section {
    margin-top: unset;
}
.title {
    margin-top: var(--indent-block);
}
@media (1440px <= width) {
    .container {
        margin: 0 auto;
    }
}
@media (width < 1440px) {
    .container {
        margin: 0 calc(var(--indent) / 2);
    }
}

/* ================================================== */
/*                    Breadcrumbs                     */
/* ================================================== */
.breadcrumbs {
    display: flex;
    margin-top: calc(var(--indent) / 2);
    margin-bottom: var(--indent);
    padding: var(--indent);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    white-space: nowrap;
    overflow-x: auto;
}
.breadcrumbs li {
    position: relative;
    display: flex;
    list-style: none;
}
.breadcrumbs li:not(:last-child)::after {
    content: "";
    position: relative;
    top: calc(50% - 1px);
    display: block;
    margin: 0 var(--indent);
    height: 8px;
    width: 8px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    transform: rotate(-45deg) translateY(-50%);
}
.breadcrumbs li:last-child {
   opacity: 0.6;
}
.breadcrumbs li > * {
    line-height: unset;
}

/* ================================================== */
/*                      Contacts                      */
/* ================================================== */
.contacts {
    display: grid;
    gap: var(--indent);
}
.contacts address {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--indent);
    gap: var(--indent);
}
.contacts .form {
    display: flex;
    flex-direction: column;
    padding: var(--indent);
    gap: var(--indent);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
}
.contacts .form .header,
.contacts address > * {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-semi);
}

@media (992px <= width) {
    .contacts {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (width < 992px) {
    .contacts {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ================================================== */
/*                     Decoration                     */
/* ================================================== */
.dots {
    position: relative;
    color: var(--bg-second);
}
.dots.left {
    margin-left: 30px;
}
.dots.right {
    margin-right: 30px;
}
.dots::before,
.dots::after {
    content: "";
    position: absolute;
    top: -20px;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
}
.dots::before {
    box-shadow:
        0   0     currentColor,
        0  20px   currentColor,
        0  40px   currentColor,
        0  60px   currentColor,
        0  80px   currentColor,
        0 100px   currentColor,
        0 120px   currentColor;
}
.dots::after {
    box-shadow:
        0   0     currentColor,
        0  20px   currentColor,
        0  40px   currentColor,
        0  60px   currentColor,
        0  80px   currentColor,
        0 100px   currentColor,
        0 120px   currentColor;
}
.dots.left::before {
    left: -40px;
}
.dots.left::after {
    left: -20px;
}
.dots.right::before {
    right: -40px;
}
.dots.right::after {
    right: -20px;
}

/* ================================================== */
/*                       Other                        */
/* ================================================== */
.title {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.title::before,
.title::after {
    content: "";
    position: absolute;
    left: -160px;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
}
.title::before {
    bottom: 0;
    box-shadow:
        0    0    var(--bg-second),
        20px 0    var(--bg-second),
        40px 0    var(--bg-second),
        60px 0    var(--bg-second),
        80px 0    var(--bg-second),
        100px 0   var(--bg-second),
        120px 0   var(--bg-second);
}
.title::after {
    bottom: 20px;
    box-shadow:
        0    0    var(--bg-second),
        20px 0    var(--bg-second),
        40px 0    var(--bg-second),
        60px 0    var(--bg-second),
        80px 0    var(--bg-second),
        100px 0   var(--bg-second),
        120px 0   var(--bg-second);
}

picture img,
video {
    border-radius: var(--border-radius);
}

button.main,
button.basic {
    padding: var(--indent-button);
    border-radius: var(--border-radius);
}
button.main {
    background-color: var(--bg-second);
}
button.basic {
    border: 1px solid;
    border-color: var(--bg-second);
}
button.basic:hover {
    border-color: transparent;
    box-shadow: var(--shadow-default);
}

.swiper-button-next, 
.swiper-button-prev {
    height: 50px!important;
    width: 50px!important;
    color: white!important;
    background-color: var(--bg-second);
    border-radius: var(--border-radius);
}
.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: unset!important;
    font-weight: 700!important;
}
.swiper-pagination-bullets {
    width: unset!important;
}
.swiper-pagination-bullet {
    height: 16px!important;
    width: 16px!important;
    background-color: white!important;
}
.swiper-button-next.swiper-button-disabled, 
.swiper-button-prev.swiper-button-disabled {
    pointer-events: all!important;
}
/* ================================================== */
/*                        Tabs                        */
/* ================================================== */
[data-tabs="tabs"] > *:not(.active) {
    display: none;
}

/* ================================================== */
/*                        Modal                       */
/* ================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	display: none;
	z-index: 99;
}
.modal.active {
    display: flex;
	align-items: center;
	justify-content: center;
	background-color: #00000099;
    backdrop-filter: blur(10px);
}
.modal .holder {
	display: flex;
    flex-direction: column;
    width: max-content;
	border-radius: var(--border-radius);
	background-color: var(--bg-main);
	box-shadow: var(--shadow-default);
	overflow: hidden;
}
.modal .holder > *.header {
    padding: var(--indent) var(--indent) 0 var(--indent);
}
.modal .holder > *:not(.header) {
    padding: var(--indent);
}
.modal .header {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.modal .header + * {
	overflow: auto;
}
.modal .header span {
	font-size: var(--font-size-medium);
	font-weight: var(--font-weight-bold);
}
.modal .close {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}
.modal .close svg {
    stroke: var(--color-text);
	fill: var(--color-text);
}
.modal button[type="submit"] {
	width: 100%;
	text-align: center;
}
@media (576px <= width) {
	.modal .holder {
		max-height: calc(100vh - 20px);
		max-width: calc(100vw - 20px);
		margin: var(--indent);
	}
}
@media (width < 576px) {
	.modal .holder {
		max-height: calc(100vh - 5px);
		max-width: calc(100vw - 5px);
        margin: calc(var(--indent) / 2);
	}
}

/* ================================================== */
/*                   Contact Form 7                   */
/* ================================================== */
.screen-reader-response,
.wpcf7-response-output {
	display: none;
}
.wpcf7-form .wpcf7-form-control-wrap {
	position: relative;
    display: grid;
}
.wpcf7-form .wpcf7-not-valid-tip {
	position: absolute;
    bottom: -7px;
    left: 10px;
    transform: translateY(50%);
    padding: 5px 10px;
    font-size: var(--font-size-small);
    background-color: var(--bg-second);
    border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
    filter: drop-shadow(-1px -1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.15));
    text-wrap: nowrap;
    z-index: 1;
}
.wpcf7-form .wpcf7-not-valid-tip::after {
	content: "";
	position: absolute;
	padding-top: 0px;
    top: -9px;
    left: 0;
    border-width: 0 10px 10px 0;
	border-style: solid;
	border-color: var(--bg-second) transparent;
}
.wpcf7-form .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}
.wpcf7-form .wpcf7-submit {
    position: sticky;
    bottom: 0;
    border: 1px solid;
    border-radius: var(--border-radius);
    border-color: var(--bg-second);
    background-color: var(--bg-main);
}
.wpcf7-form .wpcf7-submit:hover {
    border-color: transparent;
    box-shadow: var(--shadow-default);
}
.wpcf7-form p {
	margin: unset;
}

.wpcf7-form .codedropz-upload-wrapper {
    font-size: 1rem;
    font-weight: normal;
}
.wpcf7-form .codedropz-upload-handler {
    border: 1px dashed;
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0;
}
.wpcf7-form .codedropz-upload-container {
    padding: var(--indent);
}
.wpcf7-form .codedropz-upload-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wpcf7-form .cd-upload-btn {
    position: relative;
    display: flex;
    width: max-content;
    margin: auto;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    background-color: #00000070;
    color: var(--color-text);
}
.wpcf7-form .dnd-upload-status .dnd-upload-image {
    border: unset;
}

.wpcf7-form .dnd-upload-status .dnd-upload-details {
    position: relative;
}
.wpcf7-form .dnd-upload-status .dnd-upload-details .name {
    color: unset;
}
.wpcf7-form .dnd-upload-status .dnd-upload-details .name em {
    font-weight: unset;
    font-style: normal;
}
.wpcf7-form .dnd-upload-status .dnd-upload-details .dnd-progress-bar span {
    background: var(--bg-second);
}

.wpcf7-form .remove-file > * {
    display: none;
}
.wpcf7-form .remove-file {
    right: 10px!important;
}
.wpcf7-form .remove-file::before,
.wpcf7-form .remove-file::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
}
.wpcf7-form .remove-file::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.wpcf7-form .remove-file::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* ================================================== */
/*                    404 Not Found                   */
/* ================================================== */
.not_found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--indent);
}
.not_found .links > * {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--indent);
    list-style-type: none;
}