@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/rubik-cyrillic-400.woff2") format("woff2");
}

@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/rubik-cyrillic-600.woff2") format("woff2");
}

:root {
    color-scheme: light;
}

.chernov-site {
    --color-ink: #081A28;
    --color-blue: #305D80;
    --color-brass: #B3935C;
    --color-brass-hover: #9F7F4B;
    --color-paper: #F6F3EC;
    --color-surface: #FFFFFF;
    --color-text: #17212A;
    --color-muted: #5C6670;
    --color-line: #D9DEE2;
    --color-line-strong: #B9C1C8;
    --color-success: #2F6B4F;
    --color-error: #A73333;
    --color-focus: #1F6FA5;
    --shadow-soft: 0 8px 24px rgba(8, 26, 40, .08);
    --shadow-lift: 0 18px 42px rgba(8, 26, 40, .14);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container: 1200px;
    --reading: 760px;
    --chernov-mobile-dock-space: calc(4.5rem + env(safe-area-inset-bottom));
    min-width: 0;
    color: var(--color-text);
    background: var(--color-surface);
    font-family: "Rubik", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

.chernov-site a {
    color: var(--color-blue);
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

.chernov-site a:hover {
    color: var(--color-brass-hover);
}

.chernov-site img,
.chernov-site svg {
    max-width: 100%;
}

.chernov-site img {
    height: auto;
}

.chernov-site button,
.chernov-site input,
.chernov-site textarea,
.chernov-site select {
    font: inherit;
}

.chernov-site button {
    cursor: pointer;
}

.chernov-site h1,
.chernov-site h2,
.chernov-site h3,
.chernov-site h4,
.chernov-site p,
.chernov-site li {
    overflow-wrap: break-word;
    hyphens: none;
}

.chernov-site h1,
.chernov-site h2,
.chernov-site h3,
.chernov-site h4 {
    color: var(--color-ink);
    line-height: 1.2;
    font-weight: 600;
}

.chernov-site h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4.4vw, 3.5rem);
    letter-spacing: -.025em;
}

.chernov-site h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.7rem, 2.7vw, 2.35rem);
    letter-spacing: -.018em;
}

.chernov-site h3 {
    margin: 0 0 .65rem;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.chernov-site p {
    margin: 0 0 1rem;
}

.chernov-site ul,
.chernov-site ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.chernov-container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.chernov-container--narrow {
    width: min(var(--reading), calc(100% - 40px));
}

.chernov-screen-reader {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.chernov-skip-link {
    position: fixed;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: .65rem 1rem;
    color: var(--color-ink) !important;
    background: var(--color-brass);
}

.chernov-skip-link:focus {
    top: 1rem;
}

.chernov-site :focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.chernov-site [hidden] {
    display: none !important;
}

.chernov-site.chernov-dialog-open {
    overflow: hidden;
}

body.chernov-lock-scroll {
    overflow: hidden;
}

.chernov-main {
    min-width: 0;
    min-height: 30vh;
}

.chernov-main > * {
    scroll-margin-top: 7rem;
}

.chernov-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.chernov-section:nth-child(even) {
    background: var(--color-paper);
}

.chernov-section__title {
    max-width: 800px;
}

.chernov-section-heading {
    margin-bottom: 2.25rem;
}

.chernov-section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.chernov-section-heading__lead,
.chernov-section-heading__hint {
    max-width: 32rem;
    margin: 0;
    color: var(--color-muted);
}

.chernov-eyebrow {
    margin: 0 0 .65rem;
    color: var(--color-text);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.chernov-rich-text {
    max-width: var(--reading);
    color: var(--color-text);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.chernov-rich-text > :first-child {
    margin-top: 0;
}

.chernov-rich-text > :last-child {
    margin-bottom: 0;
}

.chernov-rich-text h2,
.chernov-rich-text h3,
.chernov-rich-text h4 {
    scroll-margin-top: 7rem;
}

.chernov-rich-text h2 {
    margin-top: 3rem;
}

.chernov-rich-text h3 {
    margin-top: 2.2rem;
}

.chernov-rich-text blockquote {
    margin: 2rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--color-brass);
    background: var(--color-paper);
}

.chernov-rich-text table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.chernov-rich-text th,
.chernov-rich-text td {
    padding: .75rem;
    border: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

.chernov-rich-text th {
    color: var(--color-ink);
    background: var(--color-paper);
}

.chernov-muted-text {
    color: var(--color-muted);
}

.chernov-text-link {
    font-weight: 600;
}

@media (max-width: 760px) {
    .chernov-container,
    .chernov-container--narrow {
        width: calc(100% - 32px);
    }

    .chernov-section {
        padding: 3.75rem 0;
    }

    .chernov-section-heading--split {
        display: block;
    }

    .chernov-section-heading__lead,
    .chernov-section-heading__hint {
        margin-top: 1rem;
    }

    .chernov-rich-text {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .chernov-container,
    .chernov-container--narrow {
        width: calc(100% - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chernov-site *,
    .chernov-site *::before,
    .chernov-site *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
