/* Оформление галереи MEGA, изолированное от остальных блоков. */
.mega-showcase {
--blue: #12378e;
    --deep: #102a75;
    --red: #ff1537;
    --ink: #182645;
    --muted: #687188;
    --paper: #f5f7fb;
    --line: #dce3ef
}

.mega-showcase * {
box-sizing: border-box
}

.mega-showcase {
margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Cambria, Georgia, serif !important
}

.mega-showcase button,
.mega-showcase a {
-webkit-tap-highlight-color: transparent
}

.mega-showcase button {
font: inherit
}

.mega-showcase a {
color: inherit
}

.mega-showcase button:focus-visible,
.mega-showcase a:focus-visible {
outline: 2px solid var(--red);
    outline-offset: 5px
}

.mega-showcase button {
cursor: pointer
}

.mega-showcase .wrap {
width: min(1180px, calc(100% - 64px));
    margin: auto
}

.mega-showcase .intro {
padding: 68px 0 56px
}

.mega-showcase .eyebrow {
font: 11px/1.5 Arial, sans-serif;
    letter-spacing: .18em !important;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 17px;
    display: flex;
    align-items: center;
    gap: 12px
}

.mega-showcase .eyebrow:before {
content: "";
    width: 24px;
    height: 2px;
    background: var(--red)
}

.mega-showcase .intro h2,
.mega-showcase h2,
.mega-showcase h3,
.mega-showcase p {
margin-top: 0
}

.mega-showcase .intro h2,
.mega-showcase h2 {
font-weight: 400 !important;
    letter-spacing: -.035em !important;
    line-height: 1.07 !important
}

.mega-showcase .intro h2 {
font-size: clamp(38px, 4.4vw, 62px) !important;
    margin-bottom: 0
}

.mega-showcase h2 {
font-size: clamp(34px, 3.5vw, 49px) !important
}

.mega-showcase .intro-head {
display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 90px;
    align-items: end
}

.mega-showcase .intro-head p {
font-size: 20px !important;
    line-height: 1.55 !important;
    color: var(--muted);
    margin: 0 0 3px
}

.mega-showcase .intro-head strong {
color: var(--ink);
    font-weight: 400 !important
}

.mega-showcase .filters {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 26px
}

.mega-showcase .filters button {
border: 1px solid var(--line);
    background: #fff;
    color: #63708a;
    border-radius: 30px;
    padding: 9px 18px;
    font-size: 16px !important;
    transition: background .2s, color .2s
}

.mega-showcase .filters button[aria-pressed="true"] {
background: var(--deep);
    border-color: var(--deep);
    color: #fff
}

.mega-showcase .filters button:hover {
border-color: var(--blue)
}

.mega-showcase .gallery {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.mega-showcase .exhibit {
margin: 0;
    background: var(--paper);
    border-radius: 16px;
    overflow: visible;
    position: relative;
    padding: 24px 24px 20px
}

.mega-showcase .image-space {
height: 304px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px
}

.mega-showcase .image-space img {
max-height: 100%;
    max-width: 86%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 14px #102a751b);
    transition: transform .35s
}

.mega-showcase .exhibit:nth-child(1) .image-space img {
transform: rotate(-5deg)
}

.mega-showcase .exhibit:nth-child(3) .image-space img {
transform: rotate(5deg)
}

.mega-showcase .exhibit:hover {
z-index: 2
}

.mega-showcase .exhibit:hover .image-space img {
transform: translateY(-9px) rotate(0) scale(1.04)
}

.mega-showcase .exhibit figcaption {
border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: end
}

.mega-showcase .exhibit h3 {
font-size: 22px !important;
    font-weight: 400 !important;
    margin: 0 0 5px
}

.mega-showcase .exhibit p {
font: 12px/1.5 Arial, sans-serif;
    color: var(--muted);
    margin: 0
}

.mega-showcase .exhibit .num {
font-size: 14px !important;
    color: #9aa7bc
}

.mega-showcase .caption {
font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--muted);
    margin: 16px 0 0
}

@media(max-width:1000px) {
.mega-showcase .intro-head {
gap: 36px
}

.mega-showcase .image-space {
height: 240px
}
}

@media(max-width:700px) {
.mega-showcase .wrap {
width: calc(100% - 36px)
}

.mega-showcase .intro {
padding: 38px 0
}

.mega-showcase .intro-head {
grid-template-columns: 1fr;
        gap: 22px
}

.mega-showcase .intro-head p {
font-size: 18px !important
}

.mega-showcase .filters {
gap: 7px;
        margin: 24px 0 20px
}

.mega-showcase .filters button {
padding: 8px 12px;
        font-size: 14px !important
}

.mega-showcase .gallery {
gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr))
}

.mega-showcase .exhibit {
padding: 16px 12px
}

.mega-showcase .exhibit:first-child {
grid-column: 1/-1
}

.mega-showcase .exhibit:first-child .image-space {
height: 270px
}

.mega-showcase .image-space {
height: 192px
}

.mega-showcase .exhibit h3 {
font-size: 19px !important
}

.mega-showcase .exhibit p {
font-size: 10px !important
}

.mega-showcase .exhibit .num {
display: none
}

.mega-showcase .exhibit figcaption {
margin-top: 15px;
        padding-top: 12px
}
}

@media(prefers-reduced-motion:reduce) {
.mega-showcase * {
transition: none !important;
        scroll-behavior: auto !important
}

.mega-showcase .exhibit:hover .image-space img {
transform: none
}
}

.mega-showcase .gallery-nav {
display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 16px;
}

.mega-showcase .gallery-nav[hidden] {
display: none;
}

.mega-showcase .gallery-nav button {
display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font: 22px/1 Cambria, Georgia, serif;
}

.mega-showcase .gallery-nav button:disabled {
opacity: .3;
    cursor: default;
}

.mega-showcase .gallery-count {
color: var(--muted);
    font-size: 14px;
}

.mega-showcase img {
border: 0;
    border-radius: 0;
    box-shadow: none;
}

.mega-showcase .filters button {
line-height: 1.3;
    text-transform: none;
    font-family: Cambria, Georgia, serif;
    box-shadow: none;
}

.mega-showcase .exhibit h3 {
font-family: Cambria, Georgia, serif !important;
    line-height: 1.2 !important;
    color: var(--ink);
    letter-spacing: normal;
    text-transform: none;
}

.mega-showcase h2 {
font-family: Cambria, Georgia, serif !important;
    color: var(--ink);
    text-transform: none;
}

@media(max-width:700px) {
.mega-showcase .gallery {
grid-template-columns: minmax(0, 1fr);
}

.mega-showcase .exhibit .image-space {
height: 270px;
}

.mega-showcase .exhibit h3 {
font-size: 22px !important;
}

.mega-showcase .exhibit p {
font-size: 12px !important;
}
}

.mega-showcase .gallery-nav[hidden] {
display: none !important;
}

.mega-showcase .filters button {
cursor: pointer;
}
