:root {
    --color-primary: #ff7675;
    --color-secondary: #ff9999;
    --color-accent: #fff5e6;
    --color-bg: #fff9f6;
    --color-text: #333333;
    --color-border: #f0cfc8;
    --color-muted: #6b5e5a;
    --font-heading: "Manrope", sans-serif;
    --font-body: "Atkinson Hyperlegible", sans-serif;
    --space-xs: 0.35rem;
    --space-sm: 0.65rem;
    --space-md: 1.1rem;
    --space-lg: 1.75rem;
    --space-xl: 2.75rem;
    --radius-card: 24px 4px 24px 4px;
    --dci-page-w: 1120px;
    --dci-header-h: 72px;
    --dci-measure: 680px;
}

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

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

[hidden] { display: none !important; }

html {
    scroll-padding-top: var(--dci-header-h);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--dci-header-h);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    max-width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 118, 117, 0.08), transparent 42%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 11px,
            rgba(255, 153, 153, 0.06) 11px,
            rgba(255, 153, 153, 0.06) 12px
        );
}

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

a { color: var(--color-primary); }
a:hover { color: #e55b5a; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.45rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-md); }

.dci-container {
    width: min(100% - 2rem, var(--dci-page-w));
    margin-inline: auto;
}

.dci-flow > * + * { margin-top: var(--space-md); }

.dci-u-center { text-align: center; }
.dci-u-narrow {
    max-width: var(--dci-measure);
    margin-inline: auto;
    min-width: 0;
}

.dci-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.dci-grid > * { min-width: 0; }

@media (max-width: 768px) {
    .dci-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .dci-grid { grid-template-columns: 1fr; }
}

.dci-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--dci-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dci-header a,
.dci-header a:visited {
    color: var(--color-text);
    text-decoration: none;
}

.dci-header__row {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    min-height: var(--dci-header-h);
    gap: var(--space-sm);
}

.dci-header__logo {
    justify-self: start;
    z-index: 2;
}

.dci-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}

.dci-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.55rem 0.85rem;
    justify-self: center;
    max-width: 100%;
    min-width: 0;
}

.dci-nav__link {
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.dci-nav__link.is-active,
.dci-nav__link:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.dci-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    justify-self: end;
    grid-column: 3;
}

.dci-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-text);
    border-radius: 1px;
}

.dci-overlay,
.dci-drawer { display: none; }

.dci-utility {
    background: var(--color-accent);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-muted);
}

.dci-utility__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.45rem 0;
    justify-content: space-between;
}

.dci-utility__date { font-weight: 700; color: var(--color-text); }

.dci-section {
    padding: var(--space-xl) 0;
}

.dci-section__title {
    margin: 0 0 var(--space-lg);
}

h2.is-in::after,
.is-in h2::after {
    content: "";
    display: block;
    height: 2px;
    width: 0;
    margin-top: 0.45rem;
    background: var(--color-primary);
    animation: dci-k-line 0.6s ease both;
}

@keyframes dci-k-line {
    from { width: 0; }
    to { width: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    h2.is-in::after,
    .is-in h2::after { animation: none; width: 3rem; }
    .dci-ripple { display: none !important; }
}

.dci-hero {
    position: relative;
    padding: var(--space-xl) 0 calc(var(--space-xl) + 0.5rem);
    background:
        linear-gradient(165deg, #fff5e6 0%, #fff9f6 48%, #ffe8e6 100%);
    overflow: hidden;
}

.dci-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-xl);
    align-items: center;
}

.dci-hero__title { margin-top: 0; }
.dci-hero__text { color: var(--color-muted); }

.dci-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.dci-hero__actions .dci-btn { min-width: 0; }

.dci-mosaic {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto;
    gap: 0.85rem;
    align-items: end;
    min-width: 0;
}

.dci-mosaic__item {
    margin: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-accent);
    box-shadow: 0 8px 24px rgba(255, 118, 117, 0.12);
}

.dci-mosaic__item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.dci-mosaic__item--a { transform: translateY(12px); }
.dci-mosaic__item--b { transform: translateY(-18px); }
.dci-mosaic__item--c { transform: translateY(28px); }
.dci-mosaic__item--d { transform: translateY(-8px); }

.dci-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    box-shadow: 0 4px 16px rgba(51, 51, 51, 0.04);
}

.dci-card[data-state="featured"] {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 28px rgba(255, 118, 117, 0.12);
}

.dci-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 1.2rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dci-btn__icon {
    display: inline-flex;
    transition: transform 0.2s ease;
}

.dci-btn:hover .dci-btn__icon,
.dci-btn:focus-visible .dci-btn__icon {
    transform: scale(1.18);
}

.dci-btn--primary,
a.dci-btn--primary,
a.dci-btn--primary:visited,
button.dci-btn--primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.dci-btn--primary:hover,
a.dci-btn--primary:hover,
button.dci-btn--primary:hover {
    background: #e55b5a;
    border-color: #e55b5a;
    color: #fff;
}

.dci-hero a.dci-btn,
.dci-hero a.dci-btn:visited {
    color: var(--color-primary);
    background: #fff;
}

.dci-hero a.dci-btn--primary,
.dci-hero a.dci-btn--primary:visited {
    color: #fff;
    background: var(--color-primary);
}

.dci-cta a.dci-btn--primary,
.dci-cta a.dci-btn--primary:visited {
    color: #fff;
}

.dci-header a.dci-btn--primary,
.dci-header a.dci-btn--primary:visited,
.dci-drawer a.dci-btn--primary,
.dci-drawer a.dci-btn--primary:visited {
    color: #fff;
}

.dci-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: dci-ripple 0.55s ease-out;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.dci-btn:not(.dci-btn--primary) .dci-ripple {
    background: rgba(255, 118, 117, 0.28);
}

@keyframes dci-ripple {
    to { transform: scale(2.6); opacity: 0; }
}

.dci-app__badges {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.dci-app__head {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
}

.dci-app__meta { min-width: 0; }

.dci-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--color-accent);
}

.dci-app__name { margin: 0 0 0.35rem; font-size: 1.35rem; }
.dci-app__dev {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

.dci-app__note,
.dci-app__checked {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.dci-app__checked { font-weight: 700; color: var(--color-text); }

.dci-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: var(--space-md) 0;
    -webkit-overflow-scrolling: touch;
}

.dci-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.dci-table caption {
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0 0 0.65rem;
    color: var(--color-muted);
}

.dci-table th,
.dci-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    min-width: 0;
}

.dci-table th {
    width: 32%;
    font-family: var(--font-heading);
    background: var(--color-accent);
    color: var(--color-text);
}

.dci-table thead th {
    width: auto;
    background: var(--color-primary);
    color: #fff;
}

.dci-protocol {
    margin: 0;
    padding-left: 1.25rem;
}

.dci-protocol li { margin-bottom: 0.55rem; }

.dci-feature__title { margin-top: 0; color: var(--color-primary); }

.dci-article-card__band {
    height: 10px;
    margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-md);
    border-radius: 24px 4px 0 0;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.dci-article-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.dci-article-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.dci-article-card__title a:hover { color: var(--color-primary); }

.dci-article-card__excerpt { color: var(--color-muted); margin-bottom: 0.75rem; }

.dci-article-card time {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.dci-cta {
    background: linear-gradient(180deg, var(--color-accent), #ffe4df);
}

.dci-cta .dci-section__title { margin-inline: auto; }

.dci-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    align-items: start;
}

.dci-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: var(--space-md);
}

.dci-form__field label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.dci-form__field input,
.dci-form__field textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--color-text);
}

.dci-form__field input:focus,
.dci-form__field textarea:focus {
    outline: 2px solid var(--color-secondary);
    border-color: var(--color-primary);
}

.dci-form__status {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: var(--color-accent);
    color: var(--color-text);
}

.dci-dl {
    margin: 0;
}

.dci-dl dt {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0.75rem;
}

.dci-dl dd {
    margin: 0.2rem 0 0;
    color: var(--color-muted);
}

.dci-az {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: var(--space-md) 0;
}

.dci-az a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.25rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
}

.dci-crumbs {
    margin-bottom: var(--space-md);
    font-size: 0.88rem;
}

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

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

.dci-crumbs a { color: var(--color-muted); text-decoration: none; }
.dci-crumbs a:hover { color: var(--color-primary); }

.dci-article__meta {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.dci-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: #fff;
    border-top: 1px solid var(--color-border);
}

.dci-footer__card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.dci-footer__desk-title {
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 0 0.4rem;
}

.dci-footer__desk-note { color: var(--color-muted); }
.dci-footer__checked { font-weight: 700; margin: 0; }

.dci-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dci-footer__links a,
.dci-footer__link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
}

.dci-footer__links a:hover,
.dci-footer__link:hover { color: var(--color-primary); }

.dci-footer__legal,
.dci-footer__copy {
    font-size: 0.88rem;
    color: var(--color-muted);
    max-width: 52rem;
}

.dci-cookie { display: none; }

.dci-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    border-radius: 999px;
    padding: 0.55rem 0.65rem 0.55rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 28px rgba(51, 51, 51, 0.12);
}

.dci-cookie p {
    margin: 0;
    font-size: 0.88rem;
    white-space: nowrap;
}

.dci-cookie a { color: var(--color-primary); }

.dci-cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }

.dci-cookie .dci-btn {
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    min-height: 40px;
    box-shadow: none;
}

.dci-cookie a.dci-btn--primary,
.dci-cookie button.dci-btn--primary,
.dci-cookie a.dci-btn--primary:visited {
    color: #fff;
}

body.dci-cookie-open {
    padding-bottom: 72px;
}

code {
    font-size: 0.9em;
    background: var(--color-accent);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .dci-hero__grid {
        grid-template-columns: 1fr;
    }

    .dci-mosaic {
        order: -1;
        max-width: 420px;
        margin-inline: auto;
    }

    .dci-contact,
    .dci-footer__card {
        grid-template-columns: 1fr;
    }
}

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

    .dci-header__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        grid-template-columns: none;
    }

    .dci-burger {
        display: block;
        margin-left: auto;
        grid-column: auto;
    }

    .dci-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }

    .dci-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .dci-drawer--wide {
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(85vw, 400px);
        padding: 72px 0 24px;
        transform: translateX(100%);
    }

    body.nav-open .dci-drawer--wide { transform: translateX(0); }

    .dci-drawer a {
        display: block;
        padding: 14px 20px;
        color: var(--color-text);
        text-decoration: none;
        font-family: var(--font-heading);
        font-weight: 600;
    }

    .dci-drawer a:not(.dci-btn):hover { color: var(--color-primary); }

    .dci-drawer a.dci-btn {
        margin: 12px 20px;
        width: calc(100% - 40px);
    }

    .dci-drawer__close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.75rem;
        line-height: 1;
        cursor: pointer;
        color: var(--color-text);
    }

    body.nav-open { overflow: hidden; }
    body.nav-open .dci-overlay { opacity: 1; visibility: visible; }
    body.nav-open .dci-drawer { visibility: visible; }
}

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

    .dci-hero__actions { flex-direction: column; }
    .dci-hero__actions .dci-btn { width: 100%; }

    .dci-app__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dci-app__icon {
        width: 72px;
        height: 72px;
    }

    .dci-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        transform: none;
        flex-wrap: wrap;
        border-radius: 18px;
        justify-content: space-between;
    }

    .dci-cookie p {
        white-space: normal;
        flex: 1 1 160px;
    }

    .dci-cookie .dci-btn { min-height: 44px; }

    .dci-mosaic__item--a,
    .dci-mosaic__item--b,
    .dci-mosaic__item--c,
    .dci-mosaic__item--d { transform: none; }
}

@media (max-width: 520px) {
    .dci-utility__inner { flex-direction: column; gap: 0.2rem; }
}
