/* .sr-fade-up,
.sr-fade-left,
.sr-fade-right,
.sr-scale-in,
.sr-stagger-up > * {
    backface-visibility: hidden;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .sr-fade-up,
    .sr-fade-left,
    .sr-fade-right,
    .sr-scale-in,
    .sr-stagger-up > * {
        will-change: auto;
    }
} */

.collar-title > span {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.45s ease;
}

.collar-title > span.collar-title-word--hidden {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .collar-title > span {
        transition: none;
    }
}

/* Cases: show five categories first and reveal the rest on demand. */
.cases-nav__extra {
    display: contents;
}

.cases-nav__extra[hidden] {
    display: none;
}

.cases-nav__toggle {
    border: 0;
    gap: 8px;
    cursor: pointer;
    font-family: inherit;
}

.cases-nav__toggle i {
    width: 7px;
    height: 7px;
    display: block;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s ease;
}

.cases-nav__toggle[aria-expanded="true"] i {
    transform: translateY(2px) rotate(225deg);
}

.practice-slide__gallery-link {
    display: none;
}

/* Home and Services archive: White collar crime forms its own two-column row. */
.collar-wrap--secondary {
    margin-top: 70px;
	display: block;
}

.collar-bar--secondary {
    position: static;
}

.collar-secondary__title {
    margin: 0;
    color: #A91B2E;
    font-family: "PlayfairDisplay", serif;
}

.collar-content--secondary .collar-list {
    margin-bottom: 0;
	margin-top: 20px;
}

.collar--services-archive {
    margin-top: 100px;
}

@media only screen and (max-width: 1200px) {
    .collar-wrap--secondary {
        margin-top: 50px;
    }

    .collar--services-archive {
        margin-top: 70px;
    }
}

@media only screen and (max-width: 720px) {
    .collar-wrap--secondary {
        margin-top: 35px;
    }

    .collar--services-archive {
        margin-top: 50px;
    }
}

.header-home-mobile__label,
.header-home-mobile__phone,
.header-home-mobile__logo {
    display: none;
}

@media only screen and (max-width: 720px) {
    .header--home-mobile .header-frame {
        display: grid;
        grid-template-columns: minmax(58px, 1fr) auto auto 28px;
        grid-template-areas:
            "label phone social burger"
            "logo logo logo logo";
        gap: 14px 10px;
    }

    .header--home-mobile .header-menu__wrap,
    .header--home-mobile > .header-frame > .header-phone {
        display: none;
    }

    .header--home-mobile .header-home-mobile__label {
        grid-area: label;
        display: block;
        color: #fff;
        font-size: 10px;
        line-height: 110%;
        letter-spacing: -0.2px;
    }

    .header--home-mobile .header-home-mobile__phone {
        grid-area: phone;
        display: block;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }

    .header--home-mobile .header-home-mobile__logo {
        grid-area: logo;
        width: 100%;
        display: block;
        margin-bottom: 30px;
    }

    .header--home-mobile .header-home-mobile__logo img {
        width: 100%;
        height: auto;
        display: block;
    }

    .header--home-mobile .social {
        grid-area: social;
        margin: 0;
        gap: 10px;
    }

    .header--home-mobile .burger {
        grid-area: burger;
        width: 28px;
        margin: 0;
    }

    .header--home-mobile + main .zuev {
        padding-top: 135px;
    }

    .banner-rating {
        display: none;
    }
}

/* Responsive tables in Gutenberg service content. */
.s-content-list figure.wp-block-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.s-content-list figure.wp-block-table > table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.s-content-list figure.wp-block-table th,
.s-content-list figure.wp-block-table td {
    width: 200px;
    max-width: 200px;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Service mega-menu: keep the two-column hierarchy usable with many services. */
.menu-drop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: max-content;
    column-gap: 30px;
    row-gap: 0;
    max-width: calc(100vw - 40px);
    overflow: visible;
}

.menu-drop__line_column {
    width: auto;
    min-width: 0;
    flex: none;
}

.menu-drop__column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-drop__title a {
    color: inherit;
    text-decoration: none;
}

.menu-drop__title a:hover {
    color: #A91B2E;
}

.menu-drop__item-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.menu-drop__item-title > a {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-drop__item-title > a .fa-arrow-down {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 4px;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu-drop__item_has-children,
.menu-drop__subitem_has-children {
    position: relative;
    width: fit-content;
    max-width: 100%;
}

.menu-drop__item_has-children::after,
.menu-drop__subitem_has-children::after {
    content: "";
    position: absolute;
    top: 0;
    right: -8px;
    width: 8px;
    height: 100%;
}

.menu-drop__item-nav {
    display: none;
    margin-top: 10px;
}

.menu-drop__item_has-children > ul.menu-drop__item-nav,
.menu-drop__subitem_has-children > ul.menu-drop__item-nav {
    width: 360px;
    max-width: calc(100vw - 40px);
    padding: 12px;
    margin: 0;
    box-sizing: border-box;
    position: absolute;
    z-index: 30;
    top: 0;
    left: calc(100% + 8px);
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    max-height: min(400px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #A91B2E transparent;
}

.menu-drop__item_has-children > ul.menu-drop__item-nav::-webkit-scrollbar,
.menu-drop__subitem_has-children > ul.menu-drop__item-nav::-webkit-scrollbar {
    width: 3px;
}

.menu-drop__item_has-children > ul.menu-drop__item-nav::-webkit-scrollbar-track,
.menu-drop__subitem_has-children > ul.menu-drop__item-nav::-webkit-scrollbar-track {
    background: transparent;
}

.menu-drop__item_has-children > ul.menu-drop__item-nav::-webkit-scrollbar-thumb,
.menu-drop__subitem_has-children > ul.menu-drop__item-nav::-webkit-scrollbar-thumb {
    background: #A91B2E;
    border-radius: 999px;
}

.menu-drop__item_has-children:hover > .menu-drop__item-nav,
.menu-drop__item_has-children:focus-within > .menu-drop__item-nav,
.menu-drop__subitem_has-children:hover > .menu-drop__item-nav,
.menu-drop__subitem_has-children:focus-within > .menu-drop__item-nav {
    display: block;
}

.menu-drop__item_has-children:hover > .menu-drop__item-title > a .fa-arrow-down,
.menu-drop__item_has-children:focus-within > .menu-drop__item-title > a .fa-arrow-down,
.menu-drop__subitem_has-children:hover > .menu-drop__item-title > a .fa-arrow-down,
.menu-drop__subitem_has-children:focus-within > .menu-drop__item-title > a .fa-arrow-down {
    color: rgba(255, 255, 255, 0.65);
    transform: rotate(180deg);
}

/* Keep every service link readable while it is being hovered. */
.header-menu li:hover > a,
.header-menu li:focus-within > a,
.header-nav__drop-item.active > a {
    color: #fff;
}

.header-menu li:hover > a .fa-arrow-down,
.header-menu li:focus-within > a .fa-arrow-down,
.header-nav__drop-item.active > a .fa-arrow-down {
    color: #fff;
}

.menu-drop__item-title:hover,
.menu-drop__item-title:focus-within {
    opacity: 1;
}

.menu-drop__item-title:hover > a,
.menu-drop__item-title:focus-within > a,
.menu-drop__item-nav li > a:hover,
.menu-drop__item-nav li > a:focus-visible {
    color: #fff;
}

.menu-drop__item-title:hover > a .fa-arrow-down,
.menu-drop__item-title:focus-within > a .fa-arrow-down {
    color: #fff;
}

.menu-drop__item-nav li {
    flex-wrap: wrap;
    align-items: flex-start;
}

.menu-drop__item-nav li.menu-drop__subitem_has-children > .menu-drop__item-title {
    width: 100%;
}

.menu-drop__item-nav li > ul {
    flex: 0 0 100%;
    margin: 10px 0 0 17px;
}

@media only screen and (max-width: 1200px) {
    .menu-drop {
        grid-template-columns: 1fr;
        max-width: calc(100vw - 30px);
    }

    .mob-drop-menu .menu-drop__column {
        gap: 10px;
        margin-bottom: 20px;
    }

    .mob-drop-menu .menu-drop__line_column {
        margin-bottom: 0;
    }

    .mob-drop-menu .menu-drop__item-nav {
        display: none;
        margin: 0;
        scrollbar-width: none;
    }

    .mob-drop-menu .menu-drop__item-nav::-webkit-scrollbar {
        display: none;
        width: 0;
    }

    .mob-drop-menu .menu-drop__item_has-children > ul.menu-drop__item-nav,
    .mob-drop-menu .menu-drop__subitem_has-children > ul.menu-drop__item-nav {
        display: none;
        position: static;
        width: auto;
        max-width: none;
        max-height: none;
        padding: 0;
        margin: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .mob-drop-menu .menu-drop__item_has-children.is-open > ul.menu-drop__item-nav,
    .mob-drop-menu .menu-drop__subitem_has-children.is-open > ul.menu-drop__item-nav {
        display: block;
    }

    .mob-drop-menu .menu-drop__item_has-children > .menu-drop__item-title > a .fa-arrow-down,
    .mob-drop-menu .menu-drop__subitem_has-children > .menu-drop__item-title > a .fa-arrow-down {
        display: inline-block !important;
        transition: transform 0.2s ease;
    }

    .mob-drop-menu .menu-drop__item_has-children.is-open > .menu-drop__item-title > a .fa-arrow-down,
    .mob-drop-menu .menu-drop__subitem_has-children.is-open > .menu-drop__item-title > a .fa-arrow-down {
        transform: rotate(180deg);
    }

    .mob-drop-menu .menu-drop__item-nav li > ul.menu-drop__item-nav {
        margin: 0;
    }
}

.case-person__photo {
	object-position: top;
}
.case-content a {
	color: #A91B2E;
}
