:root {
    --primary-color: #4e5c9e;
    --primary-light: #6f7cbe;
    --primary-dark: #3c477c;
    --accent-color: #ff7e50;
    --accent-light: #ff9d7a;
    --text-color: #2a2f4e;
    --text-light: #6b7297;
    --background-light: #f5f6fb;
    --background-grad1: #eef0f9;
    --background-grad2: #f8f9fd;
    --white: #ffffff;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --box-shadow: 0 10px 30px rgba(78, 92, 158, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(78, 92, 158, 0.14);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-grad1), var(--background-grad2));
    min-height: 100vh;
}

/* Навигация */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 2rem;
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.contact-btn)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:not(.contact-btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(139, 98, 255, 0.2);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 98, 255, 0.3);
}

/* Кнопка для репетиторов в навигации */
.tutor-link {
    padding: 0.55rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    transition: all 0.25s ease;
}

.tutor-link:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
}

/* Плашка для репетиторов */
.for-tutors {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, 
        rgba(78, 92, 158, 0.05) 0%,
        rgba(255, 126, 80, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.for-tutors::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('pattern.png') repeat;
    opacity: 0.03;
    z-index: 1;
}

.for-tutors-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.for-tutors-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(78, 92, 158, 0.2);
}

.for-tutors-content h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutor-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tutor-benefit {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.tutor-benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--white);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(78, 92, 158, 0.1);
}

.tutor-benefit h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.tutor-benefit p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tutor-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.for-tutors-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background-grad1), var(--background-grad2));
    border-radius: var(--border-radius);
    border: 1px solid rgba(78, 92, 158, 0.1);
}

.tutor-stat {
    text-align: center;
}

.tutor-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutor-stat .stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.for-tutors-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Медиа-запросы для секции репетиторов */
@media (max-width: 768px) {
    .for-tutors {
        padding: 4rem 1rem;
    }
    
    .for-tutors-content {
        padding: 2rem;
    }
    
    .for-tutors-content h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .tutor-benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .for-tutors-stats {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .tutor-stat .stat-number {
        font-size: 2rem;
    }
    
    .for-tutors-actions {
        flex-direction: column;
    }
    
    .tutor-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .for-tutors {
        padding: 3rem 0.5rem;
    }
    
    .for-tutors-content {
        padding: 1.5rem;
    }
    
    .section-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.2rem;
    }
    
    .for-tutors-content h2 {
        font-size: 1.8rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .tutor-benefit h3 {
        font-size: 1.1rem;
    }
    
    .tutor-benefit p {
        font-size: 0.9rem;
    }
    
    .tutor-stat .stat-number {
        font-size: 1.8rem;
    }
    
    .tutor-stat .stat-label {
        font-size: 0.9rem;
    }
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.mobile-menu .contact-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white) !important;
    margin-top: 1rem;
}

/* Главный баннер */
.hero {
    background: linear-gradient(135deg, var(--background-grad1), var(--background-grad2));
    color: var(--text-color);
    padding: 10rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(78, 92, 158, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(-12deg);
    animation: moveGradient 15s ease-in-out infinite;
}

@keyframes moveGradient {
    0% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-8deg) translateY(-20px); }
    100% { transform: rotate(-12deg) translateY(0); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(78, 92, 158, 0.3);
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.secondary-button {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
}

.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 92, 158, 0.4);
}

.primary-button:hover::before {
    left: 100%;
}

.secondary-button:hover {
    transform: translateY(-2px);
    color: var(--white);
    border-color: transparent;
}

.secondary-button:hover::before {
    opacity: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-logo {
    width: 500px;
    height: auto;
    max-width: 90%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
    100% { 
        transform: translateY(0) rotate(0deg); 
    }
}

.search-container {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.select-wrapper {
    flex: 1;
    position: relative;
}
primary-button contact-btn
.subject-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--background-light);
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    color: var(--text-color);
    appearance: none;
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.subject-select:focus {
    outline: none;
    border-color: var(--primary-light);
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-light);
    font-size: 1.1rem;
}

.subject-select {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

.search-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--primary-dark);
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Предметы */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding-top: 2rem;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

.subjects {
    padding: 8rem 2rem;
    background-color: var(--white);
    position: relative;
}

.subjects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, var(--background-grad1) 0%, var(--white) 100%);
    opacity: 0.7;
    z-index: 0;
}

.subjects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(78, 92, 158, 0.1) 25%,
        rgba(78, 92, 158, 0.1) 75%,
        transparent 100%
    );
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.subject-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.subject-image {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.subject-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subject-card:hover .subject-image img {
    transform: scale(1.05);
}

.subject-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.price-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.subject-features {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    margin-bottom: 2rem;
}

.subject-features li {
    color: var(--text-light);
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.subject-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.subject-link {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: auto;
}

.subject-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 98, 255, 0.3);
}

.subject-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.subject-features li {
    margin: 0.5rem 0;
    color: var(--gray);
}

.subject-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

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

.how-it-works {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 2.2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

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

/* Преимущества */
.advantages {
    padding: 4rem 2rem;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
}

/* Подвал */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Улучшенная адаптивность */
@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .subjects-grid, .tutors-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .floating-logo {
        width: 300px;
    }
    
    .navbar {
        padding: 0.6rem 1rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .subjects-grid, .tutors-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        text-align: center;
        padding: 1.2rem 2rem;
    }

    .floating-logo {
        width: 250px;
    }

    .subjects-grid, .tutors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .subject-card, .tutor-card {
        margin: 0;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .subjects, .tutors {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0.5rem 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section.brand {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .navbar {
        padding: 0.5rem 0.5rem;
    }
    
    .logo img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .hero-brand-text {
        font-size: 0.9rem;
    }
    
    .hero-brand-tagline {
        font-size: 0.85rem;
    }
    
    .subjects-grid, .tutors-grid {
        padding: 0 0.5rem;
    }
    
    .subject-card, .tutor-card {
        padding: 1.5rem;
    }
    
    .floating-logo {
        width: 200px;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 1rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .subject-card, .tutor-card {
        padding: 1rem;
    }
    
    .floating-logo {
        width: 180px;
    }
    
    .primary-button, .secondary-button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}