@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:opsz,wght@5..120,600;5..120,700&display=swap');

:root {
    --ink: #1d1037;
    --ink-deep: #120721;
    --violet: #54218a;
    --violet-light: #7e4faf;
    --gold: #c99a42;
    --gold-light: #f3da91;
    --paper: #fdfbfd;
    --surface: #fff;
    --mist: #f6f1fa;
    --muted: #6d6579;
    --line: #e8e0ee;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(25, 8, 49, .11);
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto
}

.skip-link {
    position: fixed;
    z-index: 100;
    left: 18px;
    top: -70px;
    padding: 10px 15px;
    border-radius: 10px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
    transition: top .2s
}

.skip-link:focus {
    top: 0
}

:focus-visible {
    outline: 3px solid rgba(201, 154, 66, .5);
    outline-offset: 4px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.04;
    letter-spacing: -.042em
}

h1 {
    font-size: clamp(3.1rem, 6.4vw, 6.1rem)
}

h2 {
    font-size: clamp(2.35rem, 4.2vw, 4rem)
}

h3 {
    font-size: 1.17rem;
    line-height: 1.25
}

.lead {
    max-width: 650px;
    font-size: clamp(1.04rem, 1.55vw, 1.22rem);
    line-height: 1.72;
    color: var(--muted)
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--gold);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase
}

.eyebrow:before {
    width: 27px;
    height: 1px;
    background: currentColor;
    content: ''
}

.site-header {
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;
    color: #fff;
    transition: background .25s, box-shadow .25s, transform .25s
}

.nav {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .16)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: .01em
}

.brand img {
    width: 220px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(13px, 2.1vw, 28px);
    font-size: .76rem;
    font-weight: 600
}

.nav-links a {
    position: relative;
    padding: 9px 0;
    opacity: .86;
    transition: opacity .2s
}

.nav-links a:not(.nav-cta):after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 1px;
    background: var(--gold-light);
    content: '';
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
    opacity: 1
}

.nav-links a:hover:after,
.nav-links a[aria-current='page']:after {
    transform: scaleX(1);
    transform-origin: left
}

.nav-cta {
    margin-left: 3px;
    padding: 10px 16px !important;
    border: 1px solid rgba(243, 218, 145, .75);
    border-radius: 999px;
    transition: background .2s, transform .2s !important
}

.nav-cta:hover {
    background: rgba(255, 255, 255, .11);
    transform: translateY(-2px)
}

.menu-toggle {
    display: none;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer
}

.site-header.scrolled {
    position: fixed;
    background: rgba(24, 10, 47, .89);
    box-shadow: 0 8px 28px rgba(10, 3, 20, .2);
    backdrop-filter: blur(16px)
}

.site-header.scrolled .nav {
    min-height: 72px;
    border-bottom-color: rgba(255, 255, 255, .08)
}

.hero {
    position: relative;
    display: flex;
    min-height: 1060px;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, rgba(20, 7, 40, .94), rgba(42, 13, 72, .72) 45%, rgba(37, 11, 64, .16)), url('header.png') center/cover no-repeat
}

.hero:before {
    position: absolute;
    top: 18%;
    right: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(243, 218, 145, .3);
    border-radius: 50%;
    content: ''
}

.hero:after {
    position: absolute;
    right: -2%;
    bottom: -1px;
    left: -2%;
    height: 300px;
    background: linear-gradient(to bottom, rgba(253, 251, 253, 0) 0%, rgba(253, 251, 253, .025) 28%, rgba(253, 251, 253, .1) 51%, rgba(253, 251, 253, .3) 73%, rgba(253, 251, 253, .72) 90%, var(--paper) 100%);
    content: '';
    pointer-events: none;
    filter: blur(.35px)
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 88px;
    max-width: 770px
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 24px;
    text-wrap: balance
}

.hero .lead {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, .8)
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--gold);
    color: #24113e;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease
}

.button:hover {
    box-shadow: 0 13px 28px rgba(201, 154, 66, .28);
    transform: translateY(-3px)
}

.button.secondary {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    backdrop-filter: blur(6px)
}

.button.secondary:hover {
    background: rgba(255, 255, 255, .14);
    box-shadow: none
}

.button.dark {
    background: var(--ink);
    color: #fff
}

.button.dark:hover {
    background: var(--violet);
    box-shadow: 0 13px 28px rgba(29, 16, 55, .2)
}

.section {
    position: relative;
    padding: 112px 0
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 45px;
    margin-bottom: 52px
}

.section-heading>div {
    max-width: 700px
}

.section-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--muted)
}

.intro-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: min(10vw, 130px);
    align-items: start
}

.intro-grid h2 {
    max-width: 620px
}

.intro-grid .lead {
    margin: 8px 0 0
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.service-card {
    position: relative;
    display: flex;
    min-height: 282px;
    flex-direction: column;
    overflow: hidden;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fff, #fdfaff);
    box-shadow: 0 3px 0 rgba(29, 16, 55, .01);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s, border-color .35s
}

.service-card:before {
    position: absolute;
    top: 0;
    right: 32px;
    left: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .42s ease
}

.service-card:hover {
    border-color: rgba(201, 154, 66, .5);
    box-shadow: var(--shadow);
    transform: translateY(-7px)
}

.service-card:hover:before {
    transform: scaleX(1)
}

.service-card .number {
    margin-bottom: 43px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em
}

.service-card h3 {
    max-width: 260px;
    margin-bottom: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    letter-spacing: -.025em
}

.service-card p {
    max-width: 380px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65
}

.service-card a {
    margin-top: auto;
    color: var(--violet);
    font-size: .88rem;
    font-weight: 700
}

.service-card a:after {
    margin-left: 8px;
    color: var(--gold);
    content: '→';
    transition: margin .2s
}

.service-card a:hover:after {
    margin-left: 13px
}

.dark-band {
    overflow: hidden;
    background: radial-gradient(circle at 90% 20%, #4e207b 0, transparent 32%), var(--ink);
    color: #fff
}

.dark-band .lead {
    color: rgba(255, 255, 255, .7)
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.trust-item {
    padding-top: 23px;
    border-top: 1px solid rgba(243, 218, 145, .35)
}

.trust-item strong {
    display: block;
    margin-bottom: 7px;
    color: var(--gold-light);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: -.025em
}

.trust-item span {
    color: rgba(255, 255, 255, .68);
    font-size: .92rem
}

.cta-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 58px clamp(27px, 6vw, 78px);
    border-radius: 28px;
    background: linear-gradient(125deg, #1b0c33, #552087);
    color: #fff;
    box-shadow: var(--shadow)
}

.cta-panel:after {
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(243, 218, 145, .28);
    border-radius: 50%;
    content: ''
}

.cta-panel>* {
    position: relative;
    z-index: 1
}

.cta-panel h2 {
    max-width: 680px;
    margin-bottom: 14px
}

.cta-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .72)
}

.site-footer {
    background: #11071f;
    color: #fff;
    padding: 60px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.footer-grid h3 {
    margin-bottom: 14px;
    color: var(--gold-light);
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, .63);
    font-size: .89rem
}

.footer-grid a:hover {
    color: #fff
}

.footer-links {
    display: grid;
    gap: 8px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 21px;
    color: rgba(255, 255, 255, .42);
    font-size: .76rem
}

.intro-grid+.service-grid {
    margin-top: 58px
}

.process-section {
    background: linear-gradient(180deg, #fff 0%, #faf7fc 100%)
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none
}

.process-list li {
    position: relative;
    min-height: 220px;
    padding: 27px;
    border-top: 1px solid var(--gold);
    background: rgba(255, 255, 255, .6)
}

.process-list>li>span {
    display: block;
    margin-bottom: 36px;
    color: var(--gold);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .16em
}

.process-list h3 {
    margin-bottom: 9px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: -.02em
}

.process-list p {
    margin: 0;
    color: var(--muted);
    font-size: .91rem
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 178px 0 104px;
    background: radial-gradient(circle at 83% 8%, rgba(126, 79, 175, .55), transparent 29%), linear-gradient(125deg, #170a2c, #3d1664);
    color: #fff
}

.page-hero:after {
    position: absolute;
    right: -135px;
    bottom: -250px;
    width: 530px;
    height: 530px;
    border: 1px solid rgba(243, 218, 145, .24);
    border-radius: 50%;
    content: ''
}

.page-hero .container {
    position: relative;
    z-index: 1
}

.page-hero h1 {
    max-width: 850px;
    margin-bottom: 20px;
    text-wrap: balance
}

.page-hero .lead {
    color: rgba(255, 255, 255, .78)
}

.breadcrumbs {
    margin-bottom: 27px;
    color: rgba(255, 255, 255, .55);
    font-size: .78rem
}

.breadcrumbs a:hover {
    color: var(--gold-light)
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
    gap: min(8vw, 105px);
    align-items: start
}

.copy h2 {
    margin: 47px 0 17px
}

.copy h2:first-of-type {
    margin-top: 0
}

.copy p {
    max-width: 710px;
    color: var(--muted)
}

.feature-list {
    display: grid;
    gap: 11px;
    margin: 31px 0;
    padding: 0;
    list-style: none
}

.feature-list li {
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    font-size: .93rem;
    font-weight: 600
}

.feature-list li:before {
    margin-right: 11px;
    color: var(--gold);
    content: '✦'
}

.aside-card {
    position: sticky;
    top: 96px;
    padding: 31px;
    border: 1px solid #ebe2ef;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fbf8fd, #f2eafa);
    box-shadow: 0 17px 38px rgba(49, 20, 81, .07)
}

.aside-card h3 {
    margin: 0 0 13px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    letter-spacing: -.035em
}

.aside-card p {
    margin-bottom: 23px;
    color: var(--muted);
    font-size: .9rem
}

.contact-grid {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: min(8vw, 100px);
    align-items: start
}

.contact-details {
    display: grid;
    gap: 28px;
    margin-top: 37px
}

.contact-details div {
    padding-left: 19px;
    border-left: 1px solid var(--gold)
}

.contact-details strong {
    display: block;
    margin-bottom: 3px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.12rem
}

.contact-details span {
    color: var(--muted);
    font-size: .9rem
}

.form-card {
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px
}

.field {
    display: grid;
    gap: 7px
}

.field.full {
    grid-column: 1/-1
}

.field label {
    font-size: .82rem;
    font-weight: 700
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dcd2e3;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: .94rem;
    transition: border-color .2s, box-shadow .2s
}

.field textarea {
    min-height: 150px;
    resize: vertical
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(201, 154, 66, .14)
}

.form-note {
    margin: 15px 0;
    color: var(--muted);
    font-size: .78rem
}

.form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .87rem
}

.form-status.show {
    display: block
}

.form-status.success {
    background: #e6f6eb;
    color: #1f6b3e
}

.form-status.error {
    background: #fff0ee;
    color: #a6312c
}

body.page-leaving main,
body.page-leaving footer {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .28s ease, transform .28s ease
}

@media (max-width:980px) {
    .nav-links {
        gap: 13px;
        font-size: .7rem
    }

    .intro-grid,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px
    }

    .aside-card {
        position: static
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid>div:first-child {
        grid-column: 1/-1
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:720px) {
    .container {
        width: min(var(--max), calc(100% - 30px))
    }

    .nav {
        min-height: 73px
    }

    .brand img {
        width: 76px;
        height: 38px
    }

    .menu-toggle {
        display: block
    }

    .nav-links {
        position: fixed;
        top: 76px;
        right: 15px;
        left: 15px;
        display: none;
        align-items: stretch;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 16px;
        background: rgba(24, 10, 47, .98);
        box-shadow: 0 20px 45px rgba(9, 3, 17, .3);
        backdrop-filter: blur(16px)
    }

    .nav-links.open {
        display: flex;
        flex-direction: column
    }

    .nav-links a {
        padding: 10px 8px;
        font-size: .86rem
    }

    .nav-cta {
        margin: 4px 0 0;
        text-align: center
    }

    .site-header.scrolled .nav {
        min-height: 66px
    }

    .hero {
        min-height: 700px;
        background-position: 58% center
    }

    .hero:before {
        right: -240px;
        width: 380px;
        height: 380px
    }

    .hero-content {
        padding-top: 75px
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 4.15rem)
    }

    .hero-actions {
        display: grid
    }

    .hero-actions .button {
        width: 100%
    }

    .section {
        padding: 78px 0
    }

    .section-heading {
        display: block;
        margin-bottom: 34px
    }

    .section-heading p {
        margin-top: 17px
    }

    .service-grid,
    .trust-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .service-card {
        min-height: 240px;
        padding: 28px
    }

    .cta-panel {
        display: block;
        padding: 38px 25px
    }

    .cta-panel .button {
        width: 100%;
        margin-top: 25px
    }

    .page-hero {
        padding: 136px 0 76px
    }

    .page-hero h1 {
        font-size: clamp(2.85rem, 13vw, 4.2rem)
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .footer-grid>div:first-child {
        grid-column: auto
    }

    .footer-bottom {
        display: block
    }

    .footer-bottom span {
        display: block;
        margin-top: 8px
    }

    .form-card {
        padding: 25px 20px
    }
}

@media (max-width:720px) {
    .process-list {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .process-list li {
        min-height: 0;
        padding: 22px
    }

    .process-list>li>span {
        margin-bottom: 20px
    }
}

.media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 7vw, 92px);
    align-items: center
}

.media-grid.reverse>div:first-child {
    order: 2
}

.media-grid.reverse>div:last-child {
    order: 1
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--mist);
    box-shadow: 0 24px 55px rgba(25, 8, 49, .13)
}

.image-frame img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.image-frame.tall img {
    aspect-ratio: 4/5
}

.image-frame:after {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(243, 218, 145, .48);
    border-radius: 20px;
    content: '';
    pointer-events: none
}

.content-section {
    padding: 0 0 112px
}

.content-section h2 {
    max-width: 700px;
    margin-bottom: 20px
}

.content-section p {
    max-width: 760px;
    color: var(--muted)
}

.content-section .eyebrow {
    margin-bottom: 18px
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none
}

.check-grid li {
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font-size: .92rem
}

.check-grid li:before {
    margin-right: 10px;
    color: var(--gold);
    content: '✓';
    font-weight: 700
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px
}

.stat {
    padding: 24px;
    border-top: 2px solid var(--gold);
    background: rgba(255, 255, 255, .66)
}

.stat strong {
    display: block;
    margin-bottom: 5px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem
}

.stat span {
    color: var(--muted);
    font-size: .88rem
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 850px;
    margin: 0;
    padding: 0;
    list-style: none
}

.faq-list li {
    padding: 21px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff
}

.faq-list strong {
    display: block;
    margin-bottom: 7px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.18rem
}

.faq-list span {
    color: var(--muted);
    font-size: .92rem
}

.nav-cta {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--ink) !important;
    opacity: 1 !important
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--ink) !important
}

.dark-band .faq-list strong {
    color: var(--ink)
}

.image-frame.full-image img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain
}

.page-hero:before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    content: '';
    opacity: .15;
    mix-blend-mode: screen;
    filter: grayscale(.2) contrast(.86)
}

.page-ciudadanias .page-hero:before {
    background-image: url('migraciones1.png')
}

.page-aduanero .page-hero:before {
    background-image: url('aduana1.png')
}

.page-marcas .page-hero:before {
    background-image: url('marcas1.png')
}

.page-genealogia .page-hero:before {
    background-image: url('genealogia1.png')
}

.page-sobre .page-hero:before {
    background-image: url('nosotros1.png')
}

.page-contacto .page-hero:before {
    background-image: url('contacto.png')
}

.page-hero:after {
    z-index: 0
}

.page-hero .container {
    z-index: 1
}

@media (max-width:720px) {
    .page-hero:before {
        background-position: center;
        opacity: .1;
        mix-blend-mode: screen
    }
}

@media (max-width:720px) {

    .media-grid,
    .stats-grid {
        grid-template-columns: 1fr
    }

    .media-grid.reverse>div:first-child,
    .media-grid.reverse>div:last-child {
        order: initial
    }

    .content-section {
        padding-bottom: 78px
    }

    .check-grid {
        grid-template-columns: 1fr
    }

    .image-frame img {
        aspect-ratio: 4/3
    }

    .image-frame.tall img {
        aspect-ratio: 4/5
    }
}