/* kid-security.uz — design layer on top of main/site/pages.css (emerald palette, UZ components, mobile). */

:root {
    --uz-accent: #18c480;
    --uz-accent-2: #0a8255;
    --uz-accent-soft: rgba(24, 196, 128, .1);
    --uz-sky: #1eaad2;
    --uz-card: rgba(20, 40, 36, .62);
    --uz-line: rgba(255, 255, 255, .09);
    --uz-text: rgba(225, 235, 230, .88);
}

/* ---------- hero ---------- */
.hero {
    background:
        radial-gradient(60rem 22rem at 50% -6rem, rgba(24, 196, 128, .16), transparent 70%),
        radial-gradient(30rem 16rem at 92% 110%, rgba(30, 170, 210, .10), transparent 70%),
        linear-gradient(160deg, #0b1a17 0%, #07110f 55%, #0c1f1b 100%) !important;
}

.hero__title span {
    background: linear-gradient(90deg, #2ed892, #1eaad2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__desc {
    max-width: 760px;
}

.hero__btn {
    border-radius: 999px;
    letter-spacing: .01em;
}

.hero__btn--primary {
    background: linear-gradient(135deg, #22d68c 0%, #0a8255 100%);
    box-shadow: 0 6px 22px rgba(24, 196, 128, .32);
}

.hero__btn--primary:hover,
.hero__btn--primary:focus {
    background: linear-gradient(135deg, #34e39a 0%, #0f9a62 100%);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
    margin: 30px auto 0;
    padding: 0;
    list-style: none;
}

.hero__stats li {
    padding: 14px 10px;
    border: 1px solid rgba(24, 196, 128, .22);
    border-radius: 14px;
    background: rgba(11, 26, 23, .7);
}

.hero__stats b {
    display: block;
    color: #2ed892;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero__stats span {
    display: block;
    margin-top: 4px;
    color: rgba(220, 235, 228, .7);
    font-size: .8rem;
    line-height: 1.3;
}

.hero__badges {
    margin-top: 24px;
}

.hero__badge svg {
    fill: #2ed892;
}

/* ---------- header ---------- */
.header__right .button--primary {
    border-radius: 999px;
}

/* ---------- table of contents: two columns on wide screens ---------- */
.toc {
    border-radius: 16px;
    border-color: rgba(24, 196, 128, .2);
    background: linear-gradient(180deg, rgba(24, 196, 128, .08), rgba(24, 196, 128, .03));
}

.toc__list li a::before {
    content: counter(toc-counter, decimal-leading-zero);
    min-width: 28px;
    color: #2ed892;
    font-weight: 800;
}

@media (min-width: 760px) {
    .toc__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 28px;
    }
}

/* ---------- article typography ---------- */
.article__body h2 {
    position: relative;
    padding-bottom: .45em;
    scroll-margin-top: 90px;
}

.article__body h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #18c480, #1eaad2);
}

.article__body h3,
.article__body h4 {
    scroll-margin-top: 90px;
}

.article__body ol:not([class]) {
    margin: 1.4em 0 1.6em;
    padding-left: 1.6em;
}

.article__body ol:not([class]) li {
    margin: .55em 0;
}

/* ---------- key facts ---------- */
.article__body ul.keyfacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 1.2em 0 1.4em;
    padding: 0;
    list-style: none;
}

.keyfacts li {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--uz-line);
    border-left: 3px solid var(--uz-accent);
    border-radius: 12px;
    background: var(--uz-card);
    color: var(--uz-text);
    line-height: 1.45;
}

.keyfacts strong {
    display: block;
    margin-bottom: 2px;
    color: #96ecc8;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}

@media (max-width: 600px) {
    .article__body ul.keyfacts {
        grid-template-columns: 1fr;
    }
}

/* ---------- CTA strip ---------- */
.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 22px;
    margin: 1.8em 0;
    padding: 18px 20px;
    border: 1px solid rgba(24, 196, 128, .3);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(24, 196, 128, .14), rgba(30, 170, 210, .08));
}

.article__body .cta-strip p {
    margin: 0;
    color: #eef8f3;
    font-size: 1rem;
    line-height: 1.5;
}

.article__body .cta-strip a.cta-strip__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d68c 0%, #0a8255 100%);
    box-shadow: 0 6px 20px rgba(24, 196, 128, .28);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.article__body .cta-strip a.cta-strip__btn:hover,
.article__body .cta-strip a.cta-strip__btn:focus-visible {
    background: linear-gradient(135deg, #34e39a 0%, #0f9a62 100%);
    color: #fff;
}

@media (max-width: 640px) {
    .cta-strip {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .article__body .cta-strip a.cta-strip__btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* ---------- tables ---------- */
.article__body .table-wrap {
    border: 1px solid var(--uz-line);
    border-radius: 14px;
    background: rgba(11, 26, 23, .55);
}

.article__body table {
    margin: 0;
}

.article__body table th,
.article__body table td {
    border: 0;
    border-bottom: 1px solid var(--uz-line);
    padding: .75rem .9rem;
    text-align: left;
    color: var(--uz-text);
}

.article__body table th {
    background: rgba(24, 196, 128, .14);
    color: #eef8f3;
    font-weight: 700;
    white-space: nowrap;
}

.article__body table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .025);
}

.article__body table tbody tr:last-child td {
    border-bottom: 0;
}

.article__body table td:first-child {
    color: #fff;
    font-weight: 600;
}

/* mobile: every row becomes a card, header cells move into data-label */
@media (max-width: 600px) {
    .article__body .table-wrap {
        border: 0;
        background: none;
        overflow: visible;
    }

    .article__body table.stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .article__body table.stack,
    .article__body table.stack tbody,
    .article__body table.stack tr,
    .article__body table.stack td {
        display: block;
        width: 100%;
    }

    .article__body table.stack tr {
        margin: 0 0 10px;
        border: 1px solid var(--uz-line);
        border-left: 3px solid var(--uz-accent);
        border-radius: 12px;
        background: var(--uz-card);
        overflow: hidden;
    }

    .article__body table.stack tbody tr:nth-child(even) td {
        background: none;
    }

    .article__body table.stack td {
        display: grid;
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 10px;
        padding: .6rem .85rem;
        border-bottom: 1px solid var(--uz-line);
        overflow-wrap: anywhere;
    }

    .article__body table.stack td:last-child {
        border-bottom: 0;
    }

    .article__body table.stack td::before {
        content: attr(data-label);
        color: rgba(150, 236, 200, .85);
        font-size: .8rem;
        font-weight: 700;
    }

    .article__body table.stack td:first-child {
        background: rgba(24, 196, 128, .1);
    }
}

/* ---------- FAQ: question headings ---------- */
.faq__h {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit;
    font-weight: inherit;
}

.faq__h::after {
    display: none !important;
}

.faq__item {
    border-radius: 14px !important;
}

.faq__item.is-open {
    border-color: rgba(24, 196, 128, .35) !important;
    box-shadow: inset 3px 0 0 #18c480;
}

.faq .faq__item.is-open .faq__body {
    display: block !important;
}

.faq__body p {
    font-size: 15px;
}

/* ---------- footer ---------- */
.footer__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 18px;
    color: rgba(220, 235, 228, .62);
    font-size: 13px;
    line-height: 1.6;
}

.footer__age {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #e0574f;
    border-radius: 50%;
    color: #ff8a80;
    font-size: 12px;
    font-weight: 800;
}

.footer__contacts a {
    color: #96ecc8;
}

/* ---------- page background (template wrapper showed a black band above the footer) ---------- */
html,
body,
.app,
.app__wrapper {
    background-color: #07110f !important;
}

.faq__body p:last-child {
    margin-bottom: 0;
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
    .hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* comfortable tap targets */
    .toc__list li {
        margin-bottom: 0;
    }

    .toc__list li a {
        padding: 9px 0;
        line-height: 1.35;
    }

    .article__body table.stack td a {
        padding: 9px 0;
    }
}

@media (max-width: 600px) {
    .hero__desc {
        font-size: .95rem;
    }

    .hero__stats b {
        font-size: 1.25rem;
    }

    .article__body {
        overflow-wrap: break-word;
    }
}
