html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

section {
    padding: 80px 0;
}

.hero {
    background: linear-gradient(120deg, #0f172a, #333);
    color: #fff;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
}
.hero p {
    font-size: 1.2rem;
    opacity: .85;
}
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transition: transform .3s ease;
}
.card:hover {
    transform: translateY(-6px);
}
.price {
    font-size: 2rem;
    font-weight: 700;
}
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}
.footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-top: auto;
}
.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #17a2b8;
    text-decoration: none;
}
.offer-link {
    color: #17a2b8;
}
.offer-link:hover {
    color: #138496;
    text-decoration: underline;
}
.education-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}
.education-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 15px 18px;
}
.education-nav .nav-link:hover {
    color: #007bff;
}
.education-nav .btn {
    padding: 6px 14px;
}
.education-navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
body {
    padding-top: 72px;
}
.education-navbar .nav-link {
    font-weight: 500;
    color: #333;
}
.education-navbar .nav-link:hover {
    color: #007bff;
}

.education-navbar .btn {
    padding: 6px 14px;
}

.education-navbar .nav-link.active {
    color: #007bff;
    font-weight: 600;
}
.education-section {
    padding: 80px 0;
    scroll-margin-top: 80px; /* modern fix */
}
.btn {
    border-radius: 0.5rem !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* FAQ Accordion */
.faq-accordion .faq-card {
    border: none;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    overflow: hidden;
    border-left: 4px solid #dbeafe;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.faq-accordion .faq-card:hover {
    border-left-color: #93c5fd;
    box-shadow: 0 14px 34px rgba(30, 64, 175, .12);
    transform: translateY(-1px);
}

.faq-accordion .card-header {
    background: #fff;
    padding: 0;
    border: none;
}

.faq-btn {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none !important;
    position: relative;
}

.faq-btn:hover {
    color: #007bff;
}

.faq-accordion .card-body {
    padding: 0 24px;
    color: #4b5563;
    line-height: 1.6;
}

/* Иконка + / - */
.faq-icon {
    position: absolute;
    right: 24px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: #007bff;
    transition: all .3s ease;
}

.faq-icon::before {
    width: 18px;
    height: 2px;
    top: 8px;
    left: 0;
}

.faq-icon::after {
    width: 2px;
    height: 18px;
    top: 0;
    left: 8px;
}

/* Когда открыт — превращаем + в - */
.faq-btn:not(.collapsed) .faq-icon::after {
    opacity: 0;
    transform: rotate(90deg);
}

.course-detail-area,
.course-detail-area *,
.education-schedule-card,
.education-schedule-card *,
body.education-site .page-banner h1 {
    overflow-wrap: anywhere;
}

body.education-site img {
    max-width: 100%;
    height: auto;
}

.education-schedule-card__text--schedule {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.education-schedule-card__empty,
.education-schedule-card__more {
    color: #6b7280;
    font-size: .9rem;
}

.course-module-content {
    padding-top: 18px !important;
    padding-bottom: 20px !important;
}

.course-module-content p {
    margin: 0 0 14px;
}

.course-module-content p:last-child,
.course-module-content ul:last-child,
.course-module-content ol:last-child {
    margin-bottom: 0;
}

.course-module-content ul,
.course-module-content ol {
    margin: 0 0 16px;
    padding-left: 1.5rem;
}

.course-module-content ul {
    list-style: disc;
}

.course-module-content ol {
    list-style: decimal;
}

.course-module-content li {
    display: list-item;
    margin-bottom: 7px;
}

.course-runs {
    display: grid;
    gap: 14px;
}

.course-schedule-intro {
    margin: 0 0 18px;
    color: #425064;
    line-height: 1.75;
}

.course-run {
    padding: 18px;
    border: 1px solid rgba(51, 103, 193, .16);
    border-radius: 14px;
    background: rgba(249, 251, 255, .75);
}

.course-run__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.course-run__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 10px;
}

.course-run__description {
    margin: 0;
    white-space: normal;
}

.course-package-card {
    box-shadow: none !important;
    border: 1px solid rgba(17, 24, 39, .1) !important;
}

.course-package-card:hover,
.course-package-card:focus-within {
    box-shadow: none !important;
}

.course-detail-area .btn,
.course-detail-area button,
.education-schedule-card__button {
    min-height: 44px;
}

[id^="coursePackagePaymentModal"] .modal-content,
#courseEnrollModal .modal-content,
#courseConsultationModal .modal-content {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    section {
        padding: 56px 0;
    }

    .course-detail-area .card {
        padding: 20px !important;
    }

    .course-detail-area input,
    .course-detail-area select,
    .course-detail-area textarea,
    [id^="coursePackagePaymentModal"] input,
    [id^="coursePackagePaymentModal"] select,
    [id^="coursePackagePaymentModal"] textarea,
    #courseEnrollModal input,
    #courseEnrollModal textarea,
    #courseConsultationModal input,
    #courseConsultationModal textarea {
        font-size: 16px !important;
    }

    .course-run__dates {
        display: grid;
        gap: 6px;
    }
}
