/* Course Unified Page Styles - идентичные стили из course_detail.css */

.course-unified-page {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.course-header-section {
    margin-bottom: 40px;
}

.course-title-main {
    font-size: var(--fs-h1); /* 36px */
    font-weight: bold;
    font-family: var(--font-family-bold);
    margin-bottom: 20px;
    text-align: center;
    color: #000;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

/* Заголовок секции */
.section-title {
    font-size: var(--fs-h2); /* 28px */
    font-weight: bold;
    font-family: var(--font-family-bold);
    margin-bottom: 25px;
    color: #000;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

/* Кнопки года - идентичные стили из goods_courses.css */
.year-buttons-unified {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 999px;
    padding: 4px;
    width: fit-content;
    margin: 30px auto;
    z-index: 1;
}

.year-button-wrapper-unified {
    position: relative;
    display: inline-block;
}

.year-discount-badge-unified {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255, 92, 92);
    color: #fff;
    font-family: TTFirsNeue-Medium;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.year-button-unified {
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: #686868;
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    cursor: pointer;
    padding: 14px 24px;
    margin: 0;
    outline: none;
    box-shadow: none;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    transition: color 0.3s cubic-bezier(.4,0,.2,1);
}

.year-button-unified.active {
    background: transparent;
    color: #000;
    z-index: 2;
}

.year-button-unified:not(.active) {
    background: transparent;
    color: #686868;
    z-index: 2;
}

.year-active-border-unified {
    position: absolute;
    border-radius: 999px;
    border: none;
    box-sizing: border-box;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(.4,0,.2,1), 
                height 0.3s cubic-bezier(.4,0,.2,1), 
                left 0.3s cubic-bezier(.4,0,.2,1), 
                top 0.3s cubic-bezier(.4,0,.2,1),
                opacity 0.3s cubic-bezier(.4,0,.2,1);
    background: #fff;
    z-index: 1;
    width: 0;
    height: 0;
    opacity: 0;
}

.year-active-border-unified.initialized {
    opacity: 1;
}

@media (max-width: 768px) {
    .year-discount-badge-unified {
        font-size: 0.45rem;
        padding: 2px 5px;
        border-radius: 3px;
        top: -7px;
    }
}

/* Секция преподавателя */
.teacher-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.teacher-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.teacher-info {
    flex: 1;
}

.teacher-title {
    font-size: var(--fs-h3); /* 22px */
    font-weight: bold;
    font-family: var(--font-family-bold);
    margin-bottom: 10px;
    color: #000;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

.teacher-description {
    font-size: var(--fs-desc); /* 15px */
    line-height: var(--lh-base);
    color: #333;
    font-family: var(--font-family);
}

.course-medium {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Кнопка для годового тарифа */
.yearly-selector {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.yearly-btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: var(--fs-body); /* 16px */
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    position: relative;
}

.yearly-btn:hover {
    background: #333;
}

.yearly-btn.active {
    background: #000;
    color: #fff;
    width: 100%;
}

/* Блок выбора тарифа - идентичные стили из course_detail.css */
.tariff-selection {
    margin-bottom: 35px;
}

.tariff-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tariff-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tariff-card:hover {
    border-color: #000;
}

.tariff-card.active {
    border-color: #000;
    background: #fff;
}

.tariff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.tariff-name {
    font-size: var(--fs-h3); /* 22px */
    font-weight: bold;
    font-family: var(--font-family-bold);
    color: #000;
    line-height: var(--lh-tight);
    letter-spacing: -0.01em;
}

.tariff-badge {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: var(--fs-meta); /* 14px */
    font-family: var(--font-family);
    position: relative;
}

.tariff-card[data-tariff="premium"] .tariff-badge {
    background: linear-gradient(135deg, rgb(255 120 120) 0%, rgb(244 128 54) 100%);
    color: #fff;
}

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

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-desc); /* 15px */
    line-height: var(--lh-base);
    color: #333;
    font-family: var(--font-family);
    margin-bottom: 6px;
}

.tariff-features .feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Блок выбора периода оплаты - идентичные стили из course_detail.css */
.billing-period-selection {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.billing-period-selection .section-title {
    text-align: left;
    width: 100%;
}

.period-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    align-self: stretch;
}

.period-option-wrapper {
    position: relative;
}

.period-option-wrapper .yearly-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.period-option {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: var(--fs-body); /* 16px */
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    color: #000;
}

.period-option:hover {
    border-color: #000;
    background: #fff;
}

.period-option.active {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 16px 32px;
}

.period-option-title {
    font-size: var(--fs-body); /* 16px */
    font-weight: var(--fw-normal);
}

.period-option-subtitle {
    font-size: 0.75rem; /* 12px */
    color: #666;
    font-weight: normal;
}

.period-option.active .period-option-subtitle {
    color: #ccc;
}

.yearly-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255, 92, 92);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem; /* 12px */
    font-weight: bold;
    font-family: var(--font-family-medium);
    white-space: nowrap;
    z-index: 10;
    border-radius: 6px;
}

/* Селектор месяца - идентичные стили из course_detail.css */
.month-selection {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.month-selection .section-title {
    text-align: left;
    width: 100%;
    margin-bottom: 25px;
}

.month-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(calc((100% - 36px) / 4), 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.month-btn {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: var(--fs-desc); /* 15px */
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.month-btn:hover {
    border-color: #000;
    background: #fff;
}

.month-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Расписание */
.schedule-section {
    margin-bottom: 40px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.schedule-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: white;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.schedule-day {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

.schedule-title-item {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.schedule-time {
    font-size: 12px;
    color: #666;
}

.schedule-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.btn-schedule {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: var(--fs-desc); /* 15px */
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-schedule:hover {
    border-color: #000;
    background: #fff;
}

/* Блок информации о курсе */
.course-info-section {
    margin-bottom: 30px;
}

.course-info-section .block__bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
}

.course-info-section .block__bottom ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.course-info-section .block__bottom .up {
    font-family: TTFirsNeue-Medium;
    font-size: 14px;
    color: #686868;
    margin-bottom: 8px;
}

.course-info-section .block__bottom .down {
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    color: #000000;
}

/* Отображение цены - идентичные стили из course_detail.css */
.price-display {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #d0d0d0;
    display: flex;
    justify-content: center;
}

.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
    width: 100%;
}

.price-main-wrapper {
    display: flex;
    align-items: baseline;
    gap: 10px;
    justify-content: center;
}

.price-label {
    font-size: 0.75rem; /* 12px */
    font-family: var(--font-family-medium);
    color: #666;
    font-weight: 400;
}

.price-value {
    font-size: 2rem; /* 32px */
    font-weight: bold;
    font-family: var(--font-family-bold);
    color: #000;
}

.old-price {
    text-decoration: line-through;
    font-size: var(--fs-body); /* 16px */
    font-weight: normal;
    color: #666;
    font-family: var(--font-family-bold);
}

.price-period {
    font-size: var(--fs-body); /* 16px */
    font-weight: normal;
    color: #666;
}

/* Секция покупки */
.purchase-section {
    text-align: center;
    margin-top: 20px;
}

/* Кнопка покупки - идентичные стили из course_detail.css */
.add-to-cart-btn,
.purchase-btn {
    background: rgb(255, 176, 92);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 48px;
    font-size: var(--fs-category); /* 18px */
    font-weight: bold;
    font-family: var(--font-family-medium);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    width: auto;
    max-width: none;
    display: inline-block;
}

.add-to-cart-btn:hover,
.purchase-btn:hover {
    background: rgb(255, 195, 130);
}

.add-to-cart-btn:active,
.purchase-btn:active {
    background: rgb(255, 176, 92);
}

.add-to-cart-btn:disabled,
.purchase-btn:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.add-to-cart-btn:disabled:hover,
.purchase-btn:disabled:hover {
    background: #ccc;
}

.purchase-btn.remove-from-cart-btn {
    background: #e0e0e0;
    color: #666;
    border: none;
    border-radius: 10px;
    padding: 14px 48px;
    font-size: var(--fs-category); /* 18px */
    font-weight: bold;
    font-family: var(--font-family-medium);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.purchase-btn.remove-from-cart-btn:hover {
    background: #d0d0d0;
    color: #555;
}

/* Модальное окно для просмотра изображений - идентичные стили из course_detail.css */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 10vh 10vw;
    box-sizing: border-box;
}

.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    will-change: transform, opacity;
    transition: opacity 0.1s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.image-modal-close {
    position: relative;
    color: #fff;
    font-size: 0;
    font-family: var(--font-family-medium);
    font-weight: 500;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.6));
    border: none;
    border-radius: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    user-select: none;
    text-shadow: none;
    line-height: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    text-indent: -9999px;
}

.image-modal-close::before {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 20px;
    text-indent: 0;
}

.image-modal-close:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.7));
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: #fff;
}

.image-modal-close:active {
    transform: scale(0.98);
}

.image-modal-download {
    position: relative;
    color: #fff;
    font-size: 22px;
    font-family: var(--font-family-medium);
    font-weight: 500;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.6));
    border: none;
    border-radius: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    user-select: none;
    text-shadow: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.image-modal-download svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.image-modal-download:hover {
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.7));
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    color: #fff;
}

.image-modal-download:active {
    transform: scale(0.98);
}

/* Модальное окно уведомления о корзине - идентичные стили из unified-notifications.css */
.cart-notification-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.cart-notification-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cart-notification-header {
    margin-bottom: 20px;
}

.cart-notification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cart-notification-title {
    font-family: TTFirsNeue-DemiBold;
    font-size: 22px;
    color: #333;
    margin: 0 0 10px 0;
}

.cart-notification-text {
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.cart-notification-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cart-notification-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 140px;
    text-decoration: none;
    display: inline-block;
}

.continue-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.continue-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.go-to-cart-btn {
    background: linear-gradient(135deg, #ffb05c, #ff8c42);
    color: #fff;
    border: 1px solid #ff8c42;
}

.go-to-cart-btn:hover {
    background: linear-gradient(135deg, #ff9f3a, #ff8f2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 176, 92, 0.4);
}

/* Модальное окно регистрации - идентичные стили из goods_courses.css */
.registration-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

body.registration-modal-open {
    overflow: hidden;
}

.registration-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
}

.registration-header {
    margin-bottom: 20px;
}

.registration-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.registration-title {
    font-family: TTFirsNeue-DemiBold;
    font-size: 22px;
    color: #333;
    margin: 0 0 10px 0;
}

.registration-text {
    font-family: TTFirsNeue-Regular;
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.registration-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.registration-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-family: TTFirsNeue-Medium;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.login-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
}

.login-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.register-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.register-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cancel-btn:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Адаптивные стили */
@media screen and (max-width: 768px) {
    .course-unified-page {
        margin: 20px auto;
        padding: 20px;
        border-radius: 14px;
    }
    
    .course-title-main {
        font-size: 1.75rem; /* 28px */
    }
    
    .section-title {
        font-size: 1.375rem; /* 22px */
        margin-bottom: 20px;
    }
    
    .tariff-selection {
        margin-bottom: 25px;
    }
    
    .tariff-cards {
        gap: 10px;
    }
    
    .tariff-card {
        padding: 18px;
    }
    
    .tariff-header {
        margin-bottom: 15px;
    }
    
    .tariff-name {
        font-size: 1.125rem; /* 18px */
    }
    
    .tariff-features li {
        font-size: 0.875rem; /* 14px */
        gap: 6px;
        margin-bottom: 5px;
    }
    
    .tariff-features .feature-icon {
        width: 16px;
        height: 16px;
    }
    
    .billing-period-selection {
        margin-bottom: 25px;
    }
    
    .period-toggle {
        gap: 10px;
        justify-content: center;
    }
    
    .period-option {
        padding: 10px 20px;
        font-size: 0.9375rem; /* 15px */
        border-radius: 8px;
    }
    
    .month-selection {
        margin-bottom: 25px;
    }
    
    .month-buttons-grid {
        gap: 8px;
    }
    
    .month-btn {
        padding: 10px 18px;
        font-size: 0.875rem; /* 14px */
        width: 100%;
    }
    
    .yearly-badge,
    .period-option-wrapper .yearly-badge {
        font-size: 0.6875rem; /* 11px */
        padding: 3px 10px;
        top: -10px;
    }
    
    .price-display {
        margin-top: 25px;
        padding-top: 25px;
    }
    
    .price-main-wrapper {
        gap: 8px;
    }
    
    .price-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .price-label {
        font-size: 0.7rem; /* ~11px */
    }
    
    .price-value {
        font-size: 1.75rem; /* 28px */
    }
    
    .old-price {
        font-size: 0.9375rem; /* 15px */
        font-weight: normal;
        color: #666;
    }
    
    .price-period {
        font-size: 0.9375rem; /* 15px */
    }
    
    .add-to-cart-btn,
    .purchase-btn {
        padding: 12px 32px;
        font-size: 1rem; /* 16px */
        border-radius: 8px;
    }
    
    .image-modal-buttons {
        top: 15px;
        right: 15px;
        gap: 5px;
    }
    
    .image-modal-close {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }
    
    .image-modal-close::before {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 18px;
    }
    
    .image-modal-download {
        width: 40px;
        height: 40px;
        border-radius: 20px;
    }
    
    .image-modal-download svg {
        width: 18px;
        height: 18px;
    }
    
    .cart-notification-content {
        padding: 25px 20px;
        max-width: 350px;
    }
    
    .cart-notification-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .cart-notification-title {
        font-size: 20px;
    }
    
    .cart-notification-text {
        font-size: 14px;
    }
    
    .cart-notification-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-notification-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .registration-content {
        padding: 25px 20px;
        max-width: 350px;
    }
    
    .registration-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .registration-title {
        font-size: 20px;
    }
    
    .registration-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .course-unified-page {
        margin: 15px auto;
        padding: 15px;
        border-radius: 12px;
    }
    
    .course-title-main {
        font-size: 1.5rem; /* 24px */
    }
    
    .section-title {
        font-size: 1.125rem; /* 18px */
        margin-bottom: 15px;
    }
    
    .tariff-cards {
        gap: 10px;
    }
    
    .tariff-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .tariff-header {
        margin-bottom: 12px;
    }
    
    .tariff-name {
        font-size: 1rem; /* 16px */
    }
    
    .tariff-badge {
        padding: 3px 8px;
        font-size: 0.875rem; /* 14px */
    }
    
    .tariff-features li {
        font-size: 0.875rem; /* 14px */
    }
    
    .tariff-features .feature-icon {
        width: 14px;
        height: 14px;
    }
    
    .period-toggle {
        gap: 10px;
        justify-content: center;
    }
    
    .period-option {
        padding: 8px 16px;
        font-size: 0.875rem; /* 14px */
    }
    
    .month-buttons-grid {
        gap: 6px;
    }
    
    .month-btn {
        padding: 8px 16px;
        font-size: 0.875rem; /* 14px */
        border-radius: 8px;
        width: 100%;
    }
    
    .yearly-badge,
    .period-option-wrapper .yearly-badge {
        font-size: 0.625rem; /* 10px */
        padding: 2px 8px;
        top: -8px;
    }
    
    .course-info-section .block__bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .course-info-section .block__bottom ul {
        padding: 15px;
        min-height: 70px;
    }
    
    .price-display {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .price-main-wrapper {
        gap: 6px;
    }
    
    .price-container {
        gap: 6px;
    }
    
    .price-label {
        font-size: 0.6875rem; /* 11px */
    }
    
    .price-value {
        font-size: 1.5rem; /* 24px */
    }
    
    .old-price {
        font-size: 0.875rem; /* 14px */
        font-weight: normal;
        color: #666;
    }
    
    .price-period {
        font-size: 0.875rem; /* 14px */
    }
    
    .add-to-cart-btn,
    .purchase-btn {
        padding: 10px 28px;
        font-size: 0.9375rem; /* 15px */
        border-radius: 8px;
    }
    
    .image-modal-buttons {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .image-modal-close {
        width: 35px;
        height: 35px;
        border-radius: 17.5px;
    }
    
    .image-modal-close::before {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 18px;
    }
    
    .image-modal-download {
        width: 35px;
        height: 35px;
        border-radius: 17.5px;
    }
    
    .image-modal-download svg {
        width: 18px;
        height: 18px;
    }
    
    .cart-notification-content {
        padding: 20px 15px;
        max-width: 300px;
    }
    
    .cart-notification-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .cart-notification-title {
        font-size: 18px;
    }
    
    .cart-notification-text {
        font-size: 13px;
    }
    
    .cart-notification-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .registration-content {
        padding: 20px 15px;
        max-width: 300px;
    }
    
    .registration-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .registration-title {
        font-size: 18px;
    }
    
    .registration-text {
        font-size: 13px;
    }
}
