﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

h2, h3, h5 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    line-height: 1.25;
}

h2 {
    font-size: calc(1.325rem + .9vw);
}

h3 {
    font-size: calc(1.3rem + .6vw);
}

h5 {
    font-size: 1.25rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    display: inline-block;
    transition: color .15s ease-in-out, opacity .15s ease-in-out;
}

a:hover {
    opacity: .7;
}

img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
}

input, button, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.display-3 {
    font-size: calc(1.575rem + 3.9vw);
    font-weight: 700;
    line-height: 1.1;
}

.display-4 {
    font-size: calc(1.475rem + 2.7vw);
    font-weight: 700;
    line-height: 1.1;
}

.display-5 {
    font-size: calc(1.425rem + 2.1vw);
    font-weight: 700;
    line-height: 1.1;
}

.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.form-label {
    margin-bottom: .5rem;
    display: inline-block;
}

.form-control {
    display: block;
    width: 100%;
    padding: .825rem 1.1875rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    background-color: transparent;
    border-radius: .625rem;
}

.form-control:focus {
    outline: 0;
}

.form-select {
    display: block;
    width: 100%;
    padding: .825rem 3.5625rem .825rem 1.1875rem;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.2;
    background-color: transparent;
    border-radius: .625rem;
    appearance: none;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 0;
    margin-bottom: 0;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
    margin-right: .5rem;
    vertical-align: top;
    background-color: transparent;
    appearance: none;
}

.form-check-label {
    cursor: pointer;
}

.btn {
    display: inline-block;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: .825rem 1.1875rem;
    font-size: 1.125rem;
    border-radius: .625rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    transition: color .15s ease-in-out;
}

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.navbar > .container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding-top: .40625rem;
    padding-bottom: .40625rem;
    margin-right: 1rem;
    font-size: 1.125rem;
    white-space: nowrap;
    font-weight: 700;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    padding: .25rem .75rem;
    font-size: 1.125rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .625rem;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.collapse:not(.show) {
    display: none;
}

.d-flex {
    display: flex !important;
}
.d-inline-block {
    display: inline-block !important;
}
.position-relative {
    position: relative !important;
}
.position-absolute {
    position: absolute !important;
}
.w-100 {
    width: 100% !important;
}
.h-100 {
    height: 100% !important;
}
.flex-column {
    flex-direction: column !important;
}
.flex-wrap {
    flex-wrap: wrap !important;
}
.flex-shrink-0 {
    flex-shrink: 0 !important;
}
.justify-content-center {
    justify-content: center !important;
}
.justify-content-between {
    justify-content: space-between !important;
}
.align-items-center {
    align-items: center !important;
}
.align-items-start {
    align-items: flex-start !important;
}
.top-0 {
    top: 0 !important;
}
.start-0 {
    left: 0 !important;
}
.end-0 {
    right: 0 !important;
}
.bottom-0 {
    bottom: 0 !important;
}
.start-50 {
    left: 50% !important;
}
.translate-middle-x {
    transform: translateX(-50%) !important;
}
.overflow-hidden {
    overflow: hidden !important;
}
.z-index-2 {
    z-index: 2 !important;
}
.mt-4 {
    margin-top: 1rem !important;
}
.mt-6 {
    margin-top: 1.5rem !important;
}
.mt-8 {
    margin-top: 2rem !important;
}
.mt-10 {
    margin-top: 2.5rem !important;
}
.mt-12 {
    margin-top: 3rem !important;
}
.mt-15 {
    margin-top: 3.75rem !important;
}
.mb-0 {
    margin-bottom: 0 !important;
}
.mb-2 {
    margin-bottom: .5rem !important;
}
.mb-3 {
    margin-bottom: .75rem !important;
}
.mb-4 {
    margin-bottom: 1rem !important;
}
.mb-5 {
    margin-bottom: 1.25rem !important;
}
.mb-6 {
    margin-bottom: 1.5rem !important;
}
.mb-8 {
    margin-bottom: 2rem !important;
}
.mb-10 {
    margin-bottom: 2.5rem !important;
}
.mb-12 {
    margin-bottom: 3rem !important;
}
.mb-15 {
    margin-bottom: 3.75rem !important;
}
.ms-auto {
    margin-left: auto !important;
}
.me-4 {
    margin-right: 1rem !important;
}
.me-6 {
    margin-right: 1.5rem !important;
}
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}
.p-3 {
    padding: .75rem !important;
}
.p-4 {
    padding: 1rem !important;
}
.p-6 {
    padding: 1.5rem !important;
}
.p-8 {
    padding: 2rem !important;
}
.p-10 {
    padding: 2.5rem !important;
}
.py-3 {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}
.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}
.py-10 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}
.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}
.py-15 {
    padding-top: 3.75rem !important;
    padding-bottom: 3.75rem !important;
}
.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
.py-25 {
    padding-top: 6.25rem !important;
    padding-bottom: 6.25rem !important;
}
.ps-8 {
    padding-left: 2rem !important;
}
.ps-9 {
    padding-left: 2.25rem !important;
}
.ps-12 {
    padding-left: 3rem !important;
}
.pt-6 {
    padding-top: 1.5rem !important;
}
.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}
.px-12 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}
.fs-1 {
    font-size: 1.5rem !important;
}
.fs-2 {
    font-size: 1.375rem !important;
}
.fs-3 {
    font-size: 1.25rem !important;
}
.fs-4 {
    font-size: 1.125rem !important;
}
.fw-bold {
    font-weight: 700 !important;
}
.fw-light {
    font-weight: 300 !important;
}
.lh-lg {
    line-height: 1.8 !important;
}
.text-center {
    text-align: center !important;
}
.text-start {
    text-align: left !important;
}
.text-decoration-none {
    text-decoration: none !important;
}
.list-unstyled {
    padding-left: 0 !important;
    list-style: none !important;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}
.rounded-3 {
    border-radius: .75rem !important;
}
.rounded-4 {
    border-radius: 1rem !important;
}
.rounded-5 {
    border-radius: 1.25rem !important;
}
.rounded-circle {
    border-radius: 50% !important;
}
.border-top {
    border-top: 1px solid #dee2e6 !important;
}
.border-5 {
    border-width: 5px !important;
}
.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.opacity-90 {
    opacity: 0.9 !important;
}
.g-4 > * {
    margin-top: 1rem;
}
.g-6 > * {
    margin-top: 1.5rem;
}
.g-8 > * {
    margin-top: 2rem;
}
.order-1 {
    order: 1 !important;
}
.order-2 {
    order: 2 !important;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    .col-md-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
    .flex-md-row {
        flex-direction: row !important;
    }
    .justify-content-md-end {
        justify-content: flex-end !important;
    }
    .align-items-md-center {
        align-items: center !important;
    }
    .me-md-4 {
        margin-right: 1rem !important;
    }
    .mb-md-0 {
        margin-bottom: 0 !important;
    }
    .mt-md-0 {
        margin-top: 0 !important;
    }
    .p-md-8 {
        padding: 2rem !important;
    }
    .p-md-12 {
        padding: 3rem !important;
    }
    .text-md-start {
        text-align: left !important;
    }
    .py-md-25 {
        padding-top: 6.25rem !important;
        padding-bottom: 6.25rem !important;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    .col-lg-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    .col-lg-10 {
        flex: 0 0 auto;
        width: 83.33333333%;
    }
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: .5rem;
        padding-left: .5rem;
    }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-expand-lg .navbar-toggler {
        display: none;
    }
    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
    .mb-lg-12 {
        margin-bottom: 3rem !important;
    }
    .mb-lg-20 {
        margin-bottom: 5rem !important;
    }
    .mt-lg-0 {
        margin-top: 0 !important;
    }
    .py-lg-15 {
        padding-top: 3.75rem !important;
        padding-bottom: 3.75rem !important;
    }
    .py-lg-20 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
    .py-lg-24 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }
    .py-lg-25 {
        padding-top: 6.25rem !important;
        padding-bottom: 6.25rem !important;
    }
    .ps-lg-8 {
        padding-left: 2rem !important;
    }
    .text-lg-start {
        text-align: left !important;
    }
    .order-lg-1 {
        order: 1 !important;
    }
    .order-lg-2 {
        order: 2 !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    .col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .col-xl-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    .col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-xl-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.75rem;
    }
    .display-3 {
        font-size: 4.5rem;
    }
    .display-4 {
        font-size: 3.5rem;
    }
    .display-5 {
        font-size: 3rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .col-xxl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-xxl-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
    .col-xxl-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* Основные цвета и темы */
:root {
    --primary-color: #3B5998;
    --secondary-color: #2E4053;
    --accent-color: #E67E22;
    --info-color: #17A2B8;
    --bg-color: #F8F9FA;
    --bg-secondary: #E9ECEF;
    --text-color: #212529;
    --light-text: #FFFFFF;
    --border-color: #DEE2E6;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Фоновые цвета с улучшенным контрастом */
.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--light-text) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: var(--light-text) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
    color: var(--light-text) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
    color: var(--light-text) !important;
}

.bg-dark {
    background-color: #1A1A1A !important;
    color: var(--light-text) !important;
}

.bg-light {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

.bg-white {
    background-color: #FFFFFF !important;
    color: var(--text-color) !important;
}

/* Цвета текста с улучшенным контрастом */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-light {
    color: #F8F9FA !important;
}

.text-muted {
    color: #6C757D !important;
}

.text-dark {
    color: var(--text-color) !important;
}

/* Прозрачности с улучшенным контрастом */
.bg-opacity-5 {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.bg-opacity-20 {
    background-color: rgba(255, 255, 255, 0.35) !important;
}

.bg-opacity-30 {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Границы */
.border-light {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.border-opacity-10 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

.border-info {
    border-color: var(--info-color) !important;
}

/* Градиенты */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2B4A7F 100%);
}

/* Кнопки */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #2B4A7F;
    border-color: #2B4A7F;
    color: var(--light-text);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--light-text);
}

.btn-accent:hover {
    background-color: #D35400;
    border-color: #D35400;
    color: var(--light-text);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: .75rem;
}

/* Навигация */
.navbar {
    background-color: #FFFFFF;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0 !important;
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
}

.navbar-brand:hover {
    color: var(--accent-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Формы */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    background-color: #FFFFFF;
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 89, 152, 0.25);
    background-color: #FFFFFF;
    color: var(--text-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Ссылки */
a {
    color: var(--primary-color);
    transition: color 0.3s, opacity 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* Утилиты */
.w-25 {
    width: 25% !important;
}

.w-40 {
    width: 40% !important;
}

.h-25 {
    height: 25% !important;
}

.h-75 {
    height: 75% !important;
}

.clip-path-polygon {
    clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
}

/* Улучшенные тени */
.shadow {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2) !important;
}

/* Улучшенные отступы для читабельности */
.py-12 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-15 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-20 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-24 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

.py-25 {
    padding-top: 7.5rem !important;
    padding-bottom: 7.5rem !important;
}

.p-6 {
    padding: 2rem !important;
}

.p-8 {
    padding: 2.5rem !important;
}

.p-10 {
    padding: 3.5rem !important;
}

.p-12 {
    padding: 4rem !important;
}

.mb-6 {
    margin-bottom: 2rem !important;
}

.mb-8 {
    margin-bottom: 3rem !important;
}

.mb-10 {
    margin-bottom: 3.5rem !important;
}

.mb-12 {
    margin-bottom: 4rem !important;
}

.mb-15 {
    margin-bottom: 5rem !important;
}

.mb-20 {
    margin-bottom: 6rem !important;
}

.mt-8 {
    margin-top: 3rem !important;
}

.mt-15 {
    margin-top: 5rem !important;
}

/* Списки */
ul, ol {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

li {
    margin-bottom: 0.75rem;
}

/* Статьи */
article h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    margin-top: 3rem;
}

article h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

article p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Адаптивность */
@media (max-width: 576px) {
    .display-3 {
        font-size: 2.5rem !important;
    }

    .display-4 {
        font-size: 2.2rem !important;
    }

    .display-5 {
        font-size: 1.8rem !important;
    }

    .py-15 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-20 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-25 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    .py-10 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .p-8 {
        padding: 2rem !important;
    }

    .p-10 {
        padding: 2.5rem !important;
    }

    .p-12 {
        padding: 3rem !important;
    }

    .fs-1 {
        font-size: 1.375rem !important;
    }

    .fs-2 {
        font-size: 1.25rem !important;
    }

    .fs-3 {
        font-size: 1.125rem !important;
    }

    .navbar-brand {
        font-size: 1.5rem !important;
    }

    .w-40 {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    .py-lg-15 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    .py-lg-20 {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }

    .py-lg-24 {
        padding-top: 7rem !important;
        padding-bottom: 7rem !important;
    }

    .py-lg-25 {
        padding-top: 7.5rem !important;
        padding-bottom: 7.5rem !important;
    }
}