:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --dark: #2c3e50;
    --text: #34495e;
    --muted: #95a5a6;
    --bg-light: #f5f7fa;
    --bg-accent: #c3cfe2;
    --white: #ffffff;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    z-index: 1001;
    transition: color 0.3s ease;
}
.logo:hover { color: var(--primary-dark); }

.nav-links { display: flex; gap: 2rem; }

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
    padding: 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: all 0.3s ease;
}
.hamburger.open span:first-child { transform: translateY(8px) rotate(45deg); background: var(--primary); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:last-child { transform: translateY(-8px) rotate(-45deg); background: var(--primary); }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    padding: 5rem 2rem 2rem;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.mobile-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: background 0.3s ease;
}
.mobile-nav-link:active { background: rgba(231, 76, 60, 0.1); }

main { padding-top: 4rem; }

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 1rem;
}
.section-title-center { text-align: center; margin-bottom: 4rem; }
.section-title-center::after { margin: 1rem auto 0; }

.hero {
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--dark);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p { margin-bottom: 1.5rem; line-height: 1.8; color: var(--text); font-size: clamp(1rem, 2vw, 1.1rem); }

.highlight {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
}

.achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 62, 80, 0.1);
}
.achievement h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 700; }
.achievement p { font-size: 0.9rem; color: var(--text); }

.about-image {
    position: relative;
}
.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    opacity: 0.1;
    z-index: 0;
}

.benefits { padding: 6rem 2rem; background: var(--white); }

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

.benefit-card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(44, 62, 80, 0.05);
    transition: all 0.3s ease;
    position: relative;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.benefit-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--c);
    display: inline-block;
    position: relative;
}
.benefit-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: color-mix(in srgb, var(--c) 12%, transparent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}
.benefit-card h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); color: var(--dark); margin-bottom: 1rem; font-weight: 700; }
.benefit-card p { color: var(--text); line-height: 1.8; font-size: clamp(0.9rem, 2vw, 1rem); }

.testimonials {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 3rem);
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    touch-action: pan-y pinch-zoom;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: clamp(6rem, 10vw, 10rem);
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-avatar {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 50%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.testimonial-avatar svg { width: 100%; height: 100%; }

.testimonial-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    min-height: 5em;
}

.student-name { font-size: clamp(1.2rem, 3vw, 1.4rem); color: var(--dark); font-weight: 700; margin-bottom: 0.5rem; }
.student-info { color: var(--primary); font-weight: 600; margin-bottom: 2rem; font-size: clamp(0.9rem, 2.5vw, 1.1rem); }

.nav-dots { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }

.nav-dot {
    background: transparent;
    border: 2px solid var(--primary);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-dot.active, .nav-dot:hover { background: var(--primary); transform: scale(1.2); }

.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
    font-size: 1.5rem;
    color: var(--dark);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.arrow-prev { left: 0; }
.arrow-next { right: 0; }
.arrow-btn:hover {
    background: var(--bg-light);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-accent) 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 20px 20px 0 0;
}

.contact-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 1rem;
}
.contact-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
}

.contact-subtitle {
    text-align: center;
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
}

form { display: flex; flex-direction: column; gap: 1.5rem; }

.input-group { display: flex; flex-direction: column; gap: 0.5rem; }

.input-group label {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.input-group label::before { content: '*'; color: var(--primary); font-size: 1.2em; }

.input-group input,
.input-group textarea {
    padding: 1rem;
    border: 2px solid rgba(44, 62, 80, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    transition: all 0.3s ease;
}
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.input-group textarea { min-height: 150px; resize: vertical; }

.submit-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.success-message {
    text-align: center;
    color: #27ae60;
    font-size: 1.1rem;
    padding: 1.5rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 10px;
    margin-top: 1.5rem;
    border: 2px solid rgba(39, 174, 96, 0.2);
    display: none;
}
.success-message.show { display: block; }
.success-message::before { content: '✓'; display: block; font-size: 2rem; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    .header { padding: 1rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    main { padding-top: 3.5rem; }

    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1rem 2rem;
    }
    .hero-image { order: -1; }
    .about { padding: 4rem 1rem; }
    .about-container { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; }
    .section-title { text-align: center; }
    .section-title::after { margin: 1rem auto 0; }
    .about-text { text-align: center; }
    .achievements { grid-template-columns: 1fr; }
    .benefits { padding: 4rem 1.5rem; }
    .benefits-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 0 0.5rem; }
    .testimonials { padding: 4rem 1rem; }
    .testimonials-container { padding: 0 20px; }
    .arrow-btn { display: none; }
    .contact { padding: 4rem 1rem; }
    .form-container { padding: 1.5rem; border-radius: 15px; }
    .submit-btn { width: 100%; }
}
