/* ============================================================
   Сайт учителя информатики — тёмная тема с неоновыми акцентами
   ============================================================ */

:root {
    --bg: #0a0f1e;
    --bg-soft: #0d1430;
    --surface: #121a33;
    --surface-2: #182242;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8edf9;
    --text-muted: #93a0bf;
    --accent: #22d3ee;      /* неоново-голубой */
    --accent-2: #a78bfa;    /* фиолетовый */
    --grad: linear-gradient(135deg, #22d3ee, #8b5cf6);
    --danger: #f87171;
    --success: #34d399;
    --warning: #fbbf24;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
    --header-h: 68px;
    --font-main: "Manrope", "Segoe UI", Arial, sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
        radial-gradient(700px 420px at 0% 0%, rgba(34, 211, 238, 0.10), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= ШАПКА ================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 30, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.logo-mark {
    font-family: var(--font-mono);
    color: var(--accent);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 8px;
    padding: 3px 7px;
    font-size: 13px;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
}

.logo-text b { color: var(--accent); }

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-link.active {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* Бургер (мобильное меню) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= СЕКЦИИ ================= */
.page { display: none; padding: 56px 0 80px; }
.page.active { display: block; animation: fadeIn 0.35s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.section-head { margin-bottom: 34px; }
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--grad);
    margin-top: 12px;
}
.section-subtitle { color: var(--text-muted); max-width: 720px; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ================= КНОПКИ ================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 22px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    border-color: rgba(34, 211, 238, 0.45);
    color: var(--accent);
    background: rgba(34, 211, 238, 0.06);
}
.btn-outline:hover {
    background: rgba(34, 211, 238, 0.14);
    transform: translateY(-2px);
}

.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }

/* ================= ГЛАВНАЯ ================= */
.hero {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 44px;
    align-items: center;
    margin-bottom: 54px;
}

.hero-title {
    font-size: clamp(32px, 5.4vw, 52px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 560px;
    margin-bottom: 26px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats {
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Карточка учителя */
.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--grad);
}

.avatar {
    width: 112px;
    height: 112px;
    margin: 8px auto 16px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-card h3 { font-size: 20px; font-weight: 800; }
.hero-card .hero-role { color: var(--accent); font-weight: 600; margin: 4px 0 2px; }
.hero-card .hero-school { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }

.motto {
    font-size: 13.5px;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px dashed var(--border);
    padding-top: 14px;
    margin-top: 14px;
}

.home-block { margin-top: 46px; }
.block-title { font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.block-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.block-head-row .block-title { margin-bottom: 0; }
.link-more { color: var(--accent); font-weight: 700; font-size: 14.5px; }
.link-more:hover { text-decoration: underline; }

/* ================= ТАЙМЕРЫ ЭКЗАМЕНОВ ================= */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.timer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.timer-card h3 { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.timer-numbers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timer-unit {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    min-width: 72px;
    text-align: center;
}

.timer-unit b {
    display: block;
    font-family: var(--font-mono);
    font-size: 26px;
    color: var(--accent);
    line-height: 1.2;
}

.timer-unit span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ================= ЗАДАЧА НЕДЕЛИ ================= */
.challenge-card {
    background:
        linear-gradient(120deg, rgba(34, 211, 238, 0.08), rgba(139, 92, 246, 0.08)),
        var(--surface);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: var(--radius);
    padding: 26px;
}

.challenge-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.challenge-meta .tag { background: rgba(34, 211, 238, 0.14); color: var(--accent); }

.challenge-card h3 { font-size: 19px; margin-bottom: 8px; }
.challenge-card p { color: var(--text-muted); max-width: 760px; }
.challenge-note { margin-top: 12px; font-size: 14px; color: var(--accent-2); font-weight: 600; }

/* ================= БЕЙДЖИ ================= */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.b-grade { background: rgba(139, 92, 246, 0.16); color: var(--accent-2); border: 1px solid rgba(139, 92, 246, 0.35); }
.b-pdf   { background: rgba(248, 113, 113, 0.14); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.35); }
.b-pptx  { background: rgba(251, 191, 36, 0.13);  color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }
.b-docx  { background: rgba(96, 165, 250, 0.14);  color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.35); }
.b-xlsx  { background: rgba(52, 211, 153, 0.13);  color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.35); }
.b-zip   { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.35); }
.b-video { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; border: 1px solid rgba(244, 114, 182, 0.35); }
.b-link  { background: rgba(34, 211, 238, 0.13);  color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.35); }
.b-test  { background: rgba(251, 191, 36, 0.13);  color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.35); }

.tag-важно      { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.tag-объявление { background: rgba(34, 211, 238, 0.14);  color: #67e8f9; }
.tag-материалы  { background: rgba(52, 211, 153, 0.14);  color: #6ee7b7; }
.tag-события    { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }

/* ================= ПАНЕЛЬ МАТЕРИАЛОВ ================= */
.materials-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 28px;
    display: grid;
    gap: 14px;
}

.search-input {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    font-size: 15px;
    font-family: var(--font-main);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.18s;
    font-family: var(--font-main);
}
.pill:hover { color: var(--text); border-color: var(--accent); }
.pill.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(34, 211, 238, 0.3);
}

/* ================= СЕТКА МАТЕРИАЛОВ ================= */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

.material-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s, border 0.2s, box-shadow 0.2s;
}

.material-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: var(--shadow);
}

.material-top { display: flex; gap: 8px; flex-wrap: wrap; }

.material-title { font-size: 17px; font-weight: 800; line-height: 1.4; }
.material-topic { font-size: 13px; color: var(--accent); font-weight: 600; }
.material-desc { font-size: 14px; color: var(--text-muted); flex-grow: 1; }

.material-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.material-date { font-size: 13px; color: var(--text-muted); }

.empty-note { text-align: center; color: var(--text-muted); padding: 30px 0; }

/* ================= ДОМАШНИЕ ЗАДАНИЯ ================= */
.homework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.hw-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 4px solid var(--accent);
}

.hw-card.deadline-near { border-left-color: var(--warning); }
.hw-card.deadline-over { border-left-color: var(--danger); }

.hw-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.hw-title { font-size: 17px; font-weight: 800; }
.hw-task { font-size: 14.5px; color: var(--text-muted); flex-grow: 1; }

.hw-deadline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    padding: 6px 12px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
}
.hw-deadline.over { color: var(--danger); background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.3); }
.hw-deadline.near { color: var(--warning); background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }

.hw-links { display: flex; flex-direction: column; gap: 6px; }
.hw-link { font-size: 14px; color: var(--accent); font-weight: 600; }
.hw-link:hover { text-decoration: underline; }

/* ================= ЭКЗАМЕНЫ ================= */
.exam-tabs { display: flex; gap: 10px; margin: 34px 0 24px; }

.exam-tab {
    padding: 12px 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
}
.exam-tab.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.exam-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: none;
}
.exam-panel.active { display: block; animation: fadeIn 0.3s ease; }

.exam-panel h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.exam-about { color: var(--text-muted); margin-bottom: 18px; }

.exam-block-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 20px 0 10px; }

.exam-structure { padding-left: 4px; display: grid; gap: 8px; }
.exam-structure li { position: relative; padding-left: 24px; color: var(--text-muted); font-size: 14.5px; }
.exam-structure li::before {
    content: "▸";
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-weight: 800;
}

.exam-materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.exam-material {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    transition: border 0.2s;
}
.exam-material:hover { border-color: var(--accent); }
.exam-material span { font-size: 14px; font-weight: 600; }

/* ================= ОЛИМПИАДЫ ================= */
.olympiad-list { display: grid; gap: 16px; }

.olympiad-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border 0.2s;
    flex-wrap: wrap;
}
.olympiad-card:hover { border-color: rgba(167, 139, 250, 0.45); }

.olympiad-month {
    flex: 0 0 auto;
    background: var(--bg-soft);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: var(--accent-2);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-weight: 800;
    font-size: 13.5px;
    text-align: center;
    min-width: 110px;
}

.olympiad-body { flex: 1 1 260px; }
.olympiad-body h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.olympiad-body p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 8px; }

/* ================= РАСПИСАНИЕ ================= */
.schedule-table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.schedule-table th {
    text-align: left;
    padding: 14px 18px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.schedule-table td {
    padding: 13px 18px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tbody tr:hover { background: rgba(34, 211, 238, 0.05); }
.schedule-table .day-cell { font-weight: 800; color: var(--accent); white-space: nowrap; }

.consultation-card {
    background:
        linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1)),
        var(--surface);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.consultation-card h3 { font-size: 17px; margin-bottom: 6px; }
.consultation-card .cons-time { color: var(--accent); font-weight: 800; font-size: 15px; }
.consultation-card p { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }

/* ================= НОВОСТИ ================= */
.news-list { display: grid; gap: 18px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.2s, border 0.2s;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.35); }

.news-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.news-date { font-size: 13px; color: var(--text-muted); }
.news-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.news-card p { color: var(--text-muted); font-size: 14.5px; }

/* ================= ПОЛЕЗНЫЕ ССЫЛКИ ================= */
.links-category { margin-bottom: 34px; }
.links-category > h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.links-category > h3::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.link-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: border 0.2s, transform 0.2s;
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.link-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.link-card h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 3px; }
.link-card p { font-size: 13.5px; color: var(--text-muted); }
.link-card .link-url { font-size: 12.5px; color: var(--accent); font-weight: 600; word-break: break-all; }

/* ================= ОБО МНЕ ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.about-text p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 16px; }

.about-side {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.info-row { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .info-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 2px; }
.info-row .info-value { font-size: 15px; font-weight: 600; }
.info-row .info-value a:hover { color: var(--accent); }

.about-section { margin-top: 40px; }
.about-subtitle {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--accent);
}

.education-list { display: grid; gap: 14px; }
.edu-item {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    flex-wrap: wrap;
}
.edu-period {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 8px;
    height: fit-content;
}
.edu-body h4 { font-size: 15.5px; font-weight: 800; }
.edu-body p { font-size: 13.5px; color: var(--text-muted); }

.achievement-list { display: grid; gap: 10px; }
.achievement-list li {
    position: relative;
    padding-left: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px 14px 44px;
    font-size: 15px;
}
.achievement-list li::before {
    content: "🏆";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

/* ================= КОНТАКТЫ ================= */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    transition: transform 0.2s, border 0.2s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.contact-card p { color: var(--text-muted); font-size: 13.5px; }
.contact-card .contact-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}
.contact-card a.contact-value:hover { color: var(--accent); }

/* ================= ПОДВАЛ ================= */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 26px 0;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-domain { font-family: var(--font-mono); color: var(--accent); }

.noscript {
    background: var(--danger);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-weight: 700;
}

/* ================= АДАПТИВНОСТЬ ================= */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; gap: 28px; }
    .hero-card { max-width: 420px; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(10, 15, 30, 0.97);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px 24px;
        gap: 2px;
    }
    .nav-link { padding: 13px 12px; font-size: 15.5px; border-radius: 10px; }
}

@media (max-width: 560px) {
    .page { padding: 38px 0 60px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .materials-grid, .homework-grid, .links-grid { grid-template-columns: 1fr; }
    .footer-inner { justify-content: center; text-align: center; }
    .exam-tabs { flex-direction: column; }
    .exam-tab { width: 100%; text-align: center; }
}