/* Стили для страницы контактов */

/* Breadcrumbs */
.breadcrumbs {
    padding: 22px 0;
}

/* Contacts */
.contacts {
    padding-top: 10px;
    padding-bottom: 20px;
}

.contacts__columns {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

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

.contacts__main {
    padding-right: 20px;
}

@media (max-width: 768px) {
    .contacts__main {
        padding-right: 0;
    }
}

.contacts__item {
    padding: 20px 0;
    border-bottom: 1px solid #E1E4E9;
}

@media (min-width: 1230px) {
    .contacts__item {
        padding: 24px 0;
    }
}

.contacts__item:last-of-type {
    border-bottom-width: 0;
}

.contacts__title {
    margin: 0;
    padding-bottom: 20px;
    font-size: 14px;
    font-weight: 400;
    color: #0F162E;
    text-transform: uppercase;
}

.contacts__phone-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacts__phone-item {
    padding-bottom: 10px;
}

.contacts__phone {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #0F162E;
    text-decoration: none;
    transition-duration: 0.2s;
    transition-property: opacity;
}

.contacts__phone[href]:active {
    opacity: 0.5;
}

.contacts__phone[href]:hover {
    opacity: 0.7;
    cursor: pointer;
}

.contacts__phone-info {
    font-size: 12px;
    font-weight: 400;
    color: #4B536F;
    margin-top: 10px;
}

/* Стили для адреса на странице контактов - более специфичный селектор */
.contacts .contacts__main .contacts__address {
    font-size: 16px;
    font-weight: 400;
    color: #0F162E;
    /* Переопределяем стили из nalog-styles.css для страницы контактов */
    position: static !important;
    left: auto !important;
    top: auto !important;
    padding: 0 !important;
    width: auto !important;
    margin: 0 !important;
}

.contacts .contacts__main .contacts__address::before {
    display: none !important;
}

/* Переопределяем медиа-запросы из nalog-styles.css */
@media (min-width: 992px) {
    .contacts .contacts__main .contacts__address {
        position: static !important;
        left: auto !important;
        top: auto !important;
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

@media (min-width: 1170px) {
    .contacts .contacts__main .contacts__address {
        position: static !important;
        left: auto !important;
        top: auto !important;
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

@media (min-width: 1230px) {
    .contacts .contacts__main .contacts__address {
        position: static !important;
        left: auto !important;
        top: auto !important;
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

@media (min-width: 1800px) {
    .contacts .contacts__main .contacts__address {
        position: static !important;
        left: auto !important;
        top: auto !important;
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    .contacts .contacts__main .contacts__address {
        position: static !important;
        left: auto !important;
        top: auto !important;
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

@media (max-width: 766px) {
    .contacts .contacts__main .contacts__address {
        position: static !important;
        left: auto !important;
        top: auto !important;
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }
}

.contacts__buttons {
    margin-top: 20px;
}

.buttons__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.button {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #2866D3;
    border-radius: 20px;
    background-color: transparent;
    color: #2866D3;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition-property: border-color, color;
}

.button:hover {
    border-color: #071F4E;
    background-color: transparent;
    color: #071F4E;
}

.button--round-contour {
    border-radius: 20px;
}

/* Schedule */
.schedule {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.schedule__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule__one {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 6px;
}

.schedule__days {
    flex-shrink: 0;
    display: block;
    min-width: 82px;
    margin-right: 15px;
    padding: 6px 8px;
    border-radius: 8px;
    background-color: #427FEA;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}

.schedule__time {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0F162E;
}

/* Requisites */
.contacts__requisites {
    background-color: #F6F6F7;
    border-radius: 24px;
    padding: 30px;
}

@media (max-width: 768px) {
    .contacts__requisites {
        padding: 20px;
    }
}

.requisites {
    padding: 0;
}

.requisites__headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.requisites__headline .site-title {
    margin: 0;
}

.requisites__copy {
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background-color: #ffffff;
    background-image: url("/static/images/icon-copy.svg");
    background-repeat: no-repeat;
    background-position: center;
    transition-duration: 0.2s;
    transition-property: opacity;
    cursor: pointer;
}

.requisites__copy:focus {
    outline: 0;
}

.requisites__copy:active {
    opacity: 0.5;
}

.requisites__copy:hover {
    opacity: 0.7;
}

.requisites__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requisites__item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.requisites__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.requisites__text {
    margin: 0;
    font-size: 14px;
    color: #0F162E;
}

.requisites__text:first-child {
    min-width: 200px;
    font-weight: 500;
    color: #666;
}

.requisites__text:last-child {
    font-weight: 600;
}

/* Modal для карты контактов */
.modal--map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.modal--wide .modal__content {
    width: 90%;
    max-width: 1000px;
    height: 80%;
}

.modal__content {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__closer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    background-image: url("../images/icon-close.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px auto;
}

.modal__closer:hover {
    background-color: #e0e0e0;
}

.modal--wide .modal__closer__map {
    border-radius: 0 0 0 20px;
    background-color: #ffffff;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
}

.modal__closer__map {
    margin: 0;
    padding: 0;
    border: 0;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 0 0 0 20px;
    background-color: #ffffff;
    background-image: url("../images/icon-close.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px auto;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    transition-duration: 0.2s;
    transition-property: opacity;
}

.modal__closer__map:focus {
    outline: 0;
}

.modal__closer__map:active {
    opacity: 0.5;
}

.modal__closer__map:hover {
    opacity: 0.7;
}

.map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.map .contacts__map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.map .contacts__map {
    width: 100%;
    height: 100%;
}

/* Site title */
.site-title {
    font-size: 32px;
    font-weight: 700;
    color: #0F162E;
    margin: 0 0 30px 0;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 24px;
    }
}

/* Copy notification */
.copy-notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #2866D3;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999999 !important;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto;
}

.copy-notification:hover {
    background: #1e4a9e;
    transform: translateX(0) scale(1.02);
}

/* Modal open body */
body.modal-open {
    overflow: hidden !important;
}
