:root {
    --ktu-primary: #663399;
    --ktu-secondary: #9370db;
    --ktu-accent: #ff1493;
    --ktu-bg: #faf8fd;
    --ktu-text: #2a1f36;
    --ktu-muted: #5c4e6e;
    --ktu-border: #e4d7f0;
    --ktu-card: #ffffff;
    --ktu-header-h: 72px;
    --ktu-page-w: 1120px;
    --ktu-font-h: "Figtree", "Noto Sans", sans-serif;
    --ktu-font-b: "Noto Sans", sans-serif;
    --ktu-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--ktu-font-b);
    color: var(--ktu-text);
    background: var(--ktu-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--ktu-primary);
    text-decoration: none;
}

a:hover {
    color: var(--ktu-accent);
}

h1, h2, h3, h4 {
    font-family: var(--ktu-font-h);
    line-height: 1.2;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

[hidden] {
    display: none !important;
}

.ktu-container {
    max-width: var(--ktu-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.ktu-u-text-center { text-align: center; }
.ktu-u-mb-sm { margin-bottom: 0.5rem; }
.ktu-u-mb-md { margin-bottom: 1rem; }
.ktu-u-mt-md { margin-top: 1rem; }
.ktu-u-mt-lg { margin-top: 1.75rem; }
.ktu-u-min0 { min-width: 0; }

.ktu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--ktu-header-h);
    background: #ffffff;
    border-bottom: 2px solid var(--ktu-border);
}

.ktu-header__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--ktu-header-h);
}

.ktu-header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.ktu-header__logo img {
    width: 180px;
    height: auto;
}

.ktu-header__cta {
    margin-left: auto;
    margin-right: 0.25rem;
}

.ktu-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: nowrap;
}

.ktu-nav__link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ktu-text);
    white-space: nowrap;
    padding: 0.25rem 0;
}

.ktu-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--ktu-accent);
    transition: width 0.25s ease;
}

.ktu-nav__link:hover::after,
.ktu-nav__link.is-active::after {
    width: 100%;
}

.ktu-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--ktu-primary);
    background: #fff;
    border-radius: var(--ktu-radius);
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.ktu-burger span {
    display: block;
    height: 2px;
    background: var(--ktu-primary);
}

.ktu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(42, 31, 54, 0.45);
    z-index: 110;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ktu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.ktu-drawer {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: #1f1230;
    color: #fff;
    padding: 4.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.ktu-drawer.is-open {
    transform: translateY(0);
}

.ktu-drawer a {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--ktu-font-h);
}

.ktu-drawer__close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: var(--ktu-radius);
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.ktu-drawer__cta {
    margin-top: 1rem;
    align-self: flex-start;
}

main {
    padding-top: var(--ktu-header-h);
    min-height: 60vh;
}

.ktu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-family: var(--ktu-font-h);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ktu-primary);
    background: #fff;
    border: 2px solid var(--ktu-primary);
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ktu-secondary);
    border-radius: var(--ktu-radius);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ktu-btn:hover {
    color: #fff;
    background: var(--ktu-primary);
    border-color: var(--ktu-primary);
}

.ktu-btn--primary {
    color: #fff;
    background: var(--ktu-primary);
    border-color: var(--ktu-primary);
    box-shadow: inset 0 0 0 2px var(--ktu-primary), 0 0 0 2px var(--ktu-accent);
}

.ktu-btn--primary:hover {
    background: var(--ktu-accent);
    border-color: var(--ktu-accent);
    box-shadow: inset 0 0 0 2px var(--ktu-accent), 0 0 0 2px var(--ktu-secondary);
}

.ktu-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: inset 0 0 0 2px transparent, 0 0 0 2px rgba(255,255,255,0.35);
}

.ktu-btn--ghost:hover {
    background: #fff;
    color: var(--ktu-primary);
}

.ktu-card {
    background: var(--ktu-card);
    border: 1.5px solid var(--ktu-border);
    padding: 1.1rem 1.25rem;
    position: relative;
    mask-image:
        radial-gradient(circle at 0 18px, transparent 7px, #000 8px),
        radial-gradient(circle at 100% 18px, transparent 7px, #000 8px);
    mask-size: 51% 100%;
    mask-position: left, right;
    mask-repeat: no-repeat;
    -webkit-mask-image:
        radial-gradient(circle at 0 18px, transparent 7px, #000 8px),
        radial-gradient(circle at 100% 18px, transparent 7px, #000 8px);
    -webkit-mask-size: 51% 100%;
    -webkit-mask-position: left, right;
    -webkit-mask-repeat: no-repeat;
}

.ktu-section {
    padding: 3.25rem 0;
}

.ktu-section__title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    color: var(--ktu-primary);
}

.ktu-section__title.ktu-wipe::after,
.ktu-cta__title.ktu-wipe::after {
    content: "";
    display: block;
    height: 4px;
    width: 0;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, var(--ktu-accent), var(--ktu-secondary));
    transition: width 0.55s ease;
}

.ktu-section__title.ktu-wipe.is-on::after,
.ktu-cta__title.ktu-wipe.is-on::after {
    width: min(180px, 40%);
}

.ktu-section__lead {
    color: var(--ktu-muted);
    max-width: 58ch;
    font-size: 1.05rem;
}

.ktu-hero--bleed {
    position: relative;
    width: 100%;
    min-height: min(78vh, 640px);
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.ktu-hero__media {
    position: relative;
    min-height: inherit;
}

.ktu-hero__still {
    width: 100%;
    height: min(78vh, 640px);
    object-fit: cover;
    object-position: center;
}

.ktu-hero__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(40%, 460px);
    background: linear-gradient(135deg, rgba(102, 51, 153, 0.92), rgba(147, 112, 219, 0.88));
    color: #fff;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.ktu-hero__panel .ktu-container {
    padding-left: 1.5rem;
    padding-right: 1.25rem;
}

.ktu-hero__title {
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    color: #fff;
}

.ktu-hero__text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
}

.ktu-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ktu-mag__row {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
}

.ktu-mag__block--wide-right .ktu-rank__list {
    display: grid;
    gap: 1.25rem;
}

.ktu-note__label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ktu-accent);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ktu-note__body {
    margin: 0;
    color: var(--ktu-muted);
}

.ktu-rank__item {
    padding: 1.25rem;
}

.ktu-rank__pos {
    margin: 0 0 0.65rem;
    font-family: var(--ktu-font-h);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ktu-accent);
}

.ktu-rank__head {
    display: grid;
    grid-template-columns: 96px 1fr minmax(140px, 220px);
    gap: 1rem;
    align-items: start;
}

.ktu-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: cover;
    border: 2px solid var(--ktu-border);
}

.ktu-app__preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--ktu-border);
}

.ktu-rank__name {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.ktu-rank__tag {
    margin: 0 0 0.45rem;
    display: inline-block;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 20, 147, 0.1);
    color: var(--ktu-accent);
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
}

.ktu-rank__desc {
    margin: 0 0 0.45rem;
    color: var(--ktu-muted);
}

.ktu-rank__facts {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ktu-muted);
}

.ktu-rank__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.ktu-log {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.ktu-log li {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-left: 4px solid var(--ktu-secondary);
}

.ktu-log time {
    font-weight: 700;
    color: var(--ktu-primary);
    font-family: var(--ktu-font-h);
}

.ktu-faq__list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.ktu-faq__item {
    background: #fff;
    border: 1.5px solid var(--ktu-border);
}

.ktu-faq__q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-height: 52px;
    padding: 0.85rem 1rem;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    color: var(--ktu-text);
    cursor: pointer;
}

.ktu-faq__mark {
    color: var(--ktu-accent);
    font-size: 1.25rem;
}

.ktu-faq__a {
    padding: 0 1rem 1rem;
    color: var(--ktu-muted);
}

.ktu-cta {
    padding: 3.5rem 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 20, 147, 0.12), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(147, 112, 219, 0.18), transparent 45%),
        linear-gradient(180deg, #f3eafc, #faf8fd);
    border-top: 1px solid var(--ktu-border);
}

.ktu-cta__title {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    color: var(--ktu-primary);
}

.ktu-cta__text {
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--ktu-muted);
}

.ktu-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.ktu-footer {
    background: #1f1230;
    color: #f5eefc;
    padding: 3rem 0 2rem;
}

.ktu-footer a,
.ktu-footer__link {
    color: #e8d8ff;
}

.ktu-footer a:hover,
.ktu-footer__link:hover {
    color: #fff;
}

.ktu-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ktu-footer__heading {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.ktu-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.ktu-footer__link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.ktu-footer__legal,
.ktu-footer__copy {
    color: rgba(245, 238, 252, 0.72);
    font-size: 0.9rem;
}

.ktu-cookie--bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 140;
    background: #2a1f36;
    color: #fff;
    border-top: 3px solid var(--ktu-accent);
    padding: 0.9rem 0;
}

.ktu-cookie__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ktu-cookie__inner p {
    margin: 0;
    font-size: 0.92rem;
}

.ktu-cookie__inner a {
    color: #ffb3de;
}

.ktu-prose {
    max-width: 760px;
}

.ktu-prose h1 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--ktu-primary);
}

.ktu-prose h2 {
    margin-top: 1.6rem;
    color: var(--ktu-primary);
}

.ktu-crumbs {
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.ktu-crumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    color: var(--ktu-muted);
}

.ktu-crumbs__list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: var(--ktu-border);
}

.ktu-review__lead {
    color: var(--ktu-muted);
    font-size: 1.05rem;
}

.ktu-review__facts {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    align-items: start;
}

.ktu-review__facts .ktu-app__preview {
    grid-column: 1 / -1;
}

.ktu-review__list {
    margin: 0;
    grid-column: 2;
}

.ktu-review__facts .ktu-rank__actions {
    grid-column: 1 / -1;
}

.ktu-dispatch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.ktu-dispatch__card h2 {
    font-size: 1.2rem;
    margin: 0.7rem 0 0.4rem;
}

.ktu-dispatch__card p {
    color: var(--ktu-muted);
    margin-bottom: 0.85rem;
}

.ktu-form {
    display: grid;
    gap: 0.9rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.ktu-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.ktu-form input,
.ktu-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--ktu-border);
    border-radius: var(--ktu-radius);
    font: inherit;
    background: #fff;
}

.ktu-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ktu-contact__details {
    max-width: 640px;
    margin: 0 auto;
    color: var(--ktu-muted);
}

.ktu-glossary {
    columns: 2;
    column-gap: 2rem;
}

.ktu-glossary dt {
    font-weight: 700;
    color: var(--ktu-primary);
    break-inside: avoid;
}

.ktu-glossary dd {
    margin: 0 0 0.9rem;
    color: var(--ktu-muted);
}

.ktu-map-list {
    columns: 2;
    column-gap: 2rem;
}

.ktu-map-list a {
    display: block;
    padding: 0.25rem 0;
    font-weight: 600;
}

.ktu-404 {
    text-align: center;
    padding: 4rem 0;
}

@media (max-width: 1100px) {
    .ktu-nav {
        display: none;
    }

    .ktu-burger {
        display: flex;
        margin-left: 0.25rem;
    }

    .ktu-header__cta {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    .ktu-hero__panel {
        position: relative;
        width: 100%;
        inset: auto;
        background: linear-gradient(135deg, #663399, #9370db);
    }

    .ktu-hero__still {
        height: 42vh;
        min-height: 220px;
    }

    .ktu-mag__row,
    .ktu-rank__head,
    .ktu-footer__grid {
        grid-template-columns: 1fr;
    }

    .ktu-rank__head .ktu-app__preview {
        order: -1;
    }

    .ktu-glossary,
    .ktu-map-list {
        columns: 1;
    }

    .ktu-cookie__inner {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .ktu-header__logo img {
        width: 120px;
    }

    .ktu-header__cta {
        font-size: 0.82rem;
        padding: 0.45rem 0.7rem;
    }

    .ktu-hero__actions,
    .ktu-cta__actions,
    .ktu-rank__actions {
        flex-direction: column;
    }

    .ktu-hero__actions .ktu-btn,
    .ktu-cta__actions .ktu-btn,
    .ktu-rank__actions .ktu-btn {
        width: 100%;
    }

    .ktu-review__facts {
        grid-template-columns: 1fr;
    }

    .ktu-review__list {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ktu-drawer,
    .ktu-overlay,
    .ktu-nav__link::after,
    .ktu-section__title.ktu-wipe::after,
    .ktu-cta__title.ktu-wipe::after {
        transition: none;
    }
}
