:root {
    --black: #0A0A0A;
    --red: #FE2400;
    --cream: #FAF6EB;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--black);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.dark {
    background: var(--black);
    color: var(--cream);
}

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

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

.wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 132px;
}

@media (max-width: 1024px) {
    .wrap {
        padding: 0 40px;
    }
}

header {
    height: 64px;
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    background: var(--black);
    color: var(--cream);
    transition: transform .5s ease, visibility 0s;
}

header.hide {
    transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
    visibility: hidden;
    pointer-events: none;
    transition: transform .5s ease, visibility 0s linear .5s;
}

header .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    width: auto;
    height: 24px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .95;
    transition: color .2s;
}

nav a:hover,
nav a:focus-visible,
nav a.on {
    color: var(--red);
}

nav a.on {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

main {
    padding: 132px 0;
}

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

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

.card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, 50% 50%);
    pointer-events: none;
}

.ov {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 26px;
    color: var(--cream);
    background: linear-gradient(to top, rgba(10, 10, 10, .94) 0%, rgba(10, 10, 10, .62) 36%, rgba(10, 10, 10, 0) 72%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.ov b {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    transform: translateY(14px);
    transition: transform .35s ease;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    transform: translateY(14px);
    transition: transform .35s ease .05s;
}

.chips span {
    padding: 6px 12px;
    border: 1px solid rgba(250, 246, 235, .55);
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}

.chips .t {
    background: var(--red);
    border-color: var(--red);
}

.card:hover .ov,
.card:active .ov,
.card.on .ov {
    opacity: 1;
}

.card:hover .ov b,
.card:hover .chips,
.card:active .ov b,
.card:active .chips,
.card.on .ov b,
.card.on .chips {
    transform: none;
}

@media (hover: none) and (pointer: coarse) {
    .card {
        touch-action: pan-y pinch-zoom;
    }

    .card:hover:not(:active):not(.on) .ov {
        opacity: 0;
    }

    .card:hover:not(:active):not(.on) .ov b,
    .card:hover:not(:active):not(.on) .chips {
        transform: translateY(14px);
    }
}

.hero {
    aspect-ratio: 1138 / 368;
}

.half {
    aspect-ratio: 560 / 368;
}

footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 132px 0;
    background: var(--black);
    color: var(--cream);
}

footer .wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.f {
    display: grid;
    grid-template-columns: 1.96fr 1fr 1fr;
    column-gap: 0;
    row-gap: 0;
    align-items: start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 270px;
    height: 70px;
    border-radius: 5px;
    background: var(--red);
    color: var(--cream);
    font-size: 19px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color .2s, color .2s, transform .2s;
}

.btn:hover,
.btn:focus-visible {
    background: var(--cream);
    color: var(--red);
}

.btn:active {
    transform: scale(.98);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 6px;
    font-size: 16px;
    text-transform: uppercase;
}

.links a {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color .2s;
}

.links a:hover {
    color: var(--red);
}

.links svg {
    width: 21px;
    height: 21px;
    flex: none;
}

.tag {
    align-self: end;
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.info {
    align-self: end;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-transform: uppercase;
}

.row2 {
    align-items: end;
    margin-top: 132px;
}

.big {
    padding-top: 132px;
}

.big a {
    display: block;
}

.big img {
    width: 100%;
    height: auto;
}

.area {
    position: relative;
    scroll-margin-top: 80px;
}

.area::after {
    position: absolute;
    inset: -14px;
    border: 2px solid transparent;
    border-radius: 5px;
    content: "";
    pointer-events: none;
    transition: border-color .3s;
}

.area.mark::after {
    border-color: var(--red);
}

.row2 .area {
    justify-self: start;
}

.copyright {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-variant-emoji: text;
}

@media (max-width: 900px) {
    main {
        padding: 64px 0;
    }

    footer {
        padding: 72px 0 64px;
    }

    .f {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
        column-gap: 24px;
    }

    .f .btn {
        grid-column: 1 / -1;
    }

    .row2 {
        margin-top: 56px;
    }

    .tag {
        grid-column: 1 / -1;
    }

    .big {
        padding-top: 80px;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 0 16px;
    }

    nav {
        gap: 18px;
    }

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

    .btn {
        width: 100%;
        height: 60px;
        font-size: 17px;
    }

    .tag {
        font-size: 26px;
    }

    .links,
    .info {
        font-size: 14px;
    }

    .f {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .row2 {
        margin-top: 40px;
    }

    .big {
        padding-top: 64px;
    }

    .hero {
        aspect-ratio: 561 / 368;
    }

    .area::after {
        inset: -10px;
    }

    .ov {
        padding: 16px;
    }

    .ov b {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ov b,
    .chips {
        transform: none !important;
        transition: none !important;
    }
}