/* Современный стиль: тёмная шапка, синие акценты */
:root {
    --color-dark: #02205f;
    --color-dark-bg: #0f1629;
    --color-accent: #008aff;
    --color-accent-dark: #114a9f;
    --color-btn: #114a9f;
    --color-btn-hover: #0d3a80;
    --color-light-bg: #f5f8fc;
    --color-border: #e2e8f0;
    --color-text: #1a1a2e;
    --color-text-muted: #64748b;
    --max-width: 1200px;
    --shadow-sm: 0 1px 2px rgba(2, 32, 95, 0.06);
    --shadow-md: 0 4px 12px rgba(2, 32, 95, 0.08);
    --shadow-lg: 0 8px 24px rgba(2, 32, 95, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main {
    flex: 1;
    padding: 2.5rem 0 4rem;
    background: linear-gradient(180deg, #fff 0%, var(--color-light-bg) 100%);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.header__center {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header__logo {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}
.header__logo:hover {
    color: var(--color-accent-dark);
}
.header__logo-img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}
.header__logo-text {
    white-space: nowrap;
    margin-left: 12px;
    font-size: 16px;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .header__logo-text { font-size: 14px; }
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}
.nav__link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    padding: 6px 0 10px;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}
.nav__link:hover {
    color: var(--color-accent);
}
.nav__link_active {
    color: var(--color-accent);
}
.nav__link_active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}
.nav__link_active:hover {
    color: var(--color-accent-dark);
}
.nav__link_active:hover::after {
    background: var(--color-accent-dark);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.header__burger span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
}

@media (max-width: 992px) {
    .header__nav {
        display: none;
    }
    .header__burger {
        display: flex;
    }
    .header__nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: 16px 20px;
        z-index: 100;
    }
    .nav__list {
        flex-direction: column;
    }
}

/* Page content */
.page__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.hero.section {
    padding: 2rem 0;
}
.page__title {
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.25;
    margin: 0 0 1.25rem;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}
.page__content {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
}
.page__content p {
    margin: 0 0 1rem;
}
.page__content a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.page__content a:hover {
    text-decoration: underline;
}
.page__content ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}
.page__content li {
    margin-bottom: 0.5rem;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}
.section__title {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    color: var(--color-dark);
}
.section__text {
    margin: 0 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn_primary {
    background: var(--color-btn);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn_primary:hover {
    background: var(--color-btn-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Forms */
.form__item {
    margin-bottom: 1.25rem;
}
.form__name {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}
.form__input,
.form__textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
}
.form__textarea {
    min-height: 120px;
    resize: vertical;
}
.form__buttons {
    margin-top: 1.5rem;
}
.form__error {
    font-size: 14px;
    color: #c00;
    margin-top: 4px;
}

/* News cards */
.news-list {
    display: grid;
    gap: 20px;
}
.news-card {
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
    box-shadow: var(--shadow-lg);
}
.news-card__date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}
.news-card__title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0 0 8px;
}
.news-card__title a {
    color: var(--color-text);
    text-decoration: none;
}
.news-card__title a:hover {
    color: var(--color-accent);
}
.news-card__short {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Partners */
.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.partner-card {
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s;
}
.partner-card:hover {
    box-shadow: var(--shadow-lg);
}
.partner-card__name {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0 0 8px;
}
.partner-card__name a {
    color: var(--color-text);
    text-decoration: none;
}
.partner-card__name a:hover {
    color: var(--color-accent);
}
.partner-card__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Documents */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.doc-list li {
    margin-bottom: 12px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.doc-list a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.doc-list a:hover {
    text-decoration: underline;
}

/* Banner */
.banner {
    width: 100%;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent-dark) 100%);
}
.banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.banner__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 12px 12px;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--color-dark-bg);
    color: #fff;
    padding: 32px 0 20px;
}
.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.top-footer__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px 48px;
    align-items: start;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .top-footer__row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.top-footer__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}
.top-footer__col_links .top-footer__link,
.top-footer__col_contacts .top-footer__link {
    margin-bottom: 6px;
}
.top-footer__logo {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    display: inline-block;
    margin-bottom: 12px;
}
.top-footer__logo:hover {
    color: #fff;
    opacity: 0.9;
}
.top-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-footer__logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}
.top-footer__logo-text {
    font-size: 15px;
    line-height: 1.3;
    color: #fff;
}
.top-footer__text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin: 0 0 8px;
    max-width: 360px;
}
.top-footer__link {
    display: block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
}
.top-footer__link:hover {
    color: #80c4ff;
}
.top-footer__col_contacts .top-footer__text {
    max-width: none;
}
.footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.footer__copy {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* Alerts */
.messages-wrap {
    padding-top: 16px;
}
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--color-text);
}
.pagination a:hover {
    background: var(--color-light-bg);
    color: var(--color-accent);
}
.pagination .current {
    background: var(--color-btn);
    color: #fff;
    border-color: var(--color-btn);
}

/* Scroll to top */
html {
    scroll-behavior: smooth;
}
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-btn);
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s, background 0.2s;
    z-index: 99;
}
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.scroll-top:hover {
    background: var(--color-btn-hover);
    color: #fff;
}
