/* ============================================
   LIQUID GLASS iOS STYLE
   ============================================ */

:root {
    /* Основные цвета */
    --primary: #5E5CE6;
    --primary-light: #6B6AF0;
    --primary-dark: #4A49B8;
    --secondary: #30B0C0;
    --accent: #FF9F0A;
    --success: #30D158;
    --danger: #FF453A;
    
    /* Фоновые градиенты */
    --bg-gradient-1: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%);
    --bg-gradient-2: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    --bg-gradient-3: linear-gradient(135deg, #654EA3 0%, #EAAFC8 100%);
    
    /* Эффект стекла */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --glass-blur: blur(12px);
    
    /* Тени */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    line-height: 1.6;
    background: var(--bg-gradient-1);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ФИКС ДЛЯ SAFARI - принудительный фон */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(94, 92, 230, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 159, 10, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ============================================
   GLASS COMPONENTS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    background: rgba(26, 31, 43, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Logo */
.logo__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo__icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo__text {
    background: linear-gradient(135deg, #FFFFFF, #E0E0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.nav__menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.nav__menu a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav__menu a:hover::after {
    width: 30px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn--glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn--glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 0 20px rgba(94, 92, 230, 0.5);
}

.btn--glow:hover {
    box-shadow: 0 0 30px rgba(94, 92, 230, 0.8);
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
    justify-content: center;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   MODAL WINDOWS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    z-index: 1001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal__close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal__title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF, #E0E0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
}

.form-group--checkbox label {
    margin-bottom: 0;
    margin-left: 8px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    color: #FFFFFF;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(94, 92, 230, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control[readonly] {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.modal__footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.modal__footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.modal__footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.hero__shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero__shape-2 {
    bottom: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

.hero__shape-3 {
    top: 30%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero__content {
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__title-highlight {
    background: linear-gradient(135deg, #FFD80A, #FF9F0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: 58px;
}

.hero__subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stats__item {
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.stats__item:nth-child(1) { animation-delay: 0.2s; }
.stats__item:nth-child(2) { animation-delay: 0.4s; }
.stats__item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats__number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #FFD80A, #FF9F0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats__label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* Search */
.search-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 5px;
	
}

.search-form form {
    display: flex;
    gap: 10px;
}

.search-form__input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #FFFFFF;
    font-size: 16px;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.search-form__button {
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(94, 92, 230, 0.5);
}

/* ============================================
   SUBJECTS SECTION
   ============================================ */
.subjects {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 600;
}

.section-title-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.subjects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.subject-card {
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
}

.subject-card__icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.subject-card__title {
    font-size: 24px;
    margin-bottom: 10px;
}

.subject-card__count {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   STEPS SECTION
   ============================================ */
.how-it-works {
    padding: 80px 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.step:hover::before {
    opacity: 1;
}

.step__number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(94, 92, 230, 0.5);
}

.step__emoji {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.step__title {
    font-size: 22px;
    margin-bottom: 15px;
}

.step__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 80px 0;
}

.cta__block {
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(94, 92, 230, 0.3), 
        rgba(48, 176, 192, 0.3)
    );
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta__title {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta__text {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */
.account {
    padding: 60px 0;
}

.account__header {
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account__user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.account__name {
    font-size: 28px;
    margin-bottom: 5px;
}

.account__email {
    color: rgba(255, 255, 255, 0.8);
}

.account__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card__icon {
    font-size: 42px;
}

.stat-card__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-card__label {
    color: rgba(255, 255, 255, 0.7);
}

.account__tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.tab-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(94, 92, 230, 0.5);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .glass-card {
    padding: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 20px;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer__text {
    opacity: 0.8;
    line-height: 1.6;
}

.footer__menu {
    list-style: none;
}

.footer__menu li {
    margin-bottom: 10px;
}

.footer__menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer__menu a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.footer__contacts {
    list-style: none;
}

.footer__contacts li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer__contacts i {
    width: 20px;
    color: var(--accent);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: #FFFFFF;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   SAFARI ONLY FIXES
   ============================================ */

/* Safari 9+ */
_::-webkit-:not(:root:root), body {
    background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%);
}

/* Safari 10.1+ */
@media not all and (min-resolution:.001dpcm) { 
    @media {
        body {
            background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%);
        }
    }
}

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%);
    }
    
    .glass-card {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    
    .nav.active {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 31, 43, 0.95);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        padding: 40px 20px;
        z-index: 99;
    }
    
    .nav.active {
        display: block;
        animation: slideIn 0.3s ease;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav__menu {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav__menu a {
        font-size: 20px;
        padding: 15px;
        display: block;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header__actions {
        display: none;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__title-highlight {
        font-size: 40px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .account__stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta__block {
        padding: 40px 20px;
    }
    
    .cta__title {
        font-size: 32px;
    }
}
/* ============================================
   LIQUID GLASS iOS STYLE
   ============================================ */

:root {
    /* Основные цвета */
    --primary: #5E5CE6;
    --primary-light: #6B6AF0;
    --primary-dark: #4A49B8;
    --secondary: #30B0C0;
    --accent: #FF9F0A;
    --success: #30D158;
    --danger: #FF453A;
    
    /* Фоновые градиенты */
    --bg-gradient-1: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%);
    --bg-gradient-2: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    --bg-gradient-3: linear-gradient(135deg, #654EA3 0%, #EAAFC8 100%);
    
    /* Эффект стекла */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --glass-blur: blur(12px);
    
    /* Тени */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.4);
    
    /* Анимации */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #FFFFFF;
    line-height: 1.6;
    background: var(--bg-gradient-1);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ПРИНУДИТЕЛЬНЫЙ ФОН ДЛЯ SAFARI */
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { 
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
}

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(94, 92, 230, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 159, 10, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* ============================================
   HERO SECTION - ИСПРАВЛЕНО ДЛЯ iOS
   ============================================ */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.hero__shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero__shape-2 {
    bottom: -10%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

.hero__shape-3 {
    top: 30%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero__content {
    padding: 60px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: clamp(32px, 8vw, 52px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.hero__title-highlight {
    background: linear-gradient(135deg, #FFD80A, #FF9F0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    font-size: clamp(36px, 9vw, 58px);
    margin-top: 10px;
}

.hero__subtitle {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    padding: 0 15px;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ iOS
   ============================================ */

/* iPhone SE, 5/5S */
@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 568px) 
and (-webkit-min-device-pixel-ratio: 2) {
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero__content {
        padding: 30px 15px;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__title-highlight {
        font-size: 32px;
    }
    
    .hero__subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .stats {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .stats__item {
        width: 100%;
    }
    
    .search-form form {
        flex-direction: column;
    }
    
    .search-form__input {
        width: 100%;
        border-radius: 30px !important;
        margin-bottom: 10px;
    }
    
    .search-form__button {
        width: 100%;
        border-radius: 30px !important;
    }
}

/* iPhone 6, 7, 8 */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 667px) 
and (-webkit-min-device-pixel-ratio: 2) {
    
    .hero {
        min-height: auto;
        padding: 50px 0;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__title-highlight {
        font-size: 36px;
    }
    
    .stats {
        gap: 20px;
    }
}

/* iPhone X, XS, 11 Pro, 12, 13, 14 */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3) {
    
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 36px;
    }
    
    .hero__title-highlight {
        font-size: 40px;
    }
    
    .stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stats__item {
        flex: 1 1 120px;
    }
}

/* iPhone 12 Pro Max, 13 Pro Max, 14 Plus */
@media only screen 
and (min-device-width: 428px) 
and (max-device-width: 926px) 
and (-webkit-min-device-pixel-ratio: 3) {
    
    .hero__title {
        font-size: 40px;
    }
    
    .hero__title-highlight {
        font-size: 44px;
    }
}

/* Все iPhone в ландшафтной ориентации */
@media only screen 
and (max-device-width: 926px) 
and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: 30px 0;
    }
    
    .hero__content {
        padding: 20px;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__title-highlight {
        font-size: 36px;
    }
    
    .stats {
        flex-direction: row;
        gap: 30px;
    }
}

/* ============================================
   GLASS COMPONENTS
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    background: rgba(26, 31, 43, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Logo */
.logo__link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.logo__icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo__text {
    background: linear-gradient(135deg, #FFFFFF, #E0E0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.nav__menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.nav__menu a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav__menu a:hover::after {
    width: 30px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn--glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn--glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 0 20px rgba(94, 92, 230, 0.5);
}

.btn--glow:hover {
    box-shadow: 0 0 30px rgba(94, 92, 230, 0.8);
    transform: translateY(-2px);
}

.btn--block {
    width: 100%;
    justify-content: center;
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stats__item {
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    flex: 1 1 auto;
    min-width: 100px;
}

.stats__item:nth-child(1) { animation-delay: 0.2s; }
.stats__item:nth-child(2) { animation-delay: 0.4s; }
.stats__item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats__number {
    font-size: clamp(32px, 8vw, 42px);
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #FFD80A, #FF9F0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats__label {
    font-size: clamp(14px, 4vw, 16px);
    color: rgba(255, 255, 255, 0.8);
}

/* Search */
.search-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 5px;
    width: 100%;
}

.search-form form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-form__input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #FFFFFF;
    font-size: 16px;
    min-width: 0; /* Предотвращает переполнение */
}

.search-form__input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.search-form__button {
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-form__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(94, 92, 230, 0.5);
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ С КНОПКАМИ - ДОБАВИТЬ В КОНЕЦ ФАЙЛА
   ============================================ */

/* Скрываем десктопные элементы на мобильных */
@media (max-width: 768px) {
    .nav--desktop,
    .header__actions--desktop {
        display: none !important;
    }
}

/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(26, 31, 43, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    right: 0;
}

/* Заголовок мобильного меню */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.mobile-nav__logo .logo__icon {
    font-size: 32px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.mobile-nav__logo .logo__text {
    background: linear-gradient(135deg, #FFFFFF, #E0E0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-nav__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-nav__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Мобильное меню список */
.mobile-nav__list {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-nav__list li {
    margin-bottom: 5px;
}

.mobile-nav__list a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav__list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding-left: 25px;
}

.mobile-nav__list a i {
    margin-right: 10px;
    width: 20px;
    color: var(--accent);
}

/* Кнопки в мобильном меню */
.mobile-nav__actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__actions .btn {
    margin-bottom: 10px;
    justify-content: center;
    font-size: 16px;
    padding: 14px 20px;
    width: 100%;
}

.mobile-nav__actions .btn:last-child {
    margin-bottom: 0;
}

.mobile-nav__actions .btn i {
    margin-right: 8px;
}

/* Затемнение фона */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Бургер меню */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ============================================ */

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .header__inner {
        position: relative;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__title-highlight {
        font-size: 36px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats__item {
        width: 100%;
    }
    
    .search-form form {
        flex-direction: column;
    }
    
    .search-form__input,
    .search-form__button {
        width: 100%;
        border-radius: 30px !important;
    }
    
    .subjects__grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .cta__block {
        padding: 40px 20px;
    }
    
    .cta__title {
        font-size: 28px;
    }
}

/* Для маленьких экранов */
@media (max-width: 480px) {
    .mobile-nav {
        max-width: 100%;
    }
    
    .hero__title {
        font-size: 28px;
    }
    
    .hero__title-highlight {
        font-size: 32px;
    }
    
    .stats__number {
        font-size: 32px;
    }
    
    .step {
        padding: 30px 20px;
    }
    
    .step__emoji {
        font-size: 48px;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal__close:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal__title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #FFFFFF, #E0E0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   ФОРМЫ В МОДАЛЬНЫХ ОКНАХ
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
}

.form-group--checkbox label {
    margin-bottom: 0;
    margin-left: 8px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    color: #FFFFFF;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(94, 92, 230, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal__footer {
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.modal__footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal__footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.btn--block {
    width: 100%;
    justify-content: center;
}
/* ============================================
   SAFARI & iOS FIXES - ПОСЛЕДНИЙ БЛОК
   ============================================ */

/* Базовый фон для всех браузеров */
body {
    background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
}

/* Safari 9+ */
_::-webkit-:not(:root:root), body {
    background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
}

/* Safari 10.1+ */
@media not all and (min-resolution:.001dpcm) { 
    @media {
        body {
            background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
        }
        html {
            background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
        }
    }
}

/* Safari 11+ */
@supports (overflow:-webkit-marquee) and (justify-content:inherit) {
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
}

/* iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
    
    /* Фикс для плавного скролла */
    .nav.active,
    .mobile-nav {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Фикс для backdrop-filter в iOS */
    .glass-card,
    .header,
    .mobile-nav,
    .modal__content {
        -webkit-backdrop-filter: blur(12px) !important;
        backdrop-filter: blur(12px) !important;
    }
}

/* Safari 14+ */
@media screen and (min-width: 0\0) and (min-resolution: +72dpi) {
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
}

/* Фикс для Safari на Mac */
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { 
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
}

/* Усиленный фикс для всех версий Safari */
@media (hover: hover) and (pointer: fine) and (min--moz-device-pixel-ratio:0) {
    /* Этот код выполняется только в Safari */
    body {
        background: linear-gradient(135deg, #1A1F2B 0%, #2A2F3C 100%) !important;
    }
}

/* Фикс для контейнера */
.container {
    position: relative;
    z-index: 2;
}

/* Фикс для градиентного слоя */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(94, 92, 230, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 159, 10, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Дополнительный фикс для Safari на iOS */
.hero, .subjects, .how-it-works, .cta, .footer {
    position: relative;
    z-index: 1;
}
/* ============================================
   iOS SPECIFIC FONTS - ПОСЛЕДНИЙ БЛОК
   ============================================ */

/* Все iPhone */
@supports (-webkit-touch-callout: none) {
    
    /* Hero секция */
    .hero__title {
        font-size: clamp(28px, 7vw, 42px) !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .hero__title-highlight {
        font-size: clamp(32px, 8vw, 46px) !important;
        margin-top: 5px !important;
    }
    
    .hero__subtitle {
        font-size: clamp(14px, 4vw, 18px) !important;
        margin-bottom: 30px !important;
        padding: 0 15px !important;
    }
    
    /* Stats */
    .stats__number {
        font-size: clamp(28px, 7vw, 38px) !important;
    }
    
    .stats__label {
        font-size: clamp(12px, 3.5vw, 14px) !important;
    }
    
    /* Секция предметов */
    .section-title {
        font-size: clamp(24px, 6vw, 36px) !important;
        margin-bottom: 30px !important;
    }
    
    .subject-card__title {
        font-size: clamp(18px, 5vw, 22px) !important;
    }
    
    .subject-card__count {
        font-size: clamp(12px, 3.5vw, 14px) !important;
    }
    
    /* Секция шагов */
    .step__title {
        font-size: clamp(18px, 5vw, 20px) !important;
    }
    
    .step__text {
        font-size: clamp(13px, 3.8vw, 15px) !important;
    }
    
    .step__emoji {
        font-size: clamp(40px, 12vw, 56px) !important;
    }
    
    /* CTA секция */
    .cta__title {
        font-size: clamp(24px, 6vw, 36px) !important;
    }
    
    .cta__text {
        font-size: clamp(14px, 4vw, 16px) !important;
    }
}

/* iPhone SE (320px) и очень маленькие */
@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 375px) 
and (-webkit-min-device-pixel-ratio: 2) {
    
    .hero__title {
        font-size: 26px !important;
    }
    
    .hero__title-highlight {
        font-size: 30px !important;
    }
    
    .hero__subtitle {
        font-size: 13px !important;
    }
    
    .stats__number {
        font-size: 26px !important;
    }
    
    .stats__label {
        font-size: 11px !important;
    }
    
    .stats {
        gap: 15px !important;
    }
}

/* iPhone 6/7/8 (375px) */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 667px) 
and (-webkit-min-device-pixel-ratio: 2) {
    
    .hero__title {
        font-size: 28px !important;
    }
    
    .hero__title-highlight {
        font-size: 32px !important;
    }
    
    .hero__subtitle {
        font-size: 14px !important;
    }
}

/* iPhone X/XS/11 Pro/12/13/14 (375px - 812px) */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3) {
    
    .hero__title {
        font-size: 30px !important;
    }
    
    .hero__title-highlight {
        font-size: 34px !important;
    }
}

/* iPhone 12 Pro Max/13 Pro Max/14 Plus (428px) */
@media only screen 
and (min-device-width: 428px) 
and (max-device-width: 926px) 
and (-webkit-min-device-pixel-ratio: 3) {
    
    .hero__title {
        font-size: 34px !important;
    }
    
    .hero__title-highlight {
        font-size: 38px !important;
    }
}

/* iPad и iPad Pro */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1366px) 
and (-webkit-min-device-pixel-ratio: 2) {
    
    .hero__title {
        font-size: 42px !important;
    }
    
    .hero__title-highlight {
        font-size: 48px !important;
    }
}

/* Альбомная ориентация на всех iPhone */
@media only screen 
and (max-device-width: 926px) 
and (orientation: landscape) {
    
    .hero {
        min-height: auto !important;
        padding: 30px 0 !important;
    }
    
    .hero__content {
        padding: 20px !important;
    }
    
    .hero__title {
        font-size: 28px !important;
    }
    
    .hero__title-highlight {
        font-size: 32px !important;
    }
    
    .stats {
        flex-direction: row !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }
}
/* ============================================
   REACT HERO SLIDER
   ============================================ */

.hero__slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero__slides {
    display: flex;
    transition: transform 0.5s ease;
}

.hero__slide {
    flex: 0 0 100%;
    width: 100%;
}

.hero__icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.hero__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero__dot:hover {
    transform: scale(1.2);
}

.hero__dot.active {
    width: 30px;
    border-radius: 10px;
}

/* Обновленные стили для статистики */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    flex-wrap: wrap;
}

.stats__item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    flex: 1;
    min-width: 150px;
}

.stats__icon {
    font-size: 36px;
    animation: bounce 2s ease-in-out infinite;
}

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

.stats__number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFD80A, #FF9F0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats__item {
        width: 100%;
    }
    
    .hero__icon {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .stats__number {
        font-size: 28px;
    }
    
    .stats__icon {
        font-size: 28px;
    }
}

/* Анимации */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
/* ============================================
   VUE COMPONENTS STYLES
   ============================================ */

/* Subject Card */
.subject-card {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 40px 30px;
    text-align: center;
}

.subject-card:hover {
    transform: translateY(-5px);
}

.subject-card__icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.subject-card__title {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.subject-card__count {
    font-size: 16px;
    opacity: 0.9;
    color: white;
}

/* Step Card */
.step {
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 40px 30px;
    text-align: center;
}

.step:hover {
    transform: translateY(-5px);
}

.step__number {
    width: 50px;
    height: 50px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(94, 92, 230, 0.5);
}

.step__emoji {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.step__title {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.step__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* CTA Block */
.cta__block {
    padding: 60px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(94, 92, 230, 0.3), 
        rgba(48, 176, 192, 0.3)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
}

.cta__title {
    font-size: clamp(28px, 6vw, 42px);
    margin-bottom: 15px;
    color: white;
}

.cta__text {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптивность */
@media (max-width: 768px) {
    .subjects__grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .step__emoji {
        font-size: 48px;
    }
    
    .cta__block {
        padding: 40px 20px;
    }
}
/* ============================================
   НОВЫЙ ДИЗАЙН ДЛЯ VUE КОМПОНЕНТОВ
   ============================================ */

/* 3D карточки предметов */
.subjects__grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.subject-card-3d {
    border-radius: 20px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subject-card__inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.subject-card__glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.5;
}

/* Современные шаги */
.steps-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card-modern:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.step-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.step-card__content {
    flex: 1;
}

.step-card__number {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-card__title {
    font-size: 20px;
    margin: 5px 0 10px;
    color: white;
}

.step-card__text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.step-card__emoji {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 48px;
    opacity: 0.2;
    animation: float 2s ease-in-out infinite;
}

/* Отзывы */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.testimonial__content {
    flex: 1;
}

.testimonial__name {
    font-size: 18px;
    margin-bottom: 5px;
    color: white;
}

.testimonial__rating {
    margin-bottom: 10px;
}

.testimonial__rating i {
    color: rgba(255, 255, 255, 0.3);
    margin-right: 2px;
}

.testimonial__rating i.active {
    color: #FFD700;
}

.testimonial__text {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.5;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item__question {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 500;
    color: white;
}

.faq-item__question i {
    transition: transform 0.3s ease;
}

.faq-item__answer {
    padding: 0 25px 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Анимации для FAQ */
.slide-enter-active, .slide-leave-active {
    transition: all 0.3s ease;
    max-height: 200px;
}

.slide-enter, .slide-leave-to {
    opacity: 0;
    max-height: 0;
    padding: 0 25px;
}

/* Статистика */
.stats-section {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stats-counter {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-counter__icon {
    font-size: 48px;
}

.stats-counter__content {
    display: flex;
    flex-direction: column;
}

.stats-counter__number {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-counter__label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Копирайт */
.copyright {
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .step-card-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-counter {
        flex-direction: column;
        text-align: center;
    }
}
/* ============================================
   ДНЕВНАЯ ТЕМА
   ============================================ */

:root {
    /* Дневная тема - светлые градиенты */
    --day-gradient-1: linear-gradient(135deg, #F8F9FF 0%, #E8ECFF 100%);
    --day-gradient-2: linear-gradient(135deg, #E6E9FF 0%, #D1D9FF 100%);
    --day-gradient-3: linear-gradient(135deg, #DCE3FF 0%, #C5D0FF 100%);
    
    /* Цвета для дневной темы */
    --day-primary: #4361EE;
    --day-secondary: #3A0CA3;
    --day-accent: #F72585;
    --day-text: #2B2D42;
    --day-text-light: #4A4E69;
    --day-bg: #FFFFFF;
    
    /* Эффект стекла для дневной темы */
    --day-glass-bg: rgba(255, 255, 255, 0.7);
    --day-glass-border: rgba(67, 97, 238, 0.2);
    --day-glass-shadow: 0 8px 32px 0 rgba(67, 97, 238, 0.1);
    
    /* Тени для дневной темы */
    --day-shadow-sm: 0 4px 6px rgba(67, 97, 238, 0.1);
    --day-shadow-md: 0 10px 25px rgba(67, 97, 238, 0.15);
    --day-shadow-lg: 0 20px 40px rgba(67, 97, 238, 0.2);
}

/* Дневная тема для body */
body {
    background: var(--day-gradient-1);
    color: var(--day-text);
}

body::before {
    background: radial-gradient(circle at 20% 50%, rgba(67, 97, 238, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(247, 37, 133, 0.05) 0%, transparent 50%);
}

/* Заголовки в дневной теме */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(67, 97, 238, 0.1);
}

.section-title {
    color: var(--day-text);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--day-text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Стеклянные карточки для дневной темы */
.glass-card {
    background: var(--day-glass-bg);
    border: 1px solid var(--day-glass-border);
    box-shadow: var(--day-glass-shadow);
    color: var(--day-text);
}

.glass-card:hover {
    border-color: var(--day-primary);
    box-shadow: var(--day-shadow-lg);
}

/* Текст в карточках */
.subject-card__title,
.step__title,
.testimonial__name,
.faq-item__question,
.stats-counter__number {
    color: var(--day-text);
}

.subject-card__count,
.step__text,
.testimonial__text,
.faq-item__answer,
.stats-counter__label {
    color: var(--day-text-light);
}

/* Кнопки для дневной темы */
.btn--glass {
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    color: var(--day-primary);
}

.btn--glass:hover {
    background: rgba(67, 97, 238, 0.2);
    border-color: var(--day-primary);
    color: var(--day-primary);
}

.btn--glow {
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
    color: white;
}

.btn--glow:hover {
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.5);
}

/* Хедер для дневной темы */
.header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
}

.logo__text {
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav__menu a {
    color: var(--day-text);
}

.nav__menu a:hover {
    color: var(--day-primary);
    background: rgba(67, 97, 238, 0.1);
}

/* Статистика в дневной теме */
.stats-counter {
    background: var(--day-glass-bg);
    border: 1px solid var(--day-glass-border);
    box-shadow: var(--day-shadow-sm);
}

.stats-counter__number {
    background: linear-gradient(135deg, var(--day-primary), var(--day-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Шаги в дневной теме */
.step-card-modern {
    background: var(--day-glass-bg);
    border: 1px solid var(--day-glass-border);
}

.step-card__number {
    color: var(--day-primary);
}

.step-card__icon-wrapper {
    background: rgba(67, 97, 238, 0.1);
}

.step-card__icon {
    color: var(--day-primary);
}

/* Отзывы в дневной теме */
.testimonial__avatar {
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
}

.testimonial__rating i.active {
    color: #FFD700;
}

/* FAQ в дневной теме */
.faq-item {
    background: var(--day-glass-bg);
    border: 1px solid var(--day-glass-border);
}

.faq-item__question {
    color: var(--day-text);
}

.faq-item__question i {
    color: var(--day-primary);
}

/* CTA секция в дневной теме */
.cta__block {
    background: linear-gradient(135deg, 
        rgba(67, 97, 238, 0.1), 
        rgba(58, 12, 163, 0.1)
    );
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.cta__title {
    color: var(--day-text);
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta__text {
    color: var(--day-text-light);
}

/* Футер в дневной теме */
.footer {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(67, 97, 238, 0.1);
}

.footer__title {
    color: var(--day-primary);
}

.footer__menu a,
.footer__contacts li {
    color: var(--day-text-light);
}

.footer__menu a:hover {
    color: var(--day-primary);
}

/* Мобильное меню в дневной теме */
.mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(67, 97, 238, 0.1);
}

.mobile-nav__list a {
    color: var(--day-text);
}

.mobile-nav__list a:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--day-primary);
}

.mobile-nav__close {
    color: var(--day-text);
}

.mobile-nav__close:hover {
    background: rgba(67, 97, 238, 0.1);
    color: var(--day-primary);
}

/* Поиск в дневной теме */
.search-form form {
    background: var(--day-glass-bg);
    border: 1px solid var(--day-glass-border);
}

.search-form__input {
    color: var(--day-text);
}

.search-form__input::placeholder {
    color: var(--day-text-light);
}

.search-form__button {
    background: linear-gradient(135deg, var(--day-primary), var(--day-secondary));
    color: white;
}

/* Hero секция в дневной теме */
.hero__shape-1 {
    background: radial-gradient(circle, rgba(67, 97, 238, 0.3) 0%, transparent 70%);
}

.hero__shape-2 {
    background: radial-gradient(circle, rgba(58, 12, 163, 0.3) 0%, transparent 70%);
}

.hero__shape-3 {
    background: radial-gradient(circle, rgba(247, 37, 133, 0.3) 0%, transparent 70%);
}

.hero__title {
    color: var(--day-text);
}

.hero__subtitle {
    color: var(--day-text-light);
}

/* Адаптивность для дневной темы */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
}
/* ============================================
   УЛУЧШЕННЫЕ ОТСТУПЫ ДЛЯ ЗАГОЛОВКОВ
   ============================================ */

/* Общие отступы для секций */
.stats-section,
.subjects,
.how-it-works-modern,
.testimonials,
.faq-section,
.cta {
    padding: 60px 0;
    position: relative;
}

/* Первая секция после hero (статистика) - меньше отступ сверху */
.stats-section {
    padding-top: 30px;
}

/* Заголовок секции - новый подход к отступам */
.section-header {
    text-align: center;
    margin-bottom: 40px; /* Отступ от заголовка до контента */
    position: relative;
}

/* Увеличиваем отступ сверху перед заголовком */
.section-header {
    margin-top: 0; /* Убираем margin-top, используем padding секции */
}

/* Заголовок */
.section-title {
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px; /* Отступ от заголовка до подзаголовка */
    color: var(--day-text);
}

/* Подзаголовок */
.section-subtitle {
    font-size: 18px;
    color: var(--day-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Контейнер для карточек - минимальный отступ сверху (уже есть в section-header) */
.stats-grid,
.subjects__grid-3d,
.steps-modern,
.testimonials__grid,
.faq-grid {
    margin-top: 0; /* Убираем лишний отступ */
}

/* Специфические отступы для разных секций */

/* Для секции статистики - карточки ближе к заголовку */
.stats-section .stats-grid {
    margin-top: 20px;
}

/* Для секции предметов */
.subjects .subjects__grid-3d {
    margin-top: 20px;
}

/* Для секции шагов */
.how-it-works-modern .steps-modern {
    margin-top: 20px;
}

/* Для секции отзывов */
.testimonials .testimonials__grid {
    margin-top: 20px;
}

/* Для FAQ секции */
.faq-section .faq-grid {
    margin-top: 20px;
}

/* CTA секция - особый случай */
.cta .cta__block {
    margin-top: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .stats-section,
    .subjects,
    .how-it-works-modern,
    .testimonials,
    .faq-section,
    .cta {
        padding: 40px 0;
    }
    
    .stats-section {
        padding-top: 20px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .stats-section .stats-grid,
    .subjects .subjects__grid-3d,
    .how-it-works-modern .steps-modern,
    .testimonials .testimonials__grid,
    .faq-section .faq-grid {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .stats-section,
    .subjects,
    .how-it-works-modern,
    .testimonials,
    .faq-section,
    .cta {
        padding: 30px 0;
    }
    
    .stats-section {
        padding-top: 15px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}
/* ============================================
   ФИНАЛЬНЫЙ ФИКС ДЛЯ ЕДИНОГО ФОНА
   ============================================ */

/* Переопределяем все фоны для iOS */
@supports (-webkit-touch-callout: none) {
    html, body {
        background: linear-gradient(135deg, #F8FAFF 0%, #F0F3FF 100%) fixed !important;
    }
    
    body {
        background: linear-gradient(135deg, #F8FAFF 0%, #F0F3FF 100%) fixed !important;
    }
    
    /* Убираем фоны у всех секций */
    .hero,
    .stats-section,
    .subjects,
    .how-it-works-modern,
    .testimonials,
    .faq-section,
    .cta,
    .footer {
        background: transparent !important;
    }
    
    /* Убираем возможные градиенты */
    [class*="gradient"],
    [class*="bg-"] {
        background: transparent !important;
    }
}

/* Для всех браузеров - единый фон */
html {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F3FF 100%) fixed;
}

body {
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F3FF 100%) fixed;
    min-height: 100vh;
}

/* Все секции прозрачные */
.hero,
.stats-section,
.subjects,
.how-it-works-modern,
.testimonials,
.faq-section,
.cta,
.footer {
    background: transparent;
}
/* ============================================
   ФИКСЫ ДЛЯ МОБИЛЬНОГО БУРГЕРА И КАРТОЧЕК
   ============================================ */

/* Фикс для бургер-меню - делаем его видимым на темном фоне */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2) !important; /* Полупрозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    cursor: pointer;
    padding: 10px 12px !important;
    z-index: 101;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #FFFFFF !important; /* Белые полоски */
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Убираем лишние фоны, которые могли мешать */
.mobile-toggle.active {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Фикс для карточек "Как это работает" - делаем текст контрастным */
.step-card-modern {
    background: rgba(255, 255, 255, 0.15) !important; /* Делаем фон темнее для контраста */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-card-modern .step-card__title {
    color: #FFFFFF !important; /* Ярко-белый для заголовков */
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-card-modern .step-card__text {
    color: rgba(255, 255, 255, 0.95) !important; /* Почти белый для текста */
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.step-card-modern .step-card__number {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* Для обычных шагов (если используются) */
.step {
    background: rgba(255, 255, 255, 0.15) !important;
}

.step .step__title,
.step .step__text {
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Фикс для мобильного меню (если нужно) */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
    }
    
    /* Убеждаемся, что бургер виден даже на светлом фоне */
    .day-theme .mobile-toggle,
    body:not(.dark-theme) .mobile-toggle {
        background: rgba(67, 97, 238, 0.2) !important;
        border: 1px solid rgba(67, 97, 238, 0.4) !important;
    }
    
    .day-theme .mobile-toggle span,
    body:not(.dark-theme) .mobile-toggle span {
        background: #4361EE !important; /* Синие полоски для светлой темы */
    }
}
/* ============================================
   УНИВЕРСАЛЬНЫЙ СВЕТЛЫЙ ФОН ДЛЯ ВСЕХ БРАУЗЕРОВ
   ============================================ */

/* Единый светлый фон для всех браузеров */
:root {
    --light-bg-start: #F5F7FF;
    --light-bg-end: #E8ECF9;
    --light-glow-1: rgba(94, 92, 230, 0.08);
    --light-glow-2: rgba(48, 176, 192, 0.05);
    --light-glow-3: rgba(255, 159, 10, 0.03);
}

/* Базовый фон для всех браузеров */
html {
    background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    min-height: 100%;
}

body {
    background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    color: var(--day-text, #2B2D42);
    min-height: 100vh;
    position: relative;
}

/* Убираем все предыдущие фоновые переопределения */
body::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(circle at 10% 30%, var(--light-glow-1) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, var(--light-glow-2) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, var(--light-glow-3) 0%, transparent 60%) !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 1 !important;
}

/* Фикс для всех версий Safari */
@media screen and (-webkit-min-device-pixel-ratio:0) { 
    html, body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
}

/* Safari 9+ */
_::-webkit-:not(:root:root), html, body {
    background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
}

/* Safari 10.1+ */
@media not all and (min-resolution:.001dpcm) { 
    @media {
        html, body {
            background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
        }
    }
}

/* Safari 11+ */
@supports (overflow:-webkit-marquee) and (justify-content:inherit) {
    html, body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
}

/* iOS Safari - самый важный фикс */
@supports (-webkit-touch-callout: none) {
    html {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
    
    body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
    
    /* Добавляем дополнительный слой для глубины */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
            radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 40%);
        pointer-events: none;
        z-index: -2;
    }
}

/* Safari 14+ */
@media screen and (min-width: 0\0) and (min-resolution: +72dpi) {
    html, body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
}

/* Фикс для Safari на Mac */
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) { 
    html, body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
}

/* Усиленный фикс для всех версий Safari */
@media (hover: hover) and (pointer: fine) and (min--moz-device-pixel-ratio:0) {
    html, body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
    }
}

/* Отключаем все предыдущие фоновые фиксы, которые могут конфликтовать */
body {
    background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
}

/* Убираем предыдущие !important объявления */
[class*="bg-gradient"] {
    background: transparent !important;
}

/* Сохраняем прозрачность для секций */
.hero,
.stats-section,
.subjects,
.how-it-works-modern,
.testimonials,
.faq-section,
.cta,
.footer {
    background: transparent !important;
}

/* Адаптация цветов текста для светлого фона */
body, 
.hero__title,
.section-title,
.step__title,
.subject-card__title,
.testimonial__name,
.faq-item__question,
.cta__title {
    color: var(--day-text, #2B2D42) !important;
}

.hero__subtitle,
.section-subtitle,
.step__text,
.subject-card__count,
.testimonial__text,
.faq-item__answer,
.cta__text {
    color: var(--day-text-light, #4A4E69) !important;
}

/* Специально для Safari на iOS - создаем более глубокий эффект */
@supports (-webkit-touch-callout: none) {
    body {
        background: linear-gradient(135deg, var(--light-bg-start), var(--light-bg-end)) fixed !important;
        background-attachment: fixed !important;
    }
    
    /* Добавляем эффект "жидкого стекла" */
    .glass-card {
        backdrop-filter: blur(12px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
        background: rgba(255, 255, 255, 0.5) !important;
    }
}
/* ============================================
   УБИРАЕМ ПОДЧЕРКИВАНИЕ У ВСЕХ ССЫЛОК
   ============================================ */

#vue-app a {
    text-decoration: none;
    border-bottom: none;
}

#vue-app a:hover {
    text-decoration: none;
}
