:root {
    --bs-body-font-family: 'Fira Sans', sans-serif;
    --primary-color: #FF6B00;
    --secondary-color: #C95400;
    --background-card: #F0F0F0;
    --color-error: #ff3333;

}
.card {
    --bs-card-border-color: transparent;
    --bs-card-border-width: 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    max-width: 100vw;
    overflow-x: hidden;
}
.main-wrapper>main {
    flex-grow: 1;
}
.lang {
  position: relative;
  display: inline-block;
}

.wpm-language-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpm-item-language-main {
  position: relative;
  list-style: none;
}

.wpm-item-language-main > span {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  color: #FF6B00;
  transition: all 0.2s ease;
}

.wpm-item-language-main > span:hover {
  background: #f5f5f5;
}
.wpm-item-language-main > span::after {
  content: "▼";
  font-size: 10px;
  transition: transform 0.2s ease;
  opacity: 0.7;
  color: #FF6B00;
}

.wpm-language-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  background: #ffffff;
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wpm-item-language-main:hover .wpm-language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wpm-language-dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpm-language-dropdown li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.wpm-language-dropdown li a:hover {
  background: #f5f5f5;
  color: #FF6B00;
}

.wpm-language-dropdown li a span {
  display: block;
}

.wpm-item-language-main:hover > span {
  color: #FF6B00;
}

.wpm-item-language-main:hover > span::after {
  color: #FF6B00;
}

.wpm-item-language-main.active > span {
  color: #FF6B00;
}

@media (max-width: 768px) {
  .wpm-item-language-main > span {
    padding: 6px 10px;
    font-size: 13px;
  }

  .wpm-language-dropdown li a {
    padding: 6px 10px;
    font-size: 13px;
  }
}


body {
    font-family:  'Fira Sans', sans-serif;
    background-color: var(--background-card);
}
.btn-primary {
    background-color: var(--primary-color);
    border: 0;
}

.container-xxxl {
    max-width: 100%;
    margin: 0 auto;
}
.container-xxl {
    max-width: 1680px;
    margin: 0 auto;
}

@media screen and (min-width: 2000px) {
    .container-xxxl {
        max-width: 1880px;
        padding: 0 20px;
    }
    .container-xl {
        max-width: 1200px;
    }
    .container-lg {
        max-width: 1000px;
    }
}

.other a {
    color: #25292C;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .3em;
}
.inline-icon {
    display: block;
    line-height: 0;
}

.menu-wrapper .nav {
    display: flex;
    gap: 1em;
}
.menu-wrapper a {
    padding: .5em 1em;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: color .3s;
}
.menu-wrapper a:hover,
.menu-wrapper a:active,
.menu-wrapper .current-menu-item a,
.menu-wrapper .current-page-ancestor a {
    text-decoration: none;
    color: var(--primary-color);
    border: 0;
}

header .container {
    margin-top: 20px;
    margin-bottom: 20px;
}
footer .card {
    border: none;
    background: var(--background-card);
}

footer .footer-links {
    display: flex;
    justify-content: space-between;
}

footer .footer-links p {
    color: #5A616B;
}

footer .footer-links a {
    color: #5A616B;
    text-decoration: none;
}

header .card,
section>.container>.card {
    border-radius: 28px;
}

header .logo {
    max-width: 50%;
}
header .logo img {
    max-width: 100%;;
}
@media screen and (min-width: 1400px) {
    header .card-body,
    footer .card-body,
    .main-wrapper main .content-wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }
    .container-xl {
        max-width: 1224px;
    }

    .container-lg {
        max-width: 1024px;
    }
}

@media screen and (min-width: 1700px) {

    header .card-body,
    footer .card-body,
    .main-wrapper main .content-wrapper {
        padding-left: 100px;
        padding-right: 100px;
    }
}

.dark {
    background: #25292C;
    color: #fff;
    border-radius: 28px;
    padding: 16px;
}
#directions .dark .card-body {
    padding: 0;
}
#directions .item a.full {
    position: absolute;
    display: none;
    cursor: pointer;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
#directions .item.m-active a.full {
    display: block;
}
@media screen and (min-width: 992px) {
    .dark {
        border-radius: 60px;
        padding: 20px 20px;
    }
}

.bayan {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bayan .item {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: start;
    border-radius: 20px;
    padding: 0 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: height .4s ease-in-out, width .4s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}
.bayan .item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.40) 100%);
    transition: opacity .4s ease-in-out;
}
.bayan .item .title-vertical {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: start;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    transition: top .4s ease-in-out;
    z-index: 1;
    padding: 0 20px
}
.bayan .item .firm {
    position: absolute;
    width: calc(100% - 48px);
    bottom: -100%;
    transition: bottom .4s ease-in-out;
    z-index: 1;
}
.bayan .item .title {
    font-size: 1.2em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    width: calc(100% - 48px);
    bottom: -100%;
    transition: bottom .4s ease-in-out;
    height: 2.5em;
    z-index: 1;
    line-height: 1.2em;
}
.bayan .item .title a {
    color: #fff;
    text-decoration: none;
}


.bayan .item.m-active {
    height: 200px;
    cursor: default;
}
.bayan .item.m-active .title-vertical {
    top: -120%;
}

.bayan .item.m-active .firm {
    bottom: 4.5em;
}
.bayan .item.m-active .title {
    bottom: 1em;
}


@media screen and (min-width: 1200px) {
    .dark{
        padding: 20px;
    }
    .bayan {
        flex-direction: row;
        gap: 20px;
    }
    .bayan .item,
    .bayan .item.m-active {
        height: 60vh;
        border-radius: 40px;
        padding: 40px;
        width: 126px;
        cursor: pointer;
    }
    .bayan .item.d-active {
        width: 100%;
        cursor: default;
    }
    .bayan .item.m-active .title-vertical,
    .bayan .item .title-vertical {
        font-size: 1.2em;
        transform: rotate(-90deg);
        transform-origin: bottom left;
        left: 104px;
        top: 68%;
        width: 60vh;
        height: 126px;
        transition: left .4s ease-in-out;
    }
    .bayan .item.d-active .title-vertical {
        left:0;
    }
    .bayan .item.d-active .title,
    .bayan .item .title{
        bottom: 2em;
        left: 1em;
        opacity: 0;
        transition: opacity .0s ease-in-out;
    }
    .bayan .item.d-active .firm,
    .bayan .item .firm {
        left: 1em;
        bottom: 5.5em;
        opacity: 0;
        transition: opacity .0s ease-in-out;
    }
    .bayan .item.d-active .title,
    .bayan .item.d-active .firm {
        opacity: 1;
        transition: opacity .2s ease-in-out .4s;
    }
    #directions .item a.full,
    #directions .item.m-active a.full {
        display: none;
    }
    #directions .item.d-active a.full {
        display: block;
    }

}
@media screen and (min-width: 1400px) {
    .dark {
        padding: 20px 100px;
    }
}



/* Стили для карусели */
.owl-nav {
    display: flex;
    justify-content: end;
    width: 100%;
    gap: 1em;
    padding-bottom: 2em;
    padding-top: 30px;
}

.owl-nav .owl-prev {
    transform: rotate(180deg);
}

.owl-theme .owl-nav [class*=owl-]:hover {
    background: transparent;
}

.owl-theme .owl-nav [class*=owl-] * {
    transition: stroke .2s ease-out, fill .2s ease-out;
}

.owl-theme .owl-nav [class*=owl-]:hover rect {
    stroke: #FF6B00;
}

.owl-theme .owl-nav [class*=owl-]:hover path {
    fill: #FF6B00;
}

.owl-carousel .owl-stage-outer {
    overflow: visible;
}

.owl-carousel .owl-stage-outer .owl-item {
    border-radius: 16px;
    overflow: hidden;
}

.owl-carousel .owl-stage-outer figure {
    margin: 0;
}

@media screen and (min-width: 992px) {
    .owl-carousel .owl-stage-outer .owl-item {
        border-radius: 40px;
    }
}



/* карты и списки для страниц */

.container.content .card.gray,
.container.content .card.dark {
    padding: 24px;
    border-radius: 16px;
    background-color: #F0F0F0;
}

.container.content .cards {
    gap: 8px;
}

.container.content .cards .card.gray,
.container.content .cards .card.dark {
    padding: 20px;
}

.container.content .wp-block-list {
    margin-bottom: 0;
}

.container.content .wp-block-list li {
    font-size: 18px;
    margin-bottom: .35em;
}

.container.content .wp-block-list.checked {
    padding: 0;
    margin: 0 0 1.4em 0;
}

.container.content .wp-block-list.checked li {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    list-style: none;
    padding-left: 0;
    margin-bottom: .5em;
}

.container.content .wp-block-list.checked li::before {
    display: inline-block;
    margin-top: .1em;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='none'%3E%3Cpath stroke='%23ff6b00' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m10.334 16 3.773 3.773 7.56-7.546'/%3E%3C/svg%3E");
    margin-right: 8px;
}

.container.content .card.dark {
    background-color: #25292C;
}

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

@media screen and (min-width: 992px) {
    /* .container.content {
        padding: 0 20px;
    } */

    .container.content p {
        font-size: 18px;
    }

    .container.content h3 {
        font-weight: 500;
        margin-bottom: .8em;
    }

    .container.content .card.gray,
    .container.content .card.dark {
        padding: 60px;
        border-radius: 40px;
    }

    .container.content .cards {
        gap: 20px;
    }

    .container.content .cards .card.gray,
    .container.content .cards .card.dark {
        padding: 40px;
        border-radius: 40px;
    }

    .container.content .wp-block-list.checked li {
        align-items: start;
        margin-top: .2em;
        font-size: 1.5em;
    }
}

/* breadcrumbs*/

#breadcrumbs,
#breadcrumbs a {
    color: #5A616B;
    text-decoration: none;
}


#form a {
    color: inherit;
}

/* news card */
.card.news-card img.thumbnail-image {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.card.news-card {
    border: 1px solid #DFDFDF;
    border-radius: 16px;
    margin: 0 auto;
    overflow: hidden;
}
.card.news-card .card-body {
    padding: 0 24px 24px;
}
.card.news-card .card-image {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    max-width: 100%;
    margin-bottom: 24px;
}

.card.news-card .inf {
    display: flex;
    flex-direction: column;
    padding: 0 24px 24px;
}

.card.news-card .inf .date {
    color: #A0A0A0;
}

.card.news-card a {
    color: inherit;
    text-decoration: none;
}

.card.news-card .inf .text .categories {
    flex-wrap: wrap;
}

.card.news-card .inf .date br {
    display: none;
}
.card.news-card p:last-child {
    margin-bottom: 2.5em;
}
.card.news-card .link-spot {
    position: absolute;
    display: block;
    bottom: 16px; right: 16px;
}
.owl-stage {
    display: flex;
}


.owl-item {
    width: 100%;
    height: inherit;
}

.owl-item>.card {
    height: 100%;
    padding: 0;
}
.wp-block-gallery .wp-block-image,
#projects .wp-block-gallery .wp-block-image img,
.wp-block-gallery .wp-block-image img {
    max-height: 75vh;
    height: 100%;
    object-fit: cover;
}

main section {
    margin-bottom: 20px;
}

/* main section .container-xxxl .card {
    padding: 0;
} */

.categories {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
}

.categories a {
    background: #f0f0f0;
    font-size: 16px;
    border-radius: 1em;
    padding: .25em 1em;
    text-decoration: none;
    color: #444;
    wite-space: nowrap;
}

#related-carousel .owl-stage {
    display: flex;
}

#related-carousel .owl-item {
    width: 100%;
    height: inherit;
}

#related-carousel .owl-item>.card {
    height: 100%;
    padding: 0;
}

#related-carousel {
    width: 90%;
}
@media screen and (min-width: 992px) {
    #related-carousel {
        width: 95%;
    }
    .card.news-card .link-spot {
        position: absolute;
        display: block;
        bottom: 24px;
        right: 24px;
    }
}
@media screen and (min-width: 1200px) {
    #related-carousel {
        width: 100%;
    }
}