/* DoGlass / Контакты / уведомление о временном режиме работы офиса.
   Самостоятельный слой: не меняет сетку и размеры существующих блоков. */

.dg-office-notice,
.dg-office-notice *,
.dg-office-notice *::before,
.dg-office-notice *::after {
    box-sizing: border-box;
}

.dg-office-notice[hidden] {
    display: none !important;
}

.dg-office-notice {
    --dg-on-yellow: #f9b000;
    --dg-on-white: #f6f5f2;
    --dg-on-muted: #c9c9c6;

    position: fixed;
    z-index: 10010;
    top: var(--dg-on-y, 50%);
    left: var(--dg-on-x, 50%);
    width: var(--dg-on-w, 436px);
    height: var(--dg-on-h, auto);
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 28px clamp(22px, 2.5vw, 35px);
    overflow-x: hidden;
    overflow-y: auto;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: var(--dg-on-radius, 28px);
    background: linear-gradient(149deg, #2d2c29 0%, #1c1c1b 48%, #141414 100%);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .64),
        0 8px 22px rgba(0, 0, 0, .30),
        0 0 0 1px rgba(249, 176, 0, .07);
    color: var(--dg-on-white);
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    text-align: left;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, calc(-50% + 18px)) scale(.975);
    transition:
        opacity .34s ease,
        visibility .34s ease,
        transform .46s cubic-bezier(.22, 1, .36, 1);
    will-change: transform, opacity;
}

.dg-office-notice.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.dg-office-notice::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -116px;
    right: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 176, 0, .19), transparent 67%);
    pointer-events: none;
}

.dg-office-notice::after {
    content: "";
    position: absolute;
    top: 0;
    right: 30px;
    left: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 176, 0, .62), transparent);
    pointer-events: none;
}

.dg-office-notice__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-height: 24px;
    padding-right: 39px;
}

.dg-office-notice__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e7d2a1;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.dg-office-notice__dot {
    display: inline-block;
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dg-on-yellow);
    box-shadow: 0 0 0 4px rgba(249, 176, 0, .11);
}

.dg-office-notice__dates {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 4px 9px;
    border: 1px solid rgba(249, 176, 0, .18);
    border-radius: 7px;
    background: rgba(249, 176, 0, .075);
    color: #ffd37c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.dg-office-notice__close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    min-width: 43px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 13px;
    background: rgba(255, 255, 255, .065);
    box-shadow: none;
    color: #e8e8e8;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.dg-office-notice__close:hover {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.dg-office-notice__close:active {
    transform: scale(.96);
}

.dg-office-notice__close svg {
    display: block;
    width: 19px;
    height: 19px;
}

.dg-office-notice__title {
    margin: 17px 0 10px !important;
    color: #fff !important;
    font-size: clamp(21px, 2.1vw, 25px) !important;
    font-weight: 850 !important;
    line-height: 1.22 !important;
    letter-spacing: -.037em;
}

.dg-office-notice__description {
    margin: 0 !important;
    color: rgba(255, 255, 255, .76) !important;
    font-size: 13px !important;
    font-weight: 500;
    line-height: 1.62 !important;
}

.dg-office-notice__description strong {
    color: #fff;
    font-weight: 750;
}

.dg-office-notice__services {
    display: grid;
    gap: 9px;
    margin: 18px 0 19px;
    padding: 14px 15px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    background: rgba(255, 255, 255, .045);
}

.dg-office-notice__service {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #ededeb;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.35;
}

.dg-office-notice__check {
    display: grid;
    flex: 0 0 17px;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(249, 176, 0, .15);
    color: #ffd179;
}

.dg-office-notice__check svg {
    width: 11px;
    height: 11px;
}

.dg-office-notice__hint {
    margin: 0 0 10px !important;
    color: rgba(255, 255, 255, .55) !important;
    font-size: 11px !important;
    font-weight: 650;
    line-height: 1.4 !important;
}

.dg-office-notice__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dg-office-notice a.dg-office-notice__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 43px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .075);
    box-shadow: none;
    color: #fff !important;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.dg-office-notice a.dg-office-notice__link:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 176, 0, .42);
    background: rgba(249, 176, 0, .12);
    color: #fff !important;
}

.dg-office-notice a.dg-office-notice__link:active {
    transform: translateY(0);
}

.dg-office-notice__link svg,
.dg-office-notice__link img {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.dg-office-notice__link--tg svg {
    color: #5cb8f0;
}

.dg-office-notice__link--wa svg {
    color: #59d98d;
}

.dg-office-notice .dg-office-notice__close:focus-visible,
.dg-office-notice a.dg-office-notice__link:focus-visible {
    outline: 2px solid var(--dg-on-yellow) !important;
    outline-offset: 3px;
}

/* Сдержанная ссылка рядом с адресом, всегда доступна после закрытия баннера. */
.dg-contact-info-row .dg-office-notice__reopen {
    display: inline-flex;
    align-items: center;
    align-self: start;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    min-height: 28px;
    margin: 8px 0 0;
    padding: 2px 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #f9b000 !important;
    font: 700 12px/1.4 "Manrope", Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, opacity .2s ease;
}

.dg-contact-info-row .dg-office-notice__reopen[hidden] {
    display: none !important;
}

.dg-contact-info-row .dg-office-notice__reopen span {
    color: inherit !important;
}

.dg-contact-info-row .dg-office-notice__reopen svg {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
}

.dg-contact-info-row .dg-office-notice__reopen:hover {
    color: #ffd36b !important;
}

.dg-contact-info-row .dg-office-notice__reopen:focus-visible {
    outline: 2px solid #f9b000 !important;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .dg-office-notice {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-width: none;
        justify-content: flex-start;
        max-height: min(90vh, 650px);
        max-height: min(90dvh, 650px);
        padding: 22px max(20px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
        border-width: 1px 0 0;
        border-radius: 23px 23px 0 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 -18px 72px rgba(0, 0, 0, .60), 0 -2px 22px rgba(0, 0, 0, .22);
        transform: translateY(calc(100% + 16px));
        -webkit-overflow-scrolling: touch;
    }

    .dg-office-notice.is-visible {
        transform: translateY(0);
    }

    .dg-office-notice::after {
        top: 7px;
        left: 50%;
        width: 36px;
        height: 4px;
        border-radius: 99px;
        background: rgba(255, 255, 255, .25);
        transform: translateX(-50%);
    }

    .dg-office-notice__head {
        padding-right: 42px;
    }

    .dg-office-notice__title {
        max-width: 340px;
        margin-top: 14px !important;
        font-size: clamp(21px, 5.7vw, 25px) !important;
    }

    .dg-office-notice__description {
        font-size: 12.5px !important;
    }

    .dg-office-notice__services {
        gap: 8px;
        margin: 15px 0;
        padding: 12px 13px;
    }

    .dg-office-notice__service {
        font-size: 12px;
    }

    .dg-office-notice__hint {
        margin-bottom: 9px !important;
    }

    .dg-office-notice a.dg-office-notice__link {
        min-height: 47px;
        font-size: 12px;
    }
}

@media (max-width: 359px) {
    .dg-office-notice {
        padding-right: 14px;
        padding-left: 14px;
    }

    .dg-office-notice__links {
        gap: 5px;
    }

    .dg-office-notice a.dg-office-notice__link {
        gap: 4px;
        padding: 7px 5px;
        font-size: 10.5px;
    }

    .dg-office-notice__link svg,
    .dg-office-notice__link img {
        flex-basis: 16px;
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dg-office-notice,
    .dg-office-notice__close,
    .dg-office-notice a.dg-office-notice__link {
        transition-duration: .01ms !important;
        animation: none !important;
    }
}
