* {
    box-sizing: border-box;
}

:root {
    --black: #000;
    --white: #fff;
    --gray-1: #f5f5f5;
    --gray-2: #e5e5e5;
    --gray-3: #999;
    --gray-4: #555;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

a {
    color: inherit;
}

.container {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.header {
    border-bottom: 2px solid #000;
    background: #fff;
}

.header-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 46px;
    height: 46px;
    border: 2px solid #000;
    display: grid;
    place-items: center;
    font-size: 25px;
    font-weight: 900;
}

.logo strong,
.logo span {
    display: block;
}

.logo strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: .08em;
}

.logo div span {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .35em;
    font-weight: 700;
}

.header-info {
    display: flex;
    gap: 28px;
    color: #555;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero {
    min-height: 330px;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 70px 0 45px;
}

.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: #555;
}

.hero h1 {
    margin: 15px 0;
    font-size: clamp(48px, 9vw, 110px);
    line-height: .82;
    letter-spacing: -.07em;
    font-weight: 950;
}

.hero p {
    max-width: 500px;
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.hero-number {
    font-size: clamp(90px, 15vw, 190px);
    font-weight: 950;
    line-height: .7;
    letter-spacing: -.1em;
    color: #e5e5e5;
}

.news-section {
    padding: 55px 0 70px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: 34px;
    letter-spacing: -.04em;
}

.news-count {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #555;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-top: 2px solid #000;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.news-table th {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #000;
    background: #000;
    color: #fff;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-table td {
    padding: 19px 16px;
    border-bottom: 1px solid #d7d7d7;
    vertical-align: top;
}

.news-table tbody tr {
    transition: background .15s ease;
}

.news-table tbody tr:hover {
    background: #f5f5f5;
}

.news-date {
    width: 120px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
}

.news-source {
    width: 190px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.news-category {
    width: 150px;
}

.category {
    display: inline-block;
    padding: 6px 8px;
    border: 1px solid #000;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.news-title a {
    text-decoration: none;
}

.news-title a:hover {
    text-decoration: underline;
}

.loading,
.empty {
    padding: 50px 20px !important;
    text-align: center;
    color: #555;
    font-size: 13px;
}

.about {
    border-top: 2px solid #000;
    border-bottom: 1px solid #000;
    padding: 45px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about h2 {
    margin: 10px 0 0;
    font-size: 30px;
    letter-spacing: -.04em;
}

.about p {
    margin: 0;
    max-width: 560px;
    color: #555;
    line-height: 1.7;
}

.footer {
    padding: 28px 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #555;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 800px) {
    .container {
        width: min(100% - 28px, 1400px);
    }

    .header-inner {
        min-height: 72px;
    }

    .header-info {
        display: none;
    }

    .hero {
        min-height: 280px;
        padding: 50px 0 35px;
    }

    .hero-number {
        font-size: 90px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer .container {
        flex-direction: column;
    }
}

.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter {
    appearance: none;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 9px 13px;
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.filter:hover,
.filter.active {
    background: #000;
    color: #fff;
}

.search input {
    width: 230px;
    height: 38px;
    border: 1px solid #000;
    padding: 0 12px;
    outline: none;
    font: inherit;
    font-size: 12px;
    background: #fff;
    color: #000;
}

.search input:focus {
    border-width: 2px;
}

@media (max-width: 900px) {
    .news-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .search input {
        width: 100%;
    }
}

/* Календарь архива */
.archive-panel {
    border: 1px solid #000;
    padding: 18px;
    margin: 22px 0;
    background: #fff;
}

.archive-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.archive-heading h3 {
    margin: 5px 0;
    font-size: 21px;
    text-transform: uppercase;
}

#archive-selection {
    font-size: 12px;
    color: #555;
}

.archive-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-actions button,
.calendar-top button {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 9px 12px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.archive-actions button:hover,
.calendar-top button:hover {
    background: #000;
    color: #fff;
}

.calendar {
    max-width: 460px;
}

.calendar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calendar-top strong {
    font-size: 14px;
    text-transform: uppercase;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
}

.calendar-weekdays {
    margin-bottom: 6px;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    color: #777;
}

.calendar-day {
    min-height: 43px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.calendar-day.has-news {
    border: 1px solid #000;
    font-weight: 900;
}

.calendar-day.has-news small {
    font-size: 8px;
    line-height: 1;
}

.calendar-day.selected,
.calendar-day.has-news:hover {
    background: #000;
    color: #fff;
}

.calendar-day.today {
    outline: 2px solid #777;
    outline-offset: -3px;
}

.calendar-day:disabled {
    color: #bbb;
    background: #f5f5f5;
    cursor: default;
    border-color: #eee;
}

.calendar-empty {
    min-height: 43px;
}

.calendar-legend {
    margin-top: 10px;
    font-size: 10px;
    color: #555;
}

@media (max-width: 600px) {
    .archive-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar {
        width: 100%;
    }

    .calendar-day {
        min-height: 39px;
    }
}
