/* Общие значения сайта */
:root {
    --app-font-family: "Geologica", sans-serif;
    --app-color-background: #000;
    --app-color-text: #C5C3C3;
    --app-color-accent: #D3C29F;
    --app-header-height: 76px;
    --app-main-padding-top: 74px;
}

/* Мягкая привязка прокрутки к секциям-слайдам. */
html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    scrollbar-color: var(--app-color-accent) var(--app-color-background);
    scrollbar-width: thin;
}

/* Полоса прокрутки для браузеров с WebKit-псевдоэлементами. */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background-color: var(--app-color-background);
}

::-webkit-scrollbar-thumb {
    background-color: var(--app-color-accent);
    border: 2px solid var(--app-color-background);
    border-radius: 8px;
}

.app-section[id]:not(.app-hero):not(.app-scroll-section),
#pre-order {
    scroll-margin-top: calc(var(--app-header-height) + 24px);
}

/* Класс добавляется только блокам, которые ещё находятся за экраном. */
.app-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 1000ms ease,
        transform 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: var(--app-reveal-delay, 0ms);
}

.app-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Базовый reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

body {
    line-height: 1;
    background-color: var(--app-color-background);
    color: var(--app-color-text);
    font-family: var(--app-font-family);
}

.app-break--desktop {
    display: none;
}

@media (min-width: 701px) {
    .app-break--desktop {
        display: initial;
    }
}

.app-link {
    color: inherit;
    text-decoration: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}

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

.app-header__menu,
.app-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Общая типографика компонентов */
.app-header,
.app-footer {
    font-family: var(--app-font-family);
    color: var(--app-color-text);
    line-height: 1;
}

.app-header__link,
.app-footer__link {
    font-size: 14px;
    letter-spacing: -2%;
    font-weight: 300;
}

.app-header__link:hover,
.app-footer__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-link:focus-visible {
    outline: 2px solid var(--app-color-accent);
    outline-offset: 4px;
}

/* Шапка */
.app-header {
    position: relative;
    z-index: 2;
    width: 100%;
    height: var(--app-header-height);
}

.app-header, .app-main, .app-footer {
    padding-inline: clamp(16px, 8vw, 120px);
}

.app-header__inner {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.app-header__logo {
    width: 175px;
}

.app-header__menu {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    gap: clamp(12px, 4vw, 100px);
}

.app-header__cart-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: var(--app-color-text);
    mask: url("https://static.tildacdn.com/tild6466-6166-4362-b061-653739323831/cart.svg")
        center / contain no-repeat;
}

.app-header__cart:hover .app-header__cart-icon {
    background-color: var(--app-color-accent);
    transition-duration: 0.5s;
}

/* Подвал */
.app-footer {
    padding-top: 32px;
    padding-bottom: 48px;
}

.app-footer__inner {
    display: flex;
    justify-content: space-between;
}

.app-footer__main {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.app-footer__logo {
    width: 198px;
}

.app-footer__menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.app-footer__menu--legal {
    flex-direction: row;
    gap: 72px;
}

.app-footer__back-to-top {
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    background-color: var(--app-color-accent);
}

.app-footer__back-to-top:hover .app-footer__back-to-top-icon {
    width: 30px;
    height: 30px;
}

.app-footer__secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.app-footer__link--legal {
    letter-spacing: 0;
}

/*main*/
.app-main {
    padding-top: var(--app-main-padding-top);
    padding-bottom: 24px;
}

/*hero*/
.app-hero__title {
    font-size: 40px;
    font-weight: 200;
    letter-spacing: -3%;
    text-transform: uppercase;
    color: var(--app-color-accent);
}

.app-hero__subtitle {
    font-size: 24px;
    font-weight: 200;
    line-height: 32px;
    letter-spacing: -1%;
}

.app-button {
    width: 264px;

    position: relative;

    display: inline-block;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.app-button__default {
    display: block;
    width: 100%;
    height: auto;
}

.app-button__hover {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    transition: opacity 0.25s ease;

    pointer-events: none;
}

.app-button:hover .app-button__hover,
.app-button:focus-visible .app-button__hover {
    opacity: 1;
}

.app-hero__inner {
    position: relative;
    z-index: 1;
    padding-inline: clamp(16px, 8vw, 120px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-hero__content {
    align-items: flex-end;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-hero__tagline {
    font-size: 18px;
}

.app-hero__caption {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.app-hero__chevron-icon {
    transform: rotate(180deg);
    display: block;
    width: 28px;
    height: 28px;
    background-color: var(--app-color-text);
    mask: url("https://static.tildacdn.com/tild3636-3963-4961-a263-373036393937/chevron.svg")
    center / contain no-repeat;
}

.app-hero {
    position: relative;
    isolation: isolate;
    margin-inline: calc(-1 * clamp(16px, 8vw, 120px));
    height: 100vh;
}

.app-hero__video {
    position: absolute;
    inset: calc(-1 * (var(--app-header-height) + var(--app-main-padding-top))) 0 0;
    width: 100%;
    height: calc(100% + var(--app-header-height) + var(--app-main-padding-top));
    object-fit: cover;
    pointer-events: none;
}

.app-scroll {
    --app-scroll-inset-left: 10%;
    --app-scroll-inset-right: 65%;
    --app-scroll-center-offset: calc((var(--app-scroll-inset-right) - var(--app-scroll-inset-left)) / 2);

    position: relative;

    width: min(1637px, calc(100% / 1.08));
    aspect-ratio: 1637 / 771;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

/* Бумага */

.app-scroll__sheet {
    position: relative;

    width: 100%;
    min-width: 0;
    clip-path: inset(0 var(--app-scroll-inset-right) 0 var(--app-scroll-inset-left));
    transform: translateX(var(--app-scroll-center-offset));

    transition:
            clip-path 1100ms cubic-bezier(0.65, 0, 0.35, 1),
            transform 1100ms cubic-bezier(0.65, 0, 0.35, 1);

}

.app-scroll__content {
    display: block;
}

.app-scroll__content img {
    display: block;

    width: 100%;
    height: auto;
}


/* Роллеры */

.app-scroll__roller {
    position: absolute;
    top: 50%;

    height: 100%;
    width: auto;

    z-index: 2;

    pointer-events: none;

    transition:
            left 1100ms cubic-bezier(0.65, 0, 0.35, 1),
            transform 1100ms cubic-bezier(0.65, 0, 0.35, 1);

}


/* Валики стоят на краях видимого участка бумаги. */

.app-scroll__roller--left {
    left: calc(var(--app-scroll-inset-left) + var(--app-scroll-center-offset));
    transform: translate(-50%, -50%);
}

.app-scroll__roller--right {
    left: calc(100% - var(--app-scroll-inset-right) + var(--app-scroll-center-offset));
    transform: translate(-50%, -50%);
}


/* Открываем бумагу */

.app-scroll.is-revealed .app-scroll__sheet {
    clip-path: inset(0);
    transform: translateX(0);
}


/* Раздвигаем роллеры */

.app-scroll.is-revealed .app-scroll__roller--left {
    left: 0;
    transform: translate(-50%, -50%);
}

.app-scroll.is-revealed .app-scroll__roller--right {
    left: 100%;
    transform: translate(-50%, -50%);
}


/* Место шапки сохраняется при переходе к position: fixed. */
.app-header-slot {
    height: var(--app-header-height);
}

.app-header--fixed {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background-color: #000;
    animation: app-header-enter 300ms ease-out;
}

@keyframes app-header-enter {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.app-scroll-section {
    min-height: 100svh;
    padding-top: calc(var(--app-header-height) + 80px);
    scroll-snap-align: start;
    /* Обрезаем только невидимую часть смещённого изображения. */
    overflow-x: clip;
}

.app-hero {
    scroll-snap-align: start;
    scroll-margin-top: calc(var(--app-header-height) + var(--app-main-padding-top));
}

.app-scroll:focus-visible {
    outline: 2px solid var(--app-color-accent);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .app-header--fixed {
        animation: none;
    }

    .app-scroll__sheet,
    .app-scroll__roller {
        transition: none;
    }
}


/* Меню и подвал не расширяют страницу на узких экранах. */
.app-header__nav,
.app-footer__main,
.app-footer__secondary {
    min-width: 0;
}

.app-footer__inner {
    gap: 32px;
    flex-wrap: wrap;
}

.app-footer__menu--legal {
    flex-wrap: wrap;
    gap: 24px 72px;
}

.app-about-collection__inner {
    display: flex;
    flex-direction: row;
    gap: 102px;
}

.app-about-collection__portrait {
    width: 762px;
}

.app-about-collection__title {
    font-size: 20px;
    letter-spacing: -1%;
    font-weight: 300;
    color: #919191;
}

.app-about-collection__paragraph {
    font-size: 20px;
    line-height: 26px;
    letter-spacing: -1%;
    font-weight: 300;
}

.app-about-collection__story {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.app-about-collection__paragraph--accent {
    font-weight: 500;
}

.app-about-collection__text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.app-about-collection__signature {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-self: flex-end;
    align-items: center;
}

.app-about-collection__content {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.app-about-collection__author {
    font-size: 14px;
    font-weight: 200;
    letter-spacing: -1%;
}

.app-about-collection__autograph {
    width: 94px;
}

.app-keyboard {
    padding-top: 162px;
    margin-bottom: 40px;
}

.app-keyboard__inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.app-keyboard__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.app-keyboard__cta {
    margin-top: 12px;
}

.app-keyboard__specs,
.app-mouse__specs,
.app-mousepad__specs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
}

.app-keyboard__specs::before,
.app-mouse__specs::before,
.app-mousepad__specs::before {
    content: "";
    grid-area: 1 / 1;
    justify-self: center;
    width: calc(100% + 2 * clamp(16px, 8vw, 120px));
    max-width: 1920px;
    height: 1084px;
    background: url("https://static.tildacdn.com/tild6338-6430-4864-b531-306166356466/section-keyboard-det.png")
        center / 100% auto no-repeat;
    pointer-events: none;
}

.app-keyboard__specs-body,
.app-mouse__specs-body,
.app-mousepad__specs-body {
    grid-area: 1 / 1;
    z-index: 1;
    min-width: 0;
}

.app-keyboard__title {
    text-transform: uppercase;
    color: var(--app-color-accent);
    font-size: 40px;
    font-weight: 200;
    letter-spacing: -3%;
}

.app-keyboard__subtitle {
    letter-spacing: -1%;
    font-weight: 200;
    font-size: 24px;
    line-height: 32px;
}

.app-keyboard__image {
    width: min(100%, 1193px);
    height: auto;
}

.app-mouse__visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    min-width: 0;
}

.app-mouse__visual > img {
    grid-area: 1 / 1;
    place-self: center;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.app-mouse__background--default {
    z-index: 0;
}

.app-mouse__background--hover {
    z-index: 1;
    opacity: 0;
    transition: opacity 1400ms ease-in-out;
}

.app-mouse__visual .app-mouse__image {
    z-index: 2;
}

.app-mouse__visual.is-revealed .app-mouse__background--hover {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .app-mouse__background--hover {
        transition: none;
    }
}

.app-keyboard__visual {
    display: grid;
    isolation: isolate;
    margin-inline: calc(-1 * clamp(16px, 8vw, 120px));
    overflow: clip;
}

/* Обе пары изображений занимают одну ячейку. */
.app-keyboard__view {
    display: contents;
}

.app-keyboard__visual .app-keyboard__image,
.app-keyboard__background {
    grid-area: 1 / 1;
    place-self: center;
    pointer-events: none;
}

.app-keyboard__visual .app-keyboard__image {
    width: min(1193px, calc(100% - 2 * clamp(16px, 8vw, 120px)));
    z-index: 2;
}

.app-keyboard__background {
    width: min(100%, 1920px);
    height: auto;
    z-index: 0;
}

.app-keyboard__view--hover > img {
    opacity: 0;
    transition: opacity 1400ms ease-in-out;
}

.app-keyboard__background--hover {
    z-index: 1;
}

.app-keyboard__visual .app-keyboard__image--hover {
    z-index: 3;
}

.app-keyboard__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 148px;
    row-gap: 100px;
    padding-bottom: 108px;
}

.app-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.app-feature__icon {
    width: 56px;
    height: 56px;
}

.app-feature__title {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -3%;
    color: var(--app-color-accent);
    text-transform: uppercase;
}

.app-keyboard__image--detail {
    width: 1174px;
}

.app-feature__description {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 200;
    line-height: 18px;
    letter-spacing: -1%;
}

.app-keyboard__specs-title {
    font-weight: 200;
    font-size: 16px;
    letter-spacing: -3%;
    color: #919191;
    text-transform: uppercase;
    margin-top: 26px;
    text-align: center;
    margin-bottom: 63px;
}

.app-keyboard__specs-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 37px;
}

.app-specs-table {
    width: min(100%, 1174px);
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #0B0B0B;
}

.app-specs-table__cell {
    padding: 24px;
    border: 1px solid #252525;
    vertical-align: middle;
    text-align: left;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: -1%;
    line-height: 1;
    color: #919191;
    overflow-wrap: anywhere;
}

.app-specs-table__cell--label {
    width: 14%;
    background-color: #101010;
}

.app-specs-table__row:nth-child(even) .app-specs-table__cell--label {
    background-color: #0B0B0B;
}

.app-specs-table__cell--value {
    width: 37.4%;
}

.app-mouse__title {
    font-size: 40px;
    letter-spacing: -3%;
    color: #D3C29F;
    font-weight: 300;
}

.app-mouse__subtitle {
    font-weight: 200;
    letter-spacing: -1%;
    font-size: 18px;
    line-height: 26px;
}

.app-mouse__overview {
    display: flex;
    flex-direction: row;
    gap: 120px;
}

.app-mouse__background {
    max-width: 702px;
}

.app-mouse__image {
    max-width: 602px;
}

.app-mouse__intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-mouse__cta {
    margin-top: 20px;
}

.app-mouse__content {
    display: flex;
    flex-direction: column;
    gap: 83px;
}
.app-mouse__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
    row-gap: 64px;
}

.app-feature--horizontal {
    gap: 20px;
    flex-direction: row;
}

.app-mouse__features .app-feature__icon{
    width: 40px;
    height: 40px;
}

.app-mouse__features .app-feature__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-mouse__specs-title {
    font-weight: 200;
    font-size: 16px;
    letter-spacing: -3%;
    color: #919191;
    text-transform: uppercase;
    margin-top: 26px;
    text-align: center;
    margin-bottom: 62px;
}

.app-mouse__image--detail {
    max-width: 608px;
}

.app-mouse__specs-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 37px;
}

@media (max-width: 700px) {
    .app-specs-table__cell {
        font-size: 12px;
        line-height: 1.3;
    }

    .app-specs-table__cell--label {
        width: 20%;
    }

    .app-specs-table__cell--value {
        width: 30%;
    }
}

.app-keyboard__visual.is-revealed .app-keyboard__view--hover > img {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .app-keyboard__view--hover > img {
        transition: none;
    }
}

@media (max-width: 700px) {
    :root {
        --app-header-height: 112px;
    }

    .app-header__inner {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-content: center;
        gap: 16px;
    }

    .app-header__menu {
        gap: 12px;
    }

    .app-header__link {
        font-size: 12px;
    }

    .app-hero__content {
        max-width: 100%;
    }

    .app-hero__title {
        overflow-wrap: anywhere;
    }

    .app-footer__secondary {
        align-items: flex-start;
        gap: 32px;
    }
}

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


@media (prefers-reduced-motion: reduce) {
    .app-reveal,
    .app-reveal.is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Коврики «Оборона древних» */
.app-mousepad {
    padding-top: 64px;
}

.app-mousepad__inner,
.app-mousepad__overview,
.app-mousepad__hero {
    display: flex;
    flex-direction: column;
}

.app-mousepad__inner {
    gap: 80px;
}

.app-mousepad__overview {
    gap: 132px;
}

.app-mousepad__hero {
    position: relative;
    gap: 24px;
}

.app-mousepad__visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 650px;
    isolation: isolate;
    margin-inline: calc(-1 * clamp(16px, 8vw, 120px));
    overflow: clip;
}

.app-mousepad__visual > img {
    grid-area: 1 / 1;
    place-self: center;
    height: auto;
}

.app-mousepad__background {
    width: min(100%, 1920px);
    z-index: 0;
}

.app-mousepad__visual .app-mousepad__image--xl {
    width: min(44%, 740px);
    transform: translateX(-18%) rotate(8deg);
    transition: transform 1600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.app-mousepad__visual .app-mousepad__image--l {
    width: min(30%, 500px);
    transform: translateX(54%) rotate(-10deg);
    transition: transform 1600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

/* Один запуск: коврики расправляются, фон подсвечивается, подписи дорисовываются. */
.app-mousepad__background--hover {
    opacity: 0;
    transition: opacity 1600ms ease-in-out;
}

.app-mousepad__hero.is-revealed .app-mousepad__background--hover {
    opacity: 1;
}

.app-mousepad__hero.is-revealed .app-mousepad__image--xl:not(.app-mousepad__image--detail) {
    transform: translate(-44%, 56px) rotate(0deg);
}

.app-mousepad__hero.is-revealed .app-mousepad__image--l:not(.app-mousepad__image--detail) {
    transform: translate(72%, 28px) rotate(0deg);
}

.app-mousepad__annotations {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 2 * clamp(16px, 8vw, 120px));
    max-width: 1920px;
    height: auto;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.app-mousepad__annotation {
    opacity: 0;
    transition: opacity 800ms ease 900ms;
}

.app-mousepad__annotation-line {
    fill: none;
    stroke: var(--app-color-accent);
    stroke-width: 1;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 1100ms ease 900ms;
}

.app-mousepad__annotation-point {
    fill: var(--app-color-accent);
}

.app-mousepad__annotation text {
    fill: var(--app-color-text);
    font-family: var(--app-font-family);
    font-size: 18px;
    font-weight: 300;
}

.app-mousepad__hero.is-revealed .app-mousepad__annotation {
    opacity: 1;
}

.app-mousepad__hero.is-revealed .app-mousepad__annotation-line {
    stroke-dashoffset: 0;
}

@media (max-width: 700px) {
    .app-mousepad__annotations {
        display: none;
    }

    .app-mousepad__hero.is-revealed .app-mousepad__image--xl:not(.app-mousepad__image--detail) {
        transform: translate(-44%, 16px) rotate(0deg);
    }

    .app-mousepad__hero.is-revealed .app-mousepad__image--l:not(.app-mousepad__image--detail) {
        transform: translate(72%, 8px) rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-mousepad__visual .app-mousepad__image,
    .app-mousepad__background--hover,
    .app-mousepad__annotation,
    .app-mousepad__annotation-line {
        transition: none;
    }
}

.app-mousepad__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.app-mousepad__title {
    font-size: 40px;
    line-height: 48px;
    font-weight: 300;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--app-color-accent);
}

.app-mousepad__subtitle {
    font-size: 18px;
    line-height: 26px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #919191;
}

.app-mousepad__cta {
    margin-top: 16px;
    max-width: 100%;
}

.app-mousepad__variants {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 100px;
    width: min(100%, 1500px);
    margin-inline: auto;
}

.app-mousepad__variant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    font-size: 18px;
    line-height: 22px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #919191;
}

.app-mousepad__variant-image {
    width: 224px;
    height: 108px;
    object-fit: contain;
}

.app-mousepad__variant--l .app-mousepad__variant-image {
    width: 126px;
}

.app-mousepad__variant-title {
    color: var(--app-color-text);
    font-weight: 300;
    font-size: 18px;
    line-height: 22px;
}

.app-mousepad__variant-description {
    font-weight: 200;
    font-size: 18px;
    line-height: 22px;
    color: #919191;
}

.app-mousepad__variant-label {
    color: var(--app-color-accent);

}

.app-mousepad__variant-audience {
    color: var(--app-color-text);

}

.app-mousepad__specs-body {
    padding-block: 26px 80px;
    font-weight: 300;
    font-size: 18px;
    line-height: 22px;
}

.app-mousepad__specs-title {
    margin-bottom: 160px;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 20px;
    font-weight: 200;
    letter-spacing: -0.03em;
    color: #919191;
}

.app-mousepad__specs-content {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: end;
    gap: 96px 24px;
    width: min(100%, 1174px);
    margin-inline: auto;
}

.app-mousepad__image--detail {
    width: 100%;
    height: auto;
}

.app-specs-table--mousepad {
    grid-column: 1 / -1;
}

.app-specs-table--mousepad .app-specs-table__cell--heading {
    color: var(--app-color-accent);
    font-weight: 300;
    background-color: #0B0B0B;
}

.app-specs-table--mousepad .app-specs-table__cell--label {
    width: 12.6%;
}

.app-specs-table--mousepad .app-specs-table__col--label {
    width: 12.6%;
}

.app-specs-table--mousepad .app-specs-table__col--value {
    width: 37.4%;
}

@media (max-width: 1000px) {
    .app-mousepad__visual {
        min-height: clamp(260px, 45vw, 680px);
    }

    .app-mousepad__variants {
        gap: 40px;
    }
}

@media (max-width: 700px) {
    .app-mousepad {
        padding-top: 40px;
    }

    .app-mousepad__overview {
        gap: 64px;
    }

    .app-mousepad__title {
        font-size: 26px;
        line-height: 32px;
    }

    .app-mousepad__subtitle,
    .app-mousepad__variant {
        font-size: 14px;
        line-height: 20px;
    }

    .app-mousepad__intro {
        gap: 20px;
    }

    .app-mousepad__variants {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .app-mousepad__specs-title {
        margin-bottom: 64px;
        font-size: 14px;
    }

    .app-mousepad__specs-content {
        gap: 40px 16px;
    }

    .app-mousepad__specs::before {
        height: auto;
        min-height: 100%;
        background-size: auto 100%;
    }
}

/* Предзаказ: товары и комплекты */
.app-pre-order {
    padding-block: 80px;
}

.app-pre-order__inner {
    max-width: 1680px;
    margin-inline: auto;
}

.app-pre-order__title {
    margin-bottom: 36px;
    text-align: center;
    font-size: 32px;
    line-height: 40px;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.app-pre-order__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    align-items: start;
}

.app-product-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.app-product-card__visual {
    display: grid;
    border: 1px solid transparent;
    transition: border-color 400ms ease;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: #101010;
    background-image: url("https://static.tildacdn.com/tild3533-3964-4839-b832-353661626632/product-bg.png");
    background-size: cover;
    background-position: center;
}

.app-product-card__image {
    grid-area: 1 / 1;
    pointer-events: none;
    transition: opacity 600ms ease-in-out;
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.app-product-card--mouse .app-product-card__image {
    width: 28%;
    height: 60%;
}

.app-product-card--mousepad-l .app-product-card__image {
    width: 64%;
    height: 64%;
}

.app-product-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.app-product-card__info {
    min-width: 0;
}

.app-product-card__title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.app-product-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-top: 16px;
}

.app-product-card__price {
    font-size: 22px;
    line-height: 26px;
    font-weight: 500;
    white-space: nowrap;
}

.app-product-card__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 48px;
    width: 120px;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background-color: var(--app-color-accent);
    color: #000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 300ms ease, width 400ms ease;
}

.app-product-card__cart:hover {
    background-color: #E2D3B5;
}

.app-product-card__cart:focus-visible {
    outline: 2px solid var(--app-color-accent);
    outline-offset: 4px;
}

.app-product-card--bundle {
    grid-column: span 2;
}

.app-product-card--bundle .app-product-card__visual {
    aspect-ratio: 828 / 434;
}

.app-product-card--bundle .app-product-card__image {
    width: 88%;
    height: 88%;
}

.app-product-card__badge {
    align-self: flex-start;
    padding: 8px 12px;
    background-color: #242119;
    color: var(--app-color-accent);
    font-size: 13px;
    line-height: 16px;
    font-weight: 300;
}

.app-product-card--bundle .app-product-card__price {
    color: var(--app-color-accent);
}

.app-product-card__old-price {
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .app-pre-order__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-product-card--bundle {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .app-pre-order {
        padding-block: 56px;
    }

    .app-pre-order__title {
        margin-bottom: 28px;
        font-size: 26px;
        line-height: 32px;
    }

    .app-pre-order__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .app-product-card__title {
        font-size: 18px;
        line-height: 24px;
    }

    .app-product-card__prices {
        margin-top: 12px;
    }

    .app-product-card__price {
        font-size: 20px;
    }

    .app-product-card__cart {
        width: 108px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-product-card__cart {
        transition: none;
    }
}

/* Hover карточек: рамка, смена фотографии и стрелка в кнопке. */
.app-product-card__image--hover {
    opacity: 0;
}

.app-product-card__cart-label {
    display: block;
    white-space: nowrap;
    transition: transform 400ms ease;
}

.app-product-card__cart-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 17px;
    height: 8px;
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity 300ms ease, transform 400ms ease;
    pointer-events: none;
}

.app-product-card:focus-within .app-product-card__visual {
    border-color: var(--app-color-accent);
}

.app-product-card:focus-within .app-product-card__image--hover {
    opacity: 1;
}

.app-product-card:focus-within .app-product-card__image--default {
    opacity: 0;
}

.app-product-card:focus-within .app-product-card__cart {
    width: 144px;
}

.app-product-card:focus-within .app-product-card__cart-label {
    transform: translateX(-12px);
}

.app-product-card:focus-within .app-product-card__cart-arrow {
    opacity: 1;
    transform: translate(0, -50%);
}

@media (hover: hover) {
    .app-product-card:hover .app-product-card__visual {
        border-color: var(--app-color-accent);
    }

    .app-product-card:hover .app-product-card__image--hover {
        opacity: 1;
    }

    .app-product-card:hover .app-product-card__image--default {
        opacity: 0;
    }

    .app-product-card:hover .app-product-card__cart {
        width: 144px;
    }

    .app-product-card:hover .app-product-card__cart-label {
        transform: translateX(-12px);
    }

    .app-product-card:hover .app-product-card__cart-arrow {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-product-card__visual,
    .app-product-card__image,
    .app-product-card__cart-label,
    .app-product-card__cart-arrow {
        transition: none;
    }
}

/* Коллекционные карточки: горизонтальный слайдер */
.app-collection-slider {
    margin-block: 0 80px;
    border: 1px solid #121212;
    border-radius: 4px;
    background: #101010 url("https://static.tildacdn.com/tild6662-6331-4663-b036-373661316264/section-slider-bg.png") center / cover no-repeat;
}

.app-collection-slider__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    min-height: 594px;
}

.app-collection-slider__content {
    padding: 64px 80px 64px 104px;
}

.app-collection-slider__title {
    margin-bottom: 44px;
    color: var(--app-color-accent);
    font-size: 40px;
    line-height: 48px;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.app-collection-slider__description {
    max-width: 520px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 300;
}

.app-collection-slider__cta {
    margin-top: 56px;
    max-width: 100%;
}

.app-card-slider {
    min-width: 0;
    padding: 0 32px 16px 0;
}

.app-card-slider__track {
    display: flex;
    overflow: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    user-select: none;
    pointer-events: none;
}

.app-card-slider__track::-webkit-scrollbar {
    display: none;
}

.app-card-slider__slide {
    display: grid;
    place-items: center;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.app-card-slider__image {
    width: min(100%, 770px);
    height: auto;
    pointer-events: none;
}

.app-card-slider__pagination {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -30px;
}

.app-card-slider__dot {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
}

.app-card-slider__dot::before {
    content: "";
    position: absolute;
    inset: 0 -4px;
}

.app-card-slider__dot path {
    fill: transparent;
    stroke: #919191;
    transition: fill 300ms ease, stroke 300ms ease;
}

.app-card-slider__dot.is-active path {
    fill: var(--app-color-accent);
    stroke: var(--app-color-accent);
}

.app-card-slider__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .app-collection-slider__content {
        padding-inline: 40px;
    }

    .app-collection-slider__title {
        font-size: 32px;
        line-height: 40px;
    }
}

@media (max-width: 900px) {
    .app-collection-slider__inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .app-collection-slider__content {
        padding: 40px 24px 24px;
        text-align: center;
    }

    .app-collection-slider__title {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 36px;
    }

    .app-collection-slider__description {
        margin-inline: auto;
        font-size: 16px;
        line-height: 24px;
    }

    .app-collection-slider__cta {
        margin-top: 32px;
    }

    .app-card-slider {
        padding: 0 0 24px;
    }

    .app-card-slider__pagination {
        margin-top: -24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-card-slider__dot path {
        transition: none;
    }
}

/* ========================================================================== 
   Страница «Заказ оформлен» — order-success.html
   ========================================================================== */
.app-order-success {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.app-order-success__main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.app-order-success__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-order-success__check {
    flex: none;
    width: 75px;
    height: 52px;
    color: var(--app-color-accent);
    margin-bottom: 44px;
}

.app-order-success__title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--app-color-accent);
    margin-bottom: 18px;
}

.app-order-success__description {
    max-width: 720px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #919191;
    margin-bottom: 44px;
}

.app-order-success__home {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 264px;
    max-width: 100%;
    min-height: 56px;
    padding: 12px 16px;
    background-color: var(--app-color-accent);
    color: #000;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-transform: uppercase;
    transition: background-color 200ms ease;
}

.app-order-success__home:hover {
    background-color: #E2D3B5;
}

@media (max-width: 700px) {
    .app-order-success__check {
        width: 48px;
        height: auto;
        margin-bottom: 22px;
    }

    .app-order-success__title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .app-order-success__description {
        max-width: 300px;
        font-size: 14px;
        line-height: 14px;
        margin-bottom: 20px;
    }

    .app-order-success__home {
        width: 245px;
        min-height: 40px;
        padding-block: 10px;
        font-size: 11px;
        line-height: 20px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .app-order-success__home {
        transition: none;
    }
}
