/* ════════════════════════════════════════════
   CONTACTS PAGE — contacts.css
   All classes prefixed with `contacts-`
   Globals (nav, footer, breadcrumb) live in style.css
   ════════════════════════════════════════════ */

html, body {
    background: white;
}

/* ══════════════════════════════════════════
   PAGE TITLE
   ══════════════════════════════════════════ */

.contacts-title {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    line-height: normal;
    padding: 30px 50px 40px;
}

/* ══════════════════════════════════════════
   MAP + CARDS ROW
   ══════════════════════════════════════════ */

.contacts-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 50px 60px;
}

/* Map */
.contacts-map-wrap {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

.contacts-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.contacts-map-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -0.1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    max-width: calc(100% - 40px);
}

.contacts-map-badge__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

/* 2×2 grid of cards */
.contacts-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Base card */
.contacts-card {
    border-radius: 32px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 230px;
    background: #f4f4f4;
    cursor: pointer;
    transition: background 0.25s ease;
}

.contacts-card--dark {
    background: #111;
}

/* Hover: light cards go dark */
.contacts-card:not(.contacts-card--dark):hover {
    background: #111;
}

/* Card top row: label + icon */
.contacts-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.ymaps-2-1-79-copyrights-pane {
    display: none;
}

/* Label */
.contacts-card__label {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    letter-spacing: -0.1px;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.contacts-card--dark .contacts-card__label {
    color: #fff;
}

.contacts-card:not(.contacts-card--dark):hover .contacts-card__label {
    color: #fff;
}

/* Icon wrapper */
.contacts-card__icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacts-card__icon-wrap--orange {
    background: #ff7d01;
}

.contacts-card__icon-wrap img,
.contacts-card__icon-wrap svg {
    width: 28px;
    height: 28px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Social icons row */
.contacts-card__socials {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: auto;
}

.contacts-card__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    transition: opacity 0.2s;
}

.contacts-card__social-link:hover {
    opacity: 0.75;
}

/* Social icons — orange by default */
.contacts-card__social-link img {
    width: 40px;
    height: 40px;
    display: block;
    filter: brightness(0) saturate(100%) invert(51%) sepia(95%) saturate(1200%) hue-rotate(1deg) brightness(103%);
    transition: filter 0.25s ease;
}

/* On dark card hover, keep icons orange */
.contacts-card--dark .contacts-card__social-link img {
    filter: brightness(0) saturate(100%) invert(51%) sepia(95%) saturate(1200%) hue-rotate(1deg) brightness(103%);
}

/* Info text */
.contacts-card__info {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.contacts-card__value {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.1px;
    line-height: 1.6;
    transition: color 0.25s ease;
}

.contacts-card:not(.contacts-card--dark):hover .contacts-card__value {
    color: #fff;
}

a.contacts-card__value:hover {
    color: #ff7d01;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .contacts-top {
        grid-template-columns: 1fr;
    }

    .contacts-map-wrap {
        height: 400px;
    }

    .contacts-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .contacts-top,
    .contacts-form-section {
        padding-left: 28px;
        padding-right: 28px;
    }

    .contacts-title {
        padding-left: 28px;
        padding-right: 28px;
    }

    .contacts-form-wrap {
        grid-template-columns: 1fr;
    }

    .contacts-form-img {
        display: none;
    }

    .contacts-form {
        padding: 40px 32px;
    }
}

@media (max-width: 640px) {
    .contacts-title {
        font-size: 36px;
        padding: 24px 20px 28px;
    }

    .contacts-top {
        padding: 0 20px 40px;
        gap: 16px;
    }

    .contacts-map-wrap {
        height: 320px;
    }

    .contacts-cards {
        grid-template-columns: 1fr;
    }

    .contacts-card {
        min-height: 180px;
        padding: 28px 24px;
    }

    .contacts-card__label {
        font-size: 20px;
    }

    .contacts-form-section {
        padding: 0 20px 50px;
    }

    .contacts-form {
        padding: 28px 20px;
        gap: 20px;
    }

    .contacts-form__submit {
        height: 64px;
        font-size: 20px;
    }
}
