html {
    font-size: 100%;
}

html,
body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
}

a {
    width: -moz-fit-content;
    width: fit-content;
    --link-color: var(--color-black);
    --link-hover-text: var(--color-grey);
    color: var(--link-color);
    background-image:
        linear-gradient(var(--link-color), var(--link-color)),
        linear-gradient(var(--link-color), var(--link-color));
    background-size: 100% 1px, 100% 0;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    cursor: pointer;
    transition:
        background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1),
        color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

a:link,
a:visited {
    color: var(--link-color);
}

a:hover,
a:focus-visible {
    color: var(--link-hover-text);
    background-size: 0 0, 0 0;
}

.nav-item a {
    background-size: 0 0, 0 0;
}

.nav-item a:hover,
.nav-item a:focus-visible {
    color: var(--link-color);
    background-size: 100% 1px, 100% 0;
}

.nav-item a[aria-current] {
    background-size: 100% 1px, 100% 0;
}

.header {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.header svg {
    width: 128px;
}

.nav {
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 32px 64px;
    pointer-events: none;
    z-index: 9999;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    gap: 4px;
}

.nav-item {
    pointer-events: all;
}

.menu {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 32px;
    pointer-events: none;
    z-index: 9999;
}

.menu a {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: center;
    pointer-events: all;
}

.main {
    min-height: var(--doc-height);
}

.section {
    position: relative;
    min-height: var(--doc-height);
    padding: 216px 64px 144px;
}

main[data-snap] .section {
    min-height: var(--doc-height);
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    align-content: center;
    -moz-column-gap: 144px;
    column-gap: 144px;
}

.section-logo,
.section-text {
    grid-row: 1;
}

.section-logo {
    z-index: 1;
    justify-self: center;
}

.section-logo svg,
.section-logo img {
    display: block;
    width: calc(50vw - 144px);
    height: auto;
    overflow: visible;
    stroke: var(--color-black);
    stroke-width: 2px;
    fill: var(--color-white);
}

.section-logo img {
    max-height: 80vh;
    -o-object-fit: contain;
    object-fit: contain;
}

.section-text {
    position: relative;
    z-index: 1;
    padding: 64px;
}

.section-text p:not(:last-of-type) {
    padding-bottom: 24px;
}


.split-section .section-logo {
    grid-column: 1;
}

.split-section .section-text {
    grid-column: 2;
}

.split-section--flip .section-logo {
    grid-column: 2;
}

.split-section--flip .section-text {
    grid-column: 1;
}

.split-section div.section-logo:only-child,
.split-section div.section-text:only-child {
    grid-column: 1 / 3;
    margin: 0 auto;
    background-color: var(--color-white);
}

.split-section div.section-text:only-child {
    width: calc(50vw - 144px);
}

.section-heading {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding-bottom: 48px;
}

.section-text ul,
.section-text ol {
    padding: 0 0 24px 1.2em;
}

.section-text ul {
    list-style: disc;
}

.section-text ol {
    list-style: decimal;
}

.index-section:only-child {
    padding: 280px 64px 144px;
}

.index-heading {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding-bottom: 32px;
}

.index-list {
    position: relative;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-black);
    z-index: 9999;
}

.index-item {
    border-top: 1px solid var(--color-black);
}

.index-row {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 96px;
    -moz-column-gap: 16px;
    column-gap: 16px;
}

.index-row {
    width: 100%;
    align-items: baseline;
    padding: 16px 0;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: color 0.3s ease;
}

.index-row:focus-visible {
    outline: 1px solid var(--color-black);
    outline-offset: 4px;
}

.index-row:hover,
.index-row:focus-visible {
    color: var(--color-grey);
}

.index-row:hover .index-title {
    padding-left: 16px;
    padding-right: 0;
}

.index-title {
    padding-right: 24px;
    transition: all 0.3s ease;
}

.index-format,
.index-year {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.index-year {
    text-align: end;
}

.index-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.5s ease, visibility 0s linear 0.5s;
}

.index-panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.5s ease, visibility 0s;
}

.index-panel-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    -moz-column-gap: 144px;
    column-gap: 144px;
    overflow: hidden;
}

.index-panel-text {
    grid-column: 1;
    padding: 8px 0 48px;
}

.index-panel-text>*+* {
    margin-top: 1em;
}

.index-info {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.index-description p:not(:last-of-type) {
    padding-bottom: 24px;
}

.index-links {
    list-style: none;
    padding-top: 8px;
}

.index-panel-illustration {
    grid-column: 2;
    padding: 8px 0 48px;
}

@media (min-width: 801px) {
    .index-panel-inner.is-expanded .index-panel-text {
        display: none;
    }

    .index-panel-inner.is-expanded .index-panel-illustration {
        grid-column: 1 / -1;
    }
}

.index-gallery {
    position: relative;
    display: flex;
    gap: 24px;
    overflow-x: scroll;
    scrollbar-width: none;
}

.index-gallery::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .index-gallery.is-draggable {
        cursor: grab;
    }

    .index-gallery.is-dragging {
        cursor: grabbing;
        -webkit-user-select: none;
        user-select: none;
    }
}

.index-gallery-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
}

.index-gallery-arrow {
    display: flex;
    padding: 4px;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.index-gallery-arrow:hover,
.index-gallery-arrow:focus-visible {
    color: var(--color-grey);
}

.index-gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.index-gallery-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
}

.index-gallery svg,
.index-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50vh;
    overflow: visible;
    stroke: var(--color-black);
    stroke-width: 2px;
    fill: var(--color-white);
}

.index-gallery img {
    -o-object-fit: contain;
    object-fit: contain;
}

.search-wrapper {
    display: flex;
    gap: 24px;
}

.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 240px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--color-black);
    border-bottom: solid 1px var(--color-black);
    display: none;
}

.search-input.null {
    text-decoration: line-through;
}

.search-label {
    width: -moz-fit-content;
    width: fit-content;
    --link-color: var(--color-black);
    --link-hover-text: var(--color-grey);
    color: var(--link-color);
    background-image:
        linear-gradient(var(--link-color), var(--link-color)),
        linear-gradient(var(--link-color), var(--link-color));
    background-size: 100% 1px, 100% 0;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    cursor: pointer;
    transition:
        background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1),
        color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.search-label:hover {
    color: var(--link-hover-text);
    background-size: 0 0, 0 0;
}

.search-reset {
    display: none;
}

.search-input.visible,
.search-reset.visible {
    display: block;
}

.footer {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 32px 64px;
    border-top: 1px solid var(--color-black);
    background: var(--color-white);
    z-index: 1;
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.social-icon-wrapper a {
    display: inline-flex;
    padding: 0;
    margin: 0;
    background-image: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-copyright {
    font-size: 14px;
    letter-spacing: 0.08em;
}

@media (max-width: 1200px) {

    .header svg {
        width: 96px;
    }

    .section {
        -moz-column-gap: 112px;
        column-gap: 112px;
        padding: 0 32px;
    }

    .section-logo svg,
    .section-logo img {
        width: calc(50vw - 112px);
    }

    .section-text {
        padding: 0 32px;
    }

    .index-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .footer {
        -moz-column-gap: 112px;
        column-gap: 112px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 800px) {

    html,
    body {
        font-size: 16px;
    }

    .header svg {
        width: 72px;
    }

    .header {
        top: 16px;
    }

    .nav {
        padding: 16px 24px;
    }

    .section {
        min-height: unset;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        align-content: center;
        row-gap: 40px;
        padding: 64px 24px;
    }

    .section:first-of-type {
        padding-top: 200px;
    }

    .section-logo {
        grid-row: 2;
        grid-column: 1;
        justify-self: center;
    }

    .section-text {
        grid-row: 3;
        grid-column: 1;
        justify-self: start;
        padding: 0;
    }

    .section-logo svg,
    .section-logo img {
        width: 80vw;
        stroke-width: 3px;
    }

    .split-section .section-logo,
    .split-section .section-text {
        grid-column: 1;
    }

    .split-section div.section-logo:only-child,
    .split-section div.section-text:only-child {
        width: 100%;
        background-color: transparent;
    }

    .index-section,
    .index-section:only-child {
        padding: 200px 24px 120px;
    }

    .index-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title year"
            "author format";
        row-gap: 4px;
    }

    .index-row:hover,
    .index-row:focus-visible {
        color: var(--color-black);
    }

    .index-row:hover .index-title {
        padding-left: 0;
        padding-right: 0;
    }

    .index-row[aria-expanded="true"] {
        border-bottom: 1px solid var(--color-grey);
    }

    .index-title {
        grid-area: title;
        padding-right: 0;
    }

    .index-author {
        grid-area: author;
        font-size: 14px;
    }

    .index-format {
        grid-area: format;
        text-align: right;
    }

    .index-year {
        grid-area: year;
    }

    .index-panel-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .index-panel-text,
    .index-panel-illustration {
        grid-column: 1;
    }

    .index-panel-text {
        padding-bottom: 24px;
    }

    .index-panel-illustration {
        padding-top: 0;
    }

    .index-counter.hidden {
        display: none;
    }

    .search-wrapper:has(.search-input.visible),
    .search-input.visible {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 24px 88px;
    }

    .footer-contacts {
        justify-self: start;
        align-items: flex-start;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    a {
        transition: none;
    }

    .index-row::before,
    .index-panel,
    .index-panel.is-open {
        transition: none;
    }
}