/* Kent-Ok: базовые стили сайта */
:root {
    --ko-bg: #0f172a;
    --ko-bg-soft: rgba(15, 23, 42, 0.55);
    --ko-text: #f1f5f9;
    --ko-muted: #94a3b8;
    --ko-accent: #38bdf8;
    --ko-accent-dark: #0284c7;
    --ko-radius: 14px;
    --ko-header-h: 64px;
    --ko-footer-h: 48px;
    --ko-safe-top: env(safe-area-inset-top, 0px);
    --ko-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ko-safe-left: env(safe-area-inset-left, 0px);
    --ko-safe-right: env(safe-area-inset-right, 0px);
}

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

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ko-text);
    background: var(--ko-bg) radial-gradient(circle at 20% 20%, #1e3a8a 0, transparent 45%),
                radial-gradient(circle at 80% 80%, #0e7490 0, transparent 45%);
    background-color: var(--ko-bg);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

.ko-page--wallpaper {
    background: var(--ko-bg) var(--ko-wallpaper) center / cover no-repeat fixed;
}

@media (max-width: 768px) {
    /* fixed-фон на мобильных работает плохо, оставляем просто cover */
    .ko-page--wallpaper {
        background-attachment: scroll;
    }
}

.ko-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px var(--ko-safe-right) 16px var(--ko-safe-left);
    min-height: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ko-accent);
}

.ko-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
