:root {
    --blue: #1f2933;
    --blue-dark: #111418;
    --text: #222;
    --muted: #6f7782;
    --line: #e7edf2;
    --soft: #f7f9fb;
    --card: #fff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.top {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    width: min(1000px, calc(100% - 32px));
    min-height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 700;
}

.logo span,
h1 {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 900;
}

.logo img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

main {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    padding: 54px 0 34px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.hero-icon {
    width: 118px;
    height: 118px;
    margin: 0 auto 18px;
    border-radius: 28px;
    overflow: hidden;
}

.hero-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

h1 {
    margin: 0 0 6px;
    color: #333;
    font-size: 52px;
    line-height: 1.08;
}

.sublead {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 4px;
    color: #fff;
    background: var(--blue-dark);
    font-size: 15px;
    font-weight: 700;
}

.download.channel {
    color: var(--blue-dark);
    background: #fff;
    border: 1px solid #d3d7dc;
}

.news {
    padding: 38px 0 34px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 68px;
}

.news h2 {
    margin: 0 0 24px;
    color: #333;
    text-align: center;
    font-size: 28px;
    font-weight: 500;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    min-height: 178px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: stretch;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.news-card:focus-visible {
    border-color: #cfd4da;
    box-shadow: 0 10px 26px rgba(17, 20, 24, 0.14);
    outline: none;
}

.news-card.is-linked {
    border-color: #2f343a;
    background: #f5f6f7;
    box-shadow: 0 0 0 3px rgba(17, 20, 24, 0.16);
    transition-duration: 0.1s;
}

.news-body {
    padding: 20px 18px;
}

.news-date {
    display: block;
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.news-card h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 20px;
    line-height: 1.24;
    font-weight: 600;
}

.news-card p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.news-media {
    min-width: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--soft);
    border-left: 1px solid var(--line);
}

.news-media:not(.is-loading):empty {
    display: none;
}

.news-media.is-loading::after {
    width: 18px;
    height: 18px;
    border: 2px solid #d7dbe0;
    border-top-color: var(--blue-dark);
    border-radius: 50%;
    content: "";
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.news-media img,
.news-media video,
.news-media canvas,
.news-media svg {
    width: 112px !important;
    height: 112px !important;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.news-card.no-media {
    grid-template-columns: 1fr;
}

.news-more {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 28px 0 2px;
}

.news-more::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -42px;
    height: 64px;
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 78%);
}

.news-more-btn {
    position: relative;
    z-index: 1;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #d3d7dc;
    border-radius: 4px;
    color: var(--blue-dark);
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.news-more-btn:focus-visible {
    outline: 2px solid rgba(42, 171, 238, 0.28);
    outline-offset: 2px;
}

.footer {
    width: min(1000px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    text-align: center;
}

.footer-inner {
    width: 100%;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #666;
    font-weight: 600;
}

.legal-main {
    width: min(880px, calc(100% - 32px));
}

.legal-page {
    padding: 46px 0 52px;
}

.legal-kicker {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-page h1 {
    margin-bottom: 10px;
    font-size: 42px;
}

.legal-updated {
    margin: 0 0 18px;
    color: #8a9098;
    font-size: 14px;
}

.legal-intro {
    max-width: 720px;
    margin: 0 0 30px;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

.legal-section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.legal-section h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 650;
}

.legal-section p,
.legal-list {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.legal-section a {
    color: var(--blue-dark);
    font-weight: 700;
}

.safety-lead {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--line);
    overflow: hidden;
}

.safety-lead div {
    min-height: 116px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.safety-lead strong {
    color: #333;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.safety-lead span {
    color: #747b84;
    font-size: 14px;
    line-height: 1.45;
}

.safety-stats {
    margin-top: 22px;
    display: grid;
    gap: 14px;
}

.safety-stats.is-loading,
.safety-stats > span {
    color: #747b84;
    font-size: 14px;
    line-height: 1.5;
}

.safety-stat-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(8px);
    animation: safetyRowIn 0.42s ease forwards;
    animation-delay: var(--delay, 0ms);
}

.safety-stat-row span,
.safety-stat-row strong {
    color: #4c535b;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 650;
}

.safety-stat-row strong {
    text-align: right;
}

.safety-stat-row div {
    height: 10px;
    border-radius: 999px;
    background: #eef1f4;
    overflow: hidden;
}

.safety-stat-row i {
    width: var(--value, 0%);
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--blue-dark);
    display: block;
    overflow: hidden;
    will-change: width;
    transition: width 0.86s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}

.safety-stat-row b {
    width: var(--handled);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #6c7682;
    opacity: 0.95;
}

.safety-stat-row.is-empty i,
.safety-stat-row.is-empty b {
    width: 0;
}

@keyframes safetyRowIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .safety-stat-row {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .safety-stat-row i {
        transition: none;
    }
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    min-height: 68px;
    padding: 0 42px 0 0;
    border: 0;
    color: #333;
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 650;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.faq-question:focus-visible {
    outline: 2px solid rgba(17, 20, 24, 0.18);
    outline-offset: 3px;
}

.faq-question::after {
    width: 22px;
    height: 22px;
    position: absolute;
    right: 2px;
    top: 50%;
    border: 1px solid #d3d7dc;
    border-radius: 50%;
    color: #555;
    content: "+";
    display: grid;
    place-items: center;
    font-size: 16px;
    line-height: 1;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.faq-item.is-open .faq-question::after {
    content: "-";
    color: var(--blue-dark);
    border-color: #aeb5bd;
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-4px);
    transition: grid-template-rows 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.faq-answer > p {
    overflow: hidden;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}

.faq-item p {
    max-width: 720px;
    margin: -4px 0 22px;
    color: #666;
    font-size: 15px;
    line-height: 1.65;
}

.faq-item a {
    color: var(--blue-dark);
    font-weight: 700;
}

.legal-list {
    padding-left: 20px;
}

.legal-list li + li {
    margin-top: 6px;
}

.about-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.about-head img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
}

.about-head h1 {
    margin: 0;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 30;
    min-width: 180px;
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    background: rgba(34, 48, 60, 0.94);
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 860px) {
    .links {
        gap: 14px;
        font-size: 13px;
    }

    .news-grid {
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .nav,
    main,
    .footer {
        width: min(100% - 24px, 1000px);
    }

    .nav {
        min-height: 50px;
        align-items: flex-start;
        padding: 12px 0;
        flex-direction: column;
        gap: 10px;
    }

    .links {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .hero {
        padding: 38px 0 30px;
    }

    .hero-icon {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    h1 {
        font-size: 42px;
    }

    .download {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        min-height: 0;
        grid-template-columns: 1fr 104px;
    }

    .news-body {
        padding: 17px 15px;
    }

    .news-media {
        padding: 12px;
    }

    .news-media img,
    .news-media video,
    .news-media canvas,
    .news-media svg {
        width: 74px !important;
        height: 74px !important;
    }

    .footer-inner {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .legal-main {
        width: min(100% - 24px, 880px);
    }

    .legal-page {
        padding: 34px 0 42px;
    }

    .legal-page h1 {
        font-size: 34px;
    }

    .legal-intro {
        font-size: 16px;
    }

    .safety-lead {
        grid-template-columns: 1fr;
    }

    .safety-lead div {
        min-height: 94px;
        padding: 18px 16px;
    }

    .safety-stat-row {
        grid-template-columns: 1fr 38px;
        gap: 8px 12px;
    }

    .safety-stat-row div {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .about-head {
        align-items: flex-start;
    }

    .about-head img {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }
}
