.equipment-in-action {
    --equipment-purple: #54365d;
    --equipment-yellow: #fda624;
    background: var(--equipment-purple);
    color: #fff;
    padding: clamp(44px, 6vw, 88px) 0;
}

.equipment-in-action__heading {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
}

.equipment-in-action h2 {
    font-weight: 700;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.08;
    color: inherit;
}

.equipment-in-action__heading p {
    max-width: 650px;
    margin: 10px 0 0;
    font-size: 17px;
    line-height: 1.5;
}

.equipment-in-action__cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 2);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--equipment-yellow) var(--equipment-purple);
}

.equipment-case {
    display: flex;
    flex-direction: column;
    min-width: 0;
    scroll-snap-align: start;
    overflow: hidden;
    background: #fff;
    color: #252529;
    border-radius: 6px 6px 0 0;
}

.equipment-case__poster {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #2f2434;
}

.equipment-case__poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-case__play {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--equipment-yellow);
    box-shadow: 0 2px 16px #0004;
    transition: background-color .15s ease;
}

.equipment-case__play::after {
    content: '';
    border: solid transparent;
    border-width: 9px 0 9px 14px;
    border-left-color: #29212c;
    margin-left: 3px;
}

.equipment-case__poster:is(:hover, :focus-visible) .equipment-case__play {
    background: #ffbc52;
}

.equipment-case__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(16px, 2.3vw, 28px);
}

.equipment-case h3 {
    font-weight: 700;
    font-size: clamp(22px, 2.15vw, 29px);
    line-height: 1.15;
    color: #222;
}

.equipment-case__place,
.equipment-case__model {
    margin: 7px 0 0;
    font-size: 15px;
    line-height: 1.4;
}

.equipment-case__place {
    color: #585259;
}

.equipment-case__model {
    color: var(--equipment-purple);
    font-weight: 700;
}

.equipment-case__details {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--equipment-yellow);
    background: #f6f3f7;
    font-size: 15px;
    line-height: 1.5;
}

.equipment-case__details dt {
    font-weight: 700;
}

.equipment-case__details dd {
    margin: 0;
}

.equipment-case__quote {
    margin: 4px 0 0;
}

.equipment-case__quote blockquote {
    margin: 0;
    color: var(--equipment-purple);
    font-weight: 500;
}

.equipment-case__quote figcaption {
    margin-top: 5px;
    color: #585259;
    font-size: 14px;
    line-height: 1.4;
}

.equipment-case__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: auto;
}

.equipment-case__links a {
    color: var(--equipment-purple);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.equipment-in-action__intro {
    width: 100%;
}

.equipment-in-action__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.equipment-in-action__arrows:not([hidden]) {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.equipment-in-action__arrows button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    border: 1px solid #ffffff70;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 32px/1 'Roboto', sans-serif;
    cursor: pointer;
}

.equipment-in-action__arrows button:disabled {
    opacity: .52;
    cursor: default;
}

.equipment-in-action__arrows button:not(:disabled):hover {
    background: var(--equipment-yellow);
    border-color: var(--equipment-yellow);
    color: #29212c;
}

.equipment-in-action :focus-visible {
    outline: 2px solid var(--equipment-yellow);
    outline-offset: -3px;
}

.equipment-case__links a:focus-visible {
    outline-offset: 3px;
}

.equipment-video-dialog .fancybox-slide--iframe {
    padding: 44px 12px;
}

.equipment-video-dialog .fancybox-slide--iframe .fancybox-content {
    width: min(100%, 1040px);
    width: min(100%, 1040px, calc((100dvh - 88px) * 16 / 9));
    height: auto;
    aspect-ratio: 16 / 9;
}

.about-gallery {
    opacity: 1;
    top: 0;
    padding-top: 32px;
    scroll-margin-top: 150px;
}

.about-gallery .agrouspeh-gallery-thumb {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.about-gallery .agrouspeh-gallery-preview {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.about-gallery .slider-video .agrouspeh-gallery-thumb {
    padding-bottom: 56.25%;
}

.about-gallery .agrouspeh-gallery-thumb .video-preview {
    z-index: 1;
}

.about-gallery .slider-gallery,
.about-gallery .slider-video {
    margin-bottom: 0;
    padding-bottom: 56px;
}

.about-gallery .slider-gallery .slick-arrow:not(.slick-hidden),
.about-gallery .slider-video .slick-arrow:not(.slick-hidden) {
    display: block !important;
    top: auto;
    bottom: 0;
    width: 44px;
    height: 44px;
    margin: 0;
}

.about-gallery .slick-arrow.slick-prev {
    left: calc(50% - 50px);
}

.about-gallery .slick-arrow.slick-next {
    right: calc(50% - 50px);
}

@media (max-width: 767px) {
    .equipment-in-action {
        padding-block: 36px;
    }

    .equipment-in-action > .center {
        width: 100%;
        max-width: 560px;
        min-width: 0;
        padding-inline: clamp(28px, 8vw, 42px);
    }

    .equipment-in-action__heading {
        display: block;
        margin-bottom: 16px;
    }

    .equipment-in-action h2 {
        font-size: clamp(28px, 7.7vw, 34px);
        text-wrap: balance;
    }

    .equipment-in-action__summary {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        margin-top: 10px;
        min-height: 44px;
    }

    .equipment-in-action__heading p {
        grid-area: 1 / 2;
        margin: 0;
        font-size: clamp(15px, 4vw, 16px);
        line-height: 1.35;
        text-align: center;
        text-wrap: balance;
    }

    .equipment-in-action__arrows:not([hidden]) {
        display: contents;
    }

    .equipment-in-action__arrows [data-equipment-step="-1"] {
        grid-area: 1 / 1;
    }

    .equipment-in-action__arrows [data-equipment-step="1"] {
        grid-area: 1 / 3;
    }

    .equipment-in-action__arrows button,
    .equipment-in-action__arrows button:not(:disabled):hover {
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--equipment-yellow);
    }

    .equipment-in-action__arrows button span {
        box-sizing: border-box;
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        padding-bottom: 3px;
        border: 1px solid currentColor;
        border-radius: 50%;
        font-size: 28px;
    }

    .equipment-in-action__arrows button:disabled {
        color: #ffffff80;
        opacity: 1;
    }

    .equipment-in-action__arrows button:not(:disabled):active span {
        border-color: var(--equipment-yellow);
        background: var(--equipment-yellow);
        color: #29212c;
    }

    .equipment-in-action__cards {
        grid-auto-columns: 100%;
        gap: 12px;
        scrollbar-width: none;
    }

    .equipment-in-action__cards::-webkit-scrollbar {
        display: none;
    }

    .equipment-case {
        border-radius: 8px;
        scroll-snap-stop: always;
    }

    .equipment-case__play {
        width: 50px;
        height: 50px;
    }

    .equipment-case__body {
        padding: 15px;
    }

    .equipment-case__details {
        gap: 9px;
        padding: 12px;
    }

    .about-gallery > .center,
    .about-gallery .toggle > .center {
        width: calc(100% - 32px);
        min-width: 0;
    }

    .about-gallery {
        scroll-margin-top: 120px;
    }

    .about-gallery .title-nav {
        flex-wrap: wrap;
        gap: 12px 18px;
        margin-bottom: 22px;
    }

    .about-gallery .title-nav .nav {
        padding-left: 0;
    }

    .about-gallery .title-nav .nav ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding-block: 0;
    }

    .about-gallery .slider-gallery .item a {
        padding-bottom: 70%;
    }
}
