/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 100%;
    margin: 0;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    grid-column: 1;
    justify-self: start;
}

.nav {
    display: flex;
    align-items: center;
    gap: 50px;
    grid-column: 2;
    justify-self: center;
}

.nav-link {
    font-size: 15px;
    color: #4A2D7A;
    font-weight: 500;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.7;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    grid-column: 3;
    justify-self: end;
}

.phone {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #4A2D7A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s, background 0.3s;
    flex-shrink: 0;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    transform: scale(1.1);
    background: #6B4C9A;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #4A2D7A;
    cursor: pointer;
    white-space: nowrap;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    grid-column: 3;
    justify-self: end;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #4A2D7A;
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7B5EA7 0%, #9B7FC7 50%, #B89FD9 100%);
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -100px;
}

.circle-2 {
    width: 700px;
    height: 700px;
    top: -200px;
    right: -200px;
    background: rgba(255,255,255,0.05);
}

.circle-3 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 10%;
    background: rgba(255,255,255,0.06);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.hero-title {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 8px;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* ===== О НАС ===== */
.about {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #7B5EA7 0%, #9B7FC7 50%, #B89FD9 100%);
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.about .circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    background: rgba(255,255,255,0.06);
}

.about .circle-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: rgba(255,255,255,0.05);
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.section-title.white {
    color: #fff;
}

.section-title.dark {
    color: #2a1a4a;
}

.section-title.purple {
    color: #6B4C9A;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-text p {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

/* ===== ПРЕДМЕТЫ ===== */
.subjects {
    padding: 100px 0;
    background: #D4C4F0;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.subject-card {
    text-align: center;
    padding: 30px 20px;
    width: 100%;
    max-width: 300px;
}

.subject-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.subject-icon svg {
    width: 100%;
    height: 100%;
}

.subject-card h3 {
    font-size: 22px;
    color: #2a1a4a;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.subject-card p {
    font-size: 14px;
    color: #4a3a6a;
    line-height: 1.6;
    font-weight: 300;
}

/* ===== ПРЕПОДАВАТЕЛИ ===== */
.teachers {
    padding: 100px 0;
    background: #fff;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.teacher-card {
    text-align: center;
    padding: 20px;
    max-width: 320px;
    width: 100%;
}

.teacher-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    background: #f0e8ff;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-card h3 {
    font-size: 22px;
    color: #6B4C9A;
    margin-bottom: 10px;
    font-weight: 600;
}

.teacher-role {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    font-weight: 400;
}

.teacher-edu {
    font-size: 14px;
    color: #6B4C9A;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
}

.teacher-exp {
    font-size: 14px;
    color: #6B4C9A;
    font-weight: 300;
}

/* ===== ПАКЕТЫ УРОКОВ ===== */
.pricing {
    padding: 100px 0;
    background: #D4C4F0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.price-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(107, 76, 154, 0.1);
    transition: transform 0.3s;
    position: relative;
}

.price-card.featured {
    border: 3px solid #6B4C9A;
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.08);
}

.price-card:hover {
    transform: translateY(-5px);
}

.discount-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6B4C9A 0%, #9B7FC7 100%);
    color: #fff;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(107, 76, 154, 0.3);
}

.price-card h3 {
    font-size: 20px;
    color: #2a1a4a;
    margin-bottom: 15px;
    font-weight: 600;
    margin-top: 10px;
}

.price-with-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.new-price {
    font-size: 42px;
    font-weight: 800;
    color: #6B4C9A;
    line-height: 1;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.price-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
    padding: 100px 0;
    background: #D4C4F0;
}

.contacts-content {
    text-align: center;
}

.contact-phone {
    display: block;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.contact-phone:hover {
    color: #6B4C9A;
}

.contact-email {
    display: block;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.contact-email:hover {
    color: #6B4C9A;
}

.contacts-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon-dark {
    width: 40px;
    height: 40px;
    background: #4A2D7A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s, background 0.3s;
}

.social-icon-dark svg {
    width: 20px;
    height: 20px;
}

.social-icon-dark:hover {
    transform: scale(1.1);
    background: #6B4C9A;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #B89FD9;
    padding: 30px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 14px;
    color: #4A2D7A;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.back-to-top {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
}

.back-to-top:hover {
    opacity: 0.8;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1100px) {
    .header-container {
        padding: 0 20px;
    }
    
    .nav {
        gap: 25px;
    }
    
    .phone {
        display: none;
    }
}

@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        margin: 0;
        gap: 15px;
    }
    
    .price-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .header-right .social-icons {
        display: none;
    }
    
    .lang-switch {
        display: none;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
