:root {
    --color-primary: #663399;
    --color-secondary: #9370db;
    --color-accent: #ff1493;
    --color-bg: #faf8fd;
    --color-text: #2a1838;
    --color-text-light: #5c4a70;
    --color-border: #e4d8f2;
    --dmt-header-h: 76px;
    --dmt-page-w: 1120px;
    --space-lg: 24px;
    --dmt-font-h: "Lexend", sans-serif;
    --dmt-font-b: "IBM Plex Sans", sans-serif;
    --dmt-nav-break: 1180px;
}

@media (max-width: 768px) {
    :root { --dmt-header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-padding-top: var(--dmt-header-h); }
body {
    margin: 0;
    padding-top: var(--dmt-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--dmt-font-b);
    font-size: 1.05rem;
    line-height: 1.6;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(102, 51, 153, 0.05) 1px, transparent 1px);
    background-size: 14px 14px;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--color-primary); }
h1, h2, h3, p, li, a { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--dmt-font-h); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 10px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
main { position: relative; z-index: 1; }

.dmt-container {
    max-width: var(--dmt-page-w);
    margin: 0 auto;
    padding: 0 20px;
}
.dmt-measure { max-width: 760px; }
.dmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.dmt-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--dmt-header-h);
    background: #faf8fd;
    box-shadow: 0 2px 8px rgba(42, 24, 56, 0.08);
}
.dmt-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--dmt-header-h);
}
.dmt-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}
.dmt-header a,
.dmt-header a:visited { color: #663399; }
.dmt-header a.dmt-btn,
.dmt-header a.dmt-btn:visited,
.dmt-header a[data-dmt="btn"] { color: #fff8f4; }
.dmt-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.dmt-nav a {
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}
.dmt-nav a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.dmt-burger,
.dmt-overlay,
.dmt-drawer { display: none; }
.dmt-burger {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    margin-left: auto;
}
.dmt-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #663399;
}

.dmt-btn,
[data-dmt="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    font-family: var(--dmt-font-h);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    color: #fff8f4;
    background: #663399;
    box-shadow: 0 0 0 1px #ff1493, 0 0 14px rgba(255, 20, 147, 0.55);
}
[data-dmt-variant="line"] {
    background: transparent;
    color: #fff8f4;
    box-shadow: inset 0 0 0 2px #fff8f4;
}
.dmt-hero [data-dmt-variant="line"]:hover,
.dmt-hero [data-dmt-variant="line"]:focus {
    color: #2a1838;
    background: #fff8f4;
}

.dmt-hero {
    background: linear-gradient(160deg, #3b1760 0%, #663399 42%, #ff1493 78%, #f6d2a8 100%);
    color: #fff8f4;
    padding: 48px 0 36px;
}
.dmt-hero p { color: #fff8f4; max-width: 62ch; }
.dmt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.dmt-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}
.dmt-facts li {
    background: rgba(250, 248, 253, 0.16);
    border: 1px solid rgba(255, 248, 244, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.dmt-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 28px;
    max-width: var(--dmt-page-w);
    margin: 0 auto;
    padding: 28px 20px 8px;
}
.dmt-aside {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
}
.dmt-aside__kicker {
    font-family: var(--dmt-font-h);
    font-weight: 700;
    color: #663399;
    margin-bottom: 8px;
}
.dmt-aside ul { padding-left: 18px; margin: 0 0 14px; }
.dmt-aside a:not(.dmt-btn) { color: #663399; }
.dmt-main { min-width: 0; }
.dmt-block,
[data-dmt="card"] {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: dmt-scale-in 0.35s ease both;
}
@keyframes dmt-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.dmt-app__badges {
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--color-text-light);
}
.dmt-app__head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.dmt-app__head > div { min-width: 0; }
.dmt-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
}
.dmt-app__dev { color: var(--color-text-light); margin: 0; }
.dmt-app__facts { padding-left: 18px; }
.dmt-app__preview {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
    margin: 12px 0;
    border-radius: 12px;
}
.dmt-app__note { color: var(--color-text-light); }
.dmt-app__checked { font-weight: 600; }
.dmt-verdict {
    font-size: 1.15rem;
    border-left: 4px solid #ff1493;
    padding-left: 12px;
}
[data-dmt="note"] {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    animation: dmt-scale-in 0.35s ease both;
}
[data-dmt="note"] h3,
[data-dmt="note"] p,
[data-dmt="note"] a { margin-left: 16px; margin-right: 16px; }
[data-dmt="note"] a { display: inline-block; margin-bottom: 16px; }
.dmt-band { height: 72px; }
[data-dmt-tone="a"] { background: #663399; }
[data-dmt-tone="b"] { background: #9370db; }
[data-dmt-tone="c"] { background: #ff1493; }
.dmt-band { position: relative; }
.dmt-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #3b1760, #f6d2a8);
    mix-blend-mode: multiply;
    opacity: 0.55;
}

.dmt-cta {
    background: #3b1760;
    color: #fff8f4;
    padding: 40px 0;
    margin-top: 12px;
}
.dmt-cta p { color: #fff8f4; }

.dmt-page { padding: 36px 0 48px; position: relative; z-index: 1; }
.dmt-steps { list-style: none; padding: 0; display: grid; gap: 16px; }
.dmt-steps li {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 16px 18px;
}
.dmt-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.dmt-stills img {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}
.dmt-crumbs { font-size: 0.9rem; color: var(--color-text-light); }
.dmt-form { display: grid; gap: 12px; }
.dmt-form label { display: grid; gap: 6px; font-weight: 600; }
.dmt-form input,
.dmt-form textarea {
    width: 100%;
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
}
.dmt-faq h2 { margin: 0; }
.dmt-faq button {
    width: 100%;
    text-align: left;
    min-height: 44px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    color: #2a1838;
    padding: 10px 14px;
    cursor: pointer;
}
.dmt-faq div { padding: 8px 4px 16px; }

.dmt-footer {
    position: relative;
    z-index: 1;
    background: #2a1838;
    color: #faf8fd;
    padding: 32px 0 20px;
}
.dmt-footer a,
.dmt-footer__link {
    color: #faf8fd;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
.dmt-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.dmt-footer__label { font-family: var(--dmt-font-h); font-weight: 700; }
.dmt-footer ul { list-style: none; padding: 0; margin: 0; }
.dmt-footer__base { margin-top: 20px; font-size: 0.92rem; color: #e4d8f2; }

.dmt-cookie { display: none; }
.dmt-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2a1838;
    color: #fff8f4;
    padding: 12px 0;
}
.dmt-cookie p { margin: 0; color: #fff8f4; }
.dmt-cookie a { color: #ffd0e6; }
.dmt-cookie__row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1180px) {
    .dmt-nav { display: none; }
    .dmt-burger { display: block; }
    .dmt-overlay {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: var(--dmt-header-h);
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, visibility .25s;
    }
    .dmt-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: #faf8fd;
        overflow-y: auto;
        visibility: hidden;
        transition: transform .3s ease, opacity .3s ease, visibility .3s;
    }
    .dmt-drawer a {
        display: block;
        padding: 14px 20px;
        color: #663399;
        text-decoration: none;
        font-weight: 600;
    }
    .dmt-drawer__close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.6rem;
        color: #663399;
        cursor: pointer;
    }
    .dmt-drawer--top {
        top: var(--dmt-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--dmt-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
    }
    body.nav-open { overflow: hidden; }
    body.nav-open .dmt-overlay { opacity: 1; visibility: visible; }
    body.nav-open .dmt-drawer { visibility: visible; }
    body.nav-open .dmt-drawer--top { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .dmt-header__logo img { width: 120px; }
    .dmt-grid { grid-template-columns: repeat(2, 1fr); }
    .dmt-layout { grid-template-columns: 1fr; }
    .dmt-footer__cols { grid-template-columns: 1fr; }
    .dmt-cookie:not([hidden]) { left: 12px; right: 12px; bottom: 12px; border-radius: 12px; }
    .dmt-cookie__row { flex-direction: column; align-items: stretch; }
    .dmt-app__icon { width: 72px; height: 72px; }
}

@media (max-width: 480px) {
    .dmt-grid { grid-template-columns: 1fr; }
}
