/* Основной контент */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: transparent;
    color: #0f172a;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overscroll-behavior-y: contain;
}

:root {
    --viewport-height: 100svh;
    --swipe-offset-top: clamp(86px, 12vh, 120px);
    --swipe-offset-bottom: calc(32px + env(safe-area-inset-bottom, 12px));
    --swipe-peek: clamp(16px, 3vh, 28px);
    --swipe-stack-height: calc(var(--viewport-height) - var(--swipe-offset-top) - var(--swipe-offset-bottom) - (var(--swipe-peek) * 2));
}

@supports (height: 100dvh) {
    :root {
        --viewport-height: 100dvh;
    }
}

body.home-page {
    background: transparent;
    color: #0f172a;
}

html.home-page,
body.home-page {
    overflow-y: auto;
}

body.home-page .page-container.swipe-stack {
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.page-shell {
    position: relative;
    padding-top: calc(clamp(86px, 12vh, 120px) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 12px));
    min-height: 100vh;
    min-height: 100svh;
    min-height: var(--viewport-height);
    box-sizing: border-box;
    max-width: 520px;
    margin: 0 auto;
}

.scenario-shell {
    padding-top: clamp(120px, 16vh, 170px);
}

.page-container {
    width: 100%;
    margin: 0 auto;
}

.page-container.swipe-stack {
    height: calc(100dvh - var(--swipe-offset-top));
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-padding: var(--swipe-peek);
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    padding-top: var(--swipe-peek);
    padding-bottom: var(--swipe-peek);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-container.swipe-stack::-webkit-scrollbar {
    display: none;
}

.swipe-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    position: relative;
    padding: clamp(18px, 3vh, 28px) 0;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
}

.swipe-section.is-half {
    padding: clamp(14px, 2vh, 20px) 0;
    scroll-snap-stop: normal;
}

.swipe-section[data-swipe-hints="true"]::before,
.swipe-section[data-swipe-hints="true"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
    padding: 6px 0;
    pointer-events: none;
    display: block;
    text-align: center;
}

.swipe-section[data-swipe-hints="true"]::before {
    top: 0;
    transform: translateY(calc(-100% - 6px));
}

.swipe-section[data-swipe-hints="true"]::after {
    transform: translateY(calc(100% + 6px));
}

.swipe-section[data-swipe-hints="true"][data-swipe-prev]::before {
    content: "Сверху · " attr(data-swipe-prev);
}

.swipe-section[data-swipe-hints="true"][data-swipe-next]::after {
    content: "Снизу · " attr(data-swipe-next);
}

.content {
    position: relative;
    z-index: 1;
    color: #0f172a;
}

.section-shell.section-transparent {
    background: transparent;
    border: none;
    box-shadow: none;
}

body::before {
    display: none;
}

body.home-page::before {
    display: none;
}


.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: none;
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: none;
    }
}

@media (max-width: 1100px) {
    .content {
        padding-bottom: 120px;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    
    body {
        background-attachment: fixed;
    }
}

.dest-kicker {
    color: white;
    font-size: xx-large;
    align-self: center;
    text-align-last: center;
}