.footer-column {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr 2fr;
}

.text-content h4 {
    font-weight: 600;
    font-size: 16px;
    color: #232323;
    background-color: #fff;
    z-index: 2;
    position: relative;
    display: inline-block;
    padding-right: 20px;
}

.text-content h4 + hr {
    display: inline-block;
    opacity: 0.5;
}

.text-content li {
    list-style-type: disc;
    list-style-position: inside;
    color: #4f5256;
    margin-bottom: 30px;
    line-height: 24px;
}

.text-content blockquote {
    margin-top: 20px;
    box-sizing: border-box;
    color: #4F5256;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}

.text-content blockquote p {
    padding: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #FFDCDC;
    backdrop-filter: blur(2.5px);
    text-align: center;
}

.contacts {
    padding: 50px 0;
}

.appointment__wrapper {
    display: flex;
}

.appointment__wrapper input[type=time] {
    margin-left: 10px;
    width: 130px;
}

ul.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    border-radius: 10px;
    padding: 30px;
}

div.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    border-radius: 10px;
    padding: 30px;

    text-align: center;
}

ul.alert-danger li {
    color: #721c24;
    margin-bottom: 10px;
    line-height: 24px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.news-item img {
    width: 310px;
    height: 310px;
}

.news__row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.news-item__content p, .news-item__content a{
    word-break: break-all;
}

.news-item{
    width: 45%;
}

.pagination a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news .pagination__list li.active {
    background-color: #52AFA5;
}

.post__body img {
    width: 100%;
    object-fit: cover;
    height: max-content;
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.text-content a {
    text-decoration: underline;
}

.articles {
    padding-top: 50px;
    padding-bottom: 100px;
}

.articles h3 {
    margin-bottom: 50px;
}

.articles__item h4 {
    font-weight: 500;
    font-size: 24px;
    line-height: 33px;
    color: #000;
}

.container {
    max-width: 1115px;
    width: 100%;
    margin: 0 auto;
    padding: 0px 15px;
}

.articles__item {
    display: flex;
    gap: 20px;
    width: calc(100% / 3.5);
    flex-direction: column;
}

.articles__wrapper{
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.articles__img {
    min-width: 300px;
    max-height: 300px;
    height: 100%;
    width: 100%;
}

.articles__img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.header__nav.active {
    right: auto;
    left: 0;
}

.header__nav {
    right: auto;
    left: -90%;
}

.lodge th {
    text-align: left;
    padding: 0 50px;
    width: 30%;
}

.header__nav .nav-list__item .sublist{
    width: max-content !important;
    text-align: left;
}

.header-bottom__nav li a{
    font-weight: 600;
}

.contacts .text-content{
    margin: 50px 0;
}

.table{
    margin: 50px 0;
}

.table table{
    width: 100%;
}

.table table, .table td, .table th{
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.table th{
    text-align: left;
}

.table td, .table th{
    vertical-align: middle;
    padding: 0 15px;
    height: 80px;
}

.map-icon{
    position: relative;
}

.map{
    height: 600px;
}

.tabs__button--active{
    background: #52afa5;
    color: #fff;
}

.map-icon span{
    position: absolute;
    top: -25px;
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    width: max-content;
    padding: 0 5px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
}

.header__nav .nav-list__item .sublist__item a{
    display: block;
    width: 100%;
    height: 100%;
    padding: 15px;
}

.header__nav .nav-list__item .sublist__item{
    padding: 0;
}

.tabs__button{
    position: relative;
}

.tabs__button:before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.header-bottom__search{
    padding: 0 15px;
}

.header-bottom__search form{
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-search{
    cursor: pointer;
}

@media screen and (max-width: 1200px) {
    .footer-column {
        grid-template-columns: 2fr 2fr 2fr;
    }

    .container {
        max-width: 992px;
    }

    .articles__img {
        min-width: 300px;
    }

    .news-item{
        width: 100%;
        justify-content: flex-start;
    }
}

@media screen and (min-width: 1024px){
    .mobile{
        display: none !important;
    }
}

@media screen and (max-width: 1024px) {
    .header__nav .nav-list__item.open-submenu .sublist{
        left: 20px;
    }
    .desktop{
        display: none !important;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 756px;
    }

    .articles__wrapper{
        align-items: center;
        flex-direction: column;
    }

    .articles__item{
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .footer-column {
        grid-template-columns: 2fr 2fr;
    }
}

@media screen and (max-width: 576px) {
    .footer-column {
        grid-template-columns: 100%;
    }

    .articles__img {
        min-width: 100%;
    }
}
