/* ==========================================
   BEST TEEN - Единый файл стилей
   Унифицировано для всех страниц
   ========================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(160deg, #f5f9ff 0%, #dce8f8 30%, #c5d8f0 60%, #b5cce8 100%);
    color: #1a2639;
    line-height: 1.5;
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.block-spacer {
    margin-bottom: 24px;
}

/* ===== ИКОНКИ ===== */
.icon-white { color: #ffffff; }
.icon-dark { color: #1a3a64; }
.icon-muted { color: #4a6a8a; }

/* ==========================================
   ГЛАВНАЯ СТРАНИЦА (index.html)
   ========================================== */

/* ===== HERO ===== */
.hero {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 0 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(31, 74, 138, 0.04);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    padding-left: 48px;
    padding-right: 24px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a3a7a, #3a7abd, #5a9adf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 2px 40px rgba(255, 255, 255, 0.2);
}

.hero p {
    font-size: 19px;
    color: #2c3e66;
    max-width: 700px;
    margin-bottom: 24px;
    opacity: 0.9;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.15);
}

/* ===== PLANET ===== */
.planet-decoration {
    position: absolute;
    right: 15%;
    top: 55%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.15));
}

.planet-decoration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(31, 74, 138, 0.08));
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 6px 0 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 18px;
    gap: 12px;
}

/* ===== BRAND ===== */
.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-small {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.2);
    padding: 4px;
}

.brand-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0b2a54, #3a7abd, #5a9adf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
}

.brand-sub-head {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.8px;
    color: #3a5f8a;
    text-transform: uppercase;
    padding-top: 2px;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.2);
}

/* ===== NAV ===== */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-left: 20px;
}

.nav-link {
    font-weight: 500;
    font-size: 14px;
    color: #1a3a64;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0);
    border: 2px solid transparent;
    backdrop-filter: blur(4px);
}

.nav-link:hover {
    background: rgba(182, 226, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.3);
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(20, 50, 100, 1);
    color: white !important;
    border-color: rgba(20, 50, 100, 1);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.35);
    backdrop-filter: blur(8px);
}

.nav-link.active:hover {
    background: rgba(10, 30, 70, 1);
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.5);
}

.nav-btn {
    background: rgba(20, 50, 100, 1);
    backdrop-filter: blur(8px);
    color: white !important;
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(20, 50, 100, 1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(20, 50, 100, 0.2);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.2px;
}

.nav-btn:hover {
    background: rgba(10, 30, 70, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.8);
    border-color: rgba(20, 50, 100, 1);
}

.nav-tab {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: #1a3a64;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
}

.nav-tab i {
    color: #1a3a64;
}

.nav-tab:hover {
    background: rgba(20, 50, 100, 0.2);
    color: #0b2a54;
}

.nav-tab.active {
    background: rgba(20, 50, 100, 0.9);
    color: white;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.5);
}
.nav-tab.active i {
    color: white;
}
.nav-tab.active:hover {
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.5);
}

/* ===== STATS ===== */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px 56px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 16px 36px;
    border-radius: 50px;
    box-shadow: 0 8px 40px rgba(31, 74, 138, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 6px;
    width: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: #1e3a6b;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #3f5277;
}

/* ===== TAGS ===== */
.tags-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 24px;
    position: relative;
    padding: 8px 0;
}

.tags-wrapper::before,
.tags-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.tags-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4), transparent);
}

.tags-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.4), transparent);
}

.tags-track {
    display: flex;
    gap: 20px;
    animation: scrollTags 35s linear infinite;
    width: max-content;
}

.tags-track:hover {
    animation-play-state: paused;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    color: #1a3d6e;
    box-shadow: 0 4px 20px rgba(31, 74, 138, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(31, 74, 138, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.7);
}

@keyframes scrollTags {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   ОБЩИЕ СЕКЦИИ
   ========================================== */

section {
    padding: 48px 0 40px;
    border-bottom: none;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1a3a7a, #3a7abd, #5a9adf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    text-shadow: 0 2px 30px rgba(255, 255, 255, 0.1);
}

.section-title.center {
    text-align: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* ==========================================
   STEPS
   ========================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.step-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(31, 74, 138, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
    overflow: visible;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 48px rgba(31, 74, 138, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.step-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: #1e3a6b;
    font-weight: 700;
    font-size: 16px;
    padding: 2px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #0b1e3a;
}

.step-card p {
    color: #40547a;
    font-size: 14px;
}

/* ---- Всплывающее видео в карточках "Как мы работаем" ---- */
.step-video-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 260px;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
    z-index: 20;
    text-align: center;
    border: 1px solid rgba(26, 58, 106, 0.08);
    cursor: pointer;
}

.step-card:hover .step-video-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

/* Стрелочка вниз (треугольник) */
.step-video-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.step-video-popup .video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #1a3a6a;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    transition: transform 0.2s;
}

.step-video-popup:hover .video-icon {
    transform: scale(1.1);
}

.step-video-popup h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a3a6a;
}

.step-video-popup p {
    font-size: 13px;
    line-height: 1.4;
    color: #4a5a7a;
    margin: 0 0 8px 0;
}

.step-video-popup .click-hint {
    font-size: 12px;
    color: #6a8aaa;
    background: #f0f6ff;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* Адаптив для мобильных: убираем попап на маленьких экранах */
@media (max-width: 640px) {
    .step-video-popup {
        display: none;
    }
}

/* ==========================================
   CAROUSEL
   ========================================== */

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

.carousel-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #1a3a64;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(31, 74, 138, 0.04);
    flex-shrink: 0;
    font-family: inherit;
}

.carousel-btn:hover {
    background: rgba(31, 74, 138, 0.85);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(31, 74, 138, 0.12);
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

/* ==========================================
   DIRECTION CARD
   ========================================== */

.direction-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    padding: 20px 18px 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.direction-card:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 48px rgba(31, 74, 138, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.direction-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0e2a4f;
    margin-bottom: 6px;
}

.direction-card p {
    font-size: 13px;
    color: #37507a;
    flex: 1;
    margin-bottom: 14px;
}

.link-arrow {
    font-weight: 600;
    color: #1f4a8a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
    align-self: flex-start;
    border-bottom: 2px solid transparent;
}

.link-arrow:hover {
    border-bottom-color: #1f4a8a;
    gap: 12px;
}

/* ==========================================
   TUTOR CARD
   ========================================== */

.tutor-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 18px 14px 20px;
    border-radius: 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: default;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tutor-card:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 48px rgba(31, 74, 138, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.tutor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid #ffffff;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1a3a6a;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tutor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tutor-avatar:not(:has(img)) {
    background: #f0f4f8;
}

.tutor-card:hover .tutor-avatar {
    border-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.tutor-name {
    font-size: 17px;
    font-weight: 700;
    color: #0b1e3a;
    margin-top: 4px;
}

.tutor-sub {
    font-weight: 500;
    color: #2b4b7a;
    margin: 1px 0 4px;
    font-size: 13px;
}

.tutor-rating {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 1px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    color: #0f3b7a;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tutor-desc {
    font-size: 12px;
    color: #38507a;
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

/* ==========================================
   КНОПКИ
   ========================================== */

.btn-detail {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    color: #1f4a8a;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    width: 100%;
    max-width: 160px;
}

.btn-detail:hover {
    background: rgba(31, 74, 138, 0.85);
    color: white;
    box-shadow: 0 8px 32px rgba(31, 74, 138, 0.12);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    border: 2px solid rgba(31, 74, 138, 0.3);
    border-radius: 60px;
    font-weight: 600;
    color: #1f4a8a;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 14px;
    font-family: inherit;
}

.btn-outline:hover {
    background: rgba(31, 74, 138, 0.85);
    color: white;
    box-shadow: 0 8px 32px rgba(31, 74, 138, 0.12);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn-primary {
    background: rgba(20, 50, 100, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 14px 44px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 17px;
    border: 2px solid rgba(20, 50, 100, 0.95);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 24px rgba(20, 50, 100, 0.2);
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}

.btn-primary:hover {
    background: rgba(10, 30, 70, 0.95);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 48px rgba(20, 50, 100, 0.35);
    border-color: rgba(20, 50, 100, 0.95);
}

.btn-primary-sm {
    background: rgba(20, 50, 100, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 8px 20px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid rgba(20, 50, 100, 0.95);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.25);
}

.btn-primary-sm:hover {
    background: rgba(10, 30, 70, 0.95);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.4);
}

.btn-success-sm {
    background: rgba(40, 167, 69, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 6px 16px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

.btn-success-sm:hover {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.35);
}

.btn-danger-sm {
    background: rgba(200, 50, 50, 0.85);
    backdrop-filter: blur(12px);
    color: white;
    padding: 6px 16px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(200, 50, 50, 0.2);
}

.btn-danger-sm:hover {
    background: rgba(200, 50, 50, 1);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 50, 50, 0.35);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(20, 50, 100, 0.9);
    color: white;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.25);
}

.btn-dark:hover {
    background: rgba(10, 30, 70, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.4);
}

.text-center {
    text-align: center;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 36px;
    padding: 40px 32px;
    margin: 28px 0 20px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(31, 74, 138, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f2b52;
    margin-bottom: 6px;
}

.cta-section p {
    font-size: 17px;
    color: #1f3d6b;
    margin-bottom: 20px;
}

/* ==========================================
   FLOATING BUTTON
   ========================================== */

.floating-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(20, 50, 100, 0.9);
    backdrop-filter: blur(16px);
    color: white;
    padding: 14px 40px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 17px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-color: rgba(20, 50, 100, 0.95);
    cursor: pointer;
    box-shadow: 0 8px 40px rgba(20, 50, 100, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-family: inherit;
}

.floating-btn:hover {
    background: rgba(10, 30, 70, 0.95);
    transform: translateX(-50%) scale(1.03) translateY(-2px);
    box-shadow: 0 12px 56px rgba(20, 50, 100, 0.4);
    border-color: rgba(20, 50, 100, 0.95);
}

.floating-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* ==========================================
   МОДАЛЬНЫЕ ОКНА
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 36px 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(31, 74, 138, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    cursor: pointer;
    color: #3a5f8a;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #1a2639;
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.6);
}

.modal h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0b1e3a;
    margin-bottom: 4px;
}

.modal p {
    color: #4a5f7a;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #1a3d6e;
    margin-bottom: 3px;
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s ease;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #1a2639;
}

.modal input::placeholder,
.modal textarea::placeholder {
    color: #6a7f9e;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
    outline: none;
    border-color: rgba(31, 74, 138, 0.3);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(31, 74, 138, 0.04);
}

.modal textarea {
    resize: vertical;
    min-height: 80px;
}

.modal .btn-submit {
    width: 100%;
    padding: 12px;
    background: rgba(20, 50, 100, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: inherit;
}

.modal .btn-submit:hover {
    background: rgba(10, 30, 70, 0.95);
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================
   ВИДЕО-МОДАЛКА
   ========================================== */

.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-box {
    background: #fff;
    border-radius: 28px;
    max-width: 720px;
    width: 92%;
    padding: 20px 20px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.video-modal-overlay.active .video-modal-box {
    transform: scale(1);
}

.video-modal-box .modal-close-video {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #1a3a6a;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 40px;
    transition: background 0.2s;
    z-index: 10;
}

.video-modal-box .modal-close-video:hover {
    background: #f0f4f8;
}

.video-modal-box .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.video-modal-box .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-box .video-caption {
    margin-top: 14px;
    font-weight: 500;
    color: #1a3a6a;
    font-size: 16px;
    text-align: center;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer-note {
    padding: 24px 0 18px;
    color: #3a5582;
    font-size: 13px;
    text-align: center;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 12px;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.1);
}

/* ==========================================
   ДАШБОРД (dashboard.html)
   ========================================== */

.dashboard-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 0 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(31, 74, 138, 0.04);
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-header .brand-name {
    font-size: 20px;
    letter-spacing: 1.2px;
}

.dashboard-header .brand-sub-head {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #1a3a64;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2a54, #1a4a8a);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #0b1e3a;
}

.user-email {
    font-size: 12px;
    color: #1a3a64;
}

.user-role {
    font-size: 10px;
    font-weight: 600;
    color: #1a4a8a;
    background: rgba(20, 50, 100, 0.12);
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 2px;
}

.user-role i {
    margin-right: 4px;
}

.logout-btn {
    background: rgba(20, 50, 100, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    border: 2px solid rgba(20, 50, 100, 0.9);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.2);
    font-family: inherit;
}

.logout-btn:hover {
    background: rgba(10, 30, 70, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.35);
}

.dashboard-nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0 0 4px;
    margin-bottom: 32px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(20, 50, 100, 0.15);
}

.dashboard-nav .container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.nav-tab {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: #1a3a64;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
}

.nav-tab i {
    color: #1a3a64;
}

.nav-tab:hover {
    background: rgba(20, 50, 100, 0.2);
    color: #0b2a54;
}

.nav-tab.active {
    background: rgba(20, 50, 100, 0.9);
    color: white;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.5);
}

.nav-tab.active i {
    color: white;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 24px 20px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(31, 74, 138, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0b1e3a;
    margin-bottom: 16px;
}

.card h3 i {
    margin-right: 6px;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #0b2a54, #1a4a8a, #2a5a9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-title i {
    -webkit-text-fill-color: #1a3a64;
    margin-right: 6px;
}

.dashboard-subtitle {
    color: #1a3a64;
    font-size: 15px;
}

.dashboard-subtitle i {
    margin-right: 4px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(31, 74, 138, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 48px rgba(31, 74, 138, 0.06);
    transform: translateY(-4px);
}

.stat-card .icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-card .number {
    font-size: 26px;
    font-weight: 700;
    color: #0b2a54;
}

.stat-card .label {
    font-size: 12px;
    color: #1a3a64;
    margin-top: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* ==========================================
   ФИЛЬТРЫ ДЛЯ УЧЕНИКОВ
   ========================================== */

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #1a2639;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(20, 50, 100, 0.06);
}

.search-input:focus {
    outline: none;
    border-color: rgba(20, 50, 100, 0.4);
    box-shadow: 0 2px 8px rgba(20, 50, 100, 0.12);
}

.group-filter {
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.15);
    color: #1a2639;
    box-shadow: 0 2px 8px rgba(20, 50, 100, 0.06);
}

.group-filter:focus {
    outline: none;
    border-color: rgba(20, 50, 100, 0.4);
    box-shadow: 0 2px 8px rgba(20, 50, 100, 0.12);
}

.btn-reset {
    padding: 10px 20px;
}

/* ==========================================
   СТУДЕНТЫ
   ========================================== */

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 12px;
    position: relative;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.1);
}

.student-item:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.5);
    transform: translateX(4px);
}

.student-item .name {
    font-weight: 500;
    color: #1a3a64;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 160px;
    flex-shrink: 0;
    pointer-events: none;
}

.student-item .name .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.student-item .name .status-dot.online { background: #28a745; }
.student-item .name .status-dot.offline { background: #8a9ab0; }
.student-item .name .status-dot.waiting { background: #4a8ab5; }

.student-item .right-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    pointer-events: none;
}

.student-item .right-section .group {
    font-size: 12px;
    color: #4a6a8a;
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.student-item .right-section .progress {
    font-size: 12px;
    color: #1a3a64;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.student-item .right-section .progress.high {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.student-item .right-section .progress.medium {
    background: rgba(74, 138, 181, 0.15);
    color: #2a6a8a;
}

.student-item .right-section .progress.low {
    background: rgba(200, 50, 50, 0.12);
    color: #c83232;
}

.student-item .right-section .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.student-item .right-section .badge-homework {
    background: rgba(20, 50, 100, 0.12);
    color: #0b2a54;
}

.student-item .right-section .badge-homework .done { color: #28a745; }
.student-item .right-section .badge-homework .total { color: #4a6a8a; }

.student-item .right-section .badge-payment {
    background: rgba(40, 167, 69, 0.12);
    color: #1a7a34;
}

.student-item .right-section .badge-payment .count { font-weight: 700; }
.student-item .right-section .badge-payment.warning {
    background: rgba(74, 138, 181, 0.15);
    color: #2a6a8a;
}

.student-item .right-section .badge-payment.danger {
    background: rgba(200, 50, 50, 0.12);
    color: #c83232;
}

.student-item .actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    pointer-events: auto;
}

.student-item .actions .btn-detail {
    padding: 4px 14px;
    background: rgba(20, 50, 100, 0.85);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.25);
}

.student-item .actions .btn-detail:hover {
    background: rgba(10, 30, 70, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.4);
}

.student-item .actions .btn-add-homework {
    padding: 4px 14px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.25);
}

.student-item .actions .btn-add-homework:hover {
    background: rgba(40, 167, 69, 1);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

.student-item .actions .btn-add-homework .plus {
    font-weight: 700;
    font-size: 14px;
    margin-right: 2px;
}

.student-item .click-hint {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(26, 58, 100, 0.2);
    pointer-events: none;
    transition: all 0.3s ease;
}

.student-item:hover .click-hint {
    color: rgba(26, 58, 100, 0.5);
    transform: translateY(-50%) translateX(4px);
}

.students-count {
    font-size: 14px;
    color: #1a3a64;
    opacity: 0.7;
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-queue {
    background: rgba(20, 50, 100, 0.9);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid rgba(20, 50, 100, 0.2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.4);
}

.btn-queue:hover {
    background: rgba(10, 30, 70, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 50, 100, 0.6);
}

.queue-item .name .status-dot.waiting {
    background: #4a8ab5;
    box-shadow: 0 0 12px rgba(74, 138, 181, 0.3);
}

.queue-item .right-section .badge-queue {
    background: rgba(74, 138, 181, 0.12);
    color: #2a6a8a;
    font-weight: 600;
    border: 1px solid rgba(74, 138, 181, 0.1);
}

.queue-number {
    font-weight: 700;
    color: #4a6a8a;
    font-size: 14px;
    min-width: 30px;
    text-align: center;
}

.queue-empty {
    text-align: center;
    padding: 40px;
    color: #8a9ab0;
    font-size: 16px;
}

.empty-students {
    text-align: center;
    padding: 40px;
    color: #1a3a64;
    font-size: 16px;
}

.pagination-bar {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 13px;
    color: #1a3a64;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.btn-page {
    padding: 4px 12px;
}

.active-page {
    background: rgba(20, 50, 100, 0.1);
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

@media (max-width: 1200px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 1024px) {
    .planet-decoration {
        width: 280px;
        height: 280px;
        right: -10px;
    }
    .hero .container {
        padding-left: 32px;
        padding-right: 16px;
    }
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-group {
        justify-content: flex-start;
    }
    .brand-text {
        align-items: flex-start;
    }
    .nav-links {
        justify-content: flex-start;
        margin-left: 0;
    }
    .carousel-slide {
        flex: 0 0 calc(33.333% - 14px);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .student-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .student-item .right-section {
        flex: 1 1 100%;
        justify-content: flex-start;
        order: 2;
    }
    .student-item .actions {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    .student-item .name {
        min-width: unset;
        flex: 1;
    }
    .student-item .click-hint {
        display: none;
    }
    .btn-queue {
        padding: 8px 18px;
        font-size: 13px;
    }
    .filter-bar {
        gap: 8px;
    }
    .search-input {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .planet-decoration {
        width: 160px;
        height: 160px;
        right: 0px;
    }
    .hero .container {
        padding-left: 24px;
        padding-right: 12px;
    }
    .floating-btn {
        padding: 12px 28px;
        font-size: 15px;
        bottom: 20px;
    }
    .modal {
        padding: 24px 18px;
    }
    .brand-logo-small {
        width: 38px;
        height: 38px;
    }
    .brand-name {
        font-size: 20px;
    }
    .nav-link {
        font-size: 13px;
    }
    .nav-btn {
        font-size: 13px;
        padding: 5px 16px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .hero p {
        font-size: 17px;
    }
    .stats-grid {
        gap: 24px 32px;
        padding: 14px 24px;
    }
    .stat-number {
        font-size: 22px;
    }
    .section-title {
        font-size: 26px;
    }
    .carousel-slide {
        flex: 0 0 calc(50% - 10px);
    }
    .dashboard-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .user-info {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .dashboard-nav .container {
        justify-content: flex-start;
        gap: 6px;
    }
    .nav-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    .student-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 14px;
    }
    .student-item .right-section {
        width: 100%;
        justify-content: flex-start;
    }
    .student-item .actions {
        width: 100%;
        justify-content: flex-start;
    }
    .student-item .name {
        width: 100%;
    }
    .student-item .click-hint {
        display: none;
    }
    .filter-bar {
        flex-direction: column;
    }
    .search-input {
        min-width: unset;
        width: 100%;
    }
    .group-filter {
        width: 100%;
    }
    .pagination-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero .container {
        padding-left: 16px;
        padding-right: 8px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .stats-grid {
        gap: 16px 20px;
        padding: 12px 18px;
        border-radius: 36px;
    }
    .stat-number {
        font-size: 20px;
    }
    .stat-label {
        font-size: 12px;
    }
    .section-title {
        font-size: 24px;
    }
    .cta-section {
        padding: 28px 16px;
    }
    .cta-section h2 {
        font-size: 24px;
    }
    .tutor-avatar {
        width: 70px;
        height: 70px;
    }
    .btn-detail {
        max-width: 100%;
    }
    .planet-decoration {
        width: 100px;
        height: 100px;
        right: -10px;
    }
    .floating-btn {
        padding: 10px 20px;
        font-size: 14px;
        bottom: 16px;
        white-space: normal;
    }
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .brand-group {
        justify-content: flex-start;
    }
    .nav-links {
        justify-content: flex-start;
        gap: 8px 12px;
        flex-wrap: wrap;
        margin-left: 0;
    }
    .nav-link {
        font-size: 12px;
    }
    .nav-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
    .brand-logo-small {
        width: 32px;
        height: 32px;
    }
    .carousel-slide {
        flex: 0 0 calc(100% - 0px);
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .carousel-controls {
        justify-content: center;
    }
    .direction-card h3 {
        font-size: 16px;
    }
    .tutor-name {
        font-size: 16px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        width: auto;
        justify-content: flex-start;
    }
    .dashboard-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .student-item .right-section .progress,
    .student-item .right-section .group,
    .student-item .right-section .badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    .student-item .right-section .progress {
        min-width: 50px;
    }
    .student-item .actions .btn-detail,
    .student-item .actions .btn-add-homework {
        font-size: 10px;
        padding: 3px 10px;
    }
    .btn-queue {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }
}