:root {
    --bg: #ffffff;
    --bg-muted: #f4f5f7;
    --bg-dark: #0f0f10;
    --text: #0f0f10;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --accent: #0f0f10;
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1120px;
    --shadow: 0 1px 2px rgba(15, 15, 16, 0.04), 0 8px 24px rgba(15, 15, 16, 0.04);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* HEADER */
.header {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.logo__main {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.logo__sub {
    font-size: 14px;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 32px;
    font-size: 15px;
}

/* HERO */
.hero {
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 24px;
    font-weight: 500;
}

.hero__title {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 28px;
    font-weight: 700;
    max-width: 14ch;
}

.hero__lead {
    font-size: 18px;
    color: #374151;
    max-width: 56ch;
    margin: 0 0 40px;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}
.btn--primary {
    background: var(--bg-dark);
    color: #fff;
}
.btn--primary:hover { opacity: 1; background: #2a2a2c; }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover { opacity: 1; background: var(--bg-muted); }

/* SECTIONS */
.section {
    padding: 88px 0;
    border-bottom: 1px solid var(--border);
}
.section--muted { background: var(--bg-muted); }

.section__title {
    font-size: clamp(32px, 4vw, 44px);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    font-weight: 700;
}
.section__lead {
    font-size: 17px;
    color: #374151;
    max-width: 64ch;
    margin: 0 0 12px;
}
.section__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 40px;
}

/* CAMS */
.cams {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cam {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.cam__media {
    background: #ececee;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.cam__placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.cam__placeholder-title {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    margin: 0 0 6px;
}
.cam__placeholder-text {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    max-width: 30ch;
    line-height: 1.45;
}

.cam__body {
    padding: 20px 22px 22px;
}
.cam__body h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}
.cam__body p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* NEWS */
.news {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.news-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.15s ease;
    align-items: start;
}
.news-item:hover { box-shadow: var(--shadow); }
.news-item:not(:has(.news-item__media)) {
    grid-template-columns: 1fr;
}
.news-item__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    width: 180px;
    height: 135px;
}
.news-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.news-item__media:hover img { transform: scale(1.03); opacity: 1; }
.news-item__body { min-width: 0; }
.news-item__date {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}
.news-item__title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    font-weight: 700;
}
.news-item__text p {
    margin: 0 0 10px;
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}
.news-item__text p:last-child { margin-bottom: 0; }

.empty-news {
    padding: 48px 24px;
    background: var(--bg-muted);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
}
.empty-news p { margin: 0; }

.footer__login {
    color: #9ca3af;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-color: #4b5563;
}

/* DOCS */
.docs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.doc__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s ease;
}
.doc__link:hover {
    opacity: 1;
    border-color: #c7c9cd;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.doc__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
}
.doc__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.doc__num {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}
.doc__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}
.doc__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}
.doc__arrow {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--text-muted);
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}
.about__rules h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}
.about__rules h3:not(:first-child) { margin-top: 28px; }
.about__rules p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: #d1d5db;
    padding: 80px 0 32px;
}
.footer--slim { padding: 32px 0; }
.footer--slim .footer__bottom { padding-top: 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer h3 {
    color: #fff;
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid #2a2a2c;
}
.footer__muted {
    color: #9ca3af;
    margin: 0;
    max-width: 44ch;
}
.footer__label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    color: #9ca3af;
    margin: 18px 0 4px;
    font-weight: 500;
}
.footer__label:first-child { margin-top: 0; }
.footer__col p { margin: 0; }
.footer__col a { color: #fff; }

.footer__bottom {
    padding-top: 28px;
    font-size: 13px;
    color: #9ca3af;
}
.footer__bottom p { margin: 0; }

/* RESPONSIVE */
@media (max-width: 860px) {
    .nav { display: none; }
    .container { padding: 0 20px; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 64px 0; }
    .cams { grid-template-columns: 1fr; }
    .docs { grid-template-columns: 1fr; }
    .news-item { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
    .news-item__media { width: 100%; height: auto; max-height: 220px; aspect-ratio: 16 / 9; }
    .about,
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* REPORTS */
.section--muted {
    background: var(--bg-muted);
}
.report-screens {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.report-screens__item {
    display: block;
    width: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.report-screens__item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.report-screens__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 720px) {
    .report-screens__item { width: calc(50% - 6px); }
}
