/* Общие значения сайта */
: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;
    --app-page-gutter: clamp(16px, 8vw, 120px);
}

/* Мягкая привязка прокрутки к секциям-слайдам. */
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 */
:focus,
:focus-visible {
    outline: none !important;
}

*,
*::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-header {
    position: relative;
    z-index: 2;
    width: 100%;
    height: var(--app-header-height);
}

.app-header, .app-main, .app-footer {
    padding-inline: var(--app-page-gutter);
}

.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-header__burger {
    display: none;
}

.app-mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0 10px max(32px, env(safe-area-inset-bottom));
    border: 0;
    background: #101010;
    color: var(--app-color-text);
    font-family: var(--app-font-family);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.app-mobile-menu::backdrop { background: #101010; }
html.app-menu-open { overflow: hidden; }

.app-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding-inline: 8px;
}
.app-mobile-menu__logo { width: 140px; }
.app-mobile-menu__close,
.app-header__burger {
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.app-mobile-menu__close { display: inline-flex; }
.app-mobile-menu__nav { display: grid; gap: 4px; }
.app-mobile-menu__link {
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 16px 14px;
    background: #1B1B1B;
    font-size: 26px;
    line-height: 32px;
    font-weight: 400;
    letter-spacing: -0.03em;
}
.app-mobile-menu__contacts { margin-top: 72px; }
.app-mobile-menu__label { color: #919191; font-size: 10px; line-height: 14px; }
.app-mobile-menu__contact {
    display: block;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}
.app-mobile-menu__contacts > .app-mobile-menu__label { margin-bottom: 8px; }
.app-mobile-menu__socials { display: grid; gap: 12px; margin-top: 28px; }
.app-mobile-menu__social { font-size: 14px; line-height: 18px; }

@media (max-width: 700px) {
    .app-header .app-header__inner {
        grid-template-columns: minmax(0, 1fr) 44px;
        justify-items: start;
        align-content: center;
        gap: 16px;
    }
    .app-header__logo { width: 140px; }
    .app-header__burger { display: inline-flex; justify-self: end; margin-right: -9px; }
    .app-header__nav { display: none; }
}

/* Подвал */
.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: var(--app-page-gutter);
    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 * var(--app-page-gutter));
    height: 85vh;
}

.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 750ms cubic-bezier(0.65, 0, 0.35, 1),
            transform 750ms 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 750ms cubic-bezier(0.65, 0, 0.35, 1),
            transform 750ms 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%);
}


/* Мобильный свиток раскрывается сверху вниз. */
@media (max-width: 700px) {
    .app-scroll-section {
        margin-inline: 0;
    }

    .app-scroll {
        --app-scroll-mobile-width: min(324px, calc(100vw - 36px));
        width: var(--app-scroll-mobile-width);
        aspect-ratio: auto;
        margin-block: calc(var(--app-scroll-mobile-width) * 0.07715);
    }

    .app-scroll__sheet {
        width: 70.4%;
        clip-path: inset(30% 0);
        transform: none;
    }

    .app-scroll__roller {
        left: 50%;
        width: calc(var(--app-scroll-mobile-width) * 0.1543);
        max-width: none;
        height: var(--app-scroll-mobile-width);
        object-fit: contain;
        transform: translate(-50%, -50%) rotate(90deg);
        transition: top 750ms cubic-bezier(0.65, 0, 0.35, 1);
    }

    .app-scroll__roller--left {
        top: 30%;
    }

    .app-scroll__roller--right {
        top: 70%;
    }

    .app-scroll.is-revealed .app-scroll__sheet {
        transform: none;
    }

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

    .app-scroll.is-revealed .app-scroll__roller--left {
        top: 0;
    }

    .app-scroll.is-revealed .app-scroll__roller--right {
        top: 100%;
    }
}

/* Место шапки сохраняется при переходе к 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: calc(100svh + 240px);
    padding-top: calc(var(--app-header-height) + 80px);
    padding-bottom: 120px;
    scroll-snap-align: start;
    /* Валики остаются внутри своей секции при уходе sticky-блока. */
    overflow: clip;
}

/* Дополнительная высота даёт время раскрыться без блокировки ввода. */
.app-scroll-section__inner {
    position: sticky;
    top: calc(var(--app-header-height) + 80px);
}

@media (max-width: 700px) {
    .app-scroll-section {
        padding-bottom: 80px;
    }

    .app-scroll-section__inner {
        /* Учитываем отступы и выступающие валики в высоте sticky-блока. */
        display: flow-root;
    }
}

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

@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;
}

@media (min-width: 701px) {
    .app-about-collection__inner {
        align-items: center;
    }
}

.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;
}

@media (max-width: 700px) {
    .app-about-collection__inner {
        flex-direction: column;
        align-items: center;
        gap: 36px;
        text-align: center;
    }

    .app-about-collection__content {
        width: 100%;
        max-width: 324px;
        gap: 28px;
    }

    .app-about-collection__title {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -0.01em;
    }

    .app-about-collection__paragraph {
        font-size: 16px;
        line-height: 22px;
        letter-spacing: -0.01em;
    }

    .app-about-collection__text {
        gap: 24px;
    }

    .app-about-collection__story {
        gap: 28px;
    }

    .app-about-collection__signature {
        align-self: center;
        gap: 28px;
        min-height: 48px;
    }

    .app-about-collection__author {
        line-height: 20px;
        letter-spacing: -0.01em;
    }

    .app-about-collection__autograph {
        width: 66px;
        height: auto;
    }

    .app-about-collection__portrait {
        width: 100%;
        max-width: 324px;
        height: auto;
    }
}

.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 * var(--app-page-gutter));
    max-width: 1920px;
    height: 1084px;
    background: url("https://static.tildacdn.com/tild6331-6464-4138-b536-616633316535/bg-12221.svg")
        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 * var(--app-page-gutter));
    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 * var(--app-page-gutter)));
    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;
}

/* Клавиатура: мобильный макет 360px. */
@media (max-width: 700px) {
    .app-keyboard {
        padding-top: 64px;
        margin-bottom: 48px;
    }

    .app-keyboard__inner {
        gap: 28px;
    }

    .app-keyboard__intro {
        gap: 16px;
        text-align: center;
    }

    .app-keyboard__title {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: -0.03em;
    }

    .app-keyboard__subtitle {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: -0.01em;
    }

    .app-keyboard__cta {
        width: 228px;
        margin-top: 4px;
    }

    .app-keyboard__cta .app-button__hover {
        opacity: 1;
    }

    .app-keyboard__visual {
        min-height: 200px;
    }

    .app-keyboard__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
        padding-bottom: 16px;
    }

    .app-keyboard__features .app-feature {
        gap: 8px;
        min-width: 0;
        text-align: center;
    }

    .app-keyboard__features .app-feature__icon {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
    }

    .app-keyboard__features .app-feature__title {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -0.03em;
    }

    .app-keyboard__features .app-feature__description {
        font-size: 10px;
        line-height: 12px;
        letter-spacing: -0.01em;
    }

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

    .app-keyboard__specs-title {
        margin: 0 calc(-1 * var(--app-page-gutter)) 30px;
        padding: 20px 18px;
        border-block: 1px solid #121212;
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -0.03em;
    }

    .app-keyboard__specs-content {
        gap: 34px;
    }

    .app-keyboard__image--detail {
        width: 100%;
    }

    .app-keyboard .app-specs-table__body {
        display: grid;
        grid-template-columns: 34% minmax(0, 1fr);
    }

    .app-keyboard .app-specs-table__row {
        display: contents;
    }

    .app-keyboard .app-specs-table__cell {
        display: flex;
        align-items: center;
        width: auto;
        min-width: 0;
        min-height: 45px;
        padding: 14px 12px;
        font-size: 12px;
        line-height: 14px;
        letter-spacing: -0.01em;
        overflow-wrap: normal;
    }

    /* Сначала левая половина таблицы ПК, затем правая. */
    .app-keyboard .app-specs-table__cell:nth-child(n + 3) {
        order: 1;
    }
}

.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 (min-width: 701px) {
    .app-mouse__inner {
        display: flex;
        flex-direction: column;
        gap: 96px;
    }

    .app-mouse__overview {
        display: grid;
        grid-template-columns: minmax(0, 702px) minmax(0, 1fr);
        align-items: center;
        gap: clamp(40px, 6.25vw, 120px);
    }

    .app-mouse__content {
        min-width: 0;
    }

    .app-mouse__title {
        text-transform: uppercase;
    }

    .app-mouse__features {
        column-gap: clamp(24px, 3.33vw, 64px);
    }

    .app-mouse__features .app-feature__icon {
        flex: none;
        width: 36px;
        height: 36px;
    }

}

@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%;
    }
}

/* Мышь: мобильный макет 360px. */
@media (max-width: 700px) {
    .app-mouse__inner {
        display: flex;
        flex-direction: column;
        gap: 44px;
    }

    .app-mouse__overview {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .app-mouse__content {
        display: contents;
    }

    .app-mouse__intro {
        order: 0;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .app-mouse__title {
        font-size: 20px;
        line-height: 24px;
        font-weight: 200;
        letter-spacing: -0.03em;
        text-transform: uppercase;
    }

    .app-mouse__subtitle {
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -0.01em;
    }

    .app-mouse__cta {
        width: 228px;
        margin-top: 4px;
    }

    .app-mouse__cta .app-button__hover {
        opacity: 1;
    }

    .app-mouse__visual {
        order: 1;
        min-height: 340px;
    }

    .app-mouse__features {
        order: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 16px;
    }

    .app-mouse__features .app-feature {
        flex-direction: column;
        gap: 12px;
        min-width: 0;
        text-align: center;
    }

    .app-mouse__features .app-feature:nth-child(4) { order: 1; }
    .app-mouse__features .app-feature:nth-child(2) { order: 2; }
    .app-mouse__features .app-feature:nth-child(3) { order: 3; }

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

    .app-mouse__features .app-feature__text {
        align-items: center;
        gap: 12px;
    }

    .app-mouse__features .app-feature__title {
        font-size: 16px;
        line-height: 20px;
        letter-spacing: -0.03em;
    }

    .app-mouse__features .app-feature__description {
        font-size: 12px;
        line-height: 14px;
        letter-spacing: -0.01em;
    }

    .app-mouse__features .app-break--desktop {
        display: initial;
    }

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

    .app-mouse__specs-title {
        margin: 0 calc(-1 * var(--app-page-gutter)) 30px;
        padding: 20px 18px;
        border-block: 1px solid #121212;
        font-size: 14px;
        line-height: 18px;
        letter-spacing: -0.03em;
    }

    .app-mouse__specs-content {
        gap: 24px;
    }

    .app-mouse__image--detail {
        width: 100%;
    }

    .app-mouse .app-specs-table__body {
        display: grid;
        grid-template-columns: 34% minmax(0, 1fr);
    }

    .app-mouse .app-specs-table__row {
        display: contents;
    }

    .app-mouse .app-specs-table__cell {
        display: flex;
        align-items: center;
        width: auto;
        min-width: 0;
        min-height: 45px;
        padding: 14px 12px;
        font-size: 12px;
        line-height: 14px;
        letter-spacing: -0.01em;
        overflow-wrap: normal;
    }

    .app-mouse .app-specs-table__cell:nth-child(n + 3) {
        order: 1;
    }
}

.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: 56px;
        --app-main-padding-top: 16px;
        --app-page-gutter: 18px;
    }

    .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%;
        align-self: center;
        align-items: center;
        gap: 4px;
        text-align: center;
    }

    .app-hero {
        height: 655px;
    }

    .app-hero__video {
        inset: 144px 0 auto;
        height: 509px;
        object-position: center;
    }

    .app-hero__inner {
        padding-inline: var(--app-page-gutter);
    }

    .app-hero__title {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: -0.03em;
    }

    .app-hero__subtitle {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.01em;
    }

    .app-hero__cta {
        width: 228px;
        margin-top: 18px;
    }

    .app-hero__cta .app-button__hover {
        opacity: 1;
    }

    .app-hero__tagline {
        display: none;
    }

    .app-hero__caption {
        gap: 0;
    }

    .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 * var(--app-page-gutter));
    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;
}

@media (min-width: 701px) {
    .app-mousepad__background {
        transform: translateY(64px);
    }
}

.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 * var(--app-page-gutter));
    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-mousepad__specs--mobile {
    display: none;
}

@media (min-width: 701px) {
    .app-mousepad__visual {
        min-height: 0;
        height: clamp(360px, calc(100svh - 340px), 650px);
        grid-template-rows: minmax(0, 1fr);
    }

    .app-mousepad__visual .app-mousepad__background {
        height: 100%;
        object-fit: contain;
        transform: translateY(96px) scale(0.96);
    }

    .app-mousepad__visual .app-mousepad__image--xl {
        width: min(40%, 740px);
        max-height: 80%;
        object-fit: contain;
    }

    .app-mousepad__visual .app-mousepad__image--l {
        width: min(28%, 500px);
        max-height: 80%;
        object-fit: contain;
    }

    .app-mousepad__annotations {
        height: 100%;
    }

    .app-mousepad__intro {
        gap: 16px;
    }

    .app-mousepad__cta {
        margin-top: 8px;
    }
}

@media (max-width: 700px) {
    .app-mousepad__inner { gap: 48px; }
    .app-mousepad__overview { gap: 48px; }
    .app-mousepad__hero { gap: 28px; }
    .app-mousepad__intro { order: -1; gap: 16px; }
    .app-mousepad__title { font-size: 20px; line-height: 24px; font-weight: 200; }
    .app-mousepad__subtitle { font-size: 12px; line-height: 16px; }
    .app-mousepad__cta { width: 228px; margin-top: 4px; }
    .app-mousepad__cta .app-button__hover { opacity: 1; }
    .app-mousepad__visual { min-height: 340px; }
    .app-mousepad__visual .app-mousepad__image--xl { width: 80%; transform: translateY(-36px) rotate(4deg); }
    .app-mousepad__visual .app-mousepad__image--l { width: 56%; transform: translateY(64px) rotate(-5deg); }
    .app-mousepad__hero.is-revealed .app-mousepad__image--xl:not(.app-mousepad__image--detail) { transform: translateY(-36px); }
    .app-mousepad__hero.is-revealed .app-mousepad__image--l:not(.app-mousepad__image--detail) { transform: translateY(64px); }
    .app-mousepad__variants { gap: 44px; }
    .app-mousepad__variant { gap: 16px; font-size: 12px; line-height: 14px; }
    .app-mousepad__variant-title,
    .app-mousepad__variant-description { font-size: 12px; line-height: 14px; }
    .app-mousepad__variant-image { width: 156px; height: 70px; margin-bottom: 8px; }
    .app-mousepad__variant--l .app-mousepad__variant-image { width: 82px; }
    .app-mousepad__specs--desktop { display: none; }
    .app-mousepad__specs--mobile { display: grid; }
    .app-mousepad__specs--mobile .app-mousepad__specs-body { padding: 0; }
    .app-mousepad__specs--mobile .app-mousepad__specs-title {
        margin: 0 calc(-1 * var(--app-page-gutter)) 28px;
        padding: 16px 18px;
        border-block: 1px solid #121212;
        font-size: 14px;
        line-height: 16px;
    }
    .app-mousepad__specs--mobile .app-mousepad__specs-content {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 28px;
    }
    .app-mousepad__specs--l .app-mousepad__image--detail { width: 56%; }
    .app-mousepad__specs--mobile .app-specs-table__cell {
        padding: 14px 12px;
        font-size: 12px;
        line-height: 14px;
        overflow-wrap: normal;
    }
    .app-mousepad__specs--mobile .app-specs-table__cell--label { width: 34%; }
    .app-mousepad__specs--mobile .app-specs-table__cell--value { width: 66%; }
}

/* Предзаказ: товары и комплекты */
.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 {
    position: relative;
    isolation: isolate;
    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__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("https://static.tildacdn.com/tild3635-3834-4432-b565-666162623535/product-bg-hover.png") center / cover no-repeat;
    opacity: 0;
    transition: opacity 600ms ease-in-out;
    pointer-events: none;
}

.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--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: 20px;
        line-height: 24px;
    }

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

    .app-product-card {
        gap: 16px;
    }

    .app-product-card--bundle .app-product-card__visual {
        aspect-ratio: 1;
    }

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

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

    .app-product-card__footer {
        gap: 12px;
    }

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

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

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

    .app-product-card__cart {
        width: 108px;
        min-height: 40px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .app-product-card__badge {
        padding: 6px 12px;
        font-size: 13px;
        line-height: 18px;
    }

    .app-product-card__old-price {
        font-size: 14px;
        line-height: 20px;
    }
}

@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::before {
    opacity: 1;
}

.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::before {
        opacity: 1;
    }

    .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__visual::before,
    .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: 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;
    }
}

/* Слайдер и подвал: мобильный макет 360px. */
@media (max-width: 700px) {
    .app-collection-slider {
        margin-bottom: 0;
        background-position: center;
    }

    .app-collection-slider__content {
        padding: 44px 24px 24px;
    }

    .app-collection-slider__title {
        margin-bottom: 14px;
        font-size: 24px;
        line-height: 30px;
        white-space: nowrap;
    }

    .app-collection-slider__description {
        max-width: 270px;
        font-size: 14px;
        line-height: 20px;
    }

    .app-collection-slider__cta {
        width: 228px;
        margin-top: 24px;
    }

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

    .app-card-slider__pagination {
        gap: 4px;
        margin-top: -12px;
    }

    .app-card-slider__dot {
        width: 8px;
        height: 12px;
    }

    .app-card-slider__dot svg {
        width: 8px;
        height: 8px;
    }

    .app-footer {
        padding-block: 8px 32px;
    }

    .app-footer__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 30px;
        align-items: center;
        gap: 36px 16px;
    }

    .app-footer__main,
    .app-footer__secondary {
        display: contents;
    }

    .app-footer__logo-link {
        grid-column: 1;
        grid-row: 1;
    }

    .app-footer__logo {
        width: 175px;
    }

    .app-footer__back-to-top {
        grid-column: 2;
        grid-row: 1;
        width: 30px;
        height: 30px;
    }

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

    .app-footer__nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .app-footer__nav--legal {
        grid-row: 3;
    }

    .app-footer__menu {
        gap: 24px;
    }

    .app-footer__menu--legal {
        flex-direction: column;
        gap: 20px;
    }

    .app-footer__link {
        font-size: 14px;
        line-height: 14px;
        letter-spacing: -0.02em;
    }
}

/* ========================================================================== 
   Страница «Заказ оформлен» — 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;
    }
}


/* Правовые документы. Подключать после общих стилей style.css. */
html:has(.app-policy-page) {
    scroll-snap-type: none;
}

.app-policy-page {
    --policy-line: #252525;
    --policy-muted: #919191;
}

.app-policy {
    padding: 64px var(--app-page-gutter) 104px;
}

.app-policy__inner {
    max-width: 1440px;
    margin-inline: auto;
}

.app-policy__intro {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--policy-line);
}

.app-policy__back,
.app-policy__to-top {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--app-color-accent);
    font-size: 13px;
    font-weight: 300;
    line-height: 20px;
}

.app-policy__eyebrow {
    margin-top: 32px;
    color: var(--policy-muted);
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-policy__title {
    max-width: 1040px;
    margin-top: 16px;
    color: var(--app-color-accent);
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
}

.app-policy__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 80px);
    padding-top: 48px;
}

.app-policy__sidebar {
    position: sticky;
    top: 32px;
    min-width: 0;
}

.app-policy__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.app-policy__nav-title {
    margin-bottom: 16px;
    color: var(--policy-muted);
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    text-transform: uppercase;
}

.app-policy__nav-link {
    display: block;
    padding: 16px 16px 16px 20px;
    border-left: 1px solid var(--policy-line);
    color: var(--policy-muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    text-decoration: none;
    transition: color 200ms ease, background-color 200ms ease;
}

.app-policy__nav-link[aria-current="page"] {
    border-left-color: var(--app-color-accent);
    background: #101010;
    color: var(--app-color-accent);
}

.app-policy__document {
    min-width: 0;
    max-width: 100%;
}

.app-policy__contents {
    margin-bottom: 40px;
    padding: 20px 24px;
    border: 1px solid var(--policy-line);
    background: #0B0B0B;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
}

.app-policy__contents summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--app-color-accent);
    list-style: none;
    cursor: pointer;
}

.app-policy__contents summary::-webkit-details-marker {
    display: none;
}

.app-policy__contents summary span {
    flex: none;
    font-size: 24px;
    line-height: 24px;
}

.app-policy__contents[open] summary span {
    transform: rotate(45deg);
}

.app-policy__contents ol {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.app-policy__body {
    color: var(--app-color-text);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.app-policy__paragraph {
    margin-bottom: 20px;
}

.app-policy__paragraph--numbered,
.app-policy__heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.app-policy__number {
    flex: none;
    color: var(--app-color-accent);
    font-variant-numeric: tabular-nums;
}

.app-policy__paragraph--numbered > .app-policy__number {
    min-width: 28px;
}

.app-policy__text {
    min-width: 0;
}

.app-policy__heading {
    margin: 48px 0 24px;
    color: var(--app-color-accent);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: -0.02em;
    scroll-margin-top: 32px;
}

.app-policy__heading:first-child {
    margin-top: 0;
}

.app-policy__body strong {
    font-weight: 450;
}

.app-policy__heading strong {
    font-weight: inherit;
}

.app-policy__body a,
.app-policy__contents a {
    color: var(--app-color-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.app-policy__cover {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--policy-line);
    color: var(--policy-muted);
    font-size: 14px;
}

.app-policy__table-wrap {
    max-width: 100%;
    margin: 24px 0 32px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.app-policy__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
    line-height: 1.65;
}

.app-policy__table td,
.app-policy__table th {
    padding: 20px;
    border: 1px solid var(--policy-line);
    background: #0B0B0B;
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

.app-policy__table tr:nth-child(odd) td,
.app-policy__table th {
    background: #101010;
}

.app-policy__table th {
    color: var(--app-color-accent);
    font-weight: 400;
}

.app-policy__table:not(.app-policy__table--terms) td:first-child {
    width: 36%;
}

.app-policy__table--terms th:first-child {
    width: 56px;
}

.app-policy__table--terms th:nth-child(2) {
    width: 30%;
}

.app-policy__table .app-policy__paragraph {
    margin-bottom: 12px;
}

.app-policy__table .app-policy__paragraph:last-child {
    margin-bottom: 0;
}

.app-policy__table .app-policy__paragraph--numbered {
    gap: 8px;
}

.app-policy__table .app-policy__number {
    min-width: 0;
}

.app-policy__to-top {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--policy-line);
    width: 100%;
}

@media (hover: hover) {
    .app-policy__nav-link:hover {
        background: #101010;
        color: var(--app-color-accent);
    }

    .app-policy__back:hover,
    .app-policy__to-top:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

@media (max-width: 1000px) {
    .app-policy__layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 32px;
    }

    .app-policy__table td,
    .app-policy__table th {
        padding: 14px;
    }
}

@media (max-width: 700px) {
    .app-policy {
        padding-top: 24px;
        padding-bottom: 64px;
    }

    .app-policy__intro {
        padding-bottom: 28px;
    }

    .app-policy__eyebrow {
        margin-top: 24px;
        font-size: 10px;
        line-height: 16px;
    }

    .app-policy__title {
        margin-top: 12px;
        font-size: 26px;
        line-height: 32px;
    }

    .app-policy__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        padding-top: 28px;
    }

    .app-policy__sidebar {
        position: static;
    }

    .app-policy__nav-link {
        padding: 12px 16px;
        font-size: 12px;
        line-height: 18px;
    }

    .app-policy__contents {
        margin-bottom: 28px;
        padding: 16px;
        font-size: 12px;
        line-height: 19px;
    }

    .app-policy__body {
        font-size: 14px;
        line-height: 23px;
    }

    .app-policy__paragraph {
        margin-bottom: 16px;
    }

    .app-policy__heading {
        gap: 8px;
        margin: 32px 0 18px;
        font-size: 18px;
        line-height: 26px;
        scroll-margin-top: 24px;
    }

    .app-policy__paragraph--numbered {
        gap: 8px;
    }

    .app-policy__cover {
        margin-bottom: 28px;
        font-size: 12px;
        line-height: 20px;
    }

    .app-policy__table {
        font-size: 12px;
        line-height: 19px;
    }

    .app-policy__table--terms {
        min-width: 560px;
    }

    .app-policy__table td,
    .app-policy__table th {
        padding: 12px;
    }
}

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

