.contact-widget {
    z-index: 9997;
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 370px;
    font-family: PTSans, Arial, sans-serif;
}

.contact-widget__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    color: #191919;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    padding: 24px;
}

.contact-widget.is-open .contact-widget__panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-widget__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #575554;
    border: 0;
    border-radius: 4px;
    transition: background-color .2s ease, color .2s ease;
    padding: 0;
}

.contact-widget__close:hover {
    background-color: #f1f1f1;
    color: #bd261d;
}

.contact-widget__close:focus-visible,
.contact-widget__launcher:focus-visible,
.contact-widget__email:focus-visible,
.contact-widget__channel:focus-visible {
    outline: 2px solid #bd261d;
    outline-offset: 2px;
}

.contact-widget__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.contact-widget__heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 28px;
}

.contact-widget__heading-photo {
    background-color: #f1f1f1;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

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

.contact-widget__heading strong {
    display: block;
    font-family: Oswald, Arial, sans-serif;
    color: #111;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.25;
}

.contact-widget__heading > div {
    padding-top: 4px;
}

.contact-widget__heading span {
    display: block;
    color: #696969;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 2px;
}

.contact-widget__text {
    color: #4e4e4e;
    font-size: 15px;
    line-height: 1.45;
    margin: 18px 0;
}

.contact-widget__email {
    background-color: #bd261d;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color .2s ease;
    padding: 12px 14px;
}

.contact-widget__email:hover {
    background-color: #a51f17;
    color: #fff;
}

.contact-widget__email svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-widget__email strong,
.contact-widget__email small {
    display: block;
}

.contact-widget__email strong {
    font-size: 15px;
    line-height: 1.25;
}

.contact-widget__email small {
    opacity: .84;
    font-size: 12px;
    line-height: 1.25;
    margin-top: 2px;
}

.contact-widget__channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.contact-widget__channel {
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    text-decoration: none;
    border-radius: 6px;
    transition: opacity .2s ease;
    padding: 0 8px;
}

.contact-widget__channel:hover {
    opacity: .88;
    color: #fff;
}

.contact-widget__channel svg,
.contact-widget__channel img {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.contact-widget__channel svg {
    fill: currentColor;
}

.contact-widget__channel--whatsapp {
    background-color: #25d366;
}

.contact-widget__channel--max {
    background-color: #471aff;
    background-image: linear-gradient(135deg, #00bfff 0%, #471aff 55%, #9500ff 100%);
}

.contact-widget__channel--max img {
    object-fit: contain;
}

.contact-widget__channel--phone {
    background-color: #575554;
}

.contact-widget__channel--phone svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-widget__note {
    color: #777;
    font-size: 12px;
    line-height: 1.35;
    margin: 13px 0 0;
}

.contact-widget__launcher {
    position: relative;
    left: 100%;
    background-color: #bd261d;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 11px;
    box-sizing: border-box;
    cursor: pointer;
    color: #fff;
    text-align: left;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
    transform: translateX(-100%);
    transition: background-color .2s ease, box-shadow .2s ease;
    padding: 9px 15px;
}

.contact-widget__launcher:hover {
    background-color: #a51f17;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .22);
}

.contact-widget__launcher > svg {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-widget__launcher strong,
.contact-widget__launcher small {
    display: block;
}

.contact-widget__launcher strong {
    font-size: 15px;
    line-height: 1.2;
}

.contact-widget__launcher small {
    opacity: .82;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
}

@media screen and (max-width: 979px) {
    .contact-widget {
        display: none;
    }

    .header .contact-bar .col.contact-bar__phone {
        width: calc(100% - 96px);
    }

    .header .contact-bar .col.contact-bar__messenger {
        width: 48px;
    }

    .header .contact-bar .contact-bar__phone .phone {
        background-color: #575554;
        border-right: 0;
        padding-left: 12px;
    }

    .header .contact-bar .messenger-link {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        color: #fff;
    }

    .header .contact-bar .messenger-link--whatsapp {
        background-color: #25d366;
    }

    .header .contact-bar .messenger-link--max {
        background-color: #471aff;
        background-image: linear-gradient(135deg, #00bfff 0%, #471aff 55%, #9500ff 100%);
    }

    .header .contact-bar .messenger-link svg,
    .header .contact-bar .messenger-link img {
        width: 24px;
        height: 24px;
        display: block;
    }

    .header .contact-bar .messenger-link svg {
        fill: currentColor;
    }

    .header .contact-bar .messenger-link img {
        object-fit: contain;
    }
}
