:root {
    --bs-body-color: #3e3e3e;
    --bs-body-color-rgb: 62, 62, 62;
    --primary-color: #0c3c93;
    --primary-color-rgb: 12, 60, 147;
    --secondary-color: #2371dd;
    --secondary-color-rgb: 35, 113, 221;
    --third-color: #0c3c93;
    --bs-border-width: 2px;
    --bs-border-color: var(--secondary-color);
    --bs-body-font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --footer-background: #1a1a2e;
}

/* Стили стандартных HTML элементов */

a {
    text-decoration: none;
}

a:hover:not(.btn) {
    text-decoration: wavy underline;
}

h3 {
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

footer {
    background: var(--footer-background);
}

/* Стили Bootstrap элементов */

.navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    --bs-navbar-brand-padding-y: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    --bs-nav-link-padding-y: 1rem;
    ----bs-nav-link-font-size: 1.125em;
}

.navbar-toggler {
    --bs-navbar-color: var(--secondary-color);
}

.text-bg-dark {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.95), rgba(var(--secondary-color-rgb), 0.9)) !important;
}

.form-control {
    --bs-body-color: var(--primary-color);
    --bs-body-color-rgb: var(--primary-color-rgb);
}

.btn-lg {
    --bs-btn-font-size: var(--bs-body-font-size);
    --bs-btn-font-weight: 700;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-border-radius: var(--bs-border-radius);
}

.btn-primary {
    --bs-btn-border-width: 0;
    --bs-btn-focus-shadow-rgb: var(--secondary-color-rgb);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--third-color) 100%);
    background-size: 200% 100%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-position: 100% 0;
}

.btn-outline-primary {
    --bs-btn-color: var(--secondary-color);
    --bs-btn-focus-shadow-rgb: var(--secondary-color-rgb);
    --bs-btn-border-color: var(--bs-btn-color);
    --bs-btn-hover-bg: var(--bs-btn-color);
    --bs-btn-hover-border-color: var(--bs-btn-color);
    --bs-btn-active-bg: var(--bs-btn-color);
    --bs-btn-active-border-color: var(--bs-btn-color);
    --bs-btn-disabled-color: var(--bs-btn-color);
    --bs-btn-disabled-border-color: var(--bs-btn-color);
}

.btn-group .btn-outline-primary {
    --bs-btn-bg: rgba(var(--secondary-color-rgb), 0.1);
}

.row div.alert {
    margin: 0;
}

.accordion {
    --bs-accordion-border-color: var(--bs-border-color);
    --bs-accordion-bg: var(--bs-white);
    --bs-accordion-btn-bg: rgba(var(--secondary-color-rgb), 0.1);
    --bs-accordion-active-bg: rgba(var(--secondary-color-rgb), 0.2);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230c3c93' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}

/* Стили своих элементов */

.navbar .logo-img {
    max-height: 80px;
    width: auto;
}

section.container, section.bg-light > div.container {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.section-title {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    flex-shrink: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.list-with-bi {
    padding-left: 1.5em;
    list-style: none;
}

.list-with-bi > li > .bi {
    margin: -1.5em;
}

ul.list-type3 {
    list-style-type: '➤  ';
    padding-left: 1.6em;
}

.contact-card {
    --bs-body-color: var(--bs-white);
    color: var(--bs-body-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1.25rem;
}

.contact-card a {
    color: var(--bs-body-color);
}

.contact-form-card {
    max-width: 600px;
}

/*.mw-v400w {*/
/*    min-width: min(calc(100vw - 6rem), 400px);*/
/*}*/

.seminar-schedule-table th {
    text-align: center;
}

.seminar-schedule-table th:nth-child(1) {
    min-width: min(calc(100vw - 6rem), 400px);
}

.seminar-schedule-table td:nth-child(2), .seminar-schedule-table td:nth-child(3) {
    text-align: center;
}

td:nth-child(2) {text-align:center;}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 20px;
    display: inline-block;
}

.text-bg-dark .badge {
    --bs-badge-font-size: 0.85em;
    --bs-badge-padding-x: 1em;
    --bs-badge-padding-y: 0.5em;
    --bs-badge-border-radius: var(--bs-border-radius-pill);
    background-color: rgba(var(--bs-white-rgb), 0.1);
    border: 1px solid rgba(var(--bs-white-rgb), 0.5);
    text-align: left;
}

.teachers > div {
    background-color: rgba(var(--secondary-color-rgb), 0.1);
    border-left: 4px solid var(--bs-border-color);
    border-radius: 0.75em;
    padding: 1rem;
}

.teachers .header {
    font-weight: 700;
    margin-bottom: 0.5em;
}

.icon-phone::before {
    display: inline-block;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%230c3c93"><!--!Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"/></svg>');
    width: 2em;
    height: 2em;
    vertical-align: middle;
}

.icon-telegram::before {
    display: inline-block;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%230c3c93"><!--!Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M256 8a248 248 0 1 0 0 496 248 248 0 1 0 0-496zM371 176.7c-3.7 39.2-19.9 134.4-28.1 178.3-3.5 18.6-10.3 24.8-16.9 25.4-14.4 1.3-25.3-9.5-39.3-18.7-21.8-14.3-34.2-23.2-55.3-37.2-24.5-16.1-8.6-25 5.3-39.5 3.7-3.8 67.1-61.5 68.3-66.7 .2-.7 .3-3.1-1.2-4.4s-3.6-.8-5.1-.5c-2.2 .5-37.1 23.5-104.6 69.1-9.9 6.8-18.9 10.1-26.9 9.9-8.9-.2-25.9-5-38.6-9.1-15.5-5-27.9-7.7-26.8-16.3 .6-4.5 6.7-9 18.4-13.7 72.3-31.5 120.5-52.3 144.6-62.3 68.9-28.6 83.2-33.6 92.5-33.8 2.1 0 6.6 .5 9.6 2.9 2 1.7 3.2 4.1 3.5 6.7 .5 3.2 .6 6.5 .4 9.8z"/></svg>');
    width: 2em;
    height: 2em;
    vertical-align: middle;
}

.icon-whatsapp::before {
    display: inline-block;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 32 448 448" fill="%230c3c93"><!--!Font Awesome Free v7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M380.9 97.1c-41.9-42-97.7-65.1-157-65.1-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480 117.7 449.1c32.4 17.7 68.9 27 106.1 27l.1 0c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3 18.6-68.1-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1s56.2 81.2 56.1 130.5c0 101.8-84.9 184.6-186.6 184.6zM325.1 300.5c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8s-14.3 18-17.6 21.8c-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7 .9-6.9-.5-9.7s-12.5-30.1-17.1-41.2c-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2s-9.7 1.4-14.8 6.9c-5.1 5.6-19.4 19-19.4 46.3s19.9 53.7 22.6 57.4c2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4s4.6-24.1 3.2-26.4c-1.3-2.5-5-3.9-10.5-6.6z"/></svg>');
    width: 2em;
    height: 2em;
    vertical-align: middle;
}

.icon-web::before {
    display: inline-block;
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="%230c3c93" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m7.5-6.923c-.67.204-1.335.82-1.887 1.855q-.215.403-.395.872c.705.157 1.472.257 2.282.287zM4.249 3.539q.214-.577.481-1.078a7 7 0 0 1 .597-.933A7 7 0 0 0 3.051 3.05q.544.277 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9 9 0 0 1-1.565-.667A6.96 6.96 0 0 0 1.018 7.5zm1.4-2.741a12.3 12.3 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332M8.5 5.09V7.5h2.99a12.3 12.3 0 0 0-.399-2.741c-.808.187-1.681.301-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.6 13.6 0 0 1 7.5 10.91V8.5zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741zm-3.282 3.696q.18.469.395.872c.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a7 7 0 0 1-.598-.933 9 9 0 0 1-.481-1.079 8.4 8.4 0 0 0-1.198.49 7 7 0 0 0 2.276 1.522zm-1.383-2.964A13.4 13.4 0 0 1 3.508 8.5h-2.49a6.96 6.96 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667m6.728 2.964a7 7 0 0 0 2.275-1.521 8.4 8.4 0 0 0-1.197-.49 9 9 0 0 1-.481 1.078 7 7 0 0 1-.597.933M8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855q.216-.403.395-.872A12.6 12.6 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.96 6.96 0 0 0 14.982 8.5h-2.49a13.4 13.4 0 0 1-.437 3.008M14.982 7.5a6.96 6.96 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008zM11.27 2.461q.266.502.482 1.078a8.4 8.4 0 0 0 1.196-.49 7 7 0 0 0-2.275-1.52c.218.283.418.597.597.932m-.488 1.343a8 8 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z"></path></svg>');
    width: 2em;
    height: 2em;
    vertical-align: middle;
}
