/* Общие куски, которые жили в шаблонах. ТЗ SEO п.5 */
@media (max-width: 767px) {
    #site-address-home { display: none !important; }
}
.cookies-frame-inner-container{
    width: 1220px;
    position: relative;
    margin: 0 auto;
}
.cookies-frame-inner-conent{
    width: 940px;
    position: relative;
}
.cookies-frame {
    display: none;
}
.cookies-frame.show {
    display: block;
    position: fixed;
    bottom: 0;
    width: 100%;
    right: 0;
    background: rgba(0, 0, 0, .7);
    padding: 10px 10px 0;
    border-radius: 0;
    box-shadow: none;
    margin-right: 0;
    box-sizing: border-box;
    z-index: 500000;
}
.cookies-frame-header {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}
.cookies-frame-content {
    margin: 0;
    font-size: 12px;
    color: #eee;
}
.cookies-link {
    color: #fff;
    text-decoration: underline;
}
.accept-cookies {
    padding: 5px 10px;
    border: 2px solid #1784d9;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 7px;
    right: 10px;
}
.accept-cookies:hover {
    background: #1784d9;
    color: #fff;
}
@media all and (max-width: 767px){
    .cookies-frame.show {
        display: none !important;
    }
    .accept-cookies{
        padding: 5px 10px;
        position: relative;
        right: 0;
    }
    .cookies-frame-content{
        font-size: 12px;
    }
    .cookies-frame-header{
        margin-bottom: 0;
        font-size: 14px;
    }
    .cookies-frame-inner-container{
        width: 100%;
    }
    .cookies-frame-inner-conent{
        width: 77%;
        position: relative;
    }
}

/* Подзаголовок до блока — как у слайдера гидов, 30px от текста до карточки. */
#lt-home-final-v21 .sec > .lt-h2,
#lt-home-final-v21 .video-panel > .lt-h2{
    margin-bottom: 30px;
}
#lt-home-final-v21 .attr-track,
#lt-home-final-v21 .attractions-track{
    padding-top: 8px !important;
}
#lt-home-final-v21 .articles-panel .panel-head{
    margin-bottom: 2px;
}
#lt-home-final-v21 .guide .stars{
    display: flex;
    align-items: center;
    gap: 6px;
}
#lt-home-final-v21 .guide .guide-rating-count{
    color: #222;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

/* Слайдеры главной: глиф ‹/› не по центру круга, рисуем стрелку сами. */
#lt-home-final-v21 .carousel-btn{
    padding: 0;
    font-size: 0;
    line-height: 0;
}
#lt-home-final-v21 .carousel-btn::before{
    content: "";
    display: block;
    width: 8px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--lt-chev) center / contain no-repeat;
    mask: var(--lt-chev) center / contain no-repeat;
}
#lt-home-final-v21 .articles-prev::before,
#lt-home-final-v21 .guides-prev::before,
#lt-home-final-v21 .attrs-prev::before{
    --lt-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M6 1.5 L2 7 L6 12.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#lt-home-final-v21 .articles-next::before,
#lt-home-final-v21 .guides-next::before,
#lt-home-final-v21 .attrs-next::before{
    --lt-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M2 1.5 L6 7 L2 12.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Адрес шапки: если «Наш адрес: …» не влезает в колонку, остаток
   уходит на вторую строку и выравнивается по левому краю подписи. */
.header .top-col-3 .top-adress{
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.header .address2.address-top{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 0.35em;
    row-gap: 2px;
    max-width: 100%;
    text-align: left;
}
.header .address2.address-top .addr-label,
.header .address2.address-top .addr-rest{
    white-space: nowrap;
}

/* До 1200px колонки шапки с min-width:25% и меню в одну строку
   наползают друг на друга. Здесь они переносятся, страница не шире окна. */
@media (min-width: 768px) and (max-width: 1199px) {
    .header{
        height: auto;
        padding: 10px 0 6px;
    }
    .top-container{
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        height: auto;
        row-gap: 8px;
        column-gap: 16px;
        align-items: center;
    }
    .top-col{
        width: auto;
        min-width: min-content;
        max-width: 100%;
    }
    .top-col-1{ grid-column: 1; grid-row: 1; }
    .header .logo{
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }
    .header .logo-img,
    .header .logo-img img{
        width: 250px;
        max-width: 100%;
    }
    .top-col-2{
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: none;
        justify-content: center;
    }
    .top-col-4{
        grid-column: 3;
        grid-row: 1;
        align-items: flex-end;
        margin-left: 0;
    }
    .top-col-3{
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        justify-content: flex-end;
    }
    .top-col-3 .top-adress{
        position: relative;
        width: 100%;
        padding-left: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .top-col-3 .top-adress:before{
        display: none;
    }
    .header .top-col-3 .address2.address-top{
        width: fit-content;
        max-width: 100%;
        margin: 0 0 0 auto;
        white-space: normal;
        text-align: left;
    }
    .top-col-3 .top-block_line-2{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin: 0;
    }
    .top-col-3 .top-block_line-2:before{
        content: "";
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        background: url('/static/images/icons/red-point.svg') center / contain no-repeat;
    }
    .top-col-4 .top-block_line-2{
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .top-menu{
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    .top-menu-list{
        flex-wrap: wrap;
        height: auto;
        justify-content: flex-start;
        column-gap: 14px;
        row-gap: 0;
    }
    .top-menu-link{
        padding: 8px 0;
        font-size: 14px;
    }
    .top-menu-separator{ display: none; }
    .footer{ max-width: 100%; box-sizing: border-box; }
    .footer > div{ min-width: 0; }
    .footer-agent-cabinet-btn{
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
}
