

    /* ================= ПЕРЕМЕННЫЕ ================= */
    :root {
      --bg: #F6F8F5;
      --bg-soft: #EEF4EE;
      --surface: #FFFFFF;
      --ink: #182620;
      --muted: #5C6B63;
      --green: #1B6B4A;
      --green-dark: #124C34;
      --green-light: #E4F1E8;
      --accent: #D9772E;
      --accent-light: #FBEBDC;
      --blue: #2E6DA4;
      --blue-light: #E4EEF7;
      --border: #E1E8E2;
      --shadow-sm: 0 2px 8px rgba(24, 38, 32, .06);
      --shadow: 0 8px 28px rgba(24, 38, 32, .10);
      --shadow-lg: 0 18px 48px rgba(24, 38, 32, .16);
      --radius: 16px;
      --radius-sm: 12px;
      --maxw: 1140px;
    }
*{scrollbar-width:none;-ms-overflow-style:none}*::-webkit-scrollbar{width:0;display:none}
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: "Inter", "Manrope", "Golos Text", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.6;
      font-size: 17px;
      -webkit-font-smoothing: antialiased;
    }
    img { max-width: 100%; display: block; }
    a { color: var(--green); text-decoration: none; }
    a:hover { text-decoration: underline; }
    h1, h2, h3 { line-height: 1.2; margin: 0 0 .55em; letter-spacing: -.01em; }
    h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); }
    h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
    p { margin: 0 0 1em; }
    i.fa-solid, i.fa-regular, i.fa-brands { line-height: 1; }

    .container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0;
      margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
    }

    /* ================= ШАПКА ================= */
    .site-header {
      position: sticky; top: 0; z-index: 50;
      background: rgba(246, 248, 245, .88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .header-inner {
      display: flex; align-items: center; gap: 14px;
      padding: 12px 0;
    }
    .brand {
      display: flex; align-items: center; gap: 10px;
      font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em;
      color: var(--ink);
    }
    .brand:hover { text-decoration: none; }
    .brand .logo {
      width: 42px; height: 42px; border-radius: 12px;
      background: linear-gradient(135deg, var(--green), #2E9468);
      color: #fff; display: grid; place-items: center; font-size: 1.15rem;
      box-shadow: 0 4px 14px rgba(27, 107, 74, .35);
    }
    .brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
    .header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.header-user__name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .header-user__name { display: none; }
  .header-user { padding: 0 10px; }
}
    .icon-btn {
      width: 44px; height: 44px; border-radius: 12px;
      border: 1px solid var(--border); background: var(--surface);
      display: grid; place-items: center; cursor: pointer;
      font-size: 1.05rem; color: var(--ink);
      transition: .2s ease;
    }
    .icon-btn:hover { background: var(--green-light); border-color: #CBD8D0; color: var(--green); transform: translateY(-1px); }

    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 11px 20px; border-radius: 12px;
      border: 1px solid transparent; cursor: pointer;
      font: inherit; font-weight: 600; font-size: .95rem;
      transition: .2s ease;
    }
    .btn i { font-size: .9em; }
    .btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(27, 107, 74, .3); }
    .btn-primary:hover { background: var(--green-dark); text-decoration: none; transform: translateY(-1px); }
    .btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 46, .3); }
    .btn-accent:hover { background: #bf6420; text-decoration: none; transform: translateY(-1px); }
    .btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
    .btn-ghost:hover { background: var(--green-light); border-color: #CBD8D0; text-decoration: none; }
    .btn-block { width: 100%; }

    /* ================= ГЕРОЙ ================= */
    .hero {
      position: relative; overflow: hidden;
      padding: 56px 0 40px;
      background:
        radial-gradient(600px 300px at 90% 0%, rgba(46, 148, 104, .10), transparent 70%),
        radial-gradient(500px 280px at 0% 100%, rgba(217, 119, 46, .08), transparent 70%);
    }
    /* декоративные биологические элементы */
    .hero::before, .hero::after {
      content: ""; position: absolute; border-radius: 50%;
      border: 2px dashed rgba(27, 107, 74, .12); pointer-events: none;
    }
    .hero::before { width: 320px; height: 320px; top: -120px; right: -80px; }
    .hero::after { width: 220px; height: 220px; bottom: -90px; left: -70px; }

    .hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: center; position: relative; z-index: 1; }
    .hero .kicker {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 6px 14px; border-radius: 999px;
      background: var(--green-light); color: var(--green);
      font-weight: 700; font-size: .8rem; letter-spacing: .03em;
      margin-bottom: 16px;
    }
    .hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
    .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

    .hero-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
      position: relative; overflow: hidden;
    }
    .hero-card::before {
      content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
      background: linear-gradient(90deg, var(--green), #3FA878, var(--accent));
    }
    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
    .stat b { display: block; font-size: 1.65rem; color: var(--green); line-height: 1.1; }
    .stat span { font-size: .78rem; color: var(--muted); }
    .stat i { color: var(--accent); font-size: .9rem; margin-bottom: 4px; display: block; }

    /* ================= СЕКЦИИ ================= */
    section { padding: 48px 0; }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
    .section-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; }
    .section-head h2 i {
      width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
      background: var(--green-light); color: var(--green); font-size: 1.05rem;
    }
    .section-head p { color: var(--muted); margin: 6px 0 0 54px; font-size: .95rem; }
    @media (max-width: 600px) { .section-head p { margin-left: 0; } }

    /* ================= НОВОСТНАЯ ЛЕНТА ================= */
    .news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
    @media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } }

    .news-list { display: grid; gap: 14px; }

    .news-item {
      display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 20px 22px;
      position: relative; transition: .22s ease; overflow: hidden;
    }
    .news-item::before {
      content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
      background: var(--green); opacity: 0; transition: .22s ease;
    }
    .news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #CFDCD3; }
    .news-item:hover::before { opacity: 1; }

    .news-icon {
      width: 52px; height: 52px; border-radius: 14px; flex: none;
      display: grid; place-items: center; font-size: 1.2rem;
    }
    .news-icon.green { background: var(--green-light); color: var(--green); }
    .news-icon.accent { background: var(--accent-light); color: var(--accent); }
    .news-icon.blue { background: var(--blue-light); color: var(--blue); }

    .news-body h3 { font-size: 1.05rem; margin: 0 0 .3em; }
    .news-body h3 a { color: var(--ink); }
    .news-body h3 a:hover { color: var(--green); text-decoration: none; }
    .news-body p { margin: 0 0 .6em; color: var(--muted); font-size: .92rem; }

    .news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
    .news-meta .tag {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .02em;
      background: var(--green-light); color: var(--green);
    }
    .news-meta .tag.accent { background: var(--accent-light); color: var(--accent); }
    .news-meta .tag.blue { background: var(--blue-light); color: var(--blue); }
    .news-meta .date { display: inline-flex; align-items: center; gap: 5px; }

    .news-arrow {
      align-self: center; color: #B9C6BE; font-size: 1rem;
      transition: .2s ease;
    }
    .news-item:hover .news-arrow { color: var(--green); transform: translateX(3px); }

    /* Правая колонка новостей: «Популярное» */
    .news-side {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 22px; height: fit-content;
      box-shadow: var(--shadow-sm);
    }
    .news-side h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
    .news-side h3 i { color: var(--accent); }
    .side-list { list-style: none; padding: 0; margin: 0; counter-reset: side; }
    .side-list li {
      counter-increment: side; display: flex; gap: 12px; align-items: start;
      padding: 11px 0; border-bottom: 1px solid var(--border);
    }
    .side-list li:last-child { border-bottom: 0; }
    .side-list li::before {
      content: counter(side, decimal-leading-zero);
      font-weight: 800; color: var(--green); font-size: .8rem; opacity: .6;
      min-width: 22px;
    }
    .side-list a { color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.4; }
    .side-list a:hover { color: var(--green); text-decoration: none; }

    /* ================= ПРОМО-БЛОКИ ================= */
    .promo {
      border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden;
      display: grid; grid-template-columns: 1.5fr auto; gap: 20px; align-items: center;
      background: linear-gradient(135deg, var(--green) 0%, #2E9468 100%);
      color: #fff; box-shadow: var(--shadow);
    }
    .promo::after {
      content: "\f0c3"; /* flask */
      font-family: "Font Awesome 6 Free"; font-weight: 900;
      position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
      font-size: 7rem; opacity: .10; pointer-events: none;
    }
    .promo h2, .promo h3 { color: #fff; margin-bottom: .3em; }
    .promo p { color: rgba(255,255,255,.88); margin: 0; font-size: .98rem; max-width: 56ch; }
    .promo .btn-accent { flex: none; }
    @media (max-width: 700px) {
      .promo { grid-template-columns: 1fr; }
      .promo::after { display: none; }
    }

    .promo-accent {
      background: linear-gradient(135deg, #B85F1F 0%, var(--accent) 100%);
    }
    .promo-accent::after { content: "\f5a2"; } /* dna? fallback */

    /* Блок «О учителе» */
    .teacher-block {
      display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
    }
    .teacher-avatar {
      width: 96px; height: 96px; border-radius: 50%;
      background: linear-gradient(135deg, var(--green-light), #CFE7D8);
      display: grid; place-items: center; color: var(--green); font-size: 2.2rem;
      border: 3px solid #fff; box-shadow: var(--shadow-sm);
    }
    .teacher-block h3 { margin-bottom: .25em; }
    .teacher-block p { color: var(--muted); margin: 0 0 .5em; font-size: .94rem; }
    .teacher-badges { display: flex; flex-wrap: wrap; gap: 8px; }
    .teacher-badges span {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
      background: var(--green-light); color: var(--green);
    }

    /* ================= КАРТОЧКИ РАЗДЕЛОВ ================= */
    .grid { display: grid; gap: 18px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }

    .card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius); padding: 24px;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
      position: relative; overflow: hidden;
    }
    .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFDCD3; text-decoration: none; }
    .card-icon {
      width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
      font-size: 1.2rem; margin-bottom: 14px;
    }
    .card-icon.green { background: var(--green-light); color: var(--green); }
    .card-icon.accent { background: var(--accent-light); color: var(--accent); }
    .card-icon.blue { background: var(--blue-light); color: var(--blue); }
    .card h3 { margin-bottom: .35em; font-size: 1.12rem; }
    .card p { color: var(--muted); margin: 0; font-size: .93rem; }

    .card-link { display: block; color: inherit; }
    .card-link:hover { text-decoration: none; }
    .card-more { margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
    .card-more i { transition: .2s ease; }
    .card:hover .card-more i { transform: translateX(3px); }

    /* ================= ПОДВАЛ ================= */
    .site-footer {
      border-top: 1px solid var(--border); margin-top: 48px;
      padding: 40px 0 28px; color: var(--muted); font-size: .9rem;
      background: #F1F5F0;
    }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
    .site-footer h4 { color: var(--ink); margin: 0 0 .6em; font-size: 1rem; }
    .site-footer ul { list-style: none; padding: 0; margin: 0; }
    .site-footer li { margin-bottom: .45em; }
    .site-footer a { color: var(--muted); }
    .site-footer a:hover { color: var(--green); }
    .footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

    /* ================= ВЫДВИЖНЫЕ ПАНЕЛИ ================= */
    .overlay {
      position: fixed; inset: 0; background: rgba(18, 30, 24, .48);
      opacity: 0; visibility: hidden; transition: .25s ease; z-index: 90;
      backdrop-filter: blur(2px);
    }
    .overlay.active { opacity: 1; visibility: visible; }

    .drawer {
      position: fixed; top: 0; bottom: 0; width: min(86vw, 360px);
      background: var(--surface); z-index: 100;
      display: flex; flex-direction: column;
      transition: transform .28s cubic-bezier(.2,.8,.2,1);
      box-shadow: var(--shadow-lg);
    }
    .drawer-left { left: 0; transform: translateX(-105%); }
    .drawer-right { right: 0; transform: translateX(105%); }
    .drawer.active { transform: translateX(0); }

    .drawer-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 20px; border-bottom: 1px solid var(--border);
    }
    .drawer-head h2 { font-size: 1.08rem; margin: 0; display: flex; align-items: center; gap: 9px; }
    .drawer-head h2 i { color: var(--green); }
    .drawer-body { padding: 14px 20px 28px; overflow-y: auto; }

    .nav-list { list-style: none; padding: 0; margin: 0; }
    .nav-list li { border-bottom: 1px solid var(--border); }
    .nav-list a {
      display: flex; align-items: center; gap: 11px;
      padding: 12px 6px; color: var(--ink); font-weight: 500; border-radius: 8px;
      transition: .15s ease;
    }
    .nav-list a i { width: 20px; text-align: center; color: var(--green); font-size: .95rem; }
    .nav-list a:hover { color: var(--green); background: var(--green-light); text-decoration: none; padding-left: 12px; }
    .nav-group-title {
      font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
      color: var(--muted); font-weight: 800; margin: 20px 0 6px;
    }

    /* ================= ПАНЕЛЬ ВХОДА ================= */
    .drawer-auth { width: min(92vw, 420px); }
    .tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
    .tab {
      flex: 1; padding: 9px; border: 0; border-radius: 9px; cursor: pointer;
      background: transparent; font: inherit; font-weight: 700; font-size: .92rem; color: var(--muted);
      transition: .18s ease;
    }
    .tab.active { background: #fff; color: var(--green); box-shadow: 0 1px 5px rgba(0,0,0,.09); }

    .form-panel { display: none; }
    .form-panel.active { display: block; }

    .field { margin-bottom: 14px; }
    .field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
    .field .input-wrap { position: relative; }
    .field .input-wrap i {
      position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
      color: #9AA9A1; font-size: .9rem; pointer-events: none;
    }
    .field input[type="text"],
    .field input[type="email"],
    .field input[type="password"] {
      width: 100%; padding: 11px 13px 11px 38px; border-radius: 10px;
      border: 1px solid var(--border); background: #FCFDFC;
      font: inherit; font-size: .95rem; transition: .18s ease;
    }
    .field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; background: #fff; }

    .checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
    .checkbox-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
    .checkbox-row a { color: var(--green); font-weight: 600; }

    .auth-note { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }

    /* ================= АДАПТИВ ================= */
    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: 1fr; }
      .grid-3 { grid-template-columns: repeat(2, 1fr); }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .teacher-block { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    }
    @media (max-width: 600px) {
      .grid-3, .grid-2 { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
      .header-actions .btn { display: none; }
      .hero { padding-top: 34px; }
      .news-item { grid-template-columns: auto 1fr; }
      .news-arrow { display: none; }
      .section-head p { margin-left: 0; }
    }