/* ===== Base ===== */
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: #4a4a5a;
    background: linear-gradient(180deg, #f5f3fa 0%, #faf5f8 50%, #f0f5fa 100%);
    min-height: 100vh;
}

*, *:before, *:after { box-sizing: border-box; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: 'Comfortaa', cursive; }

a { color: inherit; }

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Decorative blobs ===== */
.bg-blobs {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}
.blob:nth-child(1) { width: 400px; height: 400px; background: #7b7fbd; top: -100px; left: -100px; }
.blob:nth-child(2) { width: 350px; height: 350px; background: #c98ba8; top: 30%; right: -80px; }
.blob:nth-child(3) { width: 300px; height: 300px; background: #6b9bc4; bottom: 10%; left: -60px; }
.blob:nth-child(4) { width: 280px; height: 280px; background: #6ba89a; bottom: -80px; right: 20%; }

/* ===== Decorative shapes ===== */
.decor {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.decor__cloud, .decor__star, .decor__dot {
    position: absolute;
}
.decor__cloud { width: 100px; height: 60px; }
.decor__star  { width: 24px; height: 24px; }
.decor__dot   { width: 40px; height: 40px; }
.decor--1 { top: 8%;  left: 5%;  animation: float 8s ease-in-out infinite; }
.decor--2 { top: 22%; right: 8%; animation: float 10s ease-in-out infinite reverse; }
.decor--3 { top: 40%; left: 3%;  animation: float 7s ease-in-out infinite; }
.decor--4 { top: 60%; right: 4%; animation: float 9s ease-in-out infinite reverse; }
.decor--5 { top: 75%; left: 6%;  animation: float 11s ease-in-out infinite; }
.decor--6 { top: 15%; left: 45%; animation: float 12s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(5deg); }
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(123, 127, 189, 0.12);
    border-bottom: 1px solid rgba(123, 127, 189, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4a4a5a;
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7b7fbd, #c98ba8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(123, 127, 189, 0.3);
}

.logo__contain {
    display: flex;
    flex-direction: column;
}

.logo__text {
    font-size: 16px;
    font-weight: 700;
    color: #4a4a5a;
    line-height: 1.2;
}

.logo__subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #9da5be;
    line-height: 1.2;
}

/* ===== Nav ===== */
.nav {
    display: flex;
    gap: 8px;
}

.nav__link {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4a4a5a;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.nav__link:hover {
    color: #7b7fbd;
    background: rgba(123, 127, 189, 0.1);
    box-shadow: 0 2px 8px rgba(123, 127, 189, 0.15);
}

/* ===== Intro ===== */
.intro {
    position: relative;
    z-index: 2;
    padding: 40px 0 60px;
}

.intro__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Title block ===== */
.intro__tittleContain {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.intro__badge {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7b7fbd;
    background: rgba(123, 127, 189, 0.12);
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.intro__tittle {
    font-size: 30px;
    font-weight: 700;
    color: #4a4a5a;
    line-height: 1.3;
    max-width: 800px;
}

.intro__subtittle {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6a6a7a;
    text-align: center;
    margin-top: 16px;
    max-width: 600px;
    line-height: 1.6;
}

.intro__underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #7b7fbd, #c98ba8);
    border-radius: 2px;
    margin-top: 24px;
}

/* ===== Content sections ===== */
.intro__content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin-top: 32px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(123, 127, 189, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    scroll-margin-top: 90px;
}

.intro__content:hover {
    box-shadow: 0 8px 32px rgba(123, 127, 189, 0.18);
    transform: translateY(-2px);
}

.content__number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-family: 'Comfortaa', cursive;
    font-size: 24px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #7b7fbd, #6b9bc4);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(123, 127, 189, 0.3);
}

.content__text {
    flex: 1;
}

.content__heading {
    font-size: 20px;
    font-weight: 700;
    color: #4a4a5a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.content__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ===== Lesson items ===== */
.text__point {
    padding: 12px 0;
    border-bottom: 1px solid rgba(123, 127, 189, 0.08);
    transition: all 0.25s ease;
}

.text__point:last-child {
    border-bottom: none;
}

.text__point:hover {
    padding-left: 8px;
}

.text__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4a4a5a;
    transition: color 0.25s ease;
}

.text__link:hover {
    color: #c98ba8;
}

.lesson__icon-video {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.text {
    font-family: 'Comfortaa', cursive;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.subText {
    font-family: 'Nunito', sans-serif;
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 400;
    color: #7a7a8a;
    line-height: 1.5;
    max-width: 90%;
}

.lesson__meta {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #6ba89a;
    background: rgba(107, 168, 154, 0.12);
    padding: 3px 12px;
    border-radius: 12px;
    margin-top: 6px;
}

/* Мета для тем в разработке — серая */
.lesson__meta--soon {
    color: #9a9aad;
    background: rgba(122, 122, 138, 0.12);
}

/* Тексты тем в разработке */
.text__soon {
    color: #a5a5b5;
}

/* ===== Меню курса (стеклянная панель с пилюлями-якорями) ===== */
.courseMenu {
    width: 100%;
    max-width: 900px;
    margin-top: 32px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(123, 127, 189, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.courseMenu__tittle {
    font-family: 'Nunito', sans-serif;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9da5be;
}

.courseMenu__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.courseMenu__link {
    font-family: 'Nunito', sans-serif;
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #7b7fbd;
    text-decoration: none;
    background: rgba(123, 127, 189, 0.1);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.courseMenu__link:hover {
    color: #c98ba8;
    background: rgba(201, 139, 168, 0.12);
    box-shadow: 0 2px 8px rgba(201, 139, 168, 0.18);
}

/* Темы в разработке — серые пилюли */
.courseMenu__link--soon {
    color: #a5a5b5;
    background: rgba(122, 122, 138, 0.08);
}

.courseMenu__link--soon:hover {
    color: #a5a5b5;
    background: rgba(122, 122, 138, 0.08);
    box-shadow: none;
}

/* Итоговая аттестация — розовая пилюля */
.courseMenu__link--final {
    color: #a5537f;
    background: rgba(201, 139, 168, 0.15);
}

.courseMenu__link--final:hover {
    color: #8f3d68;
    background: rgba(201, 139, 168, 0.22);
}

/* ===== New theme pulse ===== */
@keyframes pulse {
    0%   { opacity: 0.75; }
    50%  { opacity: 1; }
    100% { opacity: 0.75; }
}

.text__newTheme {
    animation: pulse 2000ms infinite;
}

.text__newTheme:hover {
    animation: none;
    opacity: 1;
}

/* ===== Divider ===== */
.intro__divider {
    width: 60%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(123, 127, 189, 0.3), transparent);
    border: none;
    margin: 16px auto;
    border-radius: 1px;
}

/* ===== Underfooter ===== */
.underfooter {
    position: relative;
    z-index: 2;
    background: rgba(237, 242, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(123, 127, 189, 0.1);
    padding: 24px 0 20px;
    margin-top: 40px;
}

.underfooter__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.underfooter__sign {
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9da5be;
}

.underfooter__sign p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .intro__tittle { font-size: 22px; }
    .content__heading { font-size: 17px; }

    .intro__content {
        flex-direction: column;
        padding: 20px;
        gap: 14px;
    }

    .content__number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .text { font-size: 14px; }
    .subText { font-size: 13px; }

    .nav { flex-wrap: wrap; }
    .nav__link { font-size: 13px; padding: 6px 12px; }

    .logo__text { font-size: 14px; }
    .logo__subtitle { font-size: 10px; }

    .courseMenu { padding: 14px 16px; }
    .courseMenu__link { font-size: 12px; padding: 5px 12px; }
}

@media (max-width: 480px) {
    .header__inner { flex-direction: column; gap: 10px; }
    .underfooter__inner { flex-direction: column; gap: 12px; }
    .intro__tittle { font-size: 18px; }
    .intro__badge { font-size: 10px; }
}

/* ===== Видеоуроки (аккордеон-модули) ===== */
.videoSection {
    position: relative;
    z-index: 2;
    padding: 10px 0 40px;
    scroll-margin-top: 90px;
}

.videoSection__head {
    text-align: center;
    margin-bottom: 24px;
}

.videoSection__tittle {
    font-size: 24px;
    font-weight: 700;
    color: #4a4a5a;
}

.videoSection__sub {
    font-size: 14px;
    font-weight: 600;
    color: #9da5be;
    margin-top: 8px;
}

.module {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(123, 127, 189, 0.15);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(123, 127, 189, 0.1);
    margin-bottom: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.module:hover {
    box-shadow: 0 10px 28px rgba(123, 127, 189, 0.18);
}

.module__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
}

.module__num {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b7fbd, #c98ba8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(123, 127, 189, 0.3);
}

.module__info {
    flex: 1;
    min-width: 0;
}

.module__title {
    font-family: 'Comfortaa', cursive;
    font-size: 17px;
    font-weight: 700;
    color: #4a4a5a;
}

.module__desc {
    font-size: 13px;
    font-weight: 600;
    color: #9da5be;
    margin-top: 2px;
}

.module__arrow {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(123, 127, 189, 0.12);
    color: #7b7fbd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.module.open .module__arrow {
    transform: rotate(90deg);
}

.module__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.module.open .module__body {
    max-height: 800px;
}

.module__body-inner {
    padding: 0 22px 20px 82px;
}

.lessons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(123, 127, 189, 0.12);
    border-radius: 16px;
    transition: all 0.25s ease;
}

.lesson:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 139, 168, 0.4);
    box-shadow: 0 8px 20px rgba(123, 127, 189, 0.16);
}

.lesson__icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7b7fbd, #c98ba8);
    position: relative;
    box-shadow: 0 2px 6px rgba(123, 127, 189, 0.3);
}

.lesson__icon::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 11px;
    border-left: 10px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.lesson__name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #4a4a5a;
    line-height: 1.35;
}

.lesson__meta {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: #7b7fbd;
    background: rgba(123, 127, 189, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
}

@media (max-width: 640px) {
    .module__body-inner { padding: 0 16px 16px; }
    .lesson { flex-wrap: wrap; }
}
