@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/*не был подключен данный fw*/

:root {
    --NoElectricBlue: #0077FF;
    /*ярко-голубой*/
    --MaybeBlack: #181D23;
    /*основной цвет текста*/
    --DynastyPaleGrey: #232A32;
    /*чуть светлее черного*/
    --SaintGrey: #EEEEEE;
    /*серый*/
    --ThisIsGrey: #52565B;
    /*темно-серый*/
    --SuperWhite: #FFFFFF;
    /*белый*/
    --BigTextOnWhite: #F9F9F9;
    /*светло-светло-серый почти белый*/
    --MissPale: #878787;
    /*серый*/
    --MrGrey: #F5F5F5;
    /*светло-серый*/
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;/*чтобы убрать горизонтальный скролл, который появляется из-за вертикального скролла и 100vw*/
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
blockquote,
.row > * {
    margin: 0;
    padding: 0;
}

p:not([class]) {
    line-height: 16px;
    /*в админке такие pp есть */
}

.content-container {
    width: 100vw;
    /*ширина экрана с учетом вертикального скролла*/
    margin-left: calc(-50vw + 50%);
    padding: 20px 0 200px 0;
}

.content {
    width: 1320px;
    margin: 0 auto;
    padding: 0 10px;
}

/*скрываем блок для мобильной версии, открываем только при ширине экрана менее 575px*/
.mobile {
    display: none !important;
}

.cover {
    position: relative;
    height: auto;
    margin-bottom: 90px !important;
    background-color: var(--NoElectricBlue);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    color: var(--SuperWhite);
}

.cover__content {
    position: absolute;
    padding-left: 20px;
    top: 50%;
    transform: translateY(-50%); /*смещает блок вверх на половину своей высоты*/
}

.cover__title {
    margin-bottom: 35px;
    font-size: 64px;
    font-weight: 600;
    line-height: 66px;
    text-transform: uppercase;
}

.cover__content a {
    font-size: 18px;
    line-height: 20px;
}

.connection {
    color: var(--MaybeBlack);
    margin-bottom: 80px;
}

.title {
    font-size: 36px;
    line-height: 38px;
    z-index: 1;
}

.big-subtitle {
    font-size: 126px;
    line-height: 132px;
    text-transform: uppercase;
    color: var(--BigTextOnWhite);
    opacity: 1;
    z-index: 0;
}

.connection__content {
    padding: 0 21px;
}

.connection__contacts {
    width: 361px;
    align-self: center;
}

.md-title {
    font-size: 24px;
    line-height: 26px;
}

.connection address,
.connection a,
.sm-title {
    font-size: 16px;
    line-height: 18px;
}

.connection__contacts img,
.connection__item img,
.addresses__contacts img {
        filter: invert(44%) sepia(94%) saturate(4000%) hue-rotate(198deg) brightness(102%) contrast(105%);
    }

.connection__list {
    margin-top: 63px;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    list-style-type: none;
}

.connection__item a {
    font-size: 14px;
    line-height: 16px;
}

.connection__details {
    width: 840px;
    height: 390px;
    padding: 15px 15px 30px 30px;
    background-color: var(--SuperWhite);
    border-radius: 20px;
}

.copy-btn {
    width: 53px;
    height: 53px;
    padding: 14px !important;
    background-color: var(--MrGrey);
    border-radius: 10px;
}

.copy-btn:hover {
    background-color: var(--NoElectricBlue);
}

.copy-btn > svg {
    fill: var(--MissPale);
    transition: fill 0.3s ease;
    cursor: pointer;
}

.copy-btn:hover > svg {
    fill: var(--SuperWhite);
}

.connection__details-list {
    list-style-type: none;
    columns: 3; /* число колонок в списке, благодаря этому элементы списка идут по направлению сверху вниз*/
    column-gap: 20px;
    width: 100%;
}

.connection__item {
    break-inside: avoid; /* не даёт разрывать элемент между колонками */
    margin-bottom: 10px;
}

.connection__item-title {
    font-size: 16px;
    line-height: 18px;
}

.connection__item-text {
    font-size: 12px;
    line-height: 14px;
    color: var(--ThisIsGrey);
}

.addresses {
    margin-bottom: 80px;
}

.social__list {
    list-style-type: none;
    gap: 20px;
}

.social__list a {
    width: 420px;
    height: 250px;
    border-radius: 20px;
    background-color: var(--SuperWhite);
}

.bg-NoElectricBlue, 
.bg-red,
.bg-blueTG {
    background-color: var(--SuperWhite) !important; /*для сброса стилей сайта*/
}

.bg-NoElectricBlue:hover {
    background-color: var(--NoElectricBlue) !important;
}

.bg-red:hover {
    background-color: #ED143B !important;
}

.bg-blueTG:hover {
    background-color: #479DFF !important;
}

.social__list-item:hover img {
    filter: brightness(0%) invert(100%); /*#ffffff*/
}

.addresses__block {
    height: 700px;
    background-color: var(--SuperWhite);
    border-radius: 20px;
    border-bottom-right-radius: 0;
}

.addresses__tab-pane iframe {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.addresses__nav-tabs {
    width: 555px !important;
    padding: 20px 0;
    flex-wrap: nowrap !important;
}

h4.addresses__tabs-title {
    margin-bottom: 20px;
    margin-left: 30px;
    font-size: 18px;
    line-height: 20px;
    color: var(--DynastyPaleGrey);
}

.addresses__group-tabs {
    overflow-y: auto;
}

.addresses__group-tabs::-webkit-scrollbar {
    width: 25px;
}

.addresses__group-tabs::-webkit-scrollbar-track {
    background-color: #D8D8D8;
    border-radius: 0 !important;
}

.addresses__group-tabs::-webkit-scrollbar-thumb {
    background-color: #878787;
}

.addresses__btn {
    height: auto;
    padding: 20px 30px !important;
    border-top: 1px solid var(--SaintGrey) !important;
    border-radius: 0 !important;
    color: var(--MaybeBlack) !important;
    ser-select: text;      /* Разрешает выделение текста в кнопке*/
      -webkit-user-select: text;
      -moz-user-select: text;
      -ms-user-select: text;
    }

.addresses__contacts {
    gap: 5px 10px;
}

.addresses__nav-tabs address {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 16px;
    color: var(--ThisIsGrey);
}

.addresses__nav-tabs button[role="tab"].active {
    background-color: var(--SaintGrey) !important;
    color: inherit !important;
}




@media (max-width: 1320px) {
    .big-subtitle {
        font-size: 90px;
    }
    
    .connection__content {
        padding: 0 !important;
        flex-direction: column;
    }
    
    .connection__contacts {
        align-self: flex-start;
    }
    
    .connection__list {
        margin-top: 30px;
    }
    
    .connection__details {
        width: 100%;
        height: auto;
        margin-top: 30px;
        padding-left: 25px;
    }
    
    .addresses__block {
        flex-direction: column;
        height: auto !important;
    }
    
    .addresses__tab-pane {
        padding: 15px;
        padding-bottom: 0;
    }
    
    .addresses__tab-pane iframe {
        width: 100%;
        border-radius: 20px;
    }
    
    .addresses__nav-tabs {
        width: 100% !important;
        padding: 15px 0 30px 0;
    }
    
    h4.addresses__tabs-title {
        margin: 0 0 15px 15px;
    }
    
    .addresses__btn {
        height: auto;
        padding: 15px;
    }
    
    .addresses__nav-tabs address {
        font-size: 12px;
        line-height: 14px;
    }
    
    .addresses__contacts a {
        font-size: 10px;
    }
    
}

@media (max-width: 991px) {
    .big-subtitle {
        font-size: 70px;
    }
    
    .connection__contacts {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .content {
        padding: 0 20px;
        /*в мобилке по краям такое расстояние всегда*/
    }

    .full {
        display: none !important;
    }

    .mobile {
        display: block !important;
    }
    
    .cover {
        position: static !important;
        height: 431px !important;
        margin-bottom: 40px !important;
        /*background: url(/local/templates/cirspb_2021/components/bitrix/news.list/contacts-detail/images/map-mob.svg) 100% no-repeat;*/
        background-size: cover;
        background-repeat: no-repeat;
        background-color: transparent;
        border-radius: 20px;
    }
    
    .cover__content {
        position: static !important;
        padding: 25px 0 0 25px;
        transform: none;
    }
    
    .cover__title {
        margin-bottom: 15px;
        font-size: 32px;
        line-height: 34px;
        color: var(--NoElectricBlue);
        text-transform: capitalize;
    }
    
    .cover__content a {
        font-size: 16px;
        line-height: 18px;
        color: var(--MaybeBlack);
    }
    
    .cover__content img {
        filter: invert(44%) sepia(94%) saturate(4000%) hue-rotate(198deg) brightness(102%) contrast(105%); /*голубой, приближенный к NoElectricBlue*/
    }
    
    .title {
        font-size: 32px;
        line-height: 34px;
        text-align: start !important;
    }
    
    .big-subtitle {
        display: none;
    }
    
    .copy-btn {
        width: 40px;
        height: 40px;
        padding: 10.5px !important;
    }
    
    .copy-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .connection__item-title {
        font-size: 14px;
        line-height: 16px;
    }
    
    .addresses__tab-pane iframe {
        height: 500px;
    }
    
    .social__list a {
        width: 727px;
    }
    
    .social__list a:hover {
        opacity: 0.8;
    }
    
    .social__list-item img {
        filter: brightness(0%) invert(100%); /*#ffffff*/
    }
    
    .bg-NoElectricBlue {
        background-color: var(--NoElectricBlue) !important;
    }
    
    .bg-red {
        background-color: #ED143B !important;
    }
    
    .bg-blueTG {
        background-color: #479DFF !important;
    }
}

@media (max-width: 576px) {
    .connection__details-list {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding-bottom: 85px;
    }
    
    .md-title {
        width: 50%;
        font-size: 18px;
        line-height: 20px;
    }
    
    .connection address {
        font-size: 14px;
        line-height: 16px;
    }
    
    .connection__list {
        gap: 20px;
    }
    
    .connection__details-list {
        columns: 1;
    }
    
    .connection__item-text {
        max-width: 90%;
    }
    
    .addresses__tab-pane iframe {
        height: 310px;
    }
    
    .social__list a {
        height: 97px;
    }
    
    .social__list img {
        width: 34px !important;
    }
}