

/* Start:/local/templates/main/assets/css/main.css?178790833246714*/
/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A1A1A;
    --secondary: #BF0707;
    --secondary-dark: #8c0202;
    --accent: #e74c3c;
    --text: #313940;
    --link: #4D8DCE;
    --text-light: #666;
    --white: #fff;
    --bg-light: #F2F5F8;
    --bg-gray: #E9E9E9;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    padding-top: 120px;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: underline;
    color: var(--link);
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
    color: var(--secondary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 8px 19px;
    border: none;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border: 1px solid var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    height: 120px;
    box-shadow: var(--shadow);
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 69px;
    border-bottom: 1px solid #e8e8e8;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.header__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.header__contacts-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    padding: 8px 12px;
    gap: 32px;
}

.header__phone,
.header__email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.header__phone {
    color: var(--text);
}

.header__email {
    color: var(--link);
}

.header__phone:hover,
.header__email:hover {
    color: var(--secondary);
}

.header__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.header__phone:hover .header__icon,
.header__email:hover .header__icon {
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(1000%) hue-rotate(190deg);
}

.header__btn {
    padding: 8px 24px;
    font-size: 14px;
    white-space: nowrap;
}

.header__mobile-top {
    display: none;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header__slabvid {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.header__slabvid:hover {
    opacity: 0.7;
}

.header__slabvid-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.header__slabvid--desktop {
    display: flex;
}

.burger {
    display: none;
    flex-direction: column;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

.burger span {
    display: block;
    background: var(--secondary);
    width: 20px;
    height: 4px;
    margin: 0 auto;
    transition: margin 0.25s 0.25s, transform 0.25s, background 0.25s;
}

.burger span:nth-child(1) {
    margin-bottom: 3px;
}

.burger span:nth-child(2) {
    transition: 0.1s;
    transition-delay: 0.25s;
}

.burger span:nth-child(3) {
    margin-top: 3px;
}

.burger:hover {
    background: rgba(0, 0, 0, 0.1);
}

.burger.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transition: 0.25s 0.25s;
}

.burger.active span {
    background: var(--white);
    transition: 0.25s margin, 0.25s transform 0.25s, 0.25s background 0.25s;
}

.burger.active span:nth-child(1) {
    margin-top: 0;
    margin-bottom: -2px;
    transform: rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transition: 0.1s;
    transition-delay: 0s;
}

.burger.active span:nth-child(3) {
    margin-top: -6px;
    transform: rotate(135deg);
}

.header__mobile-bottom {
    display: none;
    height: 40px;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid #e8e8e8;
}

.header__mobile-btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.header__mobile-btn--message {
    font-size: 16px;
    background: var(--bg-gray);
    color: var(--text);
    border: none;
}

.header__mobile-btn--message:hover {
    background: var(--secondary);
    color: var(--white);
}

.header__mobile-btn--order {
    background: var(--secondary);
    color: var(--white);
    border: none;
}

.header__mobile-btn--order:hover {
    background: var(--secondary-dark);
}

.header__bottom {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.header__nav li {
    height: 100%;
    display: flex;
    align-items: center;
}

.header__nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4px;
    white-space: nowrap;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.header__nav a:hover {
    color: var(--secondary);
}

.header__nav a:hover::after,
.header__nav a.active::after {
    width: 100%;
}

.header__nav a.active {
    color: var(--secondary);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: absolute;
    z-index: 99;
    top: 100%;
    right: 0;
    display: block;
    max-width: 300px;
    background: #374756;
    -webkit-box-shadow: 0 7px 14px rgba(0, 0, 0, .45);
    box-shadow: 0 7px 14px rgba(0, 0, 0, .45);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    -webkit-transform: translateY(10px);
    -ms-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.mobile-menu__inner {
    width: 100%;
    padding: 24px;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.mobile-menu__list li {
    margin: 0;
}

.mobile-menu__list a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    text-align: start;
    padding: 8px 16px;
}


/* ============================================================
   TOP BOX (заголовок)
   ============================================================ */
.top-box {
    background-color: var(--secondary);
    padding: 36px 32px;
}

.top-box h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--white);
}

/* ============================================================
   LEGAL (юридическое лицо)
   ============================================================ */
.legal {
    padding: 80px 0;
    background: var(--white);
}

.legal__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.legal__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.legal__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.legal__description {
    font-size: 14px;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.8;
    max-width: 520px;
}

.legal__right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 570px;
}

.legal__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal__contacts-group {
    padding: 0;
    border-bottom: none;
}

.legal__contacts-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.legal__contacts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legal__contacts-list li {
    font-size: 14px;
    color: var(--text);
}

.legal__contacts-list a {
    color: var(--link);
    text-decoration: none;
    transition: var(--transition);
}

.legal__contacts-list a:hover {
    color: var(--secondary);
}

/* ============================================================
   GALLERY (блок контактов) - ИСПРАВЛЕННЫЙ
   ============================================================ */
.legal__gallery {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery__wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.gallery__track {
    display: flex;
    gap: 18px;
    transition: transform 0.4s ease;
    will-change: transform;
    padding: 4px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery__slide {
    flex: 0 0 auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-light);
}

.gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 20px;
}

.gallery__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.gallery__btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.gallery__icon {
    display: block;
    width: 20px;
    height: 20px;
}

/* ============================================================
   CENTERS (диализные центры и услуги)
   ============================================================ */
.centers {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
}

.centers__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.centers__item {
    display: grid;
    grid-template-columns: 1.27fr 1fr 1fr;
    gap: 24px;
    padding: 40px 70px;
    background: var(--bg-light);
}

.centers__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.centers__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.centers__name {
    font-size: 22px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
}

.centers__address {
    font-size: 14px;
    color: var(--text);
    line-height: 1.2;
}

.centers__management {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.centers__management-item {
    font-size: 14px;
    line-height: 1.5;
}

.centers__management-label {
    color: var(--text-light);
}

.centers__management-value {
    color: var(--primary);
    font-weight: 500;
}

.centers__contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.centers__contacts-item {
    font-size: 14px;
    line-height: 1.5;
}

.centers__contacts-label {
    color: var(--text-light);
}

.centers__contacts-value {
    color: var(--primary);
    font-weight: 500;
}

.centers__contacts-value a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.centers__contacts-value a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.centers__empty {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

.centers__services {
    grid-column: 1 / -1;
    background-color: var(--white);
    padding: 24px 40px;
}

.centers__services-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.centers__services-category {
    margin-bottom: 16px;
}

.centers__services-category:last-child {
    margin-bottom: 0;
}

.centers__services-category-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.centers__services-list {
    display: flex;
    flex-direction: column;
}

.centers__services-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    flex-wrap: wrap;
}

.centers__services-name {
    flex: 1;
    font-size: 15px;
    color: var(--primary);
    min-width: 200px;
}

.centers__services-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    white-space: nowrap;
}

.dc-service_btn {
    background-color: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: 6px;
    padding: 11px 17px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1;
    text-transform: uppercase;
}

.dc-service_btn:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.dc-service_btn:active {
    transform: scale(0.96);
}

/* ============================================================
   DOCS (лицензии)
   ============================================================ */
.docs {
    padding: 65px 0;
    position: relative;
}

.docs__title {
    margin-bottom: 24px;
}

.docs__title h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.docs-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.docs-slider {
    overflow: hidden;
    padding: 10px 0 20px;
    position: relative;
}

.docs-slider__track {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform 0.4s ease;
}

.docs-slider__slide {
    flex-shrink: 0;
}

.docs-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
}

.docs-slider__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.docs-slider__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.docs-slider__btn:hover:not(:disabled) {
    opacity: 0.7;
}

.docs-slider__icon {
    display: block;
    width: 20px;
    height: 20px;
}

.doc-item * {
    margin: 0;
}

.doc-item__link {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 15px 20px;
    text-decoration: none;
    text-align: center;
    color: var(--white);
}

.doc-item__link::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary);
    transition: var(--transition);
}

.doc-item__link:hover::before {
    background: #374756;
}

.doc-item__link:hover .doc-item__img::after,
.doc-item__link:hover .doc-item__img::before {
    opacity: 1;
}

.doc-item__img {
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0 auto 18px;
    max-width: 100%;
    width: 200px;
    max-height: 135px;
}

.doc-item__img::after,
.doc-item__img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition);
}

.doc-item__img::before {
    background: rgba(255, 255, 255, 0.8);
}

.doc-item__img::after {
    margin: auto;
    width: 50px;
    height: 50px;
    border: 2px solid #374756;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23374756" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>') no-repeat center;
    background-size: 30px;
}

.doc-item__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-item__head {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupIn 0.3s ease;
}

.popup-overlay.popup-closing {
    animation: popupOut 0.3s ease;
}

.popup-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: popupImageIn 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
    font-family: Arial, sans-serif;
}

.popup-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

@keyframes popupIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes popupImageIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   INFO (справочная информация)
   ============================================================ */
.info {
    margin: 75px 0;
}

.info .container {
    min-height: 400px;
}

.info-tabs {
    position: relative;
    z-index: 1;
    padding: 40px 98px;
    background: var(--bg-light);
}

.info-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px -14px;
}

.info-tabs__btn {
    display: inline-block;
    flex: 1 1 auto;
    margin: 0 7px 14px;
    padding: 15px 17px;
    background: #374756;
    border: none;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    transition: background-color .4s, color .4s;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.info-tabs__btn:hover,
.info-tabs__btn.active {
    background: var(--secondary);
}

.info-tabs__panel {
    padding: 45px 0 0 60px;
    display: none;
}

.info-tabs__panel.active {
    display: block;
}

.info-accordion__item {
    position: relative;
    z-index: 0;
    margin-bottom: 5px;
}

.info-accordion__header {
    cursor: pointer;
    position: relative;
    padding-left: 20px;
    margin: 0;
    text-decoration: underline;
    color: var(--link);
    background: none;
    border: none;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    width: 100%;
    text-align: left;
    transition: color .3s, text-decoration .3s;
}

.info-accordion__header::before {
    content: '•';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.75em;
    line-height: 16px;
}

.info-accordion__header:hover {
    text-decoration: none;
}

.info-accordion__item.active .info-accordion__header {
    text-decoration: none;
    color: var(--primary);
}

/* скрываем иконки и стрелки, которых нет в старом дизайне */
.info-accordion__icon,
.info-accordion__arrow {
    display: none;
}

.info-accordion__body {
    padding: 25px 20px 20px;
    display: none;
}

.info-accordion__item.active .info-accordion__body {
    display: block;
}

.info-accordion__body .content:last-child {
    margin-bottom: 0;
}

.info-accordion__body td {
    padding: 10px;
}

/* ссылки внутри контента – обычные, без кнопок */
.info-accordion__content a {
    color: var(--link);
    text-decoration: underline;
}

.info-accordion__content a:hover {
    text-decoration: none;
    color: var(--secondary);
}

.info-accordion__file-size {
    font-weight: 400;
    opacity: 0.8;
}

.info-accordion__image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
}

.info-accordion__empty {
    color: var(--text-light);
    font-style: italic;
}

/* список документов из общего инфоблока */
.info-accordion__docs-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-accordion__docs-list li+li {
    margin-top: 12px;
}

.info-accordion__content+.info-accordion__docs {
    margin-top: 15px;
}

/* Подпись значения: у пункта может быть несколько блоков — например, таблица
   специалистов на каждый диализный центр */
.info-accordion__content+.info-accordion__content {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #dde4ec);
}

.info-accordion__subtitle {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    overflow: hidden;
}

.container-header {
    max-width: 1235px;
    margin: 0 auto;
}

.footer__grid {
    display: flex;
    width: 100%;
}

.footer__left {
    position: relative;
    z-index: 1;
    flex: 0 0 30%;
    max-width: 30%;
    padding: 35px 80px 40px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer__left::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    height: 100%;
    width: 100vw;
    background: var(--bg-light);
}

.footer__logo {
    display: inline-block;
    max-width: 250px;
    width: 100%;
    margin-right: auto;
    line-height: 0;
}

.footer__logo-img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer__right {
    position: relative;
    z-index: 1;
    flex: 0 0 70%;
    max-width: 70%;
    padding: 53px 0 17px 70px;
    margin-top: 65px;
    color: #969ca2;
}

.footer__right::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100vw;
    background: #374756;
}

.footer-new__contacts {
    display: flex;
    flex-direction: column;
}

.footer-new__copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.footer-new__copy-left {
    display: flex;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.footer__copy--desktop {
    margin: 0;
    color: #969ca2;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.footer__copy--desktop p {
    margin: 0;
}

.footer__copy--mobile {
    display: none;
}

.footer-banner {
    flex-shrink: 0;
    line-height: 0;
}

.footer-new__banner-img {
    max-width: 159px;
    display: block;
    height: auto;
}

/* ============================================================
   MODALS (формы)
   ============================================================ */
.overlay,
.overlay--header,
.overlay--message {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    height: 100%;
    width: 100%;
    z-index: 9998;
    background-color: rgba(0, 0, 0, 0.5);
}

.mc-modal__services,
.mc-modal__services--header,
.mc-modal__services--message {
    overflow-y: auto;
    max-height: 85vh;
    position: fixed;
    left: 50%;
    top: 50%;
    display: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 425px;
    padding: 13px 25px 25px 25px;
    background-color: #f8f7f4;
    border-radius: 15px;
    animation: fade 0.3s both;
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.mc-modal__services__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mc-modal__services__header h5 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-contact__close,
.modal-contact__close--header,
.modal-contact__close--message {
    margin-left: auto;
    width: 24px;
    height: 24px;
    background: #BF0707;
    position: relative;
    display: block;
    z-index: 200;
    text-indent: -9999px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-contact__close::before,
.modal-contact__close::after,
.modal-contact__close--header::before,
.modal-contact__close--header::after,
.modal-contact__close--message::before,
.modal-contact__close--message::after {
    content: '';
    width: 20px;
    height: 2px;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s ease-out;
}

.modal-contact__close::after,
.modal-contact__close--header::after,
.modal-contact__close--message::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-contact__close:hover::before,
.modal-contact__close:hover::after,
.modal-contact__close--header:hover::before,
.modal-contact__close--header:hover::after,
.modal-contact__close--message:hover::before,
.modal-contact__close--message:hover::after {
    background: #f0f0f0;
}

.mc-modal__services form,
.mc-modal__services--header form,
.mc-modal__services--message form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.mc-modal__services form label,
.mc-modal__services--header form label,
.mc-modal__services--message form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.mc-modal__services form input,
.mc-modal__services form textarea,
.mc-modal__services form select,
.mc-modal__services--header form input,
.mc-modal__services--header form textarea,
.mc-modal__services--header form select,
.mc-modal__services--message form input,
.mc-modal__services--message form textarea,
.mc-modal__services--message form select {
    grid-column: 1 / -1;
    width: 100%;
    background-color: #E6E6E6;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    resize: none;
    font-size: 14px;
}

.mc-modal__services form input::placeholder,
.mc-modal__services form textarea::placeholder,
.mc-modal__services--header form input::placeholder,
.mc-modal__services--header form textarea::placeholder,
.mc-modal__services--message form input::placeholder,
.mc-modal__services--message form textarea::placeholder {
    color: #8f8f8f;
}

.mc-modal__services form input:focus,
.mc-modal__services form textarea:focus,
.mc-modal__services--header form input:focus,
.mc-modal__services--header form textarea:focus,
.mc-modal__services--message form input:focus,
.mc-modal__services--message form textarea:focus {
    outline: none;
    border: 2px solid #4CAF50;
}

/* .mc-modal__services form input:invalid,
.mc-modal__services--header form input:invalid,
.mc-modal__services--message form input:invalid {
    border: 1px solid red;
} */
.modal-contact__input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.modal-contact__input-container input,
.modal-contact__input-container textarea {
    padding-right: 40px;
}

.delete-input {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.modal-contact__input-container textarea~.delete-input {
    top: 12px;
    transform: none;
}

.disclaimer {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
    gap: 8px;
}

.checkbox input[type="checkbox"] {
    width: 13px;
    height: 15px;
    margin-top: 2px;
    appearance: none;
    border: 2px solid #5d5b5b;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.checkbox input[type="checkbox"]:checked {
    background-color: #5d5b5b;
}

.checkbox input[type="checkbox"]:checked::after {
    content: "\2714";
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox label {
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox label a {
    color: #4d8dce;
}

#submitBtn,
#header_submitBtn,
#message_submitBtn {
    background-color: #BF0707;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.3s ease;
}

#submitBtn:hover,
#header_submitBtn:hover,
#message_submitBtn:hover {
    background-color: #8C0202;
}

#submitBtn:disabled,
#header_submitBtn:disabled,
#message_submitBtn:disabled {
    background-color: #5d5b5b;
    cursor: not-allowed;
}

#secondModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#secondModal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 530px;
    position: relative;
    text-align: center;
}

#secondModal .modal-content h5 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

#secondModal .modal-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

#secondModal button {
    background-color: #BF0707;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

#secondModal button:hover {
    background-color: #8C0202;
}

.mc-modal__services .modal-contact__select,
.mc-modal__services--header .modal-contact__select {
    width: 100%;
    background-color: #E6E6E6;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235d5b5b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.mc-modal__services .modal-contact__select:disabled,
.mc-modal__services--header .modal-contact__select:disabled {
    color: #8f8f8f;
    cursor: not-allowed;
    opacity: 0.7;
}

.mc-modal__services .modal-contact__select:focus,
.mc-modal__services--header .modal-contact__select:focus {
    outline: none;
    border: 2px solid #4CAF50;
}

.mc-modal__services .modal-contact__select option,
.mc-modal__services--header .modal-contact__select option {
    padding: 8px;
}

/* ============================================================
   MEDIA QUERIES (все адаптивы собраны здесь)
   ============================================================ */

/* 1024px */
@media (max-width: 1024px) {
    .legal__inner {
        gap: 40px;
    }

    .gallery__slide {
        width: 275px;
        max-width: 275px;
    }
}

/* 992px */
@media (max-width: 992px) {
    body {
        padding-top: 110px;
    }

    .header {
        height: auto;
    }

    .header__logo img {
        height: 30px;
    }

    .legal {
        padding: 60px 0;
    }

    .legal__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal__description {
        max-width: 100%;
    }

    .legal__contacts {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0 30px;
    }

    .legal__contacts-group {
        padding: 0;
    }

    .gallery__slide {
        width: 275px;
        max-width: 275px;
    }

    .centers__item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .docs {
        padding: 50px 0;
    }

    .docs-slider__icon {
        width: 18px;
        height: 18px;
    }
}

/* 768px */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }

    .container {
        padding: 0 16px;
    }

    .header__top {
        height: 43px;
        border: none;
    }

    .header__contacts {
        display: none;
    }

    .header__mobile-top {
        display: flex;
    }

    .header__mobile-top .header__slabvid {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .header__mobile-bottom {
        display: flex;
        border: none;
    }

    .header__bottom {
        display: none;
    }

    .header__slabvid--desktop {
        display: none;
    }

    .mobile-menu {
        top: 110px;
    }

    .header__buttons {
        display: none;
    }

    .header__logo img {
        height: 24px;
    }

    .header__mobile-bottom {
        height: 36px;
        gap: 8px;
    }

    .header__slabvid-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-menu {
        top: 96px;
    }

    .mobile-menu__inner {
        padding: 30px 16px;
    }

    .top-box__container {
        padding: 0;
    }

    .top-box {
        padding: 25px 16px 12px;
        margin-top: 12px;
    }

    .top-box h1 {
        font-size: 24px;
    }

    .legal {
        padding: 40px 0;
    }

    .legal__title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .legal__description {
        font-size: 13px;
    }

    .legal__contacts {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .legal__contacts-group {
        padding: 0;
    }

    .legal__contacts-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .legal__contacts-list li {
        font-size: 13px;
    }

    .legal__gallery {
        margin: 0;
    }

    .gallery__slide {
        width: 275px;
        max-width: 275px;
    }

    .gallery__controls {
        gap: 16px;
        padding-top: 16px;
    }

    .gallery__icon {
        width: 18px;
        height: 18px;
    }

    .gallery__counter {
        font-size: 13px;
        min-width: 48px;
    }

    .centers {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .centers__item {
        padding: 20px;
    }

    .centers__name {
        font-size: 18px;
    }

    .centers__services {
        padding: 24px;
    }

    .centers__services-title {
        font-size: 20px;
    }

    .centers__services-category-title {
        font-size: 16px;
    }

    .centers__services-item {
        gap: 10px;
        padding: 8px 0;
    }

    .centers__services-name {
        font-size: 14px;
        min-width: unset;
        flex: 1 1 100%;
    }

    .dc-service_btn {
        font-size: 12px;
        padding: 11px 17px;
    }

    .docs__title h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .docs-slider {
        padding: 10px 0 10px;
    }

    .docs-slider__controls {
        gap: 16px;
        padding-top: 16px;
    }

    .docs-slider__icon {
        width: 17px;
        height: 17px;
    }

    .doc-item__img {
        width: 150px;
        max-height: 100px;
    }

    .info {
        margin: 40px 0;
    }

    .info-tabs {
        padding: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .info-tabs__nav {
        flex-direction: column;
        border-bottom: none;
        gap: 4px;
        margin-bottom: 20px;
    }

    .info-tabs__btn {
        padding: 10px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        font-size: 15px;
        margin-bottom: 0;
    }

    .info-tabs__panel {
        padding: 20px 0 0;
    }

    .info-accordion__header {
        font-size: 15px;
    }

    .info-accordion__body {
        padding: 16px;
    }

    .info-accordion__content {
        font-size: 14px;
    }

    .info-accordion__text {
        max-height: 300px;
    }

    .footer__grid {
        flex-direction: column;
    }

    .footer__left {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 35px 20px 20px 20px !important;
        justify-content: flex-start;
    }

    .footer__logo {
        max-width: 160px;
    }

    .footer__right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 24px 16px !important;
        margin-top: 0 !important;
    }

    .footer__copy--desktop {
        display: none;
    }

    .footer__copy--mobile {
        display: block;
        margin: 0;
        color: #969ca2;
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
        width: 100%;
    }

    .footer__copy--mobile p {
        margin: 0;
    }

    .footer-new__copy-left {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    .footer-new__banner-img {
        max-width: 159px;
    }
}

/* 767px (специфично для info) */
@media only screen and (max-width: 767px) {
    .info-tabs__nav {
        justify-content: center;
    }

    .info-tabs__btn {
        min-width: 150px;
        flex: 1 1 auto;
    }

    .info-tabs__panel {
        padding: 40px 0 0;
    }
}


/* 480px */
@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }

    .header__logo img {
        height: 20px;
    }

    .header__mobile-bottom {
        height: 32px;
        gap: 0;
        padding: 2px 0;
    }

    .header__slabvid-icon {
        width: 18px;
        height: 18px;
    }

    .burger {
        width: 36px;
        height: 36px;
        padding: 0;
        background: transparent;
        border: 2px solid var(--primary);
        transition: 0.25s;
    }

    .burger span {
        background: var(--secondary);
        width: 20px;
        height: 4px;
    }


    .mobile-menu {
        top: 86px;
    }

    .mobile-menu__inner {
        padding: 20px 16px;
    }

    .legal {
        padding: 30px 0;
    }

    .legal__title {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .legal__description {
        font-size: 12px;
        line-height: 1.7;
    }

    .legal__contacts-list li {
        font-size: 12px;
    }

    .gallery__slide {
        width: 275px;
        max-width: 275px;
    }

    .gallery__controls {
        gap: 12px;
        padding-top: 14px;
    }

    .gallery__icon {
        width: 16px;
        height: 16px;
    }

    .gallery__counter {
        font-size: 12px;
        min-width: 40px;
    }

    .centers {
        padding: 30px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .centers__item {
        padding: 16px;
    }

    .footer__left {
        padding: 25px 16px 16px 16px !important;
    }

    .footer__logo {
        max-width: 130px;
    }

    .footer__copy--mobile {
        font-size: 12px;
    }

    .footer-new__banner-img {
        max-width: 120px;
    }

    .footer-new__copy-left {
        gap: 12px;
    }
}

/* 380px */
@media (max-width: 380px) {
    .gallery__slide {
        width: 275px;
        max-width: 275px;
    }

    .gallery__controls {
        gap: 10px;
    }

    .gallery__icon {
        width: 14px;
        height: 14px;
    }

    .gallery__counter {
        font-size: 11px;
        min-width: 36px;
    }
}

/* 375px */
@media (max-width: 375px) {

    .mc-modal__services,
    .mc-modal__services--header,
    .mc-modal__services--message {
        width: 96%;
        padding: 10px 10px 15px;
    }

    .footer-new__banner-img {
        max-width: 100px;
    }

    .footer__logo {
        max-width: 110px;
    }

    .footer__copy--mobile {
        font-size: 11px;
    }
}

/* Специфичные медиа для info (1379px) – оставляем в конце */
@media only screen and (max-width: 1379px) {
    .info-tabs__nav {
        margin: 0 -7px -14px;
    }

    .info-tabs__btn {
        font-size: 16px;
    }
}


/* ============================================================
   HEADER - ИСПРАВЛЕНИЕ ВЫСОТЫ НА МОБИЛЬНЫХ
   ============================================================ */

/* Десктоп */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    height: 120px;
    box-shadow: var(--shadow);
}


/* 768px */
@media (max-width: 768px) {
    .header {
        padding: 6px 0;
    }


    .header__mobile-bottom {
        min-height: 64px;
        padding: 2px 0;
    }

    .header__logo img {
        height: 24px;
    }

}

/* 480px */
/* @media (max-width: 480px) {

  
    .header__logo img {
        height: 20px;
    }
    
} */


/* ============================================================
   GALLERY - АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ============================================================ */

/* Планшеты и ниже (≤768px) */
@media (max-width: 768px) {
    .legal__right {
        max-width: 100%;
        /* убираем ограничение, чтобы блок не выпадал */
    }

    .legal__gallery {
        margin-top: 5px;
    }

    .gallery__controls {
        gap: 16px;
        padding-top: 16px;
    }

    .gallery__icon {
        width: 18px;
        height: 18px;
    }
}

/* Телефоны (≤480px) */
@media (max-width: 480px) {
    .legal__gallery {
        margin-top: 10px;
    }

    .gallery__controls {
        gap: 12px;
        padding-top: 14px;
    }

    .gallery__icon {
        width: 16px;
        height: 16px;
    }
}


/* ============================================================
   GALLERY (блок контактов)
   ============================================================ */

.legal__gallery {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.gallery__wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.gallery__track {
    display: flex;
    gap: 18px;
    transition: transform 0.4s ease;
    will-change: transform;
    padding: 4px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery__slide {
    flex: 0 0 auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-light);

}

.gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 20px;
}

.gallery__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.gallery__btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.gallery__icon {
    display: block;
    width: 20px;
    height: 20px;
}

/* ============================================================
   GALLERY - АДАПТИВ
   ============================================================ */

@media (max-width: 768px) {
    .legal__right {
        max-width: 100%;
        overflow: hidden;
    }

    .legal__gallery {
        max-width: 100%;
        overflow: hidden;
    }

    .gallery__wrapper {
        max-width: 100%;
        overflow: hidden;
    }

    .gallery__controls {
        gap: 16px;
        padding-top: 16px;
    }

    .gallery__icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .legal__gallery {
        margin-top: 10px;
    }

    .gallery__controls {
        gap: 12px;
        padding-top: 14px;
    }

    .gallery__icon {
        width: 16px;
        height: 16px;
    }
}



/* услуги адаптив */
@media (max-width: 768px) {
    .centers__services-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        padding: 8px 0;
    }

    .centers__services-name {
        flex: 0 1 auto;
        font-size: 14px;
        min-width: unset;
        margin-right: auto;
    }

    .centers__services-price {
        flex: 0 0 auto;
        font-size: 14px;
        white-space: nowrap;
    }

    .dc-service_btn {
        flex: 0 0 100%;
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .centers__services-item {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .centers__services-name {
        font-size: 13px;
        flex: 0 1 auto;
        max-width: 60%;
    }

    .centers__services-price {
        font-size: 13px;
        flex: 0 0 auto;
    }

    .dc-service_btn {
        flex: 0 0 100%;
        width: 100%;
        padding: 8px 14px;
        font-size: 11px;
    }
}
/* End */


/* Start:/local/components/dializ/cookie-notice/templates/.default/style.css?17882615682098*/
/* Переменные (--bg-light, --secondary, --link и прочие) объявлены в :root
   шаблона сайта, в assets/css/main.css */

.cookie-notice {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* ниже шапки (1000) и модальных окон (9998+): плашку они перекрывают */
    z-index: 900;
    background: var(--bg-light);
    border-top: 1px solid #dde4ec;
    box-shadow: 0 -2px 10px rgba(16, 24, 40, 0.05);
}

.cookie-notice--visible {
    display: block;
}

.cookie-notice__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.cookie-notice__text {
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 20px;
    color: #667085;
}

.cookie-notice__text p + p {
    margin-top: 14px;
}

.cookie-notice__text a {
    color: var(--link);
    text-decoration: underline;
}

.cookie-notice__text a:hover {
    text-decoration: none;
    color: var(--secondary);
}

/* Кнопка своя, не .btn: в макете подпись без верхнего регистра */
.cookie-notice__btn {
    flex: 0 0 auto;
    min-width: 115px;
    height: 44px;
    padding: 0 18px;
    background: var(--secondary);
    border: 1px solid var(--secondary);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-notice__btn:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

@media (max-width: 768px) {
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px 0;
    }

    .cookie-notice__text {
        font-size: 14px;
        line-height: 18px;
        /* на узких экранах текст разрастается на пол-экрана */
        max-height: 40vh;
        overflow-y: auto;
    }

    .cookie-notice__text p + p {
        margin-top: 10px;
    }

    .cookie-notice__btn {
        width: 100%;
    }
}

/* End */
/* /local/templates/main/assets/css/main.css?178790833246714 */
/* /local/components/dializ/cookie-notice/templates/.default/style.css?17882615682098 */
