/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.333;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Navbar ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar { padding: 10px 0; }
.site-header .navbar-brand { font-size: 0; padding: 0; }
.site-header .navbar-brand img { height: 44px; width: auto; }

.site-header .nav-link {
    color: #333 !important;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px !important;
}

.site-header .nav-link:hover { color: #000 !important; }

.site-header .navbar-toggler { border-color: #ccc; }
.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2851,51,51,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-application {
    display: inline-block;
    background-color: #333;
    color: #fff;
    border-radius: 24px;
    padding: 8px 24px;
    font-size: 14px;
    transition: background-color 0.2s;
}
.btn-application:hover { background-color: #555; color: #fff; }

/* ===== Hero / Schedule Section ===== */
.hero-schedule {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-schedule__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-schedule__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(17, 17, 17, 0.55);
    z-index: 1;
}

.hero-schedule__title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-schedule__text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.hero-schedule__text a {
    color: #fff;
    border-bottom: 1px dashed rgba(255,255,255,0.5);
}

.hero-schedule__text a:hover {
    border-bottom-style: solid;
}

.hero-schedule__time {
    font-weight: 700;
    color: #fff;
}

.hero-schedule__cta {
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 10px;
    padding: 48px 36px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.hero-schedule__cta h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

/* ===== Locations Section ===== */
.locations-section {
    background: #fff;
    padding: 56px 0;
}

.locations-section h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    color: #333;
}

.location-card {
    text-align: center;
    padding: 20px 16px;
}

.location-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}

.location-card .location-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
}

.location-card .location-phone {
    font-size: 14px;
    color: #333;
}

.location-card .location-phone a { color: #333; }
.location-card .location-phone a:hover { text-decoration: underline; }

/* ===== Education Section ===== */
.education-section {
    background: #fff;
    padding: 56px 0;
    border-top: 1px solid #f0f0f0;
}

.education-section .edu-image {
    border-radius: 6px;
    overflow: hidden;
}

.education-section .edu-image img {
    width: 100%;
    object-fit: cover;
    min-height: 280px;
    border-radius: 6px;
}

.education-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.education-section h3 {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    margin-bottom: 16px;
}

.education-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* ===== Advantages Section ===== */
.advantages-section {
    background: #fff;
    padding: 56px 0;
    border-top: 1px solid #f0f0f0;
}

.advantages-section__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 36px;
    color: #333;
}

.advantage-image {
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-image img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    object-position: center;
}

.advantage-item {
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}

.advantage-item:last-child { border-bottom: none; }

.advantage-item .adv-number {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    line-height: 1;
    margin-bottom: 4px;
}

.advantage-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.advantage-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

/* ===== CTA Text Section ===== */
.cta-text-section {
    background: #fff;
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.cta-text-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.cta-text-section p {
    font-size: 14px;
    color: #666;
}

.cta-text-section a {
    font-weight: 700;
    color: #333;
}

/* ===== Form Section with Background ===== */
.form-section-bg {
    position: relative;
    min-height: 420px;
    padding: 56px 0;
    overflow: hidden;
}

.form-section-bg__image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.form-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    padding: 32px 28px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.form-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-card .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
}

.form-card .form-control:focus {
    border-color: #333;
    box-shadow: none;
    outline: none;
}

.form-card .form-control::placeholder { color: #aaa; }

.btn-submit {
    display: block;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 28px;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-submit:hover { background-color: #555; color: #fff; }

.form-agree {
    font-size: 11px;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* ===== Contacts Section ===== */
.contacts-section {
    background: #fff;
    padding: 48px 0;
    border-top: 1px solid #f0f0f0;
}

.contacts-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #333;
}

.contacts-section h5 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.contacts-section p {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2px;
}

.contacts-section a { color: #333; }
.contacts-section a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer {
    background: #333;
    color: #ccc;
    padding: 20px 0;
}

.site-footer .footer-copy {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin: 0;
}

/* ===== Reviews Page ===== */
.reviews-section {
    padding: 56px 0;
    background: #fff;
}

.reviews-section h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    color: #333;
}

.review-card {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 20px;
}

.review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-card .review-author { font-size: 15px; font-weight: 700; color: #333; }
.review-card .review-course { font-size: 13px; color: #888; margin-top: 2px; }
.review-card .review-date { font-size: 13px; color: #888; white-space: nowrap; }
.review-card .review-text { font-size: 14px; line-height: 1.6; color: #555; }

/* ===== Application Page ===== */
.application-section {
    padding: 56px 0;
    background: #fff;
}

.application-section h1 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.application-section .app-subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

.application-section .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
}

.application-section .form-control:focus {
    border-color: #333;
    box-shadow: none;
}

.application-section .form-control::placeholder { color: #aaa; }

/* ===== Alert Messages ===== */
.form-alert {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 12px;
}

.form-alert-success { background-color: #e8f5e9; color: #2e7d32; }
.form-alert-error { background-color: #ffebee; color: #c62828; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-schedule { height: auto; min-height: 480px; padding: 40px 0; }
    .hero-schedule__cta { padding: 32px 24px; margin-top: 24px; }
    .hero-schedule__cta h1 { font-size: 22px; }
    .advantage-image img { min-height: 240px; }
}

@media (max-width: 767px) {
    .hero-schedule { height: auto; min-height: auto; padding: 32px 0; }
    .hero-schedule__title { font-size: 18px; }
    .hero-schedule__cta h1 { font-size: 20px; }

    .locations-section,
    .education-section,
    .advantages-section,
    .contacts-section,
    .cta-text-section {
        padding: 36px 0;
    }

    .locations-section h2,
    .education-section h2,
    .advantages-section__title,
    .cta-text-section h2,
    .contacts-section h2,
    .reviews-section h1,
    .application-section h1 {
        font-size: 20px;
    }

    .education-section .edu-image { margin-bottom: 20px; }
    .advantage-image { margin-bottom: 20px; }
    .advantage-image img { min-height: 200px; }

    .form-section-bg { padding: 36px 0; }
}

@media (max-width: 575px) {
    .hero-schedule__cta h1 { font-size: 18px; }
    .site-header .nav-link { padding: 10px 0 !important; }
}

/* ===== Documents Page (Сведения об образ. организации) ===== */
.documents-section { padding: 56px 0; }
.documents-section h1 { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 12px; }
.documents-intro { font-size: 15px; color: #666; line-height: 1.6; margin-bottom: 32px; max-width: 760px; }
.doc-group { margin-bottom: 36px; scroll-margin-top: 90px; }
.doc-group h2 { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #333; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-item { border-bottom: 1px solid #eee; }
.doc-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color .15s, background-color .15s;
}
.doc-item a:hover { color: #000; background-color: #f7f7f7; }
.doc-item a i { color: #c62828; font-size: 20px; flex-shrink: 0; }

@media (max-width: 767px) {
    .documents-section { padding: 36px 0; }
    .documents-section h1 { font-size: 22px; }
    .doc-group h2 { font-size: 18px; }
    .doc-item a { font-size: 14px; }
}

/* ===== Основные сведения (about) ===== */
.about-section { padding: 56px 0; }
.about-section h1 { font-size: 28px; font-weight: 700; color: #333; margin-bottom: 16px; }
.about-intro { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 28px; max-width: 900px; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th,
.info-table td { padding: 14px 16px; border: 1px solid #e6e6e6; vertical-align: top; text-align: left; font-size: 15px; line-height: 1.6; }
.info-table th { width: 34%; background: #f7f7f7; font-weight: 600; color: #333; }
.info-table td { color: #555; }
.info-table tr:nth-child(even) th { background: #f2f2f2; }

@media (max-width: 767px) {
    .about-section { padding: 36px 0; }
    .about-section h1 { font-size: 22px; }
    .info-table th, .info-table td { display: block; width: 100%; }
    .info-table th { border-bottom: none; }
}

/* ===== Версия для слабовидящих ===== */
.nav-accessibility i { font-size: 20px; vertical-align: middle; }
html.accessibility { font-size: 20px; }
html.accessibility body { background: #000 !important; color: #ffea00 !important; }
html.accessibility .site-header,
html.accessibility .site-footer,
html.accessibility section,
html.accessibility .location-card,
html.accessibility .review-card,
html.accessibility .form-card,
html.accessibility .info-table th,
html.accessibility .info-table td { background: #000 !important; color: #ffea00 !important; border-color: #ffea00 !important; }
html.accessibility a,
html.accessibility .nav-link,
html.accessibility h1, html.accessibility h2, html.accessibility h3,
html.accessibility h4, html.accessibility h5, html.accessibility p,
html.accessibility span, html.accessibility li, html.accessibility th, html.accessibility td { color: #ffea00 !important; }
html.accessibility img { filter: grayscale(100%); }
html.accessibility .hero-schedule__overlay,
html.accessibility .form-section-bg__image,
html.accessibility .hero-schedule__bg { opacity: 0.15; }
html.accessibility .btn-submit,
html.accessibility .btn-application { background: #ffea00 !important; color: #000 !important; }
