/* CSS исправления для корректного отображения контактов */

/* Основная структура страницы контактов */
.contacts-block {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contacts-block .left-col {
    flex: 0 0 400px;
    background: #000029;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.contacts-block .right-col {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contacts-block {
        flex-direction: column;
        padding: 10px;
    }
    
    .contacts-block .left-col {
        flex: none;
        width: 100%;
    }
    
    .contacts-block .right-col {
        flex: none;
        width: 100%;
    }
}

/* Исправление отображения кнопки "Схема проезда" */
.contacts-block .left-col .button-wrap {
    margin-bottom: 20px;
    padding: 0;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.contacts-block .left-col .link-to-scheme {
    display: inline-block;
    background: #e31c24 url("/bitrix/templates/main/img/map-ico.svg") no-repeat 20px 50%/33px 34px;
    padding: 18px 25px 18px 75px;
    color: #fff;
    font-size: 17px;
    text-align: center;
    border: none;
    position: relative;
    margin-bottom: 30px;
    box-sizing: border-box;
    overflow: visible;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(227, 28, 36, 0.3);
}

.contacts-block .left-col .link-to-scheme:hover {
    background-color: #c01921;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 28, 36, 0.4);
    text-decoration: none;
    color: #fff;
}

/* Исправление для мобильных устройств */
@media (max-width: 550px) {
    .contacts-block .left-col .link-to-scheme {
        background: #e31c24 url("/bitrix/templates/main/img/map-ico.svg") no-repeat 10px 50%/23px 24px;
        padding: 10px 10px 10px 40px;
        font-size: 15px;
        margin-bottom: 15px;
        white-space: normal;
    }
}

/* Обеспечиваем корректное отображение контента в левой колонке */
.contacts-block .left-col .content {
    background: #000029;
    color: #fff;
    z-index: 4;
    padding: 20px;
    min-height: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Стили для контактной информации */
.contact-info {
    margin-bottom: 30px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    width: 100% !important;
    overflow: visible !important;
}

.contact-info .phone {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #000 !important;
    font-size: 16px !important;
    text-align: center;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

.contact-info p:first-of-type {
    color: #007bff !important;
    text-decoration: underline !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-details {
    margin-top: 20px;
}

.contact-details h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 10px;
    color: #DADEED;
    line-height: 1.5;
}

.contact-details .phone {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-top: 15px;
}

/* Исправление для контейнера с кнопкой */
.contacts-block .left-col .content .button-wrap {
    position: relative;
    z-index: 5;
    margin-bottom: 20px;
    padding: 0;
    overflow: visible;
}

/* Исправление отображения телефона */
.contacts-block .left-col .phone {
    color: #000;
    font-size: 32px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    padding-bottom: 40px;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Исправление отображения адреса */
.contacts-block .left-col p {
    line-height: 30px;
    padding-bottom: 25px;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Исправление отображения ссылок */
.contacts-block .left-col a {
    color: #DADEED;
    border: none;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contacts-block .left-col a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Исправление отображения заголовков */
.contacts-block .left-col h3 {
    padding-bottom: 10px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Исправление отображения табов */
.contacts-block .left-col .tab-links {
    margin-top: 30px;
    color: #DADEED;
    margin-bottom: 20px;
}

.contacts-block .left-col .tab-links .aloneTab {
    font-size: 28px;
    padding-bottom: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.contacts-block .left-col .tab-links a {
    border-bottom: 2px solid #535267;
    padding-bottom: 8px;
    display: inline-block;
    margin-bottom: 15px;
    color: #DADEED;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.contacts-block .left-col .tab-links a:hover {
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
}

.contacts-block .left-col .tab-links p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contacts-block .left-col .tab-links br {
    margin-bottom: 10px;
}

/* Обеспечиваем корректное отображение в контейнере */
.contacts-block .left-col .header > div {
    padding: 40px 20px;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    position: relative;
    z-index: 3;
    background: #fff;
    box-sizing: border-box;
    overflow: visible !important;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

/* Исправление для адаптивности */
@media only screen and (max-width: 1100px) {
    .contacts-block .left-col .header > div {
        padding: 30px 20px;
    }
    
    .contact-info .phone {
        font-size: 28px;
    }
}

@media only screen and (max-width: 900px) {
    .contacts-block .left-col .header > div {
        padding: 25px 15px;
    }
    
    .contact-info {
        padding: 30px 15px;
    }
    
    .contact-info .phone {
        font-size: 24px;
    }
    
    .contacts-block .left-col .tab-links .aloneTab {
        font-size: 24px;
        padding-bottom: 30px;
    }
}

@media only screen and (max-width: 550px) {
    .contact-info {
        padding: 25px 15px;
    }
    
    .contact-info .phone {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .contact-info p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .contacts-block .left-col .tab-links .aloneTab {
        font-size: 20px;
        padding-bottom: 25px;
    }
    
    .contacts-block .left-col p {
        line-height: 24px;
        padding-bottom: 15px;
    }
}

/* Стили для контента правой колонки */

.contacts-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: 100%;
}

/* Убираем модальное поведение */
.modal-contacts {
    display: none !important;
}

.close-btn {
    display: none !important;
}

.contact-heading {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Стили для фильтров */
.filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filters-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filters-title-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: linear-gradient(135deg, #e8efff 0%, #d8e4ff 100%);
    border: 1px solid #c2d3fa;
}

.filters-title-icon::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 2px solid #2d63da;
    border-radius: 50%;
    display: block;
    transform: translate(-1px, -1px);
}

.filters-title-icon::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 2px;
    background: #2d63da;
    border-radius: 2px;
    transform: rotate(45deg) translate(5px, 4px);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-reset, .btn-show-all {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn-reset:hover, .btn-show-all:hover {
    background: #5a6268;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

/* Стили для табов */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tab:focus-visible {
    outline: 2px solid #1f59d4;
    outline-offset: 2px;
}

.tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.tab:hover:not(.active) {
    background: #e9ecef;
    border-color: #dee2e6;
}

.tab-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8efff 0%, #ceddfd 100%);
    border: 1px solid #b8ccf8;
}

.tab-icon::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #2e4f95;
}

.tab[data-type="partner"] .tab-icon::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8e6c20;
}

.tab-icon--processor::before {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #2f6f5d;
    clip-path: polygon(0 100%, 0 35%, 20% 35%, 20% 0, 45% 0, 45% 35%, 60% 35%, 60% 15%, 80% 15%, 80% 35%, 100% 35%, 100% 100%);
}

.tab-text {
    font-weight: 500;
}

.count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.tab.active .count {
    background: rgba(255,255,255,0.3);
}

/* Стили для сортировки */
.sort-controls-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    color: #555;
}

.sort-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, #e8efff 0%, #d8e4ff 100%);
    border: 1px solid #c2d3fa;
}

.sort-icon::before {
    content: "";
    width: 10px;
    height: 10px;
    background: linear-gradient(180deg, #2d63da 0%, #1949ad 100%);
    clip-path: polygon(0 100%, 0 38%, 18% 38%, 18% 100%, 40% 100%, 40% 10%, 58% 10%, 58% 100%, 82% 100%, 82% 58%, 100% 58%, 100% 100%);
}

.sort-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.sort-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.sort-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Стили для карточек */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cards.cards--loading {
    pointer-events: none;
}

.card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.card--appear {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 280ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}

.card.card--appear.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card--skeleton {
    cursor: default;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #eef2fb 0%, #f8faff 50%, #eef2fb 100%);
    background-size: 220% 100%;
    animation: contactsShimmer 1.35s linear infinite;
    border-radius: 6px;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-line--lg { width: 78%; height: 14px; }
.skeleton-line--md { width: 58%; }
.skeleton-line--sm { width: 38%; }

.skeleton-chip {
    width: 70px;
    height: 24px;
    border-radius: 999px;
}

@keyframes contactsShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .card.card--appear,
    .card.card--appear.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.contacts-state {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #e1e9fb;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 41, 0.08);
}

.contacts-state__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9f0ff 0%, #d7e5ff 100%);
    border: 1px solid #c8d9fa;
    position: relative;
}

.contacts-state__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #2d63da;
}

.contacts-state--empty .contacts-state__icon::before {
    width: 16px;
    height: 2px;
    border-radius: 2px;
}

.contacts-state--error .contacts-state__icon::before {
    width: 12px;
    height: 12px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: #b53a3a;
}

.contacts-state__title {
    font-size: 19px;
    font-weight: 700;
    color: #1d376b;
    margin-bottom: 6px;
}

.contacts-state__text {
    font-size: 14px;
    color: #5d6f96;
    line-height: 1.5;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.card-header:focus-visible {
    outline: 2px solid #1f59d4;
    outline-offset: 2px;
    border-radius: 6px;
}

.company-info {
    flex: 1;
}

.company-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.company-type {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.expand-icon {
    font-size: 14px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.card-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.location-badges, .presence-badges {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge.country {
    background: #e3f2fd;
    color: #1976d2;
}

.badge.region {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge.city {
    background: #e8f5e8;
    color: #388e3c;
}

.badge.presence {
    background: #fff3e0;
    color: #f57c00;
}

.contact-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.contact-info.expanded {
    max-height: 200px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-item .icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #b6c9f0;
    background: linear-gradient(135deg, #f7faff 0%, #eaf1ff 100%);
}

.contact-item .icon::before {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    background: #2b4f99;
    clip-path: polygon(0 35%, 25% 35%, 25% 0, 75% 0, 75% 35%, 100% 35%, 100% 65%, 75% 65%, 75% 100%, 25% 100%, 25% 65%, 0 65%);
}

.contact-item .icon.icon-phone::before {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    clip-path: polygon(0 20%, 20% 0, 40% 20%, 30% 30%, 45% 45%, 55% 35%, 75% 55%, 55% 75%, 35% 55%, 25% 65%, 5% 45%, 15% 35%);
}

.contact-item .icon.icon-email::before {
    width: 10px;
    height: 7px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 55%, 100% 0, 0 0);
}

.contact-item .icon.icon-web::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    clip-path: none;
    background: radial-gradient(circle at 50% 50%, #2b4f99 0 25%, transparent 26%), linear-gradient(#2b4f99, #2b4f99), linear-gradient(90deg, #2b4f99, #2b4f99);
    background-size: 100% 100%, 2px 100%, 100% 2px;
    background-position: center, center, center;
    background-repeat: no-repeat;
}

.contact-item .icon.icon-address::before {
    width: 8px;
    height: 10px;
    clip-path: polygon(50% 0, 88% 35%, 72% 85%, 50% 100%, 28% 85%, 12% 35%);
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .sort-controls-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .tab {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-contacts {
        padding: 15px;
    }
    
    .contact-heading {
        font-size: 20px;
    }
    
    .card {
        padding: 15px;
    }
    
    .company-name {
        font-size: 14px;
    }
}

/* ===== Premium contacts redesign (RU) ===== */
.contacts-block {
    gap: 18px;
    max-width: 1320px;
    padding: 16px 14px 22px;
}

.contacts-block .left-col {
    flex: 0 0 360px;
    background: linear-gradient(165deg, #0b1f57 0%, #102f79 46%, #0a2668 100%);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(10, 32, 92, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.contacts-block .left-col .header > div {
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    padding: 28px 18px;
}

.contact-info .phone {
    color: #102f79;
    letter-spacing: 0.4px;
    font-size: 26px;
    margin-bottom: 10px;
    padding-bottom: 18px;
}

.contact-info p {
    color: #2a3f71 !important;
    font-size: 14px !important;
    margin-bottom: 10px;
    line-height: 1.45;
}

.contact-info p:first-of-type {
    color: #0f52d6 !important;
    text-decoration: none !important;
    font-weight: 600;
}

.contacts-block .left-col .content {
    background: transparent;
    padding: 14px 16px 16px;
}

.contacts-block .left-col .tab-links {
    color: #dce7ff;
    margin-top: 12px;
    margin-bottom: 12px;
}

.contacts-block .left-col .tab-links a {
    border-bottom: 1px solid rgba(220, 231, 255, 0.38);
    color: #e7efff;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.35;
}

.contacts-block .left-col .tab-links a:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* Left info block readability upgrade */
.contacts-block .left-col .tab-links p {
    margin: 0;
    padding: 0;
}

.contacts-block .left-col .tab-links p > strong,
.contacts-block .left-col .tab-links p > b {
    display: block;
    margin: 14px 0 8px;
    font-size: 27px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0.15px;
    color: #ffffff;
}

.contacts-block .left-col .tab-links p > strong + br,
.contacts-block .left-col .tab-links p > b + br {
    display: none;
}

.contacts-block .left-col .tab-links p > a {
    display: inline-block;
    margin: 10px 0 12px;
    padding-bottom: 3px;
}

.contacts-block .left-col .tab-links p > br + br {
    display: none;
}

.contacts-block .left-col .content .tab-links:not(:first-child) {
    border-top: 1px solid rgba(220, 231, 255, 0.22);
    margin-top: 14px;
    padding-top: 12px;
}

/* Contacts inline text -> premium cards */
.contacts-premium-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff;
    border-left: 1px solid rgba(126, 174, 255, 0.28);
    border-right: 1px solid rgba(126, 174, 255, 0.28);
    padding: 0 10px;
}

.contacts-block .left-col .contacts-premium-info p.contacts-premium-row {
    line-height: 1.35;
    padding-bottom: 0;
    margin-bottom: 0;
}

.contacts-block .left-col .contacts-premium-info h3,
.contacts-block .left-col .contacts-premium-info h4 {
    padding-bottom: 0;
    margin-top: 0;
    line-height: 1.3;
}

.contacts-premium-intro {
    margin: 0 0 2px;
    padding: 0;
    border-bottom: 0;
}

.contacts-premium-intro h3,
.contacts-premium-info h3 {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.contacts-premium-intro h3::after,
.contacts-premium-group-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
    background: linear-gradient(90deg, #4d8dff 0%, #2f6fe8 100%);
}

.contacts-premium-info h3 u {
    text-decoration: none;
}

.contacts-premium-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-premium-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid rgba(126, 174, 255, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.contacts-premium-group-title {
    margin: 0 0 2px;
    padding: 0;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    border-bottom: 0;
}

.contacts-premium-group-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-premium-unit {
    position: relative;
    margin: 0;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(130, 175, 255, 0.28);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(12, 42, 108, 0.72) 0%, rgba(8, 28, 78, 0.58) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.contacts-premium-unit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, #5b9bff 0%, #2f6fe8 100%);
}

.contacts-premium-unit::after {
    display: none;
}

.contacts-premium-unit:hover {
    border-color: rgba(150, 190, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contacts-premium-unit h4 {
    margin: 0 0 6px;
    padding: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
}

.contacts-premium-unit h4::after {
    display: none;
}

.contacts-premium-row {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(220, 231, 255, 0.82);
    display: block;
    padding: 0;
}

.contacts-premium-row:last-child {
    margin-bottom: 0;
}

.contacts-premium-row + .contacts-premium-row {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.contacts-premium-row-icon {
    display: none;
}

.contacts-premium-row-text {
    display: block;
}

.contacts-premium-row--person .contacts-premium-row-text {
    color: rgba(235, 242, 255, 0.92);
    font-weight: 600;
}

.contacts-premium-row--role .contacts-premium-row-text {
    color: rgba(210, 224, 255, 0.78);
    font-size: 15px;
    letter-spacing: 0;
}

.contacts-premium-row a {
    color: rgba(220, 231, 255, 0.88);
    text-decoration: none;
}

.contacts-premium-row a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
    .contacts-premium-info {
        padding: 0 8px;
        gap: 8px;
    }

    .contacts-block .left-col .contacts-premium-info p.contacts-premium-row {
        line-height: 1.32;
    }

    .contacts-premium-intro h3,
    .contacts-premium-info h3,
    .contacts-premium-group-title {
        font-size: 12px;
    }

    .contacts-premium-list,
    .contacts-premium-group,
    .contacts-premium-group-body {
        gap: 8px;
    }

    .contacts-premium-unit {
        padding: 10px 12px 10px 16px;
        border-radius: 8px;
    }

    .contacts-premium-unit::before {
        top: 8px;
        bottom: 8px;
        width: 2px;
    }

    .contacts-premium-unit h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .contacts-premium-row {
        font-size: 14px;
        line-height: 1.32;
    }

    .contacts-premium-row--role .contacts-premium-row-text {
        font-size: 14px;
    }
}

.contacts-block .left-col .link-to-scheme {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ef2f42 0%, #d81f34 45%, #b91629 100%) no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(198, 29, 40, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-weight: 800;
    letter-spacing: 0.25px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    font-size: 15px;
    padding: 13px 18px 13px 58px;
    margin-bottom: 12px;
}

.contacts-block .left-col .link-to-scheme::before {
    content: "";
    position: absolute;
    left: -42%;
    top: -20%;
    width: 38%;
    height: 140%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}

.contacts-block .left-col .link-to-scheme::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background: url("/bitrix/templates/main/img/map-ico.svg") no-repeat center center / contain;
    opacity: 0.95;
    pointer-events: none;
}

.contacts-block .left-col .link-to-scheme:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 20px 40px rgba(198, 29, 40, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.contacts-block .left-col .link-to-scheme:hover::before {
    left: 112%;
}

.contacts-block .left-col .link-to-scheme:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(198, 29, 40, 0.38), inset 0 2px 6px rgba(0, 0, 0, 0.16);
}

.contacts-block .left-col .link-to-scheme:focus {
    outline: none;
}

.contacts-block .left-col .link-to-scheme:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 0 0 6px rgba(239, 47, 66, 0.36), 0 16px 34px rgba(198, 29, 40, 0.42);
}

.contacts-block .right-col {
    border-radius: 18px;
    padding: 0;
    background: transparent;
}

.contacts-content {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 22px 48px rgba(19, 41, 99, 0.16);
    border: 1px solid rgba(15, 82, 214, 0.12);
    padding: 16px 16px 18px;
}

.contact-heading {
    font-size: 24px;
    line-height: 1.25;
    color: #13254d;
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

.filters {
    border-radius: 12px;
    padding: 12px 12px;
    border: 1px solid rgba(16, 47, 121, 0.12);
    background: linear-gradient(180deg, #f7faff 0%, #f0f5ff 100%);
}

.filters-title {
    color: #15336f;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.filter-item label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #5f75a8;
    font-weight: 700;
}

.filter-select {
    border: 1px solid #cfdbf5;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: #1f3569;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.filter-select:focus {
    outline: none;
    border-color: #2d63da;
    box-shadow: 0 0 0 3px rgba(45, 99, 218, 0.14);
}

.btn-reset, .btn-show-all {
    border-radius: 9px;
    padding: 7px 11px;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid transparent;
}

.btn-reset {
    background: #e9eef9;
    color: #324f8e;
    border-color: #d6e0f6;
}

.btn-show-all {
    background: #204ea6;
    color: #fff;
}

.btn-reset:hover {
    background: #dfe8f8;
}

.btn-show-all:hover {
    background: #173f8b;
}

.tabs-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #e3eaf6;
}

.tabs {
    gap: 22px;
    margin-bottom: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.tab {
    position: relative;
    border: 0;
    border-radius: 0;
    padding: 0 0 12px;
    background: transparent;
    color: #6f84ad;
    font-size: 15px;
    font-weight: 600;
}

.tab.active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #13254d;
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: #1a4db5;
}

.tab:hover:not(.active) {
    background: transparent;
    border-color: transparent;
    color: #13254d;
}

.tab-text {
    font-weight: 600;
}

.count {
    margin-left: 4px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

.tab.active .count {
    background: transparent;
}

.found-count {
    flex: 0 0 auto;
    padding-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6f84ad;
    white-space: nowrap;
}

.sort-controls-compact {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 14px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #edf1f8;
}

.sort-label {
    color: #6f84ad;
    font-size: 14px;
    font-weight: 600;
}

.sort-buttons {
    gap: 14px;
}

.sort-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6f84ad;
    font-weight: 600;
    font-size: 14px;
    padding: 0 0 2px;
    box-shadow: none;
}

.sort-btn.active {
    background: transparent;
    border-color: transparent;
    color: #13254d;
    box-shadow: none;
    text-decoration: underline;
    text-decoration-color: #1a4db5;
    text-underline-offset: 4px;
}

.sort-btn:hover:not(.active) {
    background: transparent;
    border-color: transparent;
    color: #13254d;
}

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    margin-top: 14px;
}

.card {
    border: 1px solid #e4ebf7;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(19, 41, 99, 0.06);
    padding: 16px 16px 14px;
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(19, 41, 99, 0.1);
    border-color: #d5e0f4;
}

.card-top {
    margin-bottom: 12px;
}

.company-name {
    font-size: 18px;
    color: #13254d;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 8px;
}

.company-type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #edf3ff;
    border: 1px solid #d7e4fb;
    color: #2f5eb8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    min-height: 42px;
}

.card-location-icon {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.card-location-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #8ea0c4;
    clip-path: polygon(50% 0, 88% 34%, 72% 88%, 50% 100%, 28% 88%, 12% 34%);
}

.card-location-line,
.card-location-city {
    font-size: 14px;
    line-height: 1.35;
    color: #6f84ad;
}

.card-location-city {
    margin-top: 2px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 2px;
}

.presence-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-height: 0;
}

.card-more {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #1a4db5;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-more:hover {
    color: #0f3f9d;
    text-decoration: underline;
}

.card-more:focus-visible {
    outline: 2px solid #1a4db5;
    outline-offset: 2px;
    border-radius: 4px;
}

.card-more-arrow {
    transition: transform 0.2s ease;
}

.card-more.is-open .card-more-arrow {
    transform: rotate(90deg);
}

.badge {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.2;
    margin: 0;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Premium unified palette for contact badges */
.badge.country {
    background: linear-gradient(180deg, #eef5ff 0%, #e4efff 100%);
    color: #2c5fc2;
    border-color: rgba(60, 114, 218, 0.22);
}

.badge.region {
    background: linear-gradient(180deg, #f1f4ff 0%, #e9efff 100%);
    color: #4c62a1;
    border-color: rgba(99, 120, 174, 0.22);
}

.badge.city {
    background: linear-gradient(180deg, #eef9f4 0%, #e5f5ee 100%);
    color: #2e7b63;
    border-color: rgba(52, 133, 105, 0.2);
}

.badge.presence {
    background: linear-gradient(180deg, #fff7eb 0%, #fff1dc 100%);
    color: #b26a12;
    border-color: rgba(198, 130, 36, 0.24);
}

.contact-info.expanded {
    max-height: 360px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf1f8;
}

.contact-item {
    border-top: 1px dashed #e3eaf9;
    padding-top: 6px;
    margin-bottom: 7px;
    font-size: 13px;
}

.contact-item:last-child {
    margin-bottom: 2px;
}

.contact-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.contact-item a {
    color: #1d4ea8;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .contacts-block {
        gap: 18px;
        padding: 18px 10px 24px;
    }
    .contacts-block .left-col {
        flex-basis: 360px;
    }
    .contacts-content {
        padding: 18px;
    }
    .contact-heading {
        font-size: 24px;
    }

    .tabs-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .found-count {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .sort-controls-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sort-buttons {
        gap: 10px;
    }
}

/* Card accordion fix: keep collapse logic isolated from left-column contact-info */
.contacts-content .cards .contact-info {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    margin-top: 0 !important;
    padding: 0 10px 0 8px !important;
}

.contacts-content .cards .contact-info.expanded {
    max-height: 360px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

/* ===== Architects premium section ===== */
.architects-premium-row {
    display: grid;
    grid-template-columns: minmax(420px, 1.45fr) minmax(290px, 0.9fr);
    align-items: start;
    gap: 28px;
    margin: 6px auto 16px;
    max-width: 1120px;
    padding: 0 20px;
    box-sizing: border-box;
}

.architects-premium-row .w50 {
    float: none;
    width: auto;
    min-width: 0;
}

.architects-catalog-section {
    max-width: 1120px;
    margin: 18px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.architects-catalog-section .white-bg {
    margin: 0;
}

.architects-catalog-section .white-bg-2-inner {
    padding: 14px 0 14px;
    background: transparent;
}

.architects-catalog-section #viewer {
    max-width: 700px;
    margin: 0 auto;
    height: auto;
    overflow: visible;
}

.architects-catalog-section .catalog-app {
    height: auto;
    background: transparent;
}

.architects-catalog-section .ui-flipbook {
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 18px 40px rgba(20, 45, 108, 0.15);
    margin: 0 auto;
}

.architects-catalog-section .gallery-arrow {
    right: -22px;
    width: 64px;
    height: 100%;
    top: 0;
    opacity: 1;
    z-index: 40;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.architects-catalog-section .gallery-arrow.prev {
    left: -22px;
    right: auto;
}

.architects-catalog-section .gallery-arrow span {
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1f56c0 0%, #0f3f9a 100%);
    box-shadow: 0 10px 22px rgba(18, 60, 142, 0.35);
}

.architects-catalog-section .gallery-arrow.prev span {
    right: auto;
    left: 0;
}

.architects-catalog-section .gallery-arrow span:before,
.architects-catalog-section .gallery-arrow span:after {
    background: #ffffff;
}

.architects-catalog-section .gallery-arrow:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.architects-catalog-section .gallery-arrow:hover span {
    background: linear-gradient(145deg, #245fcf 0%, #1147ab 100%);
}

.architects-form-row {
    max-width: 1120px;
    margin: 10px auto 58px;
    padding: 0 20px;
}

.architects-form-col {
    width: 420px;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(14, 35, 90, 0.28);
}

.architects-form-col iframe {
    display: block;
    width: 100% !important;
    min-height: 320px;
    border: 0;
    border-radius: 14px;
}

.architects-form-col .b24-form-wrapper,
.architects-form-col .b24-form {
    border-radius: 14px;
    overflow: hidden;
}

.architects-premium-left .white-block-with-shad > div {
    padding: 42px 40px 46px;
    margin-bottom: 38px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(18, 54, 128, 0.1);
    box-shadow: 0 16px 34px rgba(17, 42, 102, 0.15);
}

.architects-premium-left .white-block-with-shad > div h2 {
    font-size: 46px;
    line-height: 1.04;
    letter-spacing: 0.2px;
    margin-bottom: 18px;
    color: #163577;
}

.architects-premium-left .ico-list.ico-list2 {
    margin: 0;
    padding: 4px 0 0;
}

.architects-premium-left .ico-list.ico-list2 > li {
    margin-bottom: 12px;
}

.architects-premium-left .ico-list.ico-list2 > li .ico {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #f6f9ff 0%, #e9f0ff 100%);
    border: 1px solid rgba(24, 63, 143, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.architects-premium-left .ico-list.ico-list2 > li .ico img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.architects-premium-left .ico-list.ico-list2 > li .info h5 {
    margin: 0;
    color: #1a2d59;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.architects-premium-right .breeam-block {
    padding: 30px 26px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(20, 45, 108, 0.1);
    box-shadow: 0 16px 34px rgba(20, 45, 108, 0.13);
}

.architects-premium-right .breeam-block .breeam-logo {
    margin-bottom: 14px;
    max-width: 150px;
}

.architects-premium-right .breeam-block p {
    margin: 0 0 10px;
    max-width: none;
    color: #263b66;
    font-size: 16px;
    line-height: 1.45;
}

.architects-premium-right .breeam-block p:after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, #2c62c8 0%, rgba(44, 98, 200, 0.15) 100%);
}

.architects-premium-right .breeam-block .logos-block {
    margin-top: 6px;
    margin-right: 0;
    letter-spacing: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.architects-premium-right .breeam-block .logos-block .col {
    width: auto !important;
    height: auto;
    line-height: normal;
    display: block;
    text-align: left !important;
}

.architects-premium-right .breeam-block .logos-block img {
    width: auto;
    height: auto;
    max-height: 62px;
    max-width: 100%;
}

@media (max-width: 1100px) {
    .architects-premium-row {
        grid-template-columns: minmax(300px, 1.25fr) minmax(240px, 0.95fr);
        gap: 16px;
    }
    .architects-premium-left .white-block-with-shad > div {
        padding: 28px 24px 34px;
    }
    .architects-premium-left .white-block-with-shad > div h2 {
        font-size: 38px;
    }
    .architects-premium-left .ico-list.ico-list2 > li .info h5 {
        font-size: 18px;
    }
    .architects-premium-right .breeam-block {
        padding: 26px 20px 18px;
    }
    .architects-premium-right .breeam-block p {
        font-size: 14px;
        line-height: 1.42;
    }
    .architects-premium-right .breeam-block .logos-block img {
        max-height: 52px;
    }
    .architects-form-row {
        margin-bottom: 42px;
    }
    .architects-catalog-section .gallery-arrow {
        width: 52px;
        right: -8px;
    }
    .architects-catalog-section .gallery-arrow.prev {
        left: -8px;
    }
    .architects-catalog-section .gallery-arrow span {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
}

@media (max-width: 900px) {
    .architects-premium-row {
        display: block;
    }
    .architects-premium-row .w50 {
        width: auto;
    }
    .architects-premium-right .breeam-block {
        height: auto;
        margin-bottom: 20px;
    }
    .architects-catalog-section .white-bg-2-inner {
        padding: 10px 0 12px;
    }
    .architects-premium-row,
    .architects-catalog-section {
        padding: 0 14px;
    }
    .architects-form-row {
        margin: 6px auto 34px;
        padding: 0 14px;
    }
    .architects-form-col {
        width: 100%;
    }
    .architects-catalog-section .gallery-arrow {
        width: 46px;
        right: -2px;
    }
    .architects-catalog-section .gallery-arrow.prev {
        left: -2px;
    }
    .architects-catalog-section .gallery-arrow span {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }
}

/* ===== Interiors block — classic layout (tabs left, image overlap right) ===== */
.interiors-section-premium {
    background: #e9edf3;
    padding: 52px 0 72px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.interiors-section-premium .homepage-section-head {
    margin-bottom: 8px;
}

.interiors-section-premium .main-gallery-wrap {
    position: relative;
    width: 90%;
    max-width: 1080px;
    margin: 40px auto 88px;
    background: #ffffff;
    box-shadow: 0 9px 15px rgba(0, 0, 0, 0.2);
    overflow: visible;
    border: none;
    border-radius: 0;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs {
    float: left;
    margin-right: -100%;
    width: 235px;
    position: relative;
    z-index: 3;
    padding: 42px 0;
    background: transparent;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li {
    cursor: pointer;
    padding: 11px 20px 11px 40px;
    margin: 4px 0;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    border-radius: 0;
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    box-shadow: none;
    background: transparent;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li span {
    position: relative;
    z-index: 3;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li::after {
    position: absolute;
    content: "";
    display: block;
    left: -12px;
    padding-left: 12px;
    top: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left top;
    transition: transform 0.4s cubic-bezier(1, 0, 0, 1);
    background: #e31c24;
    border-radius: 0;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li:hover {
    color: #000029;
    background: #f2f2f2;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li.active {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li.active::after {
    transform: scaleX(1);
}

.interiors-section-premium .main-gallery-wrap .main-gallery-pics-wrap {
    position: relative;
    min-height: 520px;
    height: 520px;
    width: 100%;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-pics {
    box-shadow: 0 9px 15px rgba(0, 0, 0, 0.2);
    margin: -70px 20px -50px 235px;
    position: relative;
    padding: 90px 0;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    min-height: 0;
    border-radius: 0;
    list-style: none;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-pics li {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out 0.4s, visibility 0s ease-in-out 0.4s;
    z-index: 1;
}

.interiors-section-premium .main-gallery-wrap .main-gallery-pics li.active {
    z-index: 2;
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out 0s, visibility 0s ease-in-out 0s;
}

@media (max-width: 1100px) {
    .interiors-section-premium .main-gallery-wrap .main-gallery-pics {
        margin: -50px 16px -40px 235px;
        padding: 60px 0;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-pics-wrap {
        min-height: 460px;
        height: 460px;
    }
}

@media (max-width: 900px) {
    .interiors-section-premium {
        padding: 40px 0 56px;
    }

    .interiors-section-premium .main-gallery-wrap {
        width: auto;
        margin: 32px auto 64px;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-tabs {
        width: 200px;
        padding: 28px 0;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li {
        padding: 10px 16px 10px 28px;
        font-size: 15px;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-pics {
        margin: -30px 0 -30px 200px;
        padding: 40px 0;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-pics-wrap {
        min-height: 400px;
        height: 400px;
    }
}

@media (max-width: 650px) {
    .interiors-section-premium {
        padding: 32px 0 40px;
    }

    .interiors-section-premium .main-gallery-wrap {
        margin: 20px 0 40px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-tabs {
        order: 2;
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li {
        display: inline-block;
        padding: 10px 14px;
        margin: 0;
        font-size: 14px;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li::after {
        left: 0;
        padding-left: 0;
        transform: scaleY(0);
        transform-origin: left bottom;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-tabs > li.active::after {
        transform: scaleY(1);
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-pics-wrap {
        order: 1;
        position: relative;
        height: 280px;
        min-height: 280px;
        margin: 0;
        width: 100%;
    }

    .interiors-section-premium .main-gallery-wrap .main-gallery-pics {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 280px;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}
/* ===== Contacts right column: minimal premium (final overrides) ===== */
.contacts-block .right-col .contacts-content {
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(21, 40, 72, 0.05);
    padding: 20px 20px 22px;
}

.contacts-block .right-col .contacts-content .contact-heading {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
    color: #152848;
    text-align: left;
    letter-spacing: 0;
}

.contacts-block .right-col .contacts-content .filters {
    margin-bottom: 16px;
    padding: 14px 14px 12px;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #f8fafc;
    box-shadow: none;
}

.contacts-block .right-col .contacts-content .filters-header {
    margin-bottom: 12px;
}

.contacts-block .right-col .contacts-content .filters-title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7c9d;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contacts-block .right-col .contacts-content .filters-title-icon,
.contacts-block .right-col .contacts-content .sort-icon {
    display: none;
}

.contacts-block .right-col .contacts-content .filter-item label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #8a97b2;
}

.contacts-block .right-col .contacts-content .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.contacts-block .right-col .contacts-content .filter-item--search {
    grid-column: 1 / -1;
}

.contacts-block .right-col .contacts-content .filter-search {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #ffffff;
    color: #152848;
    padding: 8px 10px;
    font-size: 13px;
    box-shadow: none;
}

.contacts-block .right-col .contacts-content .filter-search::placeholder {
    color: #a3afc4;
}

.contacts-block .right-col .contacts-content .filter-search:focus {
    outline: none;
    border-color: #9eb0cf;
    box-shadow: 0 0 0 3px rgba(21, 40, 72, 0.06);
}

.contacts-block .right-col .contacts-content .filter-select {
    min-height: 38px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #ffffff;
    color: #152848;
    box-shadow: none;
}

.contacts-block .right-col .contacts-content .filter-select:focus {
    border-color: #9eb0cf;
    box-shadow: 0 0 0 3px rgba(21, 40, 72, 0.06);
}

.contacts-block .right-col .contacts-content .btn-reset,
.contacts-block .right-col .contacts-content .btn-show-all {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    transform: none;
}

.contacts-block .right-col .contacts-content .btn-reset {
    color: #6b7c9d;
}

.contacts-block .right-col .contacts-content .filters.filters--active .btn-reset {
    color: #1a4db5;
    font-weight: 700;
}

.contacts-block .right-col .contacts-content .btn-show-all {
    color: #152848;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-block .right-col .contacts-content .btn-reset:hover,
.contacts-block .right-col .contacts-content .btn-show-all:hover {
    transform: none;
    opacity: 0.72;
}

.contacts-block .right-col .contacts-content .tabs-bar {
    gap: 12px;
    margin-top: 4px;
    padding-top: 4px;
    border-bottom: 1px solid #edf1f7;
    background: transparent;
}

.contacts-block .right-col .contacts-content .tabs {
    gap: 20px;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    justify-content: flex-start;
}

.contacts-block .right-col .contacts-content .tab {
    min-height: 0;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8a97b2;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transform: none;
}

.contacts-block .right-col .contacts-content .tab.active {
    background: transparent;
    color: #152848;
    box-shadow: none;
}

.contacts-block .right-col .contacts-content .tab.active::after {
    height: 2px;
    background: #152848;
}

.contacts-block .right-col .contacts-content .tab:hover:not(.active) {
    background: transparent;
    color: #152848;
    transform: none;
}

.contacts-block .right-col .contacts-content .tab .count {
    margin-left: 3px;
    padding: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

.contacts-block .right-col .contacts-content .found-count {
    padding-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #8a97b2;
}

.contacts-block .right-col .contacts-content .sort-controls-compact {
    margin-bottom: 6px;
    padding: 12px 0 10px;
    border: 0;
    border-bottom: 1px solid #edf1f7;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.contacts-block .right-col .contacts-content .sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #8a97b2;
}

.contacts-block .right-col .contacts-content .sort-buttons {
    gap: 12px;
}

.contacts-block .right-col .contacts-content .sort-btn {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8a97b2;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    transform: none;
}

.contacts-block .right-col .contacts-content .sort-btn.active {
    background: transparent;
    color: #152848;
    text-decoration: underline;
    text-decoration-color: #152848;
    text-underline-offset: 3px;
    box-shadow: none;
}

.contacts-block .right-col .contacts-content .sort-btn:hover:not(.active) {
    background: transparent;
    color: #152848;
    transform: none;
}

.contacts-block .right-col .contacts-content .cards {
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.contacts-block .right-col .contacts-content .card {
    height: auto;
    align-self: start;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(21, 40, 72, 0.05);
    padding: 14px 14px 12px;
    transform: none;
}

.contacts-block .right-col .contacts-content .card:hover {
    border-color: #d5deec;
    box-shadow: 0 8px 22px rgba(21, 40, 72, 0.08);
    transform: none;
}

.contacts-block .right-col .contacts-content .company-name {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 800;
    color: #152848;
    line-height: 1.25;
}

.contacts-block .right-col .contacts-content .company-type {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #dde7f7;
    background: #e8f1ff;
    color: #2b5ea8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contacts-block .right-col .contacts-content .company-type--partner {
    border-color: #e3ddf7;
    background: #f1edfc;
    color: #5b4d9a;
}

.contacts-block .right-col .contacts-content .company-type--processor {
    border-color: #d9efe6;
    background: #eaf7f1;
    color: #2f7a5d;
}

.contacts-block .right-col .contacts-content .card-top {
    margin-bottom: 10px;
}

.contacts-block .right-col .contacts-content .card-location {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 10px;
    min-height: 0;
}

.contacts-block .right-col .contacts-content .card-location-icon {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.contacts-block .right-col .contacts-content .card-location-icon::before {
    background: #b4bfd4;
}

.contacts-block .right-col .contacts-content .card-location-line {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.4;
    color: #8a97b2;
}

.contacts-block .right-col .contacts-content .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid #f1f4f9;
}

.contacts-block .right-col .contacts-content .presence-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 0;
}

.contacts-block .right-col .contacts-content .presence-badges:empty {
    display: none;
}

.contacts-block .right-col .contacts-content .badge--office {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #f2dcc4;
    background: #fff4e8;
    color: #a66f2d;
    box-shadow: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.contacts-block .right-col .contacts-content .badge--warehouse {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d5e8df;
    background: #edf8f2;
    color: #3d7a5d;
    box-shadow: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.contacts-block .right-col .contacts-content .card-more {
    appearance: none;
    -webkit-appearance: none;
    min-height: 0;
    margin-left: auto;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1a4db5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transform: none !important;
}

.contacts-block .right-col .contacts-content .card-more-arrow {
    transition: transform 0.2s ease;
}

.contacts-block .right-col .contacts-content .card-more.is-open .card-more-arrow {
    transform: rotate(90deg);
}

.contacts-block .right-col .contacts-content .card-more:hover {
    color: #0f3f9d;
    opacity: 1;
    text-decoration: underline;
    transform: none !important;
}

.contacts-block .right-col .contacts-content .card-more.is-open {
    color: #0f3f9d;
}

.contacts-block .right-col .contacts-content .contact-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease, padding-top 0.22s ease;
}

.contacts-block .right-col .contacts-content .contact-info.expanded {
    max-height: 360px;
    opacity: 1;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf1f7;
}

.contacts-block .right-col .contacts-content .contact-item {
    border-top: 0;
    padding-top: 0;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5f7396;
}

.contacts-block .right-col .contacts-content .contact-item a {
    color: #152848;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .contacts-block .right-col .contacts-content .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .contacts-block .right-col .contacts-content {
        padding: 16px 14px 18px;
    }

    .contacts-block .right-col .contacts-content .filters-grid {
        grid-template-columns: 1fr;
    }

    .contacts-block .right-col .contacts-content .tabs-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .contacts-block .right-col .contacts-content .sort-controls-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== Architects page — portfolio showcase (production-safe overrides) ===== */
.architects-page .architects-portfolio {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4px 40px 0;
    box-sizing: border-box;
}

.architects-page .architects-showcase {
    margin-bottom: 44px;
}

.architects-page .architects-showcase__layout {
    display: flex !important;
    align-items: stretch;
    min-height: 400px;
    background: #ffffff;
    border: 1px solid rgba(0, 20, 133, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 41, 0.08);
    overflow: hidden;
}

.architects-page .architects-showcase__media {
    position: relative;
    flex: 1.12 1 0;
    min-width: 0;
    min-height: 400px;
    background: #0b1a4a;
    overflow: hidden;
    margin-bottom: 0 !important;
    float: none !important;
}

.architects-page .architects-showcase__media .slick-gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.architects-page .architects-showcase__media .slick-gallery .slick-list,
.architects-page .architects-showcase__media .slick-gallery .slick-track {
    height: 100% !important;
}

.architects-page .architects-showcase__media .img-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
}

.architects-page .architects-showcase .slick-gallery .img-container,
.architects-page .architects-showcase .slick-gallery .img-container img,
.architects-page .architects-showcase .slick-gallery .img-container.slick-current img,
.architects-page .architects-showcase .slick-gallery .img-container.slick-current + .img-container img {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.architects-page .architects-showcase__media .img-container img {
    display: block;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.architects-page .architects-showcase__panel {
    float: none !important;
    width: auto !important;
    max-width: 46%;
    flex: 0.88 1 300px;
    margin: 0 !important;
    margin-top: 0 !important;
    min-height: 400px;
    border-left: 1px solid rgba(0, 20, 133, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    display: flex !important;
    align-items: center;
    box-sizing: border-box;
}

.architects-page .architects-showcase__panel ul {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 280px;
    margin: 0;
    padding: 0 !important;
}

.architects-page .architects-showcase__panel ul li {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
}

.architects-page .architects-showcase__panel ul li.slick-active,
.architects-page .architects-showcase__panel ul li.active {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.architects-page .architects-showcase .slick-gallery:not(.slick-initialized) .img-container:not(:first-child) {
    display: none !important;
}

.architects-page .architects-showcase .slick-gallery:not(.slick-initialized) .img-container:first-child {
    display: block !important;
    position: absolute;
    inset: 0;
}

.architects-page .architects-showcase__panel ul:not(.slick-initialized) li:first-child {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.architects-page .architects-showcase__panel ul:not(.slick-initialized) li:not(:first-child) {
    opacity: 0 !important;
    visibility: hidden !important;
}

.architects-page .architects-showcase__actions,
.architects-page .architects-showcase .buttons-block {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .architects-page .architects-showcase__layout {
        flex-direction: column;
    }

    .architects-page .architects-showcase__panel {
        max-width: none;
        border-left: none;
        border-top: 1px solid rgba(0, 20, 133, 0.08);
    }

    .architects-page .architects-portfolio {
        padding-left: 20px;
        padding-right: 20px;
    }
}