#contacts {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 40px 0 48px;
    background-color: #f5ead8;
    background-image: url('../images/contacts/silk-backdrop-v2.webp');
    background-position: center;
    background-size: cover;
}

#contacts .contacts__jewelry {
    position: absolute;
    z-index: 0;
    top: 0;
    right: max(0px, calc((100% - 1640px) / 2));
    bottom: 0;
    width: 460px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

#contacts .contacts__jewelry img { position: absolute; max-width: none; height: auto; }
#contacts .contacts__jewelry-pendant { top: -185px; right: -220px; width: 680px; }
#contacts .contacts__jewelry-earrings {
    top: 100px;
    right: -20px;
    width: 390px;
    transform: rotate(-12deg);
}
#contacts .contacts__jewelry-ring {
    right: -100px;
    bottom: -90px;
    width: 420px;
}

#contacts .contacts__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 500px);
    align-items: center;
    gap: 40px;
}

#contacts h1 {
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 60px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
}

#contacts h1::before {
    content: '';
    display: block;
    width: 58px;
    height: 2px;
    margin-bottom: 12px;
    background: #b28b58;
}

#contacts .contact-list li::before {
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(190, 145, 85, .24);
    background-size: 30px 30px;
    background-position: center;
    margin-right: 16px;
}

#contacts .contact-list .location::before { background-image: url('../images/contacts/map-pin.svg'); }
#contacts .contact-list .time::before { background-image: url('../images/contacts/clock-3.svg'); }
#contacts .contact-list .phone::before { background-image: url('../images/contacts/phone.svg'); }
#contacts .contact-list .contacts__address::before { background-image: url('../images/contacts/map-pinned.svg'); }

#contacts .contacts__details { min-width: 0; }
#contacts .contact-list { margin-top: 20px; }
#contacts .contact-list li {
    margin-bottom: 14px;
    font-size: 17px;
    line-height: 1.4;
}
#contacts .contact-list li a { font-size: 17px; line-height: 1.4; }
#contacts .contact-list .phone { margin-bottom: 0; }
#contacts .contact-list .phone a {
    font-size: 22px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
#contacts .contacts__details .list-inline {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 24px 0 0;
    padding: 0;
}
#contacts .contacts__details .list-inline-item { margin: 0; }
#contacts .contacts__details .list-inline .nav-link {
    display: block;
    width: 56px;
    height: 56px;
    padding: 0 !important;
}
#contacts .contacts__details .list-inline svg { display: block; width: 56px; height: 56px; }
#contacts .contacts__address { align-items: center; }
#contacts .contacts__address a { text-underline-offset: 4px; }
#contacts .contacts__address a:hover { text-decoration: underline; }
#contacts .contacts__address a:focus-visible {
    outline: 2px solid #a57747;
    outline-offset: 4px;
}

.contacts-map {
    position: relative;
    z-index: 0;
    isolation: isolate;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 24px;
    background: #e7e7e7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.contacts-map .leaflet-control-attribution {
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
}

.contacts-map .leaflet-marker-icon { filter: sepia(1) saturate(1.3); }
.contacts-map .contacts-map__label {
    width: max-content;
    max-width: 220px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    color: #242c3b;
}

@media (min-width: 1200px) and (max-width: 1399px) {
    #contacts .contacts__jewelry { width: 240px; }
    #contacts .contacts__jewelry-pendant { width: 390px; top: -30px; right: -110px; }
    #contacts .contacts__jewelry-earrings { width: 250px; right: -45px; top: 155px; }
    #contacts .contacts__jewelry-ring { width: 320px; right: -110px; bottom: -20px; }
}

@media (max-width: 1199px) {
    #contacts { background-image: url('../images/contacts/suede-backdrop.webp'); }
    #contacts .contacts__jewelry { display: none; }
}

@media (max-width: 991px) {
    #contacts .contacts__layout { gap: 24px; }
    #contacts h1 { font-size: 48px; }
    #contacts .contact-list li,
    #contacts .contact-list li a { font-size: 16px; }
    #contacts .contact-list .phone a { font-size: 21px; }
    #contacts .contact-list li::before { min-width: 40px; height: 40px; background-size: 26px 26px; margin-right: 10px; }
    .contacts-map { height: 400px; }
}

@media (max-width: 767px) {
    #contacts { padding: 40px 0; }
    #contacts .contacts__layout { grid-template-columns: minmax(0, 1fr); padding-right: 20px; padding-left: 20px; gap: 24px; }
    #contacts h1 { font-size: 40px; }
    #contacts h1::before { margin-right: auto; margin-left: auto; }
    #contacts .contact-list li,
    #contacts .contact-list li a { font-size: 14px; }
    #contacts .contacts__details .list-inline { justify-content: center; }
    #contacts .contact-list .phone a { font-size: 21px; }
    #contacts .contact-list li::before { margin-right: auto; margin-left: auto; }
    .contacts-map { height: 300px; }
}
