
    .header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: var(--white);
      border-bottom: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .header-inner {
      max-width: 1180px;
      margin: 0 auto;
      min-height: 76px;
      padding: 12px 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .logo-block {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .brand-text-logo {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      line-height: 1.1;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    .brand-top {
      font-family: "Georgia", serif;
      font-size: 13px;
      letter-spacing: 2px;
    }

    .brand-top .black-serif {
      color: #1a1a1a;
    }

    .brand-top .red-amp {
      color: #e53935;
      font-style: italic;
    }

    .brand-bottom {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 20px;
    }

    .brand-bottom .brand-karmadonov {
      color: #1a1a1a;
      font-weight: 800;
    }

    .brand-bottom .brand-divider {
      color: #e53935;
      font-weight: 400;
      margin-bottom: 2px;
    }

    .brand-bottom .brand-school {
      color: #666666;
      font-weight: 500;
    }

    .logo-mark {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: linear-gradient(145deg, #1e3a5f, #0f243d);
      color: #f3d56b;
      display: grid;
      place-items: center;
      font-family: "Unbounded", sans-serif;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }

    .logo-text {
      display: flex;
      flex-direction: column;
      line-height: 1.1;
    }

    .logo-name {
      font-family: "Unbounded", sans-serif;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    .logo-sub {
      margin-top: 3px;
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .nav-link {
      padding: 10px 14px;
      border-radius: 999px;
      font-size: 15px;
      font-weight: 600;
      color: var(--ink);
      transition: background 0.2s ease, color 0.2s ease;
    }

    button.nav-link {
      border: 0;
      background: transparent;
      font-family: inherit;
      cursor: pointer;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
      background: #f3f0e8;
      outline: none;
    }

    .nav-cta {
      margin-left: 6px;
      padding: 10px 18px;
      border-radius: 999px;
      background: var(--navy);
      color: var(--white);
      font-weight: 700;
      font-size: 14px;
    }

    .nav-cta:hover,
    .nav-cta:focus-visible {
      background: #162c48;
      color: var(--white);
    }

    .btn-login {
      background-color: #ff0033;
    }

    .btn-login:hover,
    .btn-login:focus-visible {
      background-color: #cc0029;
      color: var(--white);
    }

    button.nav-cta {
      border: none;
      font-family: inherit;
      cursor: pointer;
    }

    .account {
      position: relative;
    }

    .account-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 220px;
      padding: 8px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 14px;
      box-shadow: var(--shadow);
      z-index: 30;
    }

    .account-dropdown button {
      width: 100%;
      padding: 10px 12px;
      border: none;
      border-radius: 10px;
      background: transparent;
      color: var(--ink);
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      text-align: left;
      cursor: pointer;
    }

    .account-dropdown button:hover,
    .account-dropdown button:focus-visible,
    .account-dropdown a:hover,
    .account-dropdown a:focus-visible {
      background: #f3f0e8;
      outline: none;
    }

    .account-dropdown a {
      display: block;
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      color: var(--ink);
      font-size: 14px;
      font-weight: 700;
      text-align: left;
      text-decoration: none;
    }

    .hero {
      position: relative;
      min-height: calc(100vh - 76px);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      text-align: left;
      overflow: hidden;
      padding: 48px 6vw 72px;
      background: url("../assets/images/IMG_3496.JPG") center/cover no-repeat;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 500px;
      color: #ffffff;
    }

    .hero h1 {
      font-family: "Unbounded", sans-serif;
      font-size: 34px;
      font-weight: 700;
      line-height: 1.15;
      color: #ffffff;
      text-wrap: balance;
    }

    .hero-lead {
      margin-top: 10px;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.35;
      color: #ffffff;
    }

    .text-badge {
      display: inline-block;
      background-color: #ff0033;
      color: #ffffff;
      padding: 4px 12px;
      border-radius: 8px;
      font-weight: bold;
      margin-top: 8px;
    }

    .hero-perks {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 14px 0;
      padding: 0;
      list-style: none;
    }

    .hero-perks li {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #ffffff;
      font-size: 15px;
      font-weight: 600;
      line-height: 1.35;
    }

    .perk-check {
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 2px solid #ff0033;
      box-shadow: 0 0 10px #ff0033;
      color: #ff0033;
      font-size: 14px;
      line-height: 1;
    }

    .hero-btns {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-btns .btn-primary {
      background: #ff0033;
      color: #ffffff;
      border-radius: 8px;
    }

    .hero-btns .btn-primary:hover,
    .hero-btns .btn-primary:focus-visible {
      background: #e0002e;
      outline: none;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 12px 28px;
      border-radius: 14px;
      font-family: inherit;
      font-size: 16px;
      font-weight: 700;
      border: 2px solid transparent;
      cursor: pointer;
      transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      background: var(--gold);
      color: #1a1508;
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
      background: var(--gold-hover);
      outline: none;
    }

    .btn-ghost {
      background: transparent;
      color: var(--white);
      border-color: rgba(255, 255, 255, 0.7);
    }

    .btn-ghost:hover,
    .btn-ghost:focus-visible {
      background: rgba(255, 255, 255, 0.1);
      outline: none;
    }

    .marquee {
      overflow: hidden;
      background: #1a1a1a;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .marquee-track {
      display: flex;
      width: max-content;
      animation: marquee-scroll 28s linear infinite;
    }

    .marquee-track:hover {
      animation-play-state: paused;
    }

    .marquee-group {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      white-space: nowrap;
      padding: 14px 0;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #ff4d4f;
    }

    .marquee-group span {
      padding: 0 8px;
    }

    @keyframes marquee-scroll {
      from {
        transform: translateX(0);
      }
      to {
        transform: translateX(-50%);
      }
    }

    .about-course {
      padding: 88px 24px 96px;
      scroll-margin-top: 76px;
      background: #ffffff;
      color: #1a1a1a;
    }

    .about-inner {
      max-width: 1180px;
      margin: 0 auto;
    }

    .about-course h2 {
      font-family: "Unbounded", sans-serif;
      font-size: clamp(24px, 3.4vw, 36px);
      font-weight: 600;
      line-height: 1.25;
      text-wrap: balance;
      max-width: 920px;
      margin: 0 auto 40px;
      text-align: center;
      color: #1a1a1a;
    }

    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }

    .benefit-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 24px 22px 26px;
      box-shadow: var(--shadow);
    }

    .benefit-index {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: grid;
      place-items: center;
      margin-bottom: 16px;
      background-color: #ff0033;
      color: #ffffff;
      font-family: "Unbounded", sans-serif;
      font-size: 13px;
      font-weight: 700;
    }

    .benefit-card h3 {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 10px;
      color: #1a1a1a;
    }

    .benefit-card p {
      color: #3a3a3a;
      font-size: 15px;
      line-height: 1.55;
    }

    .platform-perks {
      background: #111111;
      color: #ffffff;
      padding: 80px 24px 40px;
      overflow: hidden;
    }

    .platform-perks-inner {
      max-width: 1180px;
      margin: 0 auto;
    }

    .platform-perks-stage {
      position: relative;
      min-height: 480px;
    }

    .platform-perks-copy {
      position: relative;
      z-index: 2;
      max-width: 540px;
    }

    .platform-perks h2 {
      font-family: "Unbounded", sans-serif;
      font-size: clamp(28px, 3.6vw, 44px);
      font-weight: 600;
      line-height: 1.2;
      color: #ffffff;
      text-wrap: balance;
      margin: 0 0 28px;
    }

    .platform-perks-fade,
    .platform-perks-media {
      transition: opacity 0.35s ease;
    }

    .platform-perks-fade.is-out,
    .platform-perks-media.is-out {
      opacity: 0;
    }

    .platform-perks-counter {
      margin: 0;
      line-height: 1;
    }

    .platform-perks-num {
      font-family: "Unbounded", sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: #ff0033;
    }

    .platform-perks-of {
      color: #8b909a;
      font-size: 18px;
      font-weight: 500;
    }

    .platform-perks-fade h3 {
      margin: 28px 0 0;
      min-height: 1.25em;
      font-family: "Unbounded", sans-serif;
      font-size: clamp(22px, 2.4vw, 32px);
      font-weight: 600;
      line-height: 1.25;
      color: #ffffff;
    }

    .platform-perks-desc {
      margin: 16px 0 0;
      max-width: 500px;
      min-height: 5.2em;
      color: #c5c8d0;
      font-size: 16px;
      line-height: 1.65;
    }

    .platform-perks-visual {
      position: absolute;
      top: 0;
      right: 0;
      width: 48%;
      height: 100%;
      pointer-events: none;
    }

    .platform-perks-glow {
      position: absolute;
      right: 6%;
      top: 12%;
      width: 320px;
      height: 320px;
      background: radial-gradient(circle, rgba(255, 0, 51, 0.38) 0%, rgba(255, 0, 51, 0) 70%);
      filter: blur(6px);
    }

    .platform-perks-ghost {
      position: absolute;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.045);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .platform-perks-ghost-a {
      width: 78%;
      height: 72%;
      right: 4%;
      top: 8%;
      transform: rotate(-7deg);
    }

    .platform-perks-ghost-b {
      width: 68%;
      height: 58%;
      right: 10%;
      top: 22%;
      transform: rotate(5deg);
      background: rgba(255, 0, 51, 0.08);
    }

    .platform-perks-media {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
    }

    .platform-perks-media.is-card,
    .platform-perks-media.is-art {
      align-items: center;
      justify-content: center;
      padding: 28px 8px 28px 24px;
    }

    .platform-perks-portrait {
      height: 108%;
      max-height: 540px;
      width: auto;
      max-width: none;
      object-fit: contain;
      object-position: bottom right;
      filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
    }

    .platform-perks-shot {
      width: min(440px, 100%);
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.55);
      box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 0, 51, 0.35), 0 16px 40px rgba(255, 0, 51, 0.18);
      display: block;
    }

    .platform-perks-art {
      max-width: min(420px, 100%);
      max-height: 100%;
      width: auto;
      height: auto;
      object-fit: contain;
      filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
      display: block;
    }

    .platform-perks-nav {
      position: relative;
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 22px;
      margin-top: 36px;
    }

    .platform-perks-arrows {
      display: flex;
      gap: 10px;
      flex-shrink: 0;
    }

    .platform-perks-arrow {
      width: 48px;
      height: 48px;
      border: none;
      border-radius: 10px;
      background: #2a2a2a;
      color: #ffffff;
      font-size: 16px;
      line-height: 1;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .platform-perks-arrow:hover {
      background: #ff0033;
    }

    .platform-perks-tabs {
      display: flex;
      gap: 22px;
      overflow-x: auto;
      min-width: 0;
      flex: 1;
      scrollbar-width: none;
    }

    .platform-perks-tabs::-webkit-scrollbar {
      display: none;
    }

    .platform-perks-tab {
      flex: 0 0 auto;
      border: none;
      border-bottom: 2px solid transparent;
      background: none;
      color: #9ca3af;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      line-height: 1.3;
      padding: 8px 0 10px;
      cursor: pointer;
      white-space: nowrap;
    }

    .platform-perks-tab.is-active {
      color: #ff0033;
      border-bottom-color: #ff0033;
    }

    @media (max-width: 860px) {
      .platform-perks {
        padding: 56px 20px 32px;
      }

      .platform-perks-stage {
        min-height: 0;
      }

      .platform-perks-copy {
        max-width: none;
      }

      .platform-perks-visual {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 28px;
      }

      .platform-perks-portrait {
        height: 100%;
        max-height: 300px;
      }

      .platform-perks-nav {
        flex-wrap: wrap;
        gap: 16px;
      }

      .platform-perks-tabs {
        width: 100%;
        order: 2;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .platform-perks-fade,
      .platform-perks-media,
      .platform-perks-arrow {
        transition: none;
      }
    }

    .teachers {
      padding: 80px 24px 96px;
      background: #ffffff;
      color: #1a1a1a;
    }

    .teachers-inner {
      max-width: 1240px;
      margin: 0 auto;
    }

    .teachers h2 {
      margin: 0 0 36px;
      font-family: "Unbounded", sans-serif;
      font-size: clamp(28px, 3.6vw, 42px);
      font-weight: 600;
      line-height: 1.2;
      text-align: center;
      color: #1a1a1a;
    }

    .teachers-slider {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .teachers-viewport {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      touch-action: pan-y;
    }

    .teachers-track {
      display: flex;
      align-items: stretch;
      gap: 16px;
      width: 100%;
      transition: transform 0.4s ease;
    }

    .teacher-card {
      display: flex;
      flex-direction: column;
      flex: 0 0 calc((100% - 48px) / 4);
      min-width: 0;
      padding: 22px 18px 18px;
      background: #ffffff;
      border-radius: 20px;
      box-shadow: 0 10px 28px rgba(18, 21, 28, 0.1);
    }

    .teacher-head {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    .teacher-photo {
      flex: 0 0 72px;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      object-fit: cover;
      background: #f3f0e8;
    }

    .teacher-name {
      margin: 0;
      font-size: 18px;
      font-weight: 800;
      line-height: 1.25;
      color: #1a1a1a;
    }

    .teacher-role {
      margin: 14px 0 0;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.4;
      color: #1a1a1a;
    }

    .teacher-achievements {
      flex: 1;
      margin: 14px 0 0;
      padding-left: 18px;
      color: #1a1a1a;
      font-size: 13.5px;
      line-height: 1.45;
    }

    .teacher-achievements li + li {
      margin-top: 8px;
    }

    .teacher-achievements li::marker {
      color: #ff0033;
    }

    .teacher-socials {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 18px;
    }

    .teacher-social {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #1a1a1a;
      color: #ffffff;
      transition: background-color 0.2s ease;
    }

    .teacher-social:hover,
    .teacher-social:focus-visible {
      background: #ff0033;
      outline: none;
    }

    .teacher-social svg {
      display: block;
    }

    .teacher-card-empty {
      justify-content: center;
      align-items: center;
    }

    .teacher-placeholder {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      max-width: 220px;
      text-align: center;
    }

    .teacher-photo-empty {
      border: 2px dashed #d5d8e0;
    }

    .teacher-placeholder p {
      margin: 0;
      color: #5c6473;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.4;
    }

    .teachers-arrow {
      flex: 0 0 48px;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: none;
      border-radius: 50%;
      background: #ffffff;
      color: #1a1a1a;
      box-shadow: 0 8px 22px rgba(18, 21, 28, 0.12);
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    .teachers-arrow:hover,
    .teachers-arrow:focus-visible {
      background: #ff0033;
      color: #ffffff;
      outline: none;
    }

    .teachers-arrow:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .teachers-arrow:disabled:hover,
    .teachers-arrow:disabled:focus-visible {
      background: #ffffff;
      color: #1a1a1a;
    }

    @media (max-width: 1100px) {
      .teacher-card {
        flex-basis: calc((100% - 16px) / 2);
      }
    }

    @media (max-width: 720px) {
      .teachers {
        padding: 56px 16px 72px;
      }

      .teachers-slider {
        gap: 8px;
      }

      .teacher-card {
        flex-basis: 100%;
      }

      .teachers-arrow {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .teachers-track,
      .teacher-social,
      .teachers-arrow {
        transition: none;
      }
    }

    .reviews {
      padding: 80px 24px 88px;
      background: #1a1a1a;
      color: #ffffff;
    }

    .reviews-inner {
      max-width: 1240px;
      margin: 0 auto;
    }

    .reviews h2 {
      margin: 0 0 36px;
      font-family: "Unbounded", sans-serif;
      font-size: clamp(28px, 3.6vw, 42px);
      font-weight: 600;
      line-height: 1.2;
      text-align: center;
      color: #ffffff;
    }

    .reviews-slider {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .reviews-viewport {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      touch-action: pan-y;
    }

    .reviews-track {
      display: flex;
      align-items: stretch;
      gap: 16px;
      width: 100%;
      transition: transform 0.4s ease;
    }

    .review-card {
      display: flex;
      flex-direction: column;
      flex: 0 0 calc((100% - 32px) / 3);
      min-width: 0;
      padding: 16px;
      background: #2a2a2a;
      border-radius: 16px;
    }

    .review-badges {
      display: flex;
      align-items: center;
      gap: 4px;
      margin-bottom: 12px;
    }

    .review-badge {
      display: inline-flex;
      align-items: center;
      min-height: 26px;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
    }

    .review-badge-exam {
      background: #ffffff;
      color: #1a1a1a;
    }

    .review-badge-subject {
      background: #ff0033;
      color: #ffffff;
    }

    .review-video {
      position: relative;
      display: grid;
      place-items: center;
      aspect-ratio: 16 / 9;
      border-radius: 12px;
      background: #3a3a3a;
    }

    .review-play {
      display: grid;
      place-items: center;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: #ffffff;
      color: #1a1a1a;
    }

    .review-text {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 4;
      overflow: hidden;
      max-height: 6.4em;
      margin: 14px 0 0;
      color: #e8e8e8;
      font-size: 14px;
      line-height: 1.45;
      transition: max-height 0.35s ease;
    }

    .review-text.expanded {
      display: block;
      -webkit-line-clamp: unset;
      max-height: 28em;
    }

    .review-more {
      align-self: flex-start;
      margin-top: 8px;
      padding: 0;
      border: none;
      background: none;
      color: #ff0033;
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .review-more:hover,
    .review-more:focus-visible {
      color: #ff4d6a;
      outline: none;
    }

    .review-more[hidden] {
      display: none;
    }

    .review-author {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: auto;
      padding-top: 16px;
      color: #ffffff;
    }

    .review-avatar {
      flex: 0 0 36px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #4a4a4a;
    }

    .review-author-name {
      flex: 1;
      min-width: 0;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.3;
    }

    .review-vk {
      flex: 0 0 22px;
      color: #ffffff;
    }

    .review-card-cta {
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 18px;
    }

    .review-cta-title {
      margin: 0;
      max-width: 240px;
      font-family: "Unbounded", sans-serif;
      font-size: 22px;
      font-weight: 600;
      line-height: 1.3;
      color: #ffffff;
    }

    .review-cta-avatars {
      display: flex;
      justify-content: center;
    }

    .review-cta-avatars span {
      width: 42px;
      height: 42px;
      margin-left: -10px;
      border: 2px solid #2a2a2a;
      border-radius: 50%;
      background: #5a5a5a;
    }

    .review-cta-avatars span:first-child {
      margin-left: 0;
      background: #ff0033;
    }

    .review-cta-avatars span:nth-child(2) {
      background: #d0d0d0;
    }

    .review-cta-avatars span:nth-child(3) {
      background: #8a8a8a;
    }

    .review-cta-btn {
      min-height: 48px;
      padding: 12px 22px;
      border: none;
      border-radius: 12px;
      background: #ff0033;
      color: #ffffff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 800;
      cursor: pointer;
    }

    .review-cta-btn:hover,
    .review-cta-btn:focus-visible {
      background: #e0002e;
      outline: none;
    }

    .reviews-arrow {
      flex: 0 0 48px;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border: none;
      border-radius: 50%;
      background: #ffffff;
      color: #1a1a1a;
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    .reviews-arrow:hover,
    .reviews-arrow:focus-visible {
      background: #ff0033;
      color: #ffffff;
      outline: none;
    }

    .reviews-arrow:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .reviews-arrow:disabled:hover,
    .reviews-arrow:disabled:focus-visible {
      background: #ffffff;
      color: #1a1a1a;
    }

    .reviews-all {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      margin: 28px auto 0;
      padding: 10px 28px;
      border: 2px solid #ffffff;
      border-radius: 999px;
      background: transparent;
      color: #ffffff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
    }

    .reviews-all:hover,
    .reviews-all:focus-visible {
      border-color: #ff0033;
      color: #ff0033;
      outline: none;
    }

    @media (max-width: 1100px) {
      .review-card {
        flex-basis: calc((100% - 16px) / 2);
      }
    }

    @media (max-width: 720px) {
      .reviews {
        padding: 56px 16px 64px;
      }

      .reviews-slider {
        gap: 8px;
      }

      .review-card {
        flex-basis: 100%;
      }

      .reviews-arrow {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .reviews-track,
      .review-text,
      .reviews-arrow {
        transition: none;
      }
    }

    .compare {
      padding: 88px 24px 96px;
      background: #ffffff;
      color: #1a1a1a;
    }

    .compare-inner {
      max-width: 1080px;
      margin: 0 auto;
    }

    .compare-title {
      margin: 0 auto;
      max-width: 920px;
      font-family: "Unbounded", sans-serif;
      font-size: clamp(26px, 3.5vw, 40px);
      font-weight: 600;
      line-height: 1.25;
      text-align: center;
      text-wrap: balance;
      color: #1a1a1a;
    }

    .compare-brand {
      display: inline-flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      vertical-align: middle;
      margin-left: 4px;
      padding: 7px 12px 8px;
      border-radius: 8px;
      background: #1a1a1a;
      line-height: 1.02;
      text-align: center;
      text-wrap: nowrap;
      transform: translateY(-2px);
    }

    .compare-brand-k,
    .compare-brand-s {
      display: block;
    }

    .compare-brand-k {
      color: #ffffff;
      font-size: 0.62em;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .compare-brand-s {
      color: #ff0033;
      font-size: 0.5em;
      font-weight: 600;
      letter-spacing: 0.01em;
    }

    .compare-lead {
      margin: 18px auto 0;
      max-width: 640px;
      text-align: center;
      color: #5c6473;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.45;
    }

    .compare-slider {
      width: min(560px, 100%);
      margin: 36px auto 0;
    }

    .compare-track {
      position: relative;
      height: 36px;
      margin: 0 22px;
      touch-action: none;
      cursor: pointer;
    }

    .compare-track::before,
    .compare-track-fill {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      height: 4px;
      border-radius: 999px;
      transform: translateY(-50%);
    }

    .compare-track::before {
      right: 0;
      background: #ece7df;
    }

    .compare-track-fill {
      width: 0%;
      background: #ff0033;
      transition: width 0.35s ease;
    }

    .compare-thumb {
      position: absolute;
      top: 50%;
      left: 0%;
      z-index: 2;
      width: 22px;
      height: 22px;
      border: 3px solid #ffffff;
      border-radius: 50%;
      background: #ff0033;
      box-shadow: 0 4px 14px rgba(255, 0, 51, 0.35);
      transform: translate(-50%, -50%);
      transition: left 0.35s ease;
      pointer-events: none;
    }

    .compare-ticks {
      display: flex;
      justify-content: space-between;
      margin-top: 2px;
    }

    .compare-tick {
      min-width: 56px;
      padding: 8px 6px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: #1a1a1a;
      font-family: inherit;
      font-size: 16px;
      font-weight: 800;
      cursor: pointer;
      transition: color 0.2s ease, background-color 0.2s ease;
    }

    .compare-tick.is-active,
    .compare-tick:hover,
    .compare-tick:focus-visible {
      color: #ff0033;
      outline: none;
    }

    .compare-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 20px;
      align-items: stretch;
      margin-top: 32px;
    }

    .compare-hours,
    .compare-chart {
      background: #fbf8f4;
      border: 1px solid #ece7df;
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(18, 21, 28, 0.05);
    }

    .compare-hours {
      position: relative;
      z-index: 3;
      display: flex;
      align-items: center;
      min-height: 220px;
      padding: 28px 64px 28px 28px;
    }

    .compare-hours p,
    .compare-bubble,
    .compare-price {
      transition: opacity 0.22s ease;
    }

    .compare.is-swap .compare-hours p,
    .compare.is-swap .compare-bubble,
    .compare.is-swap .compare-price {
      opacity: 0;
    }

    .compare-hours p {
      margin: 0;
      font-size: 22px;
      font-weight: 700;
      line-height: 1.4;
      color: #1a1a1a;
    }

    .compare-help {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 32px;
      height: 32px;
      padding: 0;
      border: 1.5px solid #1a1a1a;
      border-radius: 50%;
      background: #ffffff;
      color: #1a1a1a;
      font-family: inherit;
      font-size: 16px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
    }

    .compare-help:hover,
    .compare-help:focus-visible,
    .compare-help.is-open {
      border-color: #ff0033;
      background: #ff0033;
      color: #ffffff;
      outline: none;
    }

    .compare-tooltip {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      z-index: 4;
      width: 280px;
      max-width: min(280px, calc(100vw - 48px));
      padding: 12px 14px;
      border-radius: 12px;
      background: #1a1a1a;
      color: #ffffff;
      font-size: 13px;
      font-weight: 600;
      line-height: 1.45;
      text-align: left;
      white-space: normal;
      box-shadow: 0 12px 28px rgba(18, 21, 28, 0.22);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .compare-help.is-open .compare-tooltip {
      opacity: 1;
      visibility: visible;
    }

    .compare-chart {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-height: 420px;
      padding: 28px 20px 22px;
    }

    .compare-bars {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 36px;
      width: 100%;
    }

    .compare-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 150px;
    }

    .compare-bubble {
      position: relative;
      margin: 0 0 14px;
      padding: 10px 14px;
      border: 1.5px solid #1a1a1a;
      border-radius: 16px;
      background: #ffffff;
      color: #1a1a1a;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.35;
      text-align: center;
    }

    .compare-bubble strong {
      color: #ff0033;
      font-weight: 800;
    }

    .compare-bubble::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -7px;
      width: 12px;
      height: 12px;
      border-right: 1.5px solid #1a1a1a;
      border-bottom: 1.5px solid #1a1a1a;
      background: #ffffff;
      transform: translateX(-50%) rotate(45deg);
    }

    .compare-price {
      margin-bottom: 8px;
      color: #1a1a1a;
      font-size: 15px;
      font-weight: 800;
      line-height: 1.2;
      white-space: nowrap;
    }

    .compare-bar {
      width: 92px;
      border-radius: 14px 14px 8px 8px;
      transition: height 0.45s ease;
    }

    .compare-bar-tutor {
      background: linear-gradient(180deg, #4a4a4a 0%, #1a1a1a 100%);
    }

    .compare-bar-school {
      background: linear-gradient(180deg, #ff4d6a 0%, #ff0033 100%);
    }

    .compare-bar-name {
      margin-top: 12px;
      color: #1a1a1a;
      font-size: 14px;
      font-weight: 800;
      text-align: center;
    }

    .compare-bar-name-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
      line-height: 1.15;
    }

    .compare-bar-name-brand span:last-child {
      color: #ff0033;
    }

    @media (hover: hover) and (pointer: fine) {
      .compare-help:hover .compare-tooltip,
      .compare-help:focus-visible .compare-tooltip {
        opacity: 1;
        visibility: visible;
      }
    }

    @media (max-width: 820px) {
      .compare {
        padding: 56px 16px 64px;
      }

      .compare-lead {
        font-size: 16px;
      }

      .compare-body {
        grid-template-columns: 1fr;
      }

      .compare-hours {
        min-height: 0;
        padding: 24px 58px 24px 20px;
      }

      .compare-hours p {
        font-size: 18px;
      }

      .compare-chart {
        min-height: 0;
        padding-top: 24px;
      }

      .compare-bars {
        gap: 16px;
      }

      .compare-col {
        width: min(150px, 46%);
      }

      .compare-bubble {
        font-size: 13px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .compare-track-fill,
      .compare-thumb,
      .compare-bar,
      .compare-hours p,
      .compare-bubble,
      .compare-price,
      .compare-tooltip,
      .compare-tick {
        transition: none;
      }
    }

    .optimization {
      padding: 88px 24px 96px;
      background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url("../assets/images/optimization_bg.JPG") center/cover no-repeat;
      color: #ffffff;
    }

    .optimization-inner {
      max-width: 1080px;
      margin: 0 auto;
    }

    .optimization h2 {
      margin: 0;
      font-family: "Unbounded", sans-serif;
      font-size: clamp(28px, 4vw, 46px);
      font-weight: 600;
      line-height: 1.2;
      text-align: center;
      color: #ffffff;
    }

    .optimization-switch {
      display: flex;
      width: fit-content;
      max-width: 100%;
      margin: 28px auto 0;
      padding: 4px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.55);
    }

    .optimization-switch button {
      border: 0;
      border-radius: 999px;
      padding: 12px 22px;
      background: transparent;
      color: #ffffff;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.25;
      text-align: center;
      cursor: pointer;
      transition: background-color 0.2s ease, color 0.2s ease;
    }

    .optimization-switch button.is-active {
      background: #ffffff;
      color: #1a1a1a;
    }

    .optimization-switch button:hover,
    .optimization-switch button:focus-visible {
      outline: none;
    }

    .optimization-switch button:not(.is-active):hover,
    .optimization-switch button:not(.is-active):focus-visible {
      color: #ff0033;
    }

    .optimization-grid {
      display: grid;
      grid-template-columns: minmax(180px, 0.85fr) 1fr 1fr;
      gap: 18px;
      align-items: stretch;
      margin-top: 40px;
    }

    .optimization-col {
      display: flex;
      flex-direction: column;
      gap: 14px;
      min-width: 0;
    }

    .optimization-head {
      color: rgba(255, 255, 255, 0.72);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-align: center;
    }

    .optimization-col:first-child .optimization-head {
      text-align: left;
    }

    .optimization-subject {
      display: flex;
      align-items: center;
      flex: 1;
      color: #ffffff;
      font-size: clamp(22px, 2.4vw, 30px);
      font-weight: 800;
      line-height: 1.25;
    }

    .optimization-card {
      display: flex;
      flex: 1;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 148px;
      padding: 26px 20px;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.1);
      text-align: center;
    }

    .optimization-price {
      margin: 0;
      font-family: "Unbounded", sans-serif;
      font-size: clamp(24px, 2.8vw, 34px);
      font-weight: 600;
      line-height: 1.15;
      color: #ffffff;
    }

    .optimization-sub {
      margin: 0;
      color: rgba(255, 255, 255, 0.72);
      font-size: 14px;
      font-weight: 600;
      line-height: 1.35;
    }

    .optimization-sub[hidden] {
      display: none !important;
    }

    .optimization-buy {
      display: block;
      width: min(460px, 100%);
      min-height: 56px;
      margin: 36px auto 0;
      padding: 16px 28px;
      border: 0;
      border-radius: 14px;
      background: #ff0033;
      color: #ffffff;
      font-family: inherit;
      font-size: 17px;
      font-weight: 800;
      cursor: pointer;
    }

    .optimization-buy:hover,
    .optimization-buy:focus-visible {
      background: #e0002e;
      outline: none;
    }

    .optimization-note {
      margin: 14px 0 0;
      color: #9a9a9a;
      font-size: 13px;
      font-weight: 500;
      text-align: center;
    }

    @media (max-width: 720px) {
      .optimization {
        padding: 56px 16px 64px;
      }

      .optimization-switch {
        width: 100%;
      }

      .optimization-switch button {
        flex: 1;
        padding: 12px 8px;
        font-size: 13px;
      }

      .optimization-grid {
        grid-template-columns: 1fr;
        gap: 22px;
      }

      .optimization-head,
      .optimization-col:first-child .optimization-head {
        text-align: left;
      }

      .optimization-subject {
        font-size: 24px;
      }
    }

    .site-footer {
      scroll-margin-top: 96px;
      padding: 56px 24px 32px;
      background: #1a1a1a;
      color: #ffffff;
    }

    .footer-inner {
      max-width: 1080px;
      margin: 0 auto;
    }

    .footer-top {
      display: grid;
      grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1.2fr) auto;
      gap: 32px 40px;
      align-items: center;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .footer-brand img {
      width: 40px;
      height: 40px;
      object-fit: cover;
      border-radius: 6px;
    }

    .footer-brand-text {
      display: flex;
      flex-direction: column;
      align-items: center;
      color: #ffffff;
      font-weight: 800;
      line-height: 1.1;
      text-align: center;
    }

    .footer-brand-top {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 13px;
      letter-spacing: 2px;
    }

    .footer-amp,
    .footer-divider {
      color: #ff0033;
      font-weight: 500;
    }

    .footer-brand-bottom {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 18px;
    }

    .footer-contacts {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .footer-contacts a {
      color: #ffffff;
      font-size: 16px;
      font-weight: 700;
      overflow-wrap: anywhere;
    }

    .footer-contacts a:hover,
    .footer-contacts a:focus-visible {
      color: #ff0033;
      outline: none;
    }

    .footer-socials {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .footer-socials a {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 50%;
      color: #ffffff;
    }

    .footer-socials a:hover,
    .footer-socials a:focus-visible {
      border-color: #ff0033;
      background: #ff0033;
      color: #ffffff;
      outline: none;
    }

    .footer-bottom {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-top: 36px;
      padding-top: 22px;
      border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    .footer-legal {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 18px;
    }

    .footer-legal a,
    .footer-copy {
      color: #9a9a9a;
      font-size: 13px;
      line-height: 1.5;
    }

    .footer-legal a:hover,
    .footer-legal a:focus-visible {
      color: #ff0033;
      outline: none;
    }

    .footer-copy {
      margin: 0;
      text-align: right;
    }

    @media (max-width: 720px) {
      .site-footer {
        padding: 40px 16px 28px;
      }

      .footer-top {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
      }

      .footer-contacts {
        align-items: center;
      }

      .footer-socials {
        justify-content: center;
      }

      .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .footer-legal {
        justify-content: center;
      }

      .footer-copy {
        text-align: center;
      }
    }

    .payment-modal {
      display: none;
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      background: rgba(18, 21, 28, 0.55);
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 24px;
      overflow-y: auto;
    }

    .payment-modal.is-open {
      display: flex;
    }

    .payment-dialog {
      background: var(--white);
      padding: 28px 30px;
      border-radius: 16px;
      max-width: 500px;
      width: 90%;
      max-height: calc(100vh - 48px);
      overflow-y: auto;
      box-shadow: var(--shadow);
      color: var(--ink);
    }

    .payment-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
    }

    .payment-head h3 {
      margin: 0;
      font-family: "Unbounded", sans-serif;
      font-size: 20px;
      font-weight: 600;
      line-height: 1.3;
    }

    .payment-close {
      border: none;
      background: none;
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
      color: var(--muted);
    }

    .payment-alert {
      background: #fff4f4;
      border-left: 4px solid #c62828;
      padding: 15px;
      margin: 18px 0;
      border-radius: 0 10px 10px 0;
    }

    .payment-alert p {
      color: #c62828;
      margin: 0 0 10px;
      font-size: 14px;
      line-height: 1.45;
    }

    .payment-alert-btn {
      background: #c62828;
      color: var(--white);
      border: none;
      padding: 8px 15px;
      cursor: pointer;
      border-radius: 8px;
      font-family: inherit;
      font-weight: 700;
    }

    .payment-block {
      background: #f5f5f5;
      padding: 15px;
      margin-bottom: 15px;
      border-radius: 10px;
      line-height: 1.7;
    }

    .payment-block label {
      display: inline-flex;
      align-items: flex-start;
      gap: 8px;
      cursor: pointer;
    }

    .payment-subject {
      margin-bottom: 15px;
      overflow: hidden;
    }

    #price-display {
      float: right;
      font-weight: 700;
    }

    .payment-toggle {
      width: 100%;
      padding: 10px;
      cursor: pointer;
      margin-bottom: 15px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--white);
      font-family: inherit;
      font-weight: 600;
    }

    .course-details {
      display: none;
      font-size: 14px;
      margin-bottom: 15px;
      line-height: 1.6;
    }

    .course-details.is-open {
      display: block;
    }

    .promo-row {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }

    .promo-row input {
      flex: 1;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      font-family: inherit;
    }

    .promo-row button {
      padding: 10px 14px;
      background: var(--navy);
      color: var(--white);
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-family: inherit;
      font-weight: 700;
    }

    .payment-total {
      font-size: 18px;
      font-weight: 700;
      text-align: right;
      margin-bottom: 15px;
    }

    .payment-pay {
      width: 100%;
      padding: 15px;
      background: #c62828;
      color: var(--white);
      border: none;
      font-weight: 700;
      cursor: pointer;
      border-radius: 12px;
      font-family: inherit;
      font-size: 16px;
    }

    body.modal-open {
      overflow: hidden;
    }

    .auth-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(18, 21, 28, 0.55);
      align-items: center;
      justify-content: center;
      z-index: 1100;
      padding: 24px;
      overflow-y: auto;
    }

    .auth-modal.is-open {
      display: flex;
    }

    .auth-dialog {
      position: relative;
      width: min(440px, 100%);
      padding: 36px 28px 28px;
      background: var(--white);
      border-radius: 18px;
      box-shadow: var(--shadow);
      color: var(--ink);
    }

    .auth-dialog .payment-close {
      position: absolute;
      top: 14px;
      right: 14px;
    }

    .auth-logo {
      display: flex;
      justify-content: center;
      margin-bottom: 22px;
    }

    .vk-btn {
      width: 100%;
      min-height: 48px;
      border: none;
      border-radius: 12px;
      background: #0077ff;
      color: var(--white);
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
    }

    .vk-btn:hover,
    .vk-btn:focus-visible {
      background: #0066db;
      outline: none;
    }

    .auth-divider {
      margin: 18px 0 14px;
      color: var(--muted);
      font-size: 14px;
      text-align: center;
    }

    .auth-field {
      width: 100%;
      min-height: 48px;
      margin-bottom: 12px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #f7f8fb;
      color: var(--ink);
      font-family: inherit;
      font-size: 15px;
    }

    .auth-field:focus {
      outline: 2px solid rgba(30, 58, 95, 0.25);
      border-color: var(--navy);
      background: var(--white);
    }

    .auth-submit {
      width: 100%;
      min-height: 48px;
      margin-top: 4px;
      border: none;
      border-radius: 12px;
      background: #d7dbe3;
      color: #8b93a3;
      font-family: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: not-allowed;
    }

    .auth-submit.is-active {
      background: var(--navy);
      color: var(--white);
      cursor: pointer;
    }

    .auth-submit.is-active:hover,
    .auth-submit.is-active:focus-visible {
      background: #162c48;
      outline: none;
    }

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

    .auth-switch button {
      border: none;
      background: none;
      color: var(--navy);
      font-family: inherit;
      font-size: inherit;
      font-weight: 700;
      cursor: pointer;
    }

    .dashboard {
      min-height: calc(100vh - 76px);
      padding: 28px 24px 72px;
    }

    .calendar-wrap {
      max-width: 1080px;
      margin: 0 auto;
    }

    .calendar-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .calendar-back {
      border: none;
      background: none;
      color: var(--navy);
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .calendar {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: var(--shadow);
      padding: 22px;
    }

    .calendar-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }

    .calendar-title {
      font-family: "Unbounded", sans-serif;
      font-size: clamp(20px, 3vw, 28px);
      font-weight: 600;
    }

    .calendar-nav {
      display: flex;
      gap: 8px;
    }

    .calendar-nav button {
      width: 40px;
      height: 40px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--white);
      color: var(--ink);
      font-size: 18px;
      cursor: pointer;
    }

    .calendar-nav button:hover,
    .calendar-nav button:focus-visible {
      background: #f3f0e8;
      outline: none;
    }

    .calendar-weekdays,
    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
    }

    .calendar-weekdays {
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-align: center;
      text-transform: uppercase;
    }

    .calendar-day {
      min-height: 112px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fcfcfd;
    }

    .calendar-day.is-outside {
      border-color: transparent;
      background: transparent;
    }

    .calendar-day.is-today {
      border-color: var(--navy);
      background: #f4f7fb;
    }

    .day-number {
      margin-bottom: 6px;
      font-size: 13px;
      font-weight: 700;
    }

    .lesson-chip {
      display: block;
      width: 100%;
      margin-top: 4px;
      padding: 6px 7px;
      border: none;
      border-radius: 8px;
      background: #ff8a2a;
      color: #1a1508;
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      line-height: 1.3;
      text-align: left;
      cursor: pointer;
    }

    .lesson-chip:hover,
    .lesson-chip:focus-visible {
      background: #e53935;
      color: #ffffff;
      outline: none;
    }

    #lesson-view {
      min-height: calc(100vh - 76px);
      padding: 28px 24px 80px;
      background: #ffffff;
      color: #1a1a1a;
    }

    .lesson-inner {
      max-width: 980px;
      margin: 0 auto;
    }

    .lesson-head {
      margin: 18px 0 28px;
    }

    .lesson-kicker {
      margin-bottom: 8px;
      color: #e53935;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    #lesson-heading {
      font-family: "Unbounded", sans-serif;
      font-size: clamp(28px, 4vw, 46px);
      font-weight: 600;
      line-height: 1.2;
      color: #1a1a1a;
    }

    .lesson-note {
      margin-top: 18px;
      padding: 18px 20px;
      border: 1px solid #1a1a1a;
      border-left: 4px solid #e53935;
      border-radius: 16px;
      background: #ffffff;
      color: #1a1a1a;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.45;
    }

    #player-frame[hidden],
    #lesson-upcoming[hidden],
    #lesson-timecodes[hidden],
    #start-homework[hidden],
    #homework-panel[hidden],
    #lesson-hw-later[hidden],
    #hw-submit[hidden],
    #hw-sent-note[hidden] {
      display: none !important;
    }

    .player-frame {
      position: relative;
      width: min(960px, 100%);
      margin: 0 auto;
      aspect-ratio: 16 / 9;
      background: #1a1a1a;
      border-radius: 16px;
      overflow: hidden;
    }

    .player-frame iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .timecodes {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }

    .timecodes button {
      padding: 8px 12px;
      border: 1px solid #1a1a1a;
      border-radius: 999px;
      background: #ffffff;
      color: #1a1a1a;
      font-family: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .timecodes button:hover,
    .timecodes button:focus-visible,
    .timecodes button.is-active {
      background: #1a1a1a;
      color: #ffffff;
      outline: none;
    }

    .lesson-accent {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      min-height: 56px;
      margin-top: 22px;
      padding: 14px 24px;
      border: none;
      border-radius: 14px;
      background: #e53935;
      color: #ffffff;
      font-family: inherit;
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
    }

    .lesson-accent:hover,
    .lesson-accent:focus-visible {
      background: #c62828;
      outline: none;
    }

    .lesson-accent-compact {
      width: auto;
      min-height: 48px;
      margin-top: 0;
      white-space: nowrap;
    }

    .homework-panel {
      margin-top: 8px;
    }

    .homework-panel.is-open {
      animation: homework-in 0.4s ease;
    }

    .homework-panel h3 {
      margin: 8px 0 16px;
      font-family: "Unbounded", sans-serif;
      font-size: 26px;
    }

    .task-card {
      margin-bottom: 14px;
      padding: 20px;
      border: 1px solid #1a1a1a;
      border-radius: 16px;
      background: #ffffff;
    }

    .task-card h4 {
      margin-bottom: 10px;
      font-size: 18px;
    }

    .task-card p {
      line-height: 1.55;
    }

    .task-card input {
      width: 100%;
      min-height: 48px;
      margin-top: 14px;
      padding: 12px 14px;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      background: #ffffff;
      color: #1a1a1a;
      font-family: inherit;
      font-size: 16px;
    }

    .task-card input:focus {
      outline: 2px solid #e53935;
    }

    .task-card.is-correct {
      border-color: #1b7a32;
      background: #e8f6ec;
    }

    .task-card.is-wrong {
      border-color: #e53935;
      background: #fff1f1;
    }

    .task-solution {
      margin-top: 12px;
      padding: 15px 20px;
      font-weight: 700;
      line-height: 1.65;
    }

    .task-solution p {
      line-height: 1.65;
    }

    .task-solution mjx-container[display="true"] {
      margin: 0.7em 0;
    }

    .task-solution[hidden] {
      display: none !important;
    }

    .task-card.is-correct .task-solution {
      color: #1b7a32;
    }

    .task-card.is-wrong .task-solution {
      color: #e53935;
    }

    .homework {
      margin-top: 28px;
      animation: homework-in 0.35s ease;
    }

    .homework h3 {
      margin-bottom: 16px;
      font-family: "Unbounded", sans-serif;
      font-size: 26px;
    }

    .hw-card {
      margin-bottom: 16px;
      padding: 22px;
      border: 1px solid #1a1a1a;
      border-radius: 16px;
      background: #ffffff;
    }

    .hw-card h4 {
      margin-bottom: 10px;
      font-size: 18px;
    }

    .hw-card p {
      line-height: 1.55;
    }

    .hw-answer-row {
      display: flex;
      gap: 10px;
      margin-top: 16px;
    }

    .hw-answer-row input {
      flex: 1;
      min-height: 48px;
      padding: 12px 14px;
      border: 1px solid #1a1a1a;
      border-radius: 12px;
      background: #ffffff;
      color: #1a1a1a;
      font-family: inherit;
      font-size: 16px;
    }

    .hw-answer-row input:focus {
      outline: 2px solid #e53935;
    }

    .hw-banner {
      margin-top: 14px;
      padding: 14px 16px;
      border-radius: 12px;
      font-weight: 700;
      line-height: 1.45;
    }

    .hw-banner-ok {
      background: #e8f6ec;
      color: #1b7a32;
    }

    .hw-banner-bad {
      background: #fff1f1;
      color: #e53935;
    }

    .hw-banner-wait {
      margin-top: 0;
      background: #fff4cc;
      color: #1a1a1a;
    }

    .hw-banner-checked {
      margin-top: 0;
      background: #e8f6ec;
      color: #1b7a32;
    }

    .hw-comment {
      margin: 8px 0 0;
      font-weight: 600;
      line-height: 1.45;
    }

    .hw-checked-photo {
      display: block;
      max-width: 240px;
      height: auto;
      margin-top: 8px;
      border-radius: 12px;
    }

    .hw-sent-note {
      margin-top: 22px;
      padding: 14px 16px;
      border-radius: 14px;
      background: #e8f6ec;
      color: #1b7a32;
      font-weight: 700;
      text-align: center;
    }

    .hw-upload {
      margin-top: 16px;
    }

    .file-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 12px 18px;
      border: 2px solid #1a1a1a;
      border-radius: 12px;
      background: #ffffff;
      color: #1a1a1a;
      font-weight: 700;
      cursor: pointer;
    }

    .task-card .file-btn {
      margin-top: 12px;
    }

    .file-btn[hidden] {
      display: none !important;
    }

    .file-btn:hover,
    .file-btn:focus-within {
      background: #1a1a1a;
      color: #ffffff;
    }

    .file-btn input {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
    }

    .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, 80px);
      gap: 10px;
      margin-top: 12px;
    }

    .photo-thumb {
      position: relative;
      display: block;
      width: 80px;
      height: 80px;
      border-radius: 12px;
      overflow: hidden;
      background: #f3f0e8;
      text-decoration: none;
    }

    .photo-thumb img {
      width: 80px;
      height: 80px;
      object-fit: cover;
      display: block;
    }

    .photo-thumb-remove {
      position: absolute;
      top: 4px;
      right: 4px;
      width: 22px;
      height: 22px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: #ffffff;
      box-shadow: 0 2px 8px rgba(26, 26, 26, 0.18);
      color: #1a1a1a;
      font: inherit;
      font-size: 16px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
    }

    .hw-files {
      min-height: 0;
      color: #1a1a1a;
      font-size: 14px;
    }

    .hw-files[hidden] {
      display: none !important;
    }

    .hw-file-chip {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
    }

    .hw-file-chip img {
      width: 48px;
      height: 48px;
      object-fit: cover;
      border-radius: 8px;
    }

    .hw-file-chip img[hidden],
    .hw-file-chip [data-file-icon][hidden] {
      display: none !important;
    }

    .hw-file-chip [data-file-icon] {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border: 1px solid #1a1a1a;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 700;
    }

    .hw-file-chip [data-file-name] {
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .hw-file-chip [data-file-remove] {
      border: 0;
      background: transparent;
      color: #1a1a1a;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }

    .hw-status-row {
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .hw-status-row[hidden] {
      display: none !important;
    }

    .hw-status-row:not([hidden]) {
      display: flex;
    }

    .hw-score {
      margin-bottom: 12px;
      font-size: 20px;
      font-weight: 700;
    }

    .hw-mock {
      margin: 0;
    }

    .hw-mock svg {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 12px;
    }

    .hw-mock figcaption {
      margin-top: 8px;
      color: #1a1a1a;
      font-size: 13px;
    }

    @keyframes homework-in {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    #profile-view {
      max-width: 1120px;
      margin: 0 auto;
      min-height: calc(100vh - 76px);
    }

    #profile-back {
      margin-bottom: 16px;
    }

    .profile-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }

    .profile-card {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 20px;
    }

    .profile-card-courses {
      width: min(560px, 100%);
      justify-self: center;
    }

    .profile-card-wide {
      grid-column: 1 / -1;
      width: 100%;
    }

    .profile-card h2 {
      margin-bottom: 14px;
      font-family: "Unbounded", sans-serif;
      font-size: 18px;
      font-weight: 600;
      color: #12151c;
    }

    .profile-empty {
      color: var(--muted);
      font-size: 14px;
    }

    .course-card {
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-left: 4px solid #c81d25;
      border-radius: 14px;
      background: #fffafa;
    }

    .course-card h3 {
      font-size: 18px;
      font-weight: 700;
      color: #12151c;
    }

    .histogram-wrapper {
      display: flex;
      width: 100%;
      height: 240px;
      margin-top: 8px;
      margin-bottom: 28px;
      align-items: stretch;
    }

    .histogram-y-axis {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding-right: 10px;
      font-size: 10px;
      color: #9ca3af;
      border-right: 1px solid #e5e7eb;
      height: 100%;
    }

    .histogram-chart {
      display: flex;
      justify-content: stretch;
      align-items: stretch;
      flex-grow: 1;
      min-width: 0;
      border-bottom: 1px solid #e5e7eb;
      position: relative;
      padding-left: 10px;
      height: 100%;
    }

    .histogram-col {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      align-items: center;
      flex: 1;
      min-width: 0;
      height: 100%;
      position: relative;
    }

    .histogram-divider {
      width: 2px;
      background-color: #cbd5e1;
      margin: 0 15px;
      height: 100%;
      flex: 0 0 auto;
      align-self: stretch;
    }

    .histogram-bar {
      width: min(18px, 70%);
      background-color: #ef4444;
      border-radius: 3px 3px 0 0;
      min-height: 2px;
      transition: height 0.4s ease-out, opacity 0.15s ease;
    }

    .histogram-bar:hover {
      opacity: 0.72;
      box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    }

    .histogram-x-label {
      margin-top: 6px;
      font-size: 10px;
      color: #6b7280;
      font-weight: 500;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
    }

    .stat-caption {
      margin-bottom: 4px;
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
    }

    .stat-line,
    .webinar-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 0;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
    }

    .stat-line:last-child,
    .webinar-row:last-child {
      border-bottom: none;
    }

    .stat-line span:last-child {
      font-weight: 700;
      color: #12151c;
    }

    .webinar-row-title {
      min-width: 0;
    }

    .progress-badge {
      flex-shrink: 0;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
    }

    .progress-badge.is-done {
      background: #e7f6ec;
      color: #1b7a3a;
    }

    .progress-badge.is-pending {
      background: #eeeae4;
      color: #6d675f;
    }

    .profile-webinar-link {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      cursor: pointer;
      border-bottom: 1px solid #eee;
    }

    .profile-webinar-link:hover {
      background-color: #f8fafc;
    }

    #register-title {
      margin: -8px 0 16px;
      font-family: "Unbounded", sans-serif;
      font-size: 22px;
      font-weight: 600;
      text-align: center;
    }

    @media (max-width: 820px) {
      .header-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
      }

      .nav {
        width: 100%;
        justify-content: flex-start;
      }

      .nav-cta {
        margin-left: 0;
      }

      .benefits-grid,
      .profile-grid {
        grid-template-columns: 1fr;
      }

      .histogram-wrapper {
        height: 200px;
      }

      .histogram-divider {
        margin: 0 8px;
      }

      .about-course {
        padding: 56px 20px 72px;
      }

      .calendar-day {
        min-height: 78px;
        padding: 6px;
      }

      .lesson-chip {
        font-size: 10px;
      }

      .calendar {
        padding: 14px;
      }

      .hw-answer-row,
      .hw-status-row {
        flex-direction: column;
        align-items: stretch;
      }

      .lesson-accent-compact {
        width: 100%;
      }
    }

    @media (min-width: 821px) and (max-width: 1020px) {
      .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .student-chat-dialog {
      display: flex;
      flex-direction: column;
      width: min(480px, 100%);
      max-height: calc(100vh - 48px);
      padding: 20px;
      background: var(--white);
      border-radius: 18px;
      box-shadow: var(--shadow);
      color: var(--ink);
    }

    .student-chat-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .student-chat-head h2 {
      margin: 0;
      font-family: "Unbounded", sans-serif;
      font-size: 20px;
      font-weight: 600;
    }

    .student-chat-thread {
      height: 400px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 12px;
      border-radius: 14px;
      background: #f6f4ef;
    }

    .student-chat-empty {
      margin: auto;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
      text-align: center;
    }

    .student-chat-bubble {
      max-width: 78%;
      padding: 10px 12px;
      border-radius: 16px;
      line-height: 1.45;
    }

    .student-chat-bubble.is-student {
      align-self: flex-end;
      border-bottom-right-radius: 6px;
      background: #c62828;
      color: var(--white);
    }

    .student-chat-bubble.is-curator {
      align-self: flex-start;
      border-bottom-left-radius: 6px;
      background: #e6e8ee;
      color: var(--ink);
    }

    .student-chat-sender,
    .student-chat-text {
      margin: 0;
    }

    .student-chat-sender {
      margin-bottom: 4px;
      font-size: 12px;
      font-weight: 700;
      opacity: 0.8;
    }

    .student-chat-text {
      white-space: pre-wrap;
      word-break: break-word;
    }

    .student-chat-bubble a {
      display: inline-block;
      margin-top: 8px;
    }

    .student-chat-bubble img {
      display: block;
      max-width: 200px;
      border-radius: 12px;
    }

    .student-chat-compose {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }

    .student-chat-compose input[type="text"] {
      flex: 1 1 160px;
      min-width: 0;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--white);
      color: var(--ink);
      font: inherit;
    }

    .student-chat-compose input[type="file"] {
      flex: 1 1 140px;
      min-width: 0;
      font: inherit;
      font-size: 13px;
    }

    .student-chat-compose button {
      flex-shrink: 0;
      padding: 12px 16px;
      border: none;
      border-radius: 12px;
      background: #c62828;
      color: var(--white);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
    }

    .student-chat-compose button:hover,
    .student-chat-compose button:focus-visible {
      background: #b71c1c;
      outline: none;
    }

    .student-chat-compose button:disabled {
      cursor: default;
      opacity: 0.6;
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      .marquee-track,
      .homework {
        animation: none;
      }
    }

