/* Подключение шрифтов */
@font-face {
    font-family: 'Onest';
    src: url('fonts/OnestRegular1602-hint.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/OnestBold1602-hint.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Onest';
    src: url('fonts/OnestMedium1602-hint.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pelmeshka';
    src: url('fonts/Pelmeshka.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #4E4F73;
    --light-blue: #B8D1F5;
    --pink: #FADADD;
    --white: #ffffff;
    --text-dark: #50534F;
    --text-light: #6B7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #F5F5F5;
}

/* Навигация */
.navbar {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(78, 79, 115, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: lowercase;
}

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

/* Основной контент */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: 30px;
}

.section-heading {
    font-family: 'Pelmeshka', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

/* Заголовок курса */
.course-header-section {
    margin-top: 20px;
}

.course-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.course-title-block {
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-main-title {
    font-family: 'Pelmeshka', serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--light-blue);
    margin-bottom: 15px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.title-line-1 {
    display: block;
}

.title-line-2 {
    display: block;
}

.course-subtitle {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 100%;
    letter-spacing: -3%;
    margin-bottom: 20px;
}

.meetings-badge {
    background-color: var(--pink);
    color: var(--text-dark);
    padding: 20px;
    border-radius: 50%;
    font-family: 'Onest', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    margin-top: 20px;
}

.meetings-badge br {
    display: block;
}

.course-header-visual {
    position: relative;
}

.course-image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.course-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.vector-decoration {
    position: absolute;
    bottom: -100px;
    left: -300px;
    z-index: -1;
    opacity: 0.3;
}

.vector-image {
    width: 800px;
    height: auto;
    max-width: none;
}

.registration-button-top {
    text-align: center;
    margin-top: 30px;
}

.btn-register {
    display: inline-block;
    width: 800px;
    max-width: 100%;
    padding: 18px 40px;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--light-blue);
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Onest', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: lowercase;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: attr(data-text);
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-register::after {
    content: attr(data-hover-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
}

.btn-register:hover::before {
    opacity: 0;
    transform: translateY(-100%);
}

.btn-register:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.btn-register:hover {
    background-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Вы научитесь */
.skills-section {
    margin-top: 30px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background-color: var(--light-blue);
    color: var(--text-dark);
    padding: 25px;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-title {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -3%;
    display: block;
}

.skill-description {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    display: block;
}

/* Информационные блоки */
.info-box {
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pink-box {
    background-color: var(--pink);
    color: var(--text-dark);
}

.blue-box {
    background-color: var(--light-blue);
    color: var(--text-dark);
}

.info-box-title {
    font-family: 'Pelmeshka', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.info-box-text {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    margin-bottom: 15px;
}

.info-box-text:last-child {
    margin-bottom: 0;
}

.info-box-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.info-box-list li {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.info-box-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 26px;
    color: var(--text-dark);
}

/* Программа */
.program-section {
    margin-top: 30px;
}

.program-list {
    list-style: none;
    counter-reset: program-counter;
    max-width: 800px;
    margin: 0 auto;
}

.program-list li {
    counter-increment: program-counter;
    position: relative;
    padding-left: 80px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.program-list li::before {
    content: counter(program-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border: 2px dashed var(--light-blue);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--light-blue);
}

.program-title {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: block;
}

.program-description {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--text-dark);
    display: block;
}

/* Ведущие */
.facilitators-section {
    margin-top: 30px;
}

.facilitators-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.facilitator-card-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.facilitator-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.facilitator-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.facilitator-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facilitator-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 40px 30px 30px;
    color: var(--white);
}

.facilitator-info {
    width: 100%;
}

.facilitator-name {
    font-family: 'Pelmeshka', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 15px;
}

.facilitator-description {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--white);
}

/* Самое важное */
.important-section {
    margin-top: 30px;
}

.important-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    background-color: transparent;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--light-blue);
}

.info-item:nth-child(1) {
    background-color: var(--pink);
    border: 2px solid var(--pink);
}

.info-item:nth-child(2) {
    background-color: var(--light-blue);
    border: 2px solid var(--light-blue);
}

.info-item:nth-child(3) {
    background-color: transparent;
    border: 2px solid var(--light-blue);
}

.info-item-title {
    font-family: 'Pelmeshka', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.info-item p {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.2rem;
}

.price-current {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 10px;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

.registration-button-center {
    text-align: center;
    margin-top: 30px;
}

/* Процесс записи */
.registration-process-section {
    margin-top: 30px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-blue);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Onest', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step-text {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--text-dark);
}

.process-arrow {
    font-size: 2rem;
    color: var(--light-blue);
    align-self: center;
    margin: 0 10px;
}

/* Активности */
.activities-section {
    margin-top: 30px;
}

.activities-list {
    list-style: none;
    padding: 0;
}

.activities-list li {
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.activities-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* FAQ */
.faq-section {
    margin-top: 30px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--light-blue);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Onest', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--pink);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-dark);
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 25px 20px;
    font-family: 'Onest', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -3%;
    color: var(--text-dark);
    margin: 0;
}

/* Контакты */
.contacts-section {
    margin-top: 30px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 30px auto 0;
}

.contact-card {
    text-align: center;
}

.contact-name-btn {
    background-color: var(--pink);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-name-btn.alt {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--pink);
}

.contact-telegram-btn {
    display: block;
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--pink);
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-telegram-btn:hover {
    background-color: var(--pink);
    color: var(--white);
}

.contact-telegram-btn.alt {
    background-color: var(--pink);
    color: var(--white);
    border: 2px solid var(--white);
}

.contact-telegram-btn.alt:hover {
    background-color: var(--white);
    color: var(--pink);
}

/* Футер */
.footer {
    background-color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(78, 79, 115, 0.1);
    margin-top: 60px;
}

.footer p {
    margin: 10px 0;
    color: var(--text-dark);
    font-family: 'Onest', sans-serif;
    font-size: 0.9rem;
}

.footer-telegram-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-telegram-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .course-main-title {
        font-size: 2.5rem;
    }

    .course-header {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .facilitators-container {
        grid-template-columns: 1fr;
    }
}
