:root {
  --bg: #f7f8ff;
  --text: #1f2747;
  --muted: #637092;
  --line: rgba(76, 89, 142, 0.12);
  --white: #ffffff;
  --blue: #7fb2ff;
  --blue-strong: #447dff;
  --purple: #c8b0ff;
  --orange: #ffc59a;
  --pink: #ffc4df;
  --mint: #c8f0e6;
  --sky: #bde8ff;
  --shadow: 0 18px 55px rgba(49, 61, 121, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(188, 205, 255, .55), transparent 28%),
    radial-gradient(circle at right 10% top 16%, rgba(255, 204, 176, .35), transparent 24%),
    linear-gradient(180deg, #f8f9ff 0%, #f9fbff 100%);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -1;
  opacity: .55;
}
.orb-1 { width: 260px; height: 260px; top: 8%; left: -40px; background: rgba(139, 181, 255, 0.35); }
.orb-2 { width: 240px; height: 240px; top: 32%; right: -60px; background: rgba(255, 196, 223, 0.35); }
.orb-3 { width: 260px; height: 260px; bottom: 8%; left: 12%; background: rgba(205, 190, 255, 0.28); }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 249, 255, 0.8);
  border-bottom: 1px solid rgba(76, 89, 142, 0.08);
}
.header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.logo__badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6f93ff, #d0a6ff 55%, #ffbe96);
  box-shadow: 0 12px 24px rgba(98, 112, 198, 0.25);
}
.logo strong {
  display: block;
  font-size: 18px;
}
.logo small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__pill,
.nav__button {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: .25s ease;
}
.nav__pill {
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(76, 89, 142, 0.08);
  color: #314069;
}
.nav__pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 91, 156, 0.12);
}
.nav__button {
  color: #fff;
  background: linear-gradient(135deg, #6b86ff, #a98cff 52%, #ffb88d);
  box-shadow: 0 12px 28px rgba(87, 102, 198, 0.22);
}
.nav__button:hover {
  transform: translateY(-2px) scale(1.01);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: #fff;
  box-shadow: var(--shadow);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2c355e;
  margin: 5px auto;
}
.mobile-menu {
  display: none;
  padding: 0 16px 16px;
}
.mobile-menu a {
  display: block;
  background: #fff;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(64, 79, 146, 0.08);
}

.hero {
  padding: 54px 0 44px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(76, 89, 142, 0.08);
  color: #57679c;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(135deg, #5f7fff, #af8fff 55%, #ffa57c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 700px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  font-weight: 700;
  transition: .25s ease;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #5f7fff, #a688ff 55%, #ffb48c);
  box-shadow: 0 16px 34px rgba(89, 103, 192, 0.24);
}
.btn--ghost {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(76, 89, 142, 0.08);
}
.btn:hover {
  transform: translateY(-2px);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.stat-card {
  min-width: 168px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}
.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}
.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  border-radius: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.58));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 22%, rgba(130,180,255,.32), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(255,190,146,.28), transparent 14%),
    radial-gradient(circle at 72% 78%, rgba(209,177,255,.24), transparent 18%),
    linear-gradient(180deg, #f6f8ff, #eef3ff);
}
.hero-card__ring {
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  border: 18px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 25deg, #6ea5ff, #c8afff, #ffbb8c, #78b6ff) border-box;
}
.hero-card__photo {
  position: relative;
  z-index: 2;
  width: 64%;
  border-radius: 999px;
  animation: floatPhoto 4.5s ease-in-out infinite;
}
.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 700;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 30px rgba(69, 84, 150, .14);
  animation: levitate 4.8s ease-in-out infinite;
}
.float-card--code { top: 16%; left: 4%; background: #d9ebff; }
.float-card--test { top: 14%; right: 6%; background: #ffe0d0; animation-delay: .4s; }
.float-card--result { bottom: 14%; left: 8%; background: #eadcff; animation-delay: .9s; }

.section {
  padding: 86px 0;
}
.section--compact {
  padding-top: 36px;
}
.section--accent {
  padding-top: 24px;
}
.section-head {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 34px;
}
.section-badge {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: #58689c;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.course-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(59, 74, 136, 0.16);
}
.course-card__image-wrap {
  position: relative;
  padding: 18px;
}
.course-card__image {
  width: 100%;
  border-radius: 24px;
}
.course-chip {
  position: absolute;
  left: 34px;
  bottom: 34px;
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.chip-blue { background: rgba(225, 239, 255, 0.88); }
.chip-purple { background: rgba(238, 231, 255, 0.9); }
.chip-orange { background: rgba(255, 236, 218, 0.92); }

.course-card__body {
  padding: 0 24px 26px;
}
.course-card__body h3 {
  margin: 4px 0 10px;
  font-size: 26px;
}
.course-card__body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}
.course-card__body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: #39456e;
}
.course-card__body li {
  margin-bottom: 8px;
}
.course-link {
  font-weight: 800;
  color: #5b6fff;
}


.course-card--coming {
  position: relative;
}
.course-card__image--blur {
  filter: blur(2.6px) saturate(.92);
  transform: scale(1.02);
}
.course-card--coming::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.08));
}
.course-coming-badge {
  position: absolute;
  right: 30px;
  top: 30px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(76, 89, 142, 0.08);
  font-size: 13px;
  font-weight: 800;
  color: #4e5c89;
  box-shadow: 0 10px 24px rgba(74, 91, 156, 0.1);
}
.course-link--muted {
  color: #7b84a8;
  cursor: default;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.perk-card {
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.perk-card img {
  width: 100%;
  border-radius: 22px;
  margin-bottom: 18px;
}
.perk-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.perk-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.teacher {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 38px;
  align-items: center;
}
.teacher__photo-wrap {
  padding: 20px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.7));
  box-shadow: var(--shadow);
}
.teacher__photo img {
  border-radius: 30px;
}
.teacher__content h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}
.teacher__content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 16.5px;
}
.teacher__badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.teacher__badges span {
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  font-weight: 700;
}

.reviews-section {
  overflow: hidden;
}
.reviews-marquee {
  position: relative;
  overflow: hidden;
  padding: 12px 0 6px;
}
.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}
.review-card {
  width: 320px;
  min-height: 180px;
  padding: 22px;
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(68, 82, 138, 0.1);
  border: 1px solid rgba(76, 89, 142, 0.06);
}
.review-card p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
}
.review-card span {
  color: #4a587e;
  font-weight: 700;
}
.review-blue { background: #dff0ff; }
.review-purple { background: #e9e2ff; }
.review-pink { background: #ffe1ef; }
.review-orange { background: #ffe8d8; }
.review-lilac { background: #f0e7ff; }
.review-mint { background: #ddf7ef; }
.review-peach { background: #ffe6da; }
.review-sky { background: #ddf4ff; }
.review-rose { background: #ffe3ea; }
.review-violet { background: #e6ddff; }

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 22px;
  text-align: left;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.faq-question span {
  font-size: 24px;
  transition: transform .2s ease;
}
.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .22s; }
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .hero__grid,
  .teacher,
  .courses-grid,
  
.course-card--coming {
  position: relative;
}
.course-card__image--blur {
  filter: blur(2.6px) saturate(.92);
  transform: scale(1.02);
}
.course-card--coming::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.08));
}
.course-coming-badge {
  position: absolute;
  right: 30px;
  top: 30px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(76, 89, 142, 0.08);
  font-size: 13px;
  font-weight: 800;
  color: #4e5c89;
  box-shadow: 0 10px 24px rgba(74, 91, 156, 0.1);
}
.course-link--muted {
  color: #7b84a8;
  cursor: default;
}

.perks-grid {
    grid-template-columns: 1fr;
  }
  .hero__visual { order: -1; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile-menu.open { display: block; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 640px) {
  .header__inner { min-height: 78px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 28px; }
  .hero__actions,
  .hero__stats,
  .teacher__badges {
    gap: 10px;
  }
  .btn,
  .nav__button,
  .nav__pill { width: 100%; justify-content: center; }
  .review-card { width: 280px; min-height: 194px; }
  .course-card__body h3 { font-size: 24px; }
}


/* interactive course cards */
.course-card--interactive {
  position: relative;
  transform-origin: center;
}
.course-card--interactive::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 32px;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,0) 34%, rgba(255,255,255,.72) 48%, rgba(255,255,255,0) 60%, transparent 78%);
  transform: translateX(-140%) skewX(-18deg);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}
.course-card--interactive:hover {
  transform: translateY(-10px) scale(1.025);
  box-shadow: 0 30px 62px rgba(59, 74, 136, 0.18);
}
.course-card--interactive:hover::before {
  opacity: 1;
  animation: shineSweep 900ms ease;
}
.course-card--interactive .course-card__image,
.course-card--interactive .course-card__body {
  position: relative;
  z-index: 1;
}
@keyframes shineSweep {
  0% { transform: translateX(-140%) skewX(-18deg); }
  100% { transform: translateX(140%) skewX(-18deg); }
}

/* FAQ fix */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  display: block;
}
.faq-answer__inner {
  padding: 0 22px 20px;
}
.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  padding: 0;
}

/* tablet */
@media (max-width: 1100px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* phones and small tablets */
@media (max-width: 860px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }
  .hero__grid {
    gap: 22px;
  }
  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }
  .float-card {
    padding: 10px 13px;
    font-size: 14px;
  }
  .teacher {
    gap: 20px;
  }
  .section-head {
    margin-bottom: 24px;
  }
  .section-head p,
  .teacher__content p,
  .course-card__body p {
    font-size: 15.5px;
    line-height: 1.65;
  }
  .course-card--interactive:hover {
    transform: translateY(-6px) scale(1.012);
  }
}

/* phones */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  .container {
    width: calc(100% - 20px);
  }
  .hero {
    padding: 20px 0 20px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.06;
  }
  .hero__text {
    font-size: 15.5px;
    margin-bottom: 20px;
  }
  .eyebrow,
  .section-badge {
    font-size: 12px;
    padding: 9px 12px;
  }
  .hero-card {
    max-width: 100%;
    border-radius: 28px;
  }
  .hero-card__ring {
    inset: 22px;
    border-width: 12px;
  }
  .hero-card__photo {
    width: 66%;
  }
  .float-card--code {
    top: 12%;
    left: 3%;
  }
  .float-card--test {
    top: 12%;
    right: 3%;
  }
  .float-card--result {
    bottom: 9%;
    left: 5%;
  }
  .hero__actions {
    flex-direction: column;
    margin-bottom: 18px;
  }
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr;
  }
  .stat-card {
    min-width: unset;
    width: 100%;
  }
  .courses-grid,
  .perks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .course-card {
    border-radius: 24px;
  }
  .course-card__image-wrap {
    padding: 12px;
  }
  .course-card__image {
    border-radius: 18px;
  }
  .course-chip {
    left: 22px;
    bottom: 22px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .course-coming-badge {
    top: 20px;
    right: 20px;
    font-size: 12px;
    padding: 8px 12px;
  }
  .course-card__body {
    padding: 0 18px 20px;
  }
  .course-card__body h3 {
    font-size: 22px;
  }
  .perk-card,
  .faq-item,
  .teacher__photo-wrap {
    border-radius: 22px;
  }
  .perk-card {
    padding: 16px;
  }
  .teacher {
    grid-template-columns: 1fr;
  }
  .teacher__photo img {
    border-radius: 22px;
  }
  .teacher__badges span {
    width: 100%;
    text-align: center;
  }
  .reviews-track {
    gap: 12px;
  }
  .review-card {
    width: 260px;
    min-height: 176px;
    padding: 18px;
    border-radius: 22px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
    gap: 10px;
  }
  .faq-answer__inner {
    padding: 0 18px 18px;
  }
  .nav__button,
  .nav__pill,
  .btn {
    min-height: 52px;
  }
}


/* hide text chips on the three main course cards to avoid overlapping with text inside raster images */
.course-card--interactive .course-chip {
  display: none;
}


/* course page */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}
.breadcrumbs a:hover {
  color: #5b6fff;
}
.course-hero {
  padding: 42px 0 34px;
}
.course-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
}
.course-hero__content,
.course-hero__card {
  min-width: 0;
}
.course-hero__content h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.course-hero__content h1 span {
  background: linear-gradient(135deg, #5f7fff, #af8fff 55%, #ffa57c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.course-hero__text {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 760px;
}
.course-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.course-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.course-hero-card {
  height: 100%;
  padding: 18px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.course-hero-card__image {
  width: 100%;
  border-radius: 24px;
  margin-bottom: 16px;
}
.course-hero-card__panel {
  display: grid;
  gap: 16px;
}
.price-box {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(127,178,255,.16), rgba(200,176,255,.16), rgba(255,197,154,.16));
}
.price-box__label {
  color: var(--muted);
  font-weight: 600;
}
.price-box__value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}
.price-points,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.price-points li,
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #39456e;
  line-height: 1.55;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e7eeff;
  color: #5570ff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mini-feature {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}
.mini-feature h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.mini-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.course-program {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: start;
}
.course-program__left p {
  color: var(--muted);
  line-height: 1.8;
}
.program-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.program-item {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
}
.program-item__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.program-item__head strong {
  font-size: 18px;
}
.program-item__head span {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #5a6ba3;
  background: #edf2ff;
  padding: 8px 12px;
  border-radius: 999px;
}
.program-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.course-side-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}
.course-side-card + .course-side-card {
  margin-top: 16px;
}
.course-side-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  justify-content: center;
}
.pricing-card {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.76));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 18px 40px rgba(58, 73, 139, 0.12);
  text-align: center;
}
.pricing-card__tag {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff0db;
  color: #7d5727;
  font-weight: 800;
  margin-bottom: 16px;
}
.pricing-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
}
.pricing-card__price {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}
.pricing-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.pricing-card .check-list {
  text-align: left;
  margin-bottom: 22px;
}
.pricing-card__button {
  width: 100%;
  justify-content: center;
}

.cta-box {
  padding: 30px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(127,178,255,.16), rgba(200,176,255,.18), rgba(255,197,154,.18));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-box h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}
.cta-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.cta-box__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

@media (max-width: 1100px) {
  .course-hero__grid,
  .course-program,
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-box {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-box__actions {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 860px) {
  .course-hero__grid,
  .course-program,
  .highlights-grid {
    grid-template-columns: 1fr;
  }
  .course-hero {
    padding-top: 26px;
  }
  .course-hero__text {
    font-size: 15.5px;
    line-height: 1.7;
  }
}
@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 13px;
    gap: 8px;
    margin-bottom: 18px;
  }
  .course-hero__content h1 {
    font-size: 32px;
  }
  .course-hero__actions {
    flex-direction: column;
  }
  .course-hero-card,
  .mini-feature,
  .program-item,
  .course-side-card,
  .pricing-card,
  .cta-box {
    border-radius: 22px;
  }
  .course-hero-card {
    padding: 12px;
  }
  .course-hero-card__image {
    border-radius: 18px;
  }
  .price-box {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .price-box__value {
    font-size: 28px;
  }
  .program-item__head {
    flex-direction: column;
  }
  .program-item__head span {
    white-space: normal;
  }
  .pricing-card {
    padding: 22px;
  }
  .pricing-card__price {
    font-size: 36px;
  }
}


/* lesson page */
.lesson-page {
  padding-bottom: 48px;
}
.lesson-top {
  padding: 34px 0 10px;
}
.lesson-top__bar {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
}
.lesson-top__bar h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.lesson-top__bar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 760px;
}
.lesson-status-card {
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.lesson-status-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}
.lesson-status-card__row span {
  color: var(--muted);
  font-weight: 600;
}
.lesson-status-card__row strong {
  font-size: 26px;
}
.lesson-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(98,115,188,.12);
  overflow: hidden;
}
.lesson-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d8dff, #b18dff 60%, #ffbd8f);
}
.lesson-status-card__meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4e5c89;
  font-weight: 600;
  font-size: 14px;
}

.lesson-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.lesson-sidebar {
  position: sticky;
  top: 102px;
}
.lesson-sidebar__card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.lesson-sidebar__card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.lesson-sidebar__muted {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.lesson-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.lesson-nav__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(242,245,255,.9);
  color: #32406b;
  transition: .25s ease;
}
.lesson-nav__item:hover {
  transform: translateY(-2px);
}
.lesson-nav__dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dfe7ff;
  color: #556ef9;
  font-size: 13px;
  font-weight: 800;
}
.lesson-nav__item.is-complete {
  background: #ecfdf4;
}
.lesson-nav__item.is-complete .lesson-nav__dot {
  background: #ccf3dd;
  color: #17945f;
}
.lesson-nav__item.is-current {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
  border: 1px solid rgba(97,116,195,.12);
}
.lesson-nav__item--final {
  background: #fff3e5;
}
.lesson-nav__item--final .lesson-nav__dot {
  background: #ffe3bc;
  color: #c17c10;
}
.lesson-sidebar__box {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(127,178,255,.16), rgba(200,176,255,.14), rgba(255,197,154,.12));
}
.lesson-sidebar__box strong {
  display: block;
  margin-bottom: 8px;
}
.lesson-sidebar__box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.lesson-main {
  min-width: 0;
}
.lesson-card {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.lesson-card + .lesson-card,
.lesson-bottom-nav {
  margin-top: 20px;
}
.lesson-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.lesson-card__label {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(239,243,255,.9);
  color: #5a6ba3;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 13px;
}
.lesson-card__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}
.lesson-chip {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff1e4;
  color: #8f5f1f;
  font-weight: 800;
  font-size: 13px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(135,185,255,.28), transparent 20%),
    radial-gradient(circle at 80% 18%, rgba(255,191,146,.26), transparent 16%),
    radial-gradient(circle at 75% 82%, rgba(203,183,255,.2), transparent 18%),
    linear-gradient(135deg, #20263d, #1f3556, #263f6e);
  display: grid;
  place-items: center;
}
.video-placeholder__overlay {
  text-align: center;
  color: #fff;
  padding: 22px;
}
.video-placeholder__play {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.video-placeholder__overlay strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}
.video-placeholder__overlay p {
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.7;
}

.lesson-content p {
  margin: 0 0 14px;
  color: #39456e;
  line-height: 1.85;
  font-size: 16.5px;
}
.lesson-content h3 {
  margin: 22px 0 12px;
  font-size: 24px;
}
.lesson-list {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #39456e;
}
.lesson-list li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.lesson-note {
  margin: 18px 0;
  padding: 18px;
  border-radius: 20px;
  line-height: 1.75;
}
.lesson-note--purple {
  background: #efe7ff;
}
.lesson-note--orange {
  background: #ffe8d8;
}
.lesson-illustration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0;
}
.lesson-illustration {
  padding: 20px;
  border-radius: 24px;
}
.lesson-illustration--blue {
  background: #dff0ff;
}
.lesson-illustration--orange {
  background: #ffe8d8;
}
.lesson-illustration__icon {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  font-weight: 800;
  font-size: 22px;
  color: #33416d;
}
.lesson-illustration h4 {
  margin: 0 0 8px;
  font-size: 20px;
}
.lesson-illustration p {
  margin: 0;
  color: #4d5c88;
}

.lesson-scheme {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.scheme-block {
  min-height: 84px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border-radius: 22px;
  font-weight: 800;
  color: #33416d;
}
.scheme-block--pink { background: #ffe1ef; }
.scheme-block--purple { background: #e9e2ff; }
.scheme-block--blue { background: #dff0ff; }
.scheme-block--mint { background: #ddf7ef; }
.scheme-arrow {
  font-size: 24px;
  font-weight: 800;
  color: #7a88b1;
}
.lesson-scheme__caption {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.lesson-quiz {
  display: grid;
  gap: 18px;
}
.quiz-question {
  padding: 18px;
  border-radius: 22px;
  background: rgba(244,247,255,.92);
}
.quiz-question h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.quiz-option {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  color: #39456e;
  line-height: 1.65;
}
.quiz-option input {
  margin-top: 4px;
}
.quiz-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(97,116,195,.18);
  background: #fff;
  font: inherit;
  color: #253158;
}
.quiz-textarea:focus {
  outline: none;
  border-color: rgba(95,127,255,.42);
  box-shadow: 0 0 0 4px rgba(95,127,255,.10);
}
.lesson-quiz__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lesson-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lesson-bottom-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  font-weight: 700;
}
.lesson-bottom-nav__link--next {
  background: linear-gradient(135deg, rgba(127,178,255,.16), rgba(200,176,255,.18), rgba(255,197,154,.18));
}

@media (max-width: 1180px) {
  .lesson-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}
@media (max-width: 980px) {
  .lesson-top__bar,
  .lesson-layout,
  .lesson-illustration-grid,
  .lesson-scheme {
    grid-template-columns: 1fr;
  }
  .lesson-sidebar {
    position: static;
  }
  .lesson-scheme {
    gap: 10px;
  }
  .scheme-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
@media (max-width: 640px) {
  .lesson-top {
    padding-top: 24px;
  }
  .lesson-top__bar h1 {
    font-size: 32px;
  }
  .lesson-top__bar p {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .lesson-status-card,
  .lesson-sidebar__card,
  .lesson-card,
  .quiz-question {
    border-radius: 22px;
  }
  .lesson-status-card,
  .lesson-sidebar__card,
  .lesson-card {
    padding: 18px;
  }
  .lesson-card__head {
    flex-direction: column;
  }
  .lesson-chip {
    white-space: normal;
  }
  .video-placeholder {
    border-radius: 18px;
  }
  .video-placeholder__play {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }
  .video-placeholder__overlay strong {
    font-size: 18px;
  }
  .lesson-content p,
  .lesson-list li,
  .lesson-sidebar__box p {
    font-size: 15.5px;
    line-height: 1.75;
  }
  .lesson-bottom-nav {
    flex-direction: column;
  }
  .lesson-bottom-nav__link {
    width: 100%;
  }
}


/* dashboard page */
.dashboard-page {
  padding-bottom: 48px;
}
.dashboard-top {
  padding: 34px 0 10px;
}
.dashboard-welcome {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items: center;
}
.dashboard-welcome__content h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.dashboard-welcome__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 760px;
}
.dashboard-profile-card {
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dashboard-profile-card__avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, #6f93ff, #d0a6ff 55%, #ffbe96);
}
.dashboard-profile-card strong {
  display: block;
  font-size: 20px;
}
.dashboard-profile-card p {
  margin: 4px 0 0;
  color: var(--muted);
}
.dashboard-mini-link {
  color: #5b6fff;
  font-weight: 800;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dashboard-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}
.dashboard-sidebar__card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.dashboard-sidebar__card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.dashboard-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #32406b;
  font-weight: 700;
  background: rgba(242,245,255,.9);
}
.dashboard-menu-item + .dashboard-menu-item {
  margin-top: 10px;
}
.dashboard-menu-item.is-active {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
  border: 1px solid rgba(97,116,195,.12);
}
.quick-actions {
  display: grid;
  gap: 10px;
}
.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: #edf2ff;
  color: #4f64d9;
  font-weight: 800;
}

.dashboard-main {
  min-width: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dashboard-kpi {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}
.dashboard-kpi span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.dashboard-kpi strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}
.dashboard-kpi small {
  color: #5c6b97;
}

.dashboard-block {
  margin-top: 20px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.dashboard-block__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dashboard-block__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.dashboard-courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dashboard-course-card {
  padding: 20px;
  border-radius: 24px;
  color: #32406b;
}
.dashboard-course-card--blue {
  background: #dff0ff;
}
.dashboard-course-card--purple {
  background: #e9e2ff;
}
.dashboard-course-card--orange {
  background: #ffe8d8;
}
.dashboard-course-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dashboard-course-card__top h3 {
  margin: 0;
  font-size: 24px;
}
.dashboard-badge {
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 800;
}
.dashboard-course-card p {
  margin: 0 0 16px;
  color: #4d5c88;
  line-height: 1.7;
}
.dashboard-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(72,92,156,.14);
  overflow: hidden;
}
.dashboard-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d8dff, #b18dff 60%, #ffbd8f);
}
.dashboard-course-card__meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}
.dashboard-course-card__meta a {
  color: #4f64d9;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chart-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(244,247,255,.92);
}
.chart-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}
.bars {
  display: grid;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 52px;
  gap: 12px;
  align-items: center;
}
.bar-row span,
.result-item span {
  color: #4e5c89;
  font-weight: 600;
}
.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(72,92,156,.14);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d8dff, #b18dff 60%, #ffbd8f);
}
.results-list {
  display: grid;
  gap: 12px;
}
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff;
}
.result-item strong {
  color: #3f53b3;
}
.dashboard-tip-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(127,178,255,.16), rgba(200,176,255,.16), rgba(255,197,154,.14));
}
.dashboard-tip-card strong {
  display: block;
  margin-bottom: 8px;
}
.dashboard-tip-card p {
  margin: 0;
  color: #4e5c89;
  line-height: 1.75;
}

.payments-table-wrap {
  overflow-x: auto;
}
.payments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.payments-table th,
.payments-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(76, 89, 142, 0.08);
}
.payments-table th {
  color: var(--muted);
  font-size: 14px;
}
.table-badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.table-badge--paid {
  background: #e7faef;
  color: #167b52;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(244,247,255,.92);
}
.profile-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}
.profile-field + .profile-field {
  margin-top: 14px;
}
.profile-field label {
  display: block;
  margin-bottom: 8px;
  color: #4e5c89;
  font-weight: 700;
}
.profile-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(97,116,195,.18);
  background: #fff;
  font: inherit;
  color: #253158;
}
.profile-field input:focus {
  outline: none;
  border-color: rgba(95,127,255,.42);
  box-shadow: 0 0 0 4px rgba(95,127,255,.10);
}
.profile-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .dashboard-courses {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .dashboard-welcome,
  .dashboard-layout,
  .dashboard-stats-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .dashboard-top {
    padding-top: 24px;
  }
  .dashboard-welcome__content h1 {
    font-size: 32px;
  }
  .dashboard-welcome__content p {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .dashboard-profile-card,
  .dashboard-sidebar__card,
  .dashboard-kpi,
  .dashboard-block,
  .dashboard-course-card,
  .chart-card,
  .profile-card {
    border-radius: 22px;
  }
  .dashboard-profile-card,
  .dashboard-sidebar__card,
  .dashboard-kpi,
  .dashboard-block {
    padding: 18px;
  }
  .dashboard-grid,
  .dashboard-courses {
    grid-template-columns: 1fr;
  }
  .dashboard-block__head {
    flex-direction: column;
  }
  .dashboard-course-card__top {
    flex-direction: column;
  }
}


/* auth pages */
.auth-page {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  padding: 26px 0 48px;
}
.auth-section {
  width: 100%;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 24px;
  align-items: center;
}
.auth-layout--narrow {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
.auth-side h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.auth-side p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 680px;
}
.auth-benefits {
  display: grid;
  gap: 12px;
}
.auth-benefit-card {
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #32406b;
}
.auth-card {
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.76));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.auth-card__head {
  margin-bottom: 18px;
}
.auth-card__head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}
.auth-card__text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-row--center {
  justify-content: center;
}
.auth-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: #4e5c89;
  line-height: 1.65;
}
.auth-checkbox input {
  margin-top: 4px;
}
.auth-checkbox--wide {
  padding: 4px 0;
}
.auth-footer-note {
  margin-top: 18px;
  text-align: center;
  color: #4e5c89;
}
.auth-footer-note a {
  color: #5b6fff;
  font-weight: 800;
}
.auth-muted {
  color: var(--muted);
}
.code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.code-input {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid rgba(97,116,195,.18);
  background: #fff;
  text-align: center;
  font: inherit;
  font-size: 26px;
  font-weight: 800;
  color: #253158;
}
.code-input:focus {
  outline: none;
  border-color: rgba(95,127,255,.42);
  box-shadow: 0 0 0 4px rgba(95,127,255,.10);
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-side {
    order: 2;
  }
  .auth-card {
    order: 1;
  }
}
@media (max-width: 640px) {
  .auth-page {
    padding: 20px 0 36px;
    min-height: auto;
  }
  .auth-card,
  .auth-benefit-card {
    border-radius: 22px;
  }
  .auth-card {
    padding: 20px;
  }
  .auth-side h1 {
    font-size: 32px;
  }
  .auth-side p,
  .auth-card__text {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .code-inputs {
    gap: 8px;
  }
  .code-input {
    border-radius: 14px;
    font-size: 22px;
  }
}


/* my course page */
.my-course-page {
  padding-bottom: 48px;
}
.my-course-top {
  padding: 34px 0 10px;
}
.my-course-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
  align-items: center;
}
.my-course-hero__content h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.my-course-hero__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 760px;
}
.my-course-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.my-course-summary {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.my-course-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.my-course-summary__row span {
  color: var(--muted);
  font-weight: 600;
}
.my-course-summary__row strong {
  font-size: 28px;
}
.my-course-summary__grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.summary-mini {
  padding: 16px;
  border-radius: 20px;
  background: rgba(244,247,255,.92);
}
.summary-mini strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}
.summary-mini span {
  color: #5c6b97;
  font-size: 14px;
}

.my-course-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.my-course-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}
.my-course-sidebar__card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.my-course-sidebar__card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.my-course-sidebar__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.my-course-anchor {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(242,245,255,.9);
  color: #32406b;
  font-weight: 700;
}
.my-course-anchor + .my-course-anchor {
  margin-top: 10px;
}
.my-course-anchor.is-current {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
  border: 1px solid rgba(97,116,195,.12);
}

.my-course-main {
  min-width: 0;
}
.topic-card {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.topic-card + .topic-card,
.my-course-extra,
.my-course-bottom-actions {
  margin-top: 20px;
}
.topic-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.topic-card__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}
.topic-card__status {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}
.topic-card__status--done {
  background: #e7faef;
  color: #167b52;
}
.topic-card__status--progress {
  background: #edf2ff;
  color: #4f64d9;
}
.topic-card__status--locked {
  background: #f0f2f8;
  color: #7582a7;
}
.topic-card__desc {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.topic-lessons {
  display: grid;
  gap: 12px;
}
.topic-lesson {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(244,247,255,.92);
  color: #32406b;
  transition: .25s ease;
}
.topic-lesson:hover {
  transform: translateY(-2px);
}
.topic-lesson__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #dfe7ff;
  color: #556ef9;
  font-weight: 800;
}
.topic-lesson strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.topic-lesson small {
  color: #5b6a96;
}
.topic-lesson--done {
  background: #ecfdf4;
}
.topic-lesson--done .topic-lesson__num {
  background: #ccf3dd;
  color: #17945f;
}
.topic-lesson--current {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
  border: 1px solid rgba(97,116,195,.12);
}
.topic-lesson--test {
  background: #fff3e5;
}
.topic-lesson--test .topic-lesson__num {
  background: #ffe3bc;
  color: #c17c10;
}
.topic-lesson--locked {
  background: #f3f5fa;
  color: #7582a7;
}
.topic-lesson--locked .topic-lesson__num {
  background: #e8ebf4;
  color: #8591b3;
}

.my-course-extra__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.my-course-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 980px) {
  .my-course-hero,
  .my-course-layout,
  .my-course-extra__grid {
    grid-template-columns: 1fr;
  }
  .my-course-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .my-course-top {
    padding-top: 24px;
  }
  .my-course-hero__content h1 {
    font-size: 32px;
  }
  .my-course-hero__content p,
  .topic-card__desc,
  .my-course-sidebar__card p {
    font-size: 15.5px;
    line-height: 1.75;
  }
  .my-course-hero__actions,
  .my-course-bottom-actions {
    flex-direction: column;
  }
  .my-course-summary,
  .my-course-sidebar__card,
  .topic-card,
  .summary-mini {
    border-radius: 22px;
  }
  .my-course-summary,
  .my-course-sidebar__card,
  .topic-card {
    padding: 18px;
  }
  .my-course-summary__grid {
    grid-template-columns: 1fr;
  }
  .topic-card__head {
    flex-direction: column;
  }
  .topic-lesson {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }
  .topic-lesson__num {
    width: 40px;
    height: 40px;
  }
}

/* admin */
.admin-page {
  padding: 30px 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.admin-card {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
}
.admin-block {
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
}
.admin-table {
  margin-top: 12px;
}
.admin-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
}


/* admin editor */
.admin-editor-page {
  padding-bottom: 48px;
}
.admin-editor-top {
  padding: 34px 0 10px;
}
.admin-editor-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}
.admin-editor-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.admin-editor-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 820px;
}
.admin-editor-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.admin-editor-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}
.admin-editor-card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.admin-editor-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.admin-editor-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(242,245,255,.9);
  color: #32406b;
  font-weight: 700;
}
.admin-editor-link + .admin-editor-link {
  margin-top: 10px;
}
.admin-editor-link.is-current {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
  border: 1px solid rgba(97,116,195,.12);
}

.admin-editor-main {
  min-width: 0;
}
.admin-editor-block {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.admin-editor-block + .admin-editor-block {
  margin-top: 20px;
}
.admin-editor-block__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-editor-block__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(97,116,195,.18);
  background: #fff;
  font: inherit;
  color: #253158;
}
.admin-textarea--lg {
  min-height: 180px;
}
.admin-textarea--xl {
  min-height: 260px;
}
.admin-textarea:focus {
  outline: none;
  border-color: rgba(95,127,255,.42);
  box-shadow: 0 0 0 4px rgba(95,127,255,.10);
}

.admin-topic-list {
  display: grid;
  gap: 14px;
}
.admin-topic-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(244,247,255,.92);
}
.admin-topic-item--current {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
}
.admin-topic-item__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.admin-topic-item__head strong {
  font-size: 20px;
}
.admin-topic-item p {
  margin: 0;
  color: #5c6b97;
}
.admin-topic-actions {
  display: flex;
  gap: 8px;
}
.admin-topic-actions button {
  border: 0;
  background: #fff;
  border-radius: 12px;
  min-width: 40px;
  min-height: 40px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(64,79,146,.08);
}

.admin-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-upload-card,
.admin-question-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(244,247,255,.92);
}
.admin-upload-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}
.admin-upload-card p {
  margin: 0 0 14px;
  color: #5c6b97;
  line-height: 1.75;
}

.admin-answers {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.admin-answer-option {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  color: #32406b;
  line-height: 1.65;
}

.publish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.publish-card {
  padding: 20px;
  border-radius: 24px;
}
.publish-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}
.publish-card p {
  margin: 0;
  line-height: 1.75;
  color: #4e5c89;
}
.publish-card--green {
  background: #e7faef;
}
.publish-card--purple {
  background: #efe7ff;
}

@media (max-width: 980px) {
  .admin-editor-hero,
  .admin-editor-layout,
  .admin-form-grid,
  .admin-upload-row,
  .publish-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .admin-editor-sidebar {
    position: static;
  }
  .admin-editor-hero__actions {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .admin-editor-top {
    padding-top: 24px;
  }
  .admin-editor-hero h1 {
    font-size: 32px;
  }
  .admin-editor-hero p {
    font-size: 15.5px;
    line-height: 1.7;
  }
  .admin-editor-block,
  .admin-editor-card,
  .admin-upload-card,
  .admin-question-card,
  .publish-card {
    border-radius: 22px;
  }
  .admin-editor-block,
  .admin-editor-card {
    padding: 18px;
  }
  .admin-editor-block__head,
  .admin-topic-item__head {
    flex-direction: column;
  }
}


/* updated tariffs */
.tariff-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tariff-mini-card {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.tariff-mini-card--pro {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,244,255,.9));
}
.tariff-mini-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tariff-mini-card h3 {
  margin: 0;
  font-size: 26px;
}
.tariff-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.tariff-badge--free { background: #e7faef; color: #167b52; }
.tariff-badge--standard { background: #edf2ff; color: #4f64d9; }
.tariff-badge--pro { background: #efe7ff; color: #7a53d9; }

.pricing-grid--triple {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}
.pricing-card--pro {
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,244,255,.86));
}
.pricing-card__tag--soft {
  background: #eaf7ef;
  color: #17704e;
}
.pricing-card__tag--pro {
  background: #f0e8ff;
  color: #7245d3;
}

/* dashboard additions */
.dashboard-split {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dashboard-mini-panel {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}
.dashboard-mini-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.dashboard-mini-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.dashboard-inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.dashboard-inline-pills span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf2ff;
  color: #56648e;
  font-size: 13px;
  font-weight: 800;
}
.dashboard-inline-pills .is-active {
  background: #efe7ff;
  color: #7245d3;
}

/* my course additions */
.access-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.access-matrix__item {
  padding: 18px;
  border-radius: 22px;
}
.access-matrix__item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}
.access-matrix__item span {
  color: #4e5c89;
  line-height: 1.7;
}
.access-matrix__item--free { background: #e7faef; }
.access-matrix__item--standard { background: #edf2ff; }
.access-matrix__item--pro { background: #efe7ff; }

/* messages */
.messages-page { padding-bottom: 48px; }
.messages-top { padding: 34px 0 10px; }
.messages-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.messages-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
}
.messages-sidebar__card,
.messages-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.messages-sidebar__card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.messages-sidebar__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.message-thread {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: rgba(242,245,255,.9);
  color: #32406b;
}
.message-thread + .message-thread { margin-top: 10px; }
.message-thread strong { display: block; margin-bottom: 4px; }
.message-thread span { color: #5c6b97; font-size: 14px; }
.message-thread.is-active {
  background: linear-gradient(135deg, rgba(127,178,255,.18), rgba(200,176,255,.22), rgba(255,197,154,.18));
}
.message-thread.has-unread {
  border: 1px solid rgba(85, 115, 255, 0.22);
  box-shadow: 0 10px 30px rgba(85, 115, 255, 0.08);
}
.message-thread__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.message-thread__badge {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #5573ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.message-thread__preview {
  display: block;
  margin-top: 6px;
  color: #5c6b97;
  font-size: 14px;
  line-height: 1.5;
}
.messages-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.messages-card__head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}
.chat-box {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}
.chat-message {
  max-width: 82%;
  padding: 16px 18px;
  border-radius: 22px;
}
.chat-message strong {
  display: block;
  margin-bottom: 6px;
}
.chat-message p {
  margin: 0;
  line-height: 1.75;
}
.chat-message--student {
  justify-self: end;
  background: #edf2ff;
}
.chat-message--teacher {
  justify-self: start;
  background: #efe7ff;
}
.chat-message.is-latest {
  box-shadow: 0 0 0 1px rgba(85, 115, 255, 0.14);
}
.message-compose__actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* group */
.group-page { padding-bottom: 48px; }
.group-top { padding: 34px 0 10px; }
.group-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
  align-items: center;
}
.group-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.group-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
  max-width: 780px;
}
.group-hero__stat {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.74));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}
.group-hero__stat strong {
  display: block;
  font-size: 38px;
  margin-bottom: 8px;
}
.group-hero__stat span {
  color: var(--muted);
}
.group-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.group-panel {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: var(--shadow);
}
.group-panel h3 {
  margin: 0 0 10px;
  font-size: 28px;
}
.group-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}
.announcement-list {
  display: grid;
  gap: 14px;
}
.announcement-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(244,247,255,.92);
}
.announcement-card strong {
  display: block;
  margin-bottom: 8px;
}
.announcement-card p {
  margin: 0;
  color: #4e5c89;
  line-height: 1.75;
}
.announcement-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}
.announcement-card__meta span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* payment stub */
.payment-summary-box {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(244,247,255,.92);
}
.payment-summary-box__row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.payment-summary-box__row + .payment-summary-box__row {
  margin-top: 10px;
}
.payment-summary-box__row span {
  color: var(--muted);
}
.payment-question {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(127,178,255,.16), rgba(200,176,255,.16), rgba(255,197,154,.14));
}
.payment-question h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.payment-question p {
  margin: 0;
  color: #4e5c89;
  line-height: 1.75;
}
.payment-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* admin new */
.tariff-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tariff-admin-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(244,247,255,.92);
}
.tariff-admin-card--pro {
  background: linear-gradient(180deg, rgba(244,247,255,.96), rgba(239,231,255,.9));
}
.tariff-admin-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tariff-admin-card__head strong {
  font-size: 24px;
}
.toggle-pill {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f0f2f8;
  color: #7582a7;
  font-size: 12px;
  font-weight: 800;
}
.toggle-pill.is-on {
  background: #e7faef;
  color: #167b52;
}
.txt-import-preview {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(76, 89, 142, 0.08);
  overflow-x: auto;
  white-space: pre-wrap;
  font: 14px/1.7 monospace;
  color: #2f3b65;
}

/* admin dashboard improve */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 16px;
}
.admin-card strong {
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

/* responsive */
@media (max-width: 1180px) {
  .admin-grid {
    grid-template-columns: repeat(3,1fr);
  }
  .dashboard-split,
  .tariff-preview-grid,
  .pricing-grid--triple,
  .tariff-admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  .messages-layout,
  .group-hero,
  .group-grid,
  .access-matrix {
    grid-template-columns: 1fr;
  }
  .messages-sidebar {
    position: static;
  }
}
@media (max-width: 640px) {
  .tariff-preview-grid,
  .pricing-grid--triple,
  .dashboard-split,
  .access-matrix,
  .group-grid,
  .tariff-admin-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .messages-sidebar__card,
  .messages-card,
  .group-panel,
  .group-hero__stat,
  .payment-summary-box,
  .payment-question,
  .tariff-mini-card,
  .dashboard-mini-panel,
  .announcement-card,
  .tariff-admin-card {
    border-radius: 22px;
  }
  .messages-sidebar__card,
  .messages-card,
  .group-panel,
  .group-hero__stat,
  .tariff-mini-card,
  .dashboard-mini-panel,
  .tariff-admin-card {
    padding: 18px;
  }
  .messages-card__head,
  .payment-actions,
  .message-compose__actions {
    flex-direction: column;
  }
  .chat-message {
    max-width: 100%;
  }
  .group-hero h1,
  .messages-card__head h1 {
    font-size: 32px;
  }
}

.form-alert {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(76, 89, 142, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #314069;
  font-weight: 600;
}
.form-alert--error {
  background: rgba(255, 196, 223, 0.34);
  border-color: rgba(196, 86, 122, 0.18);
  color: #8d3553;
}
.form-alert--success {
  background: rgba(200, 240, 230, 0.55);
  border-color: rgba(60, 146, 120, 0.16);
  color: #236b59;
}
.form-alert--info {
  background: rgba(189, 232, 255, 0.45);
  border-color: rgba(68, 125, 255, 0.15);
  color: #2d4d96;
}
.form-alert.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dashboard-flash-wrap {
  padding-top: 24px;
}
.profile-form-inline {
  display: grid;
  gap: 14px;
}
.profile-actions--stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.course-card__meta li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 52px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.95fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.68));
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 22px 60px rgba(64, 79, 146, 0.12);
}

.site-footer__brand,
.site-footer__block {
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(76, 89, 142, 0.08);
}

.site-footer__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.site-footer__badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6f93ff, #d0a6ff 55%, #ffbe96);
  box-shadow: 0 12px 24px rgba(98, 112, 198, 0.22);
}

.site-footer__brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.site-footer__inner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer__label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.95);
  border: 1px solid rgba(76, 89, 142, 0.08);
  color: #57679c;
  font-size: 13px;
  font-weight: 700;
}

.site-footer__links,
.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(248, 249, 255, 0.95);
  border: 1px solid rgba(76, 89, 142, 0.08);
  color: #314069;
  text-decoration: none;
  font-weight: 600;
  transition: .25s ease;
}

.site-footer a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 91, 156, 0.12);
}

.content-page-shell {
  padding: 32px;
  border-radius: 28px;
  background: rgba(12, 19, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(7, 12, 28, 0.3);
}

.content-page-body {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.content-page-body p,
.content-page-body ul,
.content-page-body ol,
.content-page-body h2,
.content-page-body h3 {
  margin: 0 0 18px;
}

.content-page-body ul,
.content-page-body ol {
  padding-left: 20px;
}

.content-page-body a {
  color: #8fd4ff;
}

.empty-card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.72);
}

.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .site-footer__brand,
  .site-footer__block {
    padding: 16px;
  }

  .course-card__meta {
    gap: 8px;
  }

  .content-page-shell {
    padding: 22px;
  }
}

.table-badge--failed {
  background: rgba(255, 128, 128, 0.16);
  color: #ffb3b3;
}

.payment-actions--stack {
  flex-wrap: wrap;
}

.video-embed-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 28, 0.72);
  box-shadow: 0 24px 80px rgba(7, 12, 28, 0.3);
}

.video-embed-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.paywall-banner {
  margin-top: 18px;
}

.lesson-bottom-nav__link--disabled {
  opacity: 0.6;
  pointer-events: none;
}

.lesson-nav__item.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.topic-lesson__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.topic-lesson__actions a {
  color: #8fd4ff;
  text-decoration: none;
  font-size: 14px;
}

.test-review-list {
  display: grid;
  gap: 16px;
}

.test-review-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.test-review-item.is-correct {
  border-color: rgba(110, 227, 163, 0.3);
}

.test-review-item.is-wrong {
  border-color: rgba(255, 128, 128, 0.28);
}

.test-review-item__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.message-subject {
  flex: 1 1 260px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.chat-message small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.55);
}

.announcement-card a,
.test-review-item a {
  color: #8fd4ff;
  text-decoration: none;
}

.profile-field select,
.profile-field textarea,
.profile-field input[type="number"],
.profile-field input[type="datetime-local"],
.profile-field input[type="url"] {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 14px 16px;
}

.profile-field select:focus,
.profile-field textarea:focus {
  outline: none;
  border-color: rgba(143, 212, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(143, 212, 255, 0.08);
}

.admin-row button {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(143, 212, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.admin-row button:hover {
  background: rgba(143, 212, 255, 0.2);
}

.content-page-shell h3 {
  margin: 0 0 10px;
}

.state-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(76, 89, 142, 0.1);
  box-shadow: 0 16px 38px rgba(65, 79, 145, 0.1);
}
.state-card + .state-card {
  margin-top: 16px;
}
.state-card__eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 12px;
  background: rgba(76, 89, 142, 0.08);
  color: #56689c;
}
.state-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
}
.state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.state-card__meta {
  margin-top: 12px;
  color: #46537d;
  font-size: 14px;
  font-weight: 600;
}
.state-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.state-card--warning {
  background: linear-gradient(180deg, rgba(255, 246, 237, 0.92), rgba(255,255,255,.86));
}
.state-card--info {
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.95), rgba(255,255,255,.86));
}
.state-card--success {
  background: linear-gradient(180deg, rgba(238, 253, 246, 0.95), rgba(255,255,255,.86));
}
.state-card--error {
  background: linear-gradient(180deg, rgba(255, 241, 243, 0.95), rgba(255,255,255,.86));
}
.state-card--loading {
  position: relative;
  overflow: hidden;
}
.state-card--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: translateX(-100%);
  animation: stateShimmer 1.8s infinite;
}
.state-card__skeleton {
  height: 14px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(118,136,196,.10), rgba(118,136,196,.18), rgba(118,136,196,.10));
}
.state-card__skeleton--wide { width: 100%; }
.state-card__skeleton--mid { width: 72%; }
.state-card__skeleton--short { width: 46%; }
.form-loading,
.is-loading {
  pointer-events: none;
}
.btn.is-loading,
button.is-loading {
  opacity: .78;
  transform: none;
}
.btn[disabled],
button[disabled] {
  opacity: .6;
  cursor: not-allowed;
}
.profile-field input.is-invalid,
.profile-field textarea.is-invalid,
.profile-field select.is-invalid {
  border-color: #d95f68;
  box-shadow: 0 0 0 4px rgba(217, 95, 104, 0.14);
}
.form-inline-error {
  margin-top: 8px;
  color: #b24653;
  font-size: 13px;
  line-height: 1.45;
}
.form-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.admin-preview-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}
.admin-preview-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}
.admin-preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
@keyframes stateShimmer {
  100% { transform: translateX(100%); }
}

.section-actions-center {
  justify-content: center;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(76, 89, 142, 0.08);
  box-shadow: 0 14px 28px rgba(64, 79, 146, 0.07);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(76, 89, 142, 0.14);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.92);
}

.contact-form textarea {
  resize: vertical;
  min-height: 144px;
}

.profile-field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.content-page-shell {
  max-width: 900px;
}

.highlights-grid .review-card {
  min-height: 100%;
}
