/* =========================================
   1. ИМПОРТ ШРИФТА И ПЕРЕМЕННЫЕ
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary: #5a67d8; 
    --primary-hover: #4c51bf;
    --accent: #ed8936; 
    --accent-hover: #dd6b20;
    --text-dark: #2d3748; 
    --text-gray: #4a5568; 
    --bg-light: #f7fafc; 
    --bg-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-gray);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section, header {
    padding: 90px 0;
}

/* =========================================
   ТИПОГРАФИКА
   ========================================= */
h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 800;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    font-weight: 600;
}

.thesis {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 50px;
    padding: 20px;
}

/* =========================================
   БЛОКИ И КАРТОЧКИ
   ========================================= */
.hero {
    background: linear-gradient(135deg, #ebf4ff 0%, #e6fffa 100%);
    text-align: left;
}

.benefits {
    list-style: none;
    margin-bottom: 40px;
}

.benefits li::before {
    content: '✦ ';
    color: var(--accent);
    font-size: 1.4rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    background: var(--bg-white);
    padding: 35px 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    width: calc(25% - 30px);
    min-width: 240px;
}

.info-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
}

.info-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* =========================================
   КНОПКИ И ПРЕПОДАВАТЕЛЬ
   ========================================= */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
}

.teacher-profile {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
}

.teacher-photo {
    width: 320px;
    height: auto;
    border-radius: 15px;
}

.cta {
    background-color: #f9f9f9;
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.contact-btn {
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.tg { background-color: #0088cc; }
.max { background-color: #007bff; }

.footer {
    padding: 40px 0;
    background: #1a202c;
    color: #a0aec0;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .teacher-profile { flex-direction: column; text-align: center; }
    .card { width: 100%; }
    .contact-methods { flex-direction: column; align-items: center; }
}