:root {
  --ink: #f7f3ea;
  --text: #191a22;
  --muted: #777f8d;
  --paper: #f8f2e8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(24, 26, 34, 0.12);
  --dark: #101119;
  --dark-2: #1b1d28;
  --coral: #ff566b;
  --cyan: #18c8df;
  --lime: #c9ec5f;
  --gold: #f2bc55;
  --violet: #7c5cff;
  --shadow: 0 22px 60px rgba(18, 19, 27, 0.16);
  --soft-shadow: 0 14px 34px rgba(18, 19, 27, 0.1);
  /* Путь относительный: файл лежит в static/css/, картинки — в static/assets/.
     collectstatic перепишет ссылку на версию с хешем в имени. */
  --cover-image: url("../assets/hero-ai-animation.4d3cbcd8a265.png");
}

/* Fullscreen MotionSites-style hero scene */
.site-header {
  position: fixed;
  right: 0;
  left: 0;
  background: rgba(255, 250, 246, 0.7);
}

main#top {
  padding-top: 0;
}

.hero-carousel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(112px, 13vh, 150px) clamp(18px, 5vw, 92px) clamp(88px, 10vh, 128px);
  background:
    radial-gradient(circle at 76% 26%, color-mix(in srgb, var(--hero-character-bg, #f7a16e) 48%, transparent), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 86, 107, 0.16), transparent 30%),
    radial-gradient(circle at 52% 86%, rgba(124, 92, 255, 0.12), transparent 40%),
    linear-gradient(135deg, #fff8f2 0%, #f5f7fb 48%, #e9f7f5 100%);
}

.hero-carousel .hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.94) 0%, rgba(255, 250, 246, 0.78) 31%, rgba(255, 250, 246, 0.2) 58%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 28vh;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0), rgba(255, 250, 246, 0.72));
  pointer-events: none;
}

.hero-carousel-copy {
  z-index: 6;
  width: min(590px, 48vw);
  padding: clamp(18px, 2.5vw, 34px) 0;
}

.hero-carousel-copy h1 {
  max-width: 13ch;
  font-size: clamp(46px, 5.7vw, 88px);
  line-height: 0.98;
}

.hero-carousel-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(17px, 1.35vw, 21px);
  color: #5d6473;
}

.hero-carousel .hero-cta-row {
  display: none;
}

.character-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 100vh;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.character-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 42%, color-mix(in srgb, var(--hero-character-panel, #f9bc91) 68%, transparent), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.66), transparent 28%),
    radial-gradient(circle at 76% 88%, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--hero-character-bg, #f7a16e) 24%, transparent), rgba(255, 255, 255, 0));
}

.character-hero::after {
  right: -10%;
  bottom: -24%;
  width: min(680px, 48vw);
  background: color-mix(in srgb, var(--hero-character-panel, #f9bc91) 24%, white 16%);
  opacity: 0.48;
}

.character-ghost {
  inset: 14vh 2vw auto;
  z-index: 1;
  color: rgba(16, 17, 25, 0.045);
  font-size: clamp(90px, 20vw, 310px);
  line-height: 0.8;
  text-align: right;
  white-space: nowrap;
}

.character-stage {
  z-index: 2;
}

.character-card {
  left: 69%;
  bottom: 5vh;
  width: min(36vw, 520px);
  max-height: 78vh;
}

.character-card.is-center {
  z-index: 5;
  opacity: 1;
  filter: drop-shadow(0 42px 34px rgba(20, 23, 35, 0.18)) saturate(1.04);
  transform: translateX(-50%) scale(1.42);
}

.character-card.is-left {
  z-index: 3;
  opacity: 0.74;
  filter: blur(2px) saturate(0.84);
  transform: translateX(-115%) translateY(7%) scale(0.82) rotate(-4deg);
}

.character-card.is-right {
  z-index: 3;
  opacity: 0.76;
  filter: blur(2px) saturate(0.84);
  transform: translateX(12%) translateY(7%) scale(0.82) rotate(4deg);
}

.character-card.is-back {
  z-index: 2;
  opacity: 0.46;
  filter: blur(4px) saturate(0.7);
  transform: translateX(-50%) translateY(-3%) scale(0.62);
}

.character-label {
  left: auto;
  right: clamp(20px, 6vw, 92px);
  bottom: clamp(104px, 12vh, 150px);
  max-width: min(380px, 34vw);
  border-radius: 18px;
  background: rgba(16, 17, 25, 0.18);
}

.character-nav {
  z-index: 8;
  top: 54%;
}

.character-nav-prev {
  left: min(58vw, 760px);
}

.character-nav-next {
  right: clamp(18px, 4vw, 64px);
}

@media (max-width: 980px) {
  .hero-carousel {
    min-height: 100vh;
    padding-top: 102px;
    padding-bottom: 86px;
  }

  .hero-carousel-copy {
    width: min(620px, 86vw);
    align-self: flex-start;
  }

  .hero-carousel-copy h1 {
    font-size: clamp(42px, 10vw, 76px);
  }

  .character-card {
    left: 58%;
    bottom: 3vh;
    width: min(62vw, 440px);
    max-height: 56vh;
  }

  .character-card.is-center {
    transform: translateX(-50%) scale(1.02);
  }

  .character-card.is-left,
  .character-card.is-right {
    opacity: 0;
  }

  .character-label {
    right: 16px;
    bottom: 82px;
    max-width: min(360px, calc(100vw - 32px));
  }

  .character-nav-prev {
    left: 16px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 8px 10px;
  }

  .hero-carousel {
    min-height: 100vh;
    padding: 92px 18px 82px;
  }

  .hero-carousel-copy {
    width: 100%;
  }

  .hero-carousel-copy h1 {
    max-width: 12ch;
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-carousel-copy p:not(.eyebrow) {
    max-width: 310px;
    font-size: 15px;
  }

  .character-ghost {
    top: 48vh;
    font-size: clamp(54px, 18vw, 82px);
    opacity: 0.6;
  }

  .character-card {
    left: 58%;
    bottom: 7vh;
    width: min(82vw, 330px);
    max-height: 42vh;
  }

  .character-label {
    display: none;
  }

  .character-nav {
    top: 70%;
  }
}

/* Mockup override: blue single-screen hero, appended last on purpose. */
body .site-header {
  position: fixed;
  top: 22px;
  right: 28px;
  left: 28px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

body .site-header::before {
  content: "AI-анимация на Syntx";
  justify-self: start;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

body .main-menu-bar {
  justify-self: center;
  width: auto;
  min-width: min(710px, 54vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 70px rgba(31, 56, 83, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
}

body .main-menu-link {
  min-width: 128px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 13px;
  color: rgba(18, 23, 34, 0.76);
  font-size: 15px;
  font-weight: 900;
}

body .main-menu-link::after {
  display: none;
}

body .main-menu-link:hover {
  background: rgba(255, 255, 255, 0.34);
  color: #151822;
}

body .main-menu-link.is-active,
body .main-menu-link.is-active:not(.main-menu-order) {
  background: rgba(255, 255, 255, 0.58);
  color: #151822;
  box-shadow: inset 0 -3px 0 #6858ff;
}

body .main-menu-order,
body .main-menu-order.is-active,
body .main-menu-order:hover {
  color: #fff;
  background: linear-gradient(135deg, #f4577e, #8759f4);
  box-shadow: 0 20px 48px rgba(164, 78, 215, 0.36);
}

body .auth-button {
  justify-self: end;
  min-width: 174px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(18, 23, 34, 0.78);
  font-size: 15px;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body .auth-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 44px rgba(31, 56, 83, 0.16);
}

body .hero-carousel {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  background:
    radial-gradient(circle at 18% 46%, rgba(255, 255, 255, 0.5), transparent 22%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #6eb5ff 0%, #86c2ff 50%, #6eb5ff 100%);
}

body .hero-carousel .hero-shade {
  z-index: 4;
  background: transparent;
}

body .hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  height: auto;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

body .hero-carousel::after {
  display: none;
}

body .hero-carousel-copy {
  position: absolute;
  left: 6vw;
  bottom: 12vh;
  z-index: 12;
  width: min(460px, 34vw);
  padding: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(34, 57, 89, 0.18);
}

body .hero-carousel-copy .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

body .hero-carousel-copy h1 {
  max-width: 460px;
  color: #fff;
  font-size: clamp(32px, 3.25vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

body .hero-carousel-copy p:not(.eyebrow) {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

body .hero-carousel .hero-cta-row {
  display: none;
}

body .character-hero,
body .character-hero-bg {
  background: transparent;
}

body .character-hero::after {
  display: none;
}

body .character-ghost {
  inset: 15% 0 auto;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(116px, 22vw, 340px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

body .character-card {
  left: 56%;
  bottom: -5.5vh;
  width: auto;
  height: 86vh;
  max-height: none;
  filter: drop-shadow(0 36px 42px rgba(31, 50, 83, 0.18));
}

body .character-card.is-center {
  z-index: 5;
  opacity: 1;
  filter: drop-shadow(0 36px 42px rgba(31, 50, 83, 0.18));
  transform: translateX(-50%) scale(1);
}

body .character-card.is-left {
  left: 36%;
  bottom: 15vh;
  z-index: 3;
  height: 27vh;
  opacity: 0.38;
  filter: blur(1.5px) drop-shadow(0 28px 28px rgba(31, 50, 83, 0.12));
  transform: translateX(-50%) scale(1);
}

body .character-card.is-right {
  left: 78%;
  bottom: 15vh;
  z-index: 3;
  height: 28vh;
  opacity: 0.42;
  filter: blur(1.4px) drop-shadow(0 28px 28px rgba(31, 50, 83, 0.12));
  transform: translateX(-50%) scale(1);
}

body .character-card.is-back {
  left: 64%;
  bottom: 19vh;
  z-index: 2;
  height: 22vh;
  opacity: 0.22;
  filter: blur(3px);
  transform: translateX(-50%) scale(1);
}

body .character-label {
  right: 5.8vw;
  bottom: 12vh;
  z-index: 13;
  width: 255px;
  max-width: 255px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(30, 47, 69, 0.14);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

body .character-label span {
  margin-bottom: 7px;
  color: #d7ff5d;
  font-size: 12px;
}

body .character-label strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
}

body .character-nav {
  top: auto;
  bottom: 3.5vh;
  z-index: 14;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  box-shadow: none;
}

body .character-nav-prev {
  left: 6vw;
}

body .character-nav-next {
  right: auto;
  left: calc(6vw + 70px);
}

@media (max-width: 800px) {
  body .site-header {
    top: 22px;
    right: 16px;
    left: 16px;
    grid-template-columns: 1fr auto;
  }

  body .site-header::before {
    max-width: 150px;
    font-size: 12px;
    line-height: 1.2;
  }

  body .main-menu-bar {
    display: none;
  }

  body .auth-button {
    min-width: 156px;
    min-height: 49px;
    padding: 0 16px;
    font-size: 15px;
  }

  body .hero-carousel-copy {
    top: 128px;
    right: 22px;
    bottom: auto;
    left: 22px;
    width: auto;
    max-width: 330px;
  }

  body .hero-carousel-copy h1 {
    max-width: 320px;
    font-size: 36px;
    line-height: 1.03;
  }

  body .hero-carousel-copy p:not(.eyebrow) {
    max-width: 300px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  body .character-ghost {
    top: 40%;
    right: auto;
    left: -8%;
    width: 116%;
    font-size: 28vw;
    line-height: 0.85;
    text-align: left;
    opacity: 0.42;
  }

  body .character-card {
    left: 59%;
    bottom: 4vh;
    width: auto;
    height: 49vh;
    max-height: none;
  }

  body .character-card.is-center {
    transform: translateX(-50%) scale(1);
  }

  body .character-card.is-left,
  body .character-card.is-right,
  body .character-card.is-back {
    display: none;
  }

  body .character-label {
    right: 16px;
    bottom: 92px;
    width: 190px;
    max-width: 190px;
    padding: 12px 14px;
  }

  body .character-label span {
    font-size: 10px;
  }

  body .character-label strong {
    font-size: 19px;
  }

  body .character-nav {
    bottom: 24px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  body .character-nav-prev {
    left: 22px;
  }

  body .character-nav-next {
    left: 82px;
  }
}

/* Final visual pass: match the provided blue MotionSites-style mockup */
.site-header {
  position: fixed;
  top: 22px;
  right: 28px;
  left: 28px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-header::before {
  content: "AI-анимация на Syntx";
  justify-self: start;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.main-menu-bar {
  justify-self: center;
  width: auto;
  min-width: min(710px, 54vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 70px rgba(31, 56, 83, 0.16);
  backdrop-filter: blur(18px) saturate(1.15);
}

.main-menu-link {
  min-width: 128px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 13px;
  color: rgba(18, 23, 34, 0.76);
  font-size: 15px;
  font-weight: 900;
}

.main-menu-link:hover {
  background: rgba(255, 255, 255, 0.34);
  color: #151822;
}

.main-menu-link.is-active,
.main-menu-link.is-active:not(.main-menu-order) {
  background: rgba(255, 255, 255, 0.58);
  color: #151822;
  box-shadow: inset 0 -3px 0 #6858ff;
}

.main-menu-link::after,
.main-menu-link.is-active::after,
.main-menu-link.is-active:not(.main-menu-order)::after {
  display: none;
}

.main-menu-order,
.main-menu-order.is-active,
.main-menu-order:hover {
  color: #fff;
  background: linear-gradient(135deg, #f4577e, #8759f4);
  box-shadow: 0 20px 48px rgba(164, 78, 215, 0.36);
}

.auth-button {
  justify-self: end;
  min-width: 174px;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  color: rgba(18, 23, 34, 0.78);
  font-size: 15px;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.auth-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 44px rgba(31, 56, 83, 0.16);
}

.hero-carousel {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  background:
    radial-gradient(circle at 18% 46%, rgba(255, 255, 255, 0.5), transparent 22%),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, #6eb5ff 0%, #86c2ff 50%, #6eb5ff 100%);
}

.hero-carousel .hero-shade {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(69, 150, 230, 0.02), rgba(69, 150, 230, 0)),
    linear-gradient(180deg, rgba(71, 153, 234, 0), rgba(71, 153, 234, 0.08));
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero-carousel::after {
  display: none;
}

.hero-carousel-copy {
  position: absolute;
  left: 6vw;
  bottom: 13.5vh;
  z-index: 12;
  width: min(460px, 34vw);
  padding: 0;
  color: #fff;
  text-shadow: 0 2px 18px rgba(34, 57, 89, 0.18);
}

.hero-carousel-copy .eyebrow {
  color: rgba(255, 255, 255, 0.92);
}

.hero-carousel-copy h1 {
  max-width: 460px;
  color: #fff;
  font-size: clamp(34px, 3.45vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-carousel-copy p:not(.eyebrow) {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.character-hero {
  background: transparent;
}

.character-hero-bg {
  background: transparent;
}

.character-hero::after {
  display: none;
}

.character-ghost {
  inset: 15% 0 auto;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(116px, 22vw, 340px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.character-card {
  left: 56%;
  bottom: -5.5vh;
  width: auto;
  height: 86vh;
  max-height: none;
  filter: drop-shadow(0 36px 42px rgba(31, 50, 83, 0.18));
}

.character-card.is-center {
  z-index: 5;
  opacity: 1;
  filter: drop-shadow(0 36px 42px rgba(31, 50, 83, 0.18));
  transform: translateX(-50%) scale(1);
}

.character-card.is-left {
  left: 36%;
  bottom: 15vh;
  z-index: 3;
  height: 27vh;
  opacity: 0.38;
  filter: blur(1.5px) drop-shadow(0 28px 28px rgba(31, 50, 83, 0.12));
  transform: translateX(-50%) scale(1);
}

.character-card.is-right {
  left: 78%;
  bottom: 15vh;
  z-index: 3;
  height: 28vh;
  opacity: 0.42;
  filter: blur(1.4px) drop-shadow(0 28px 28px rgba(31, 50, 83, 0.12));
  transform: translateX(-50%) scale(1);
}

.character-card.is-back {
  left: 64%;
  bottom: 19vh;
  z-index: 2;
  height: 22vh;
  opacity: 0.22;
  filter: blur(3px);
  transform: translateX(-50%) scale(1);
}

.character-label {
  right: 5.8vw;
  bottom: 12vh;
  z-index: 13;
  width: 255px;
  max-width: 255px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(30, 47, 69, 0.14);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.character-label span {
  margin-bottom: 7px;
  color: #d7ff5d;
  font-size: 12px;
}

.character-label strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
}

.character-nav {
  top: auto;
  bottom: 3.5vh;
  z-index: 14;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  box-shadow: none;
}

.character-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 36px rgba(31, 56, 83, 0.16);
}

.character-nav-prev {
  left: 6vw;
}

.character-nav-next {
  right: auto;
  left: calc(6vw + 70px);
}

@media (max-width: 800px) {
  .site-header {
    top: 22px;
    right: 16px;
    left: 16px;
    grid-template-columns: 1fr auto;
  }

  .site-header::before {
    max-width: 150px;
    font-size: 12px;
    line-height: 1.2;
  }

  .main-menu-bar {
    display: none;
  }

  .auth-button {
    min-width: 156px;
    min-height: 49px;
    padding: 0 16px;
    font-size: 15px;
  }

  .hero-carousel-copy {
    top: 128px;
    right: 22px;
    bottom: auto;
    left: 22px;
    width: auto;
    max-width: 330px;
  }

  .hero-carousel-copy h1 {
    max-width: 320px;
    font-size: 36px;
    line-height: 1.03;
  }

  .hero-carousel-copy p:not(.eyebrow) {
    max-width: 300px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .character-ghost {
    top: 40%;
    right: auto;
    left: -8%;
    width: 116%;
    font-size: 28vw;
    line-height: 0.85;
    text-align: left;
    opacity: 0.42;
  }

  .character-card {
    left: 59%;
    bottom: 4vh;
    height: 49vh;
    width: auto;
    max-height: none;
  }

  .character-card.is-center {
    transform: translateX(-50%) scale(1);
  }

  .character-card.is-left,
  .character-card.is-right,
  .character-card.is-back {
    display: none;
  }

  .character-label {
    right: 16px;
    bottom: 92px;
    width: 190px;
    max-width: 190px;
    padding: 12px 14px;
  }

  .character-label span {
    font-size: 10px;
  }

  .character-label strong {
    font-size: 19px;
  }

  .character-nav {
    bottom: 24px;
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .character-nav-prev {
    left: 22px;
  }

  .character-nav-next {
    left: 82px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 86, 107, 0.12), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(24, 200, 223, 0.15), transparent 34%),
    radial-gradient(circle at 58% 88%, rgba(124, 92, 255, 0.09), transparent 34%),
    linear-gradient(135deg, #fffaf4 0%, #f5efe6 46%, #edf5f2 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.auth-button {
  position: static;
  z-index: 2;
  min-width: 132px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(242, 250, 249, 0.68));
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 880;
  box-shadow:
    0 12px 28px rgba(20, 23, 35, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(14px, 4vw, 44px);
  background: rgba(255, 250, 246, 0.76);
  border-bottom: 1px solid rgba(16, 17, 25, 0.08);
  backdrop-filter: blur(22px) saturate(1.2);
}

.auth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.34);
  box-shadow:
    0 16px 34px rgba(20, 23, 35, 0.12),
    0 0 0 4px rgba(124, 92, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 58vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: clamp(76px, 10vw, 128px) clamp(18px, 6vw, 80px) clamp(42px, 6vw, 72px);
  isolation: isolate;
}

.hero-home {
  min-height: 58vh;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 86, 107, 0.28), transparent 34%),
    radial-gradient(circle at 76% 18%, rgba(24, 200, 223, 0.26), transparent 36%),
    radial-gradient(circle at 58% 88%, rgba(124, 92, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #101119 0%, #171925 52%, #222735 100%);
}

.hero-carousel {
  min-height: min(760px, calc(100vh - 82px));
  align-items: center;
  grid-template-columns: minmax(280px, 0.78fr) minmax(500px, 1.22fr);
  gap: clamp(24px, 5vw, 70px);
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(58px, 7vw, 92px);
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 86, 107, 0.28), transparent 32%),
    radial-gradient(circle at 72% 16%, rgba(24, 200, 223, 0.28), transparent 34%),
    radial-gradient(circle at 56% 86%, rgba(124, 92, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #fff7ef 0%, #f2f4f8 48%, #e9f7f5 100%);
}

.hero-page {
  min-height: 52vh;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.01);
}

.hero-home .hero-image {
  display: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 10, 16, 0.92) 0%, rgba(9, 10, 16, 0.72) 42%, rgba(9, 10, 16, 0.22) 100%),
    linear-gradient(180deg, rgba(9, 10, 16, 0.08) 0%, rgba(9, 10, 16, 0.7) 100%);
  z-index: 0;
}

.hero-home .hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 11, 18, 0.2), rgba(10, 11, 18, 0.08)),
    linear-gradient(180deg, rgba(10, 11, 18, 0.04), rgba(10, 11, 18, 0.26));
}

.hero-carousel .hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.42));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 6vw, 80px) 22px clamp(18px, 3vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, var(--coral), var(--cyan), transparent);
  opacity: 0.8;
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(790px, 100%);
  color: white;
}

.hero-carousel-copy {
  position: relative;
  z-index: 2;
  color: var(--text);
}

.hero-carousel-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
}

.hero-carousel-copy p:not(.eyebrow) {
  max-width: 520px;
  color: #545c6a;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-cta-row .button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #5d50d9;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(93, 80, 217, 0.26);
  text-underline-offset: 5px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    transform 180ms ease;
}

.hero-text-link:hover {
  color: #ff566b;
  text-decoration-color: rgba(255, 86, 107, 0.44);
  transform: translateY(-1px);
}

.cta-mobile {
  display: none;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 9px;
  border: 1px solid rgba(18, 23, 34, 0.06);
  border-radius: 999px;
  background: rgba(18, 23, 34, 0.08);
  color: var(--lime);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.hero h1,
.section-heading h2,
.soon-section h2,
.video-detail h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0;
}

.hero-page h1 {
  max-width: 15ch;
  font-size: clamp(32px, 4.3vw, 52px);
}

.hero-copy {
  width: min(660px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.filter-button,
.copy-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.button:hover,
.filter-button:hover,
.copy-button:hover,
.cover-upload:hover,
.main-menu-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--coral), var(--violet));
  color: white;
  box-shadow: 0 14px 34px rgba(255, 86, 107, 0.24);
}

.button-secondary {
  background: linear-gradient(135deg, #202331, #5f49e8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 28px rgba(95, 73, 232, 0.24);
  backdrop-filter: blur(14px);
}

.button-secondary:hover {
  background: linear-gradient(135deg, #151722, #7c5cff);
  box-shadow: 0 16px 34px rgba(95, 73, 232, 0.32);
}

.screen-menu {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(16, 17, 25, 0.1);
  border-bottom: 1px solid rgba(16, 17, 25, 0.12);
  backdrop-filter: blur(20px);
}

.main-menu-bar {
  position: static;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(960px, 100%);
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 250, 0.72)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    0 22px 52px rgba(20, 23, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(1.25);
}

.main-menu-link {
  position: relative;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #596171;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.main-menu-link::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 9px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--cyan), var(--violet));
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.panel-stage {
  min-height: 42vh;
}

.content-panel {
  display: none;
  animation: panelFade 260ms ease both;
}

.content-panel.is-active {
  display: block;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-menu-link:hover {
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.98), rgba(236, 251, 249, 0.96));
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 10px 22px rgba(18, 19, 27, 0.08);
  transform: translateY(-1px);
}

.main-menu-link.is-active {
  background:
    linear-gradient(135deg, rgba(232, 238, 244, 0.96), rgba(222, 240, 237, 0.92));
  color: #151720;
  box-shadow:
    inset 0 0 0 1px rgba(16, 17, 25, 0.08),
    0 12px 24px rgba(20, 23, 35, 0.09);
  transform: translateY(-1px);
}

.main-menu-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-menu-link.is-active:not(.main-menu-order) {
  background:
    linear-gradient(135deg, rgba(235, 240, 246, 0.98), rgba(224, 241, 238, 0.94));
  color: #151720;
}

.main-menu-link.is-active:not(.main-menu-order)::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-menu-order {
  background:
    linear-gradient(135deg, rgba(255, 86, 107, 0.96), rgba(124, 92, 255, 0.94));
  color: white;
  box-shadow: 0 14px 30px rgba(255, 86, 107, 0.24);
}

.main-menu-order:hover {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 72, 100, 1), rgba(124, 92, 255, 1));
  box-shadow:
    0 18px 36px rgba(255, 86, 107, 0.3),
    0 0 0 4px rgba(124, 92, 255, 0.1);
}

.main-menu-order.is-active {
  color: white;
  background: linear-gradient(135deg, rgba(255, 72, 100, 1), rgba(124, 92, 255, 1));
  box-shadow:
    0 18px 36px rgba(255, 86, 107, 0.32),
    0 0 0 4px rgba(124, 92, 255, 0.1);
}

.main-menu-order::after {
  background: rgba(255, 255, 255, 0.8);
}

.menu-link {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px clamp(14px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.menu-link span {
  font-weight: 920;
}

.menu-link small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.menu-link:hover,
.menu-link.is-active {
  background: var(--dark);
  color: white;
}

.menu-link:hover small,
.menu-link.is-active small {
  color: rgba(255, 255, 255, 0.7);
}

.menu-link.is-muted {
  color: #918b84;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(16, 17, 25, 0.12);
}

.intro-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 26px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-weight: 760;
  backdrop-filter: blur(18px);
}

.intro-number {
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.section-shell,
.ai-overview,
.style-showcase,
.video-detail,
.soon-section {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 6vw, 80px);
}

.ai-overview {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.overview-copy h2 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
}

.overview-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.62;
}

.overview-copy strong {
  color: var(--text);
}

.overview-panel {
  display: grid;
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.panel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54));
  box-shadow: 0 18px 44px rgba(20, 23, 35, 0.08);
  backdrop-filter: blur(18px);
}

.panel-row span {
  color: var(--coral);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.panel-row h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: block;
  max-width: 850px;
  margin-bottom: 30px;
}

.section-heading h2,
.soon-section h2,
.video-detail h2 {
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.12;
}

.style-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 86, 107, 0.14), transparent 28%),
    radial-gradient(circle at 78% 26%, rgba(24, 200, 223, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(16, 17, 25, 0.03), rgba(255, 255, 255, 0.18));
}

.hero-carousel-shell {
  min-height: 520px;
}

.style-showcase {
  padding-top: clamp(34px, 4vw, 58px);
}

.character-hero {
  position: relative;
  min-height: min(610px, 64vh);
  overflow: hidden;
  border-radius: 22px;
  background: #ffd4b8;
  box-shadow: 0 30px 80px rgba(20, 23, 35, 0.16);
  isolation: isolate;
}

.character-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.66), transparent 28%),
    radial-gradient(circle at 74% 72%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, var(--hero-character-bg, #ffd4b8), rgba(255, 255, 255, 0.22));
  transition: background 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.character-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(8px);
  z-index: 0;
}

.character-ghost {
  position: absolute;
  inset: 8% 3% auto;
  z-index: 1;
  color: rgba(255, 255, 255, 0.26);
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.86;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.character-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.character-card {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: min(42vw, 420px);
  max-height: 96%;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: 50% 100%;
  opacity: 0;
  filter: blur(8px) saturate(0.82);
  pointer-events: none;
  transition:
    transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 650ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 650ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity, filter;
}

.character-card.is-center {
  z-index: 5;
  opacity: 1;
  filter: blur(0) saturate(1.04);
  transform: translateX(-50%) scale(1.03);
}

.character-card.is-left {
  z-index: 3;
  opacity: 0.58;
  filter: blur(1.5px) saturate(0.78);
  transform: translateX(-118%) translateY(6%) scale(0.54) rotate(-4deg);
}

.character-card.is-right {
  z-index: 3;
  opacity: 0.58;
  filter: blur(1.5px) saturate(0.78);
  transform: translateX(18%) translateY(6%) scale(0.54) rotate(4deg);
}

.character-card.is-back {
  z-index: 2;
  opacity: 0.28;
  filter: blur(5px) saturate(0.64);
  transform: translateX(-50%) translateY(-2%) scale(0.42);
}

.character-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 6;
  display: grid;
  gap: 5px;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(16, 17, 25, 0.24);
  color: #fff;
  backdrop-filter: blur(18px);
}

.character-label span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.character-label strong {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
}

.character-nav {
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(16, 17, 25, 0.26);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 38px;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  backdrop-filter: blur(14px);
}

.character-nav:hover {
  background: rgba(16, 17, 25, 0.36);
  box-shadow: 0 12px 28px rgba(20, 23, 35, 0.18);
  transform: translateY(-50%) scale(1.06);
}

.character-nav-prev {
  left: 18px;
}

.character-nav-next {
  right: 18px;
}

.carousel-shell {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
}

.carousel-track {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.style-slide {
  position: relative;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(680px, 48vw);
  height: min(470px, 54vh);
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.78);
  transition:
    opacity 360ms ease,
    transform 440ms ease,
    filter 360ms ease;
}

.compact-overview {
  padding-top: clamp(28px, 4vw, 54px);
}

.style-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
  transition: transform 500ms ease;
}

.style-slide[data-case="product-ad"] img {
  object-position: 58% center;
}

.style-slide[data-case="reels-character"] img {
  object-position: 68% center;
}

.style-slide[data-case="event"] img,
.style-slide[data-case="education"] img {
  object-position: 60% center;
}

.style-slide[data-case="handmade"] img {
  object-position: 62% center;
}

.style-slide:hover img {
  transform: scale(1.035);
}

.style-slide.is-active {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.style-slide.is-prev {
  z-index: 3;
  opacity: 0.46;
  filter: saturate(0.5) brightness(0.72) blur(0.2px);
  transform: translate(calc(-50% - 260px), -47%) scale(0.82);
}

.style-slide.is-next {
  z-index: 3;
  opacity: 0.46;
  filter: saturate(0.5) brightness(0.72) blur(0.2px);
  transform: translate(calc(-50% + 260px), -47%) scale(0.82);
}

.style-slide.is-far-prev {
  z-index: 2;
  opacity: 0.18;
  filter: saturate(0.34) brightness(0.68) blur(0.6px);
  transform: translate(calc(-50% - 430px), -43%) scale(0.66);
}

.style-slide.is-far-next {
  z-index: 2;
  opacity: 0.18;
  filter: saturate(0.34) brightness(0.68) blur(0.6px);
  transform: translate(calc(-50% + 430px), -43%) scale(0.66);
}

.style-slide:not(.is-active) .style-caption {
  opacity: 0;
}

.style-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 18, 0.02) 0%, rgba(10, 11, 18, 0.16) 46%, rgba(10, 11, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 11, 18, 0.18), transparent 58%);
}

.style-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 26px;
  color: white;
}

.style-caption span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.style-caption h3 {
  margin: 16px 0 10px;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.1;
}

.style-caption p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.52;
}

.carousel-actions {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.carousel-button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(16, 17, 25, 0.66);
  color: var(--text);
  color: white;
  cursor: pointer;
  pointer-events: auto;
  font-size: 36px;
  line-height: 1;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.carousel-button:hover {
  background: var(--dark);
  color: white;
}

.feature-grid,
.library-grid,
.tips-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.video-card,
.detail-card,
.tips-grid article {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.feature-grid article {
  min-height: 230px;
  padding: 24px;
}

.feature-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  color: var(--dark);
  font-weight: 950;
}

.feature-grid h3,
.video-card h3,
.tips-grid h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.feature-grid p,
.video-card p,
.detail-card p,
.tips-grid p,
.soon-section p {
  color: var(--muted);
  line-height: 1.56;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-button {
  min-height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  border: 1px solid rgba(16, 17, 25, 0.12);
}

.filter-button.is-active {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
  box-shadow: var(--soft-shadow);
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-card.is-hidden {
  display: none;
}

.cover {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: white;
  background:
    linear-gradient(180deg, rgba(12, 13, 18, 0.04), rgba(12, 13, 18, 0.86)),
    var(--cover-gradient),
    var(--custom-cover, var(--cover-image));
  background-size: auto, auto, cover;
  background-position: center;
  overflow: hidden;
}

.library-hero {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 6vw, 80px);
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 86, 107, 0.2), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(24, 200, 223, 0.18), transparent 34%),
    linear-gradient(135deg, #101119, #202331);
  color: white;
}

.library-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
}

.library-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
}

.library-section {
  padding-top: clamp(34px, 5vw, 62px);
}

.library-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.library-toolbar h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
}

.library-note {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: grid !important;
}

.admin-panel {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin: -4px 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(24, 200, 223, 0.14)),
    rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: 0 14px 36px rgba(20, 23, 35, 0.08);
}

.admin-panel span {
  font-weight: 900;
}

.guide-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 251, 249, 0.66)),
    rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 48px rgba(20, 23, 35, 0.09);
  backdrop-filter: blur(18px) saturate(1.15);
}

.guide-strip-copy {
  padding: 8px 6px;
}

.guide-strip-copy h3 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.12;
}

.guide-strip-copy p:not(.eyebrow) {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guide-card {
  min-height: 148px;
  padding: 16px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 16%, rgba(24, 200, 223, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 244, 0.72));
  color: var(--text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 26px rgba(20, 23, 35, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 86, 107, 0.28);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 86, 107, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 251, 249, 0.78));
  box-shadow: 0 18px 36px rgba(20, 23, 35, 0.12);
}

.guide-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
}

.guide-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.guide-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.38;
}

.guide-note {
  max-width: 820px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(20, 23, 35, 0.06);
}

.guide-note p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.cover::before,
.video-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.cover::after,
.video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent, black 32%, black 74%, transparent);
  opacity: 0.48;
  pointer-events: none;
}

.cover-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.play-dot {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: transparent;
}

.play-dot::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--dark);
}

.video-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(24, 200, 223, 0.13);
  color: #087a88;
  font-size: 13px;
  font-weight: 900;
}

.duration {
  background: rgba(255, 86, 107, 0.13);
  color: #a93443;
}

.access-pill {
  background: rgba(124, 92, 255, 0.13);
  color: #4f3ed0;
}

.video-card .button {
  width: auto;
  margin-top: auto;
}

.courses-section {
  padding-top: clamp(34px, 5vw, 62px);
}

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

.course-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 251, 249, 0.64)),
    var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.course-card-featured {
  background:
    radial-gradient(circle at 82% 10%, rgba(124, 92, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 239, 0.72));
}

.course-cover {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-start;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(16, 17, 25, 0.08), rgba(16, 17, 25, 0.72)),
    var(--custom-course-cover, var(--course-cover-image));
  background-size: auto, cover;
  background-position: center;
  overflow: hidden;
}

.course-cover::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  pointer-events: none;
}

.course-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.course-card h3 {
  margin: 10px 0 10px;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.12;
}

.course-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.course-lessons {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.course-lessons li {
  position: relative;
  padding-left: 18px;
  color: #555d6b;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.4;
}

.course-lessons li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: auto;
}

.card-actions .button {
  width: 100%;
}

.cover-upload {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 17, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cover-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cover-upload:hover {
  background: var(--dark);
  color: white;
}

.admin-card-button {
  min-height: 40px;
  border: 1px solid rgba(16, 17, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.admin-card-button:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-1px);
}

.admin-card-danger {
  color: #a93443;
}

.admin-card-danger:hover {
  background: var(--coral);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 25, 0.48);
  backdrop-filter: blur(14px);
}

.admin-modal-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 86, 107, 0.12), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(24, 200, 223, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.admin-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-modal-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.admin-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prompt-structure-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-modal-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.admin-modal-card input,
.admin-modal-card select,
.admin-modal-card textarea {
  width: 100%;
  border: 1px solid rgba(16, 17, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
}

.admin-modal-card input,
.admin-modal-card select {
  min-height: 44px;
  padding: 0 12px;
}

.admin-modal-card textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.lesson-editor-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(124, 92, 255, 0.16);
  border-radius: 8px;
  background: rgba(236, 251, 249, 0.72);
}

.lesson-editor-status p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.lesson-block-editor-wrap,
.lesson-material-editor-wrap {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.lesson-block-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lesson-block-editor-head h3 {
  margin: 0;
  font-size: 22px;
}

.lesson-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lesson-editor-toolbar button,
.lesson-editor-block-top button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lesson-editor-toolbar button:hover,
.lesson-editor-block-top button:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 92, 255, 0.32);
  box-shadow: 0 10px 24px rgba(20, 23, 35, 0.08);
}

.lesson-block-editor,
.lesson-material-card-editor {
  display: grid;
  gap: 14px;
}

.lesson-editor-block,
.lesson-material-editor-card {
  padding: 14px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background: #fff;
}

.lesson-material-editor-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 251, 249, 0.72));
}

.lesson-editor-block-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.lesson-editor-block-top strong {
  margin-right: auto;
}

.lesson-editor-block-top select {
  width: auto;
}

.rich-editor-wrap {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.rich-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
}

.rich-editor-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rich-toolbar {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 249, 0.9));
  box-shadow: 0 12px 28px rgba(20, 23, 35, 0.08);
}

.rich-toolbar button,
.rich-toolbar select {
  width: auto;
  min-height: 34px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rich-toolbar button {
  padding: 0 10px;
}

.rich-toolbar select {
  padding: 0 8px;
}

.rich-toolbar button:hover,
.rich-toolbar button.is-active {
  border-color: rgba(124, 92, 255, 0.34);
  background: rgba(236, 251, 249, 0.96);
  box-shadow: 0 8px 18px rgba(20, 23, 35, 0.08);
}

.rich-palette {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16, 17, 25, 0.04);
}

.rich-palette button {
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 999px;
  background: var(--swatch);
}

.rich-editor {
  min-height: 150px;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(16, 17, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #4b5563;
  font-size: 17px;
  line-height: 1.62;
  outline: none;
}

.rich-editor:focus {
  border-color: rgba(124, 92, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.08);
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote {
  margin: 0 0 12px;
}

.rich-editor h3,
.rich-editor h4 {
  margin: 18px 0 10px;
  color: var(--text);
  line-height: 1.16;
}

.rich-editor h3 {
  font-size: 24px;
}

.rich-editor h4 {
  font-size: 19px;
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 24px;
}

.rich-editor mark {
  border-radius: 5px;
  padding: 0 0.18em;
  background: #fff2a8;
}

.rich-preview-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(24, 200, 223, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 251, 249, 0.72));
}

.rich-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rich-editor a,
.lesson-rich-text a {
  color: #5d50d9;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.block-image-tools {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.block-image-preview {
  display: grid;
  gap: 8px;
  max-width: 360px;
  padding: 10px;
  border: 1px dashed rgba(124, 92, 255, 0.28);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.9);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.block-image-preview img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 7px;
}

.block-image-preview figcaption {
  margin: 0;
}

.block-image-preview.is-empty {
  min-height: 86px;
  place-items: center;
}

.block-image-delete {
  align-self: end;
  min-height: 44px;
  cursor: pointer;
}

.material-visibility-toggle {
  width: auto;
  min-height: 36px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.material-visibility-toggle input {
  width: auto;
  min-height: auto;
}

.material-visibility-toggle span {
  font-size: 12px;
}

.lesson-rich-preview {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed rgba(124, 92, 255, 0.34);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.9);
}

.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.admin-ghost-button {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid rgba(16, 17, 25, 0.12);
}

.detail-modal-card {
  width: min(780px, 100%);
}

.prompt-guide-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 251, 249, 0.76));
}

.prompt-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.prompt-guide-grid article {
  padding: 14px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.prompt-guide-grid span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
}

.prompt-guide-grid h3 {
  margin: 6px 0;
  font-size: 17px;
}

.prompt-guide-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.detail-video-link.is-hidden {
  display: none;
}

.detail-video-player {
  width: 100%;
  max-height: 420px;
  border-radius: 8px;
  background: var(--dark);
}

.detail-video-player.is-hidden {
  display: none;
}

.course-materials-list {
  display: grid;
  gap: 10px;
}

.course-materials-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.course-materials-list article:hover,
.course-materials-list article:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 86, 107, 0.26);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(20, 23, 35, 0.09);
  outline: none;
}

.course-materials-list span {
  color: var(--coral);
  font-weight: 950;
}

.course-materials-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.course-materials-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.course-player-modal {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.course-player-modal .admin-modal-backdrop {
  display: none;
}

.course-player-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  overflow: hidden;
  background: #f4f7fb;
}

.course-player-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px;
  border-right: 1px solid rgba(16, 17, 25, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 12px 0 30px rgba(20, 23, 35, 0.06);
}

.course-player-side-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.course-player-side-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.course-player-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.course-progress-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 251, 249, 0.72));
}

body.is-admin .course-player-modal:not(.is-student-preview) .course-progress-card,
body.is-admin .course-player-modal:not(.is-student-preview) .student-only {
  display: none;
}

.course-player-modal.is-student-preview .admin-only:not([data-course-preview-toggle]),
.course-player-modal.is-student-preview .lesson-admin-status {
  display: none !important;
}

body.is-admin .course-player-modal:not(.is-student-preview) .course-sidebar-lesson:disabled {
  cursor: pointer;
  opacity: 1;
}

.course-progress-card p {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-progress-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.course-progress-card strong {
  color: var(--text);
}

.course-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 17, 25, 0.1);
}

.course-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  transition: width 220ms ease;
}

.course-player-lessons {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.course-toc-toggle {
  display: none;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 251, 249, 0.82));
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.course-sidebar-module {
  display: grid;
  gap: 7px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(16, 17, 25, 0.08);
}

.course-sidebar-module h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.course-sidebar-module p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.course-sidebar-lesson {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.course-sidebar-lesson:hover,
.course-sidebar-lesson.is-active {
  border-color: rgba(124, 92, 255, 0.18);
  background: #edf4ff;
}

.course-sidebar-lesson:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.course-sidebar-lesson span {
  grid-row: span 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 17, 25, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.course-sidebar-lesson.is-complete span {
  background: #188a2e;
  color: white;
}

.course-sidebar-lesson strong {
  font-size: 14px;
  line-height: 1.3;
}

.course-sidebar-lesson small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.course-sidebar-lesson em {
  width: max-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(16, 17, 25, 0.08);
  color: #596273;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.course-player-main {
  min-width: 0;
  overflow: auto;
  padding: 24px clamp(22px, 4vw, 54px) 40px;
}

.course-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.course-player-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-player-topbar span {
  color: var(--muted);
  font-weight: 850;
}

.course-video-stage {
  min-height: min(48vh, 460px);
  margin: 0 0 22px;
  border-style: solid;
}

.course-video-stage i {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.course-video-stage i::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid white;
}

.course-video-player {
  width: min(860px, 100%);
  max-height: 54vh;
  margin-top: 18px;
  border-radius: 8px;
  background: #05070d;
  box-shadow: 0 18px 44px rgba(20, 23, 35, 0.22);
}

.course-video-player.is-hidden,
.course-video-link.is-hidden {
  display: none;
}

.course-video-link {
  margin-top: 18px;
}

.course-lesson-view {
  display: block;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0;
}

.course-lesson-view h1 {
  max-width: 980px;
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
}

.course-lesson-view > p:not(.eyebrow) {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.lesson-structured-text {
  display: block;
  margin-top: 22px;
}

.lesson-theory-intro,
.lesson-theory-assignment,
.lesson-practice-card {
  padding: 22px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 251, 249, 0.74));
  box-shadow: 0 10px 24px rgba(20, 23, 35, 0.05);
}

.lesson-theory-intro h2 {
  max-width: 860px;
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.16;
}

.lesson-theory-article {
  margin-top: 16px;
  padding: 26px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(20, 23, 35, 0.06);
}

.lesson-theory-article h3 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.16;
}

.lesson-theory-article h4 {
  margin: 24px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lesson-theory-article p {
  max-width: 920px;
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.62;
}

.lesson-block-content {
  max-width: 980px;
}

.lesson-block-content > * + * {
  margin-top: 16px;
}

.lesson-block-content h3 {
  margin-top: 26px;
}

.lesson-rich-text {
  max-width: 920px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.62;
}

.lesson-rich-text p,
.lesson-rich-text ul,
.lesson-rich-text ol,
.lesson-rich-text blockquote,
.lesson-theory-article blockquote p {
  margin: 0 0 12px;
}

.lesson-rich-text h3,
.lesson-rich-text h4 {
  margin: 18px 0 10px;
  color: var(--text);
  line-height: 1.16;
}

.lesson-rich-text h3 {
  font-size: 24px;
}

.lesson-rich-text h4 {
  font-size: 19px;
}

.lesson-rich-text ul,
.lesson-rich-text ol {
  padding-left: 24px;
}

.lesson-rich-text mark {
  border-radius: 5px;
  padding: 0 0.18em;
  background: #fff2a8;
}

.lesson-highlight,
.lesson-checklist {
  padding: 20px;
  border: 1px solid rgba(124, 92, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(236, 251, 249, 0.96), rgba(255, 255, 255, 0.92));
}

.lesson-highlight h4,
.lesson-checklist h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.lesson-highlight ul,
.lesson-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-highlight li,
.lesson-checklist li {
  position: relative;
  padding-left: 24px;
  color: #344052;
  line-height: 1.5;
}

.lesson-highlight li::before,
.lesson-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), var(--violet));
}

.lesson-image-block {
  margin: 22px 0;
}

.lesson-image-block img,
.lesson-image-placeholder {
  width: min(760px, 100%);
  max-width: 100%;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: #f8fbff;
}

.lesson-image-block img {
  display: block;
  height: auto;
}

.lesson-image-placeholder {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.lesson-image-block figcaption {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.lesson-button-row {
  margin-top: 20px;
}

.lesson-theory-article blockquote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
  border-radius: 8px;
  background: rgba(255, 247, 240, 0.78);
  color: #303747;
  font-size: 18px;
  line-height: 1.55;
}

.lesson-admin-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.lesson-admin-status span,
.lesson-admin-status strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.09);
  color: #394150;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.lesson-principles li {
  padding: 10px 12px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 999px;
  background: #f8fbff;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.35;
}

.lesson-structured-text h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lesson-theory-assignment {
  margin-top: 16px;
}

.lesson-practice-card {
  margin-top: 16px;
  background:
    linear-gradient(135deg, rgba(239, 248, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.lesson-practice-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.22;
}

.lesson-practice-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #1f2937;
}

.lesson-practice-card li {
  line-height: 1.48;
  font-weight: 750;
}

.lesson-structured-text p:not(.eyebrow) {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.lesson-coursera-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.lesson-coursera-grid.is-hidden {
  display: none;
}

.lesson-coursera-grid section {
  padding: 18px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 26px rgba(20, 23, 35, 0.06);
}

.lesson-coursera-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.lesson-coursera-grid p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.lesson-material-prompt {
  margin: 14px 0 0;
  padding: 14px;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.04);
  color: #1f2937;
  font-family: "Inter", "Arial", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.lesson-material-link {
  display: inline-flex;
  width: auto;
  margin-top: 14px;
}

.course-player-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(16, 17, 25, 0.1);
}

.course-admin-actions-label {
  display: none;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-player-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.course-player-actions .is-hidden {
  display: none;
}

.course-player-actions .is-course-finished {
  border-color: rgba(24, 138, 46, 0.18);
  background: rgba(24, 138, 46, 0.08);
  color: #166427;
}

.lesson-open-button {
  min-height: 34px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background: rgba(16, 17, 25, 0.92);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 880;
}

.course-lesson-view.is-hidden {
  display: none;
}

.course-lesson-view h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.14;
}

.lesson-back-button {
  width: max-content;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 14px;
  cursor: pointer;
}

.lesson-video-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin: 18px 0;
  padding: 24px;
  border: 1px dashed rgba(124, 92, 255, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(24, 200, 223, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(16, 17, 25, 0.92), rgba(33, 36, 54, 0.9));
  color: white;
  text-align: center;
}

.lesson-video-placeholder span {
  font-size: 22px;
  font-weight: 950;
}

.lesson-video-placeholder p {
  max-width: 420px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.lesson-support-grid {
  margin-top: 14px;
}

.auth-modal-card {
  width: min(620px, 100%);
}

.account-modal-card {
  width: min(680px, 100%);
}

.account-profile-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 86, 107, 0.1), rgba(24, 200, 223, 0.11)),
    rgba(255, 255, 255, 0.78);
}

.account-profile-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.account-profile-card strong {
  color: var(--text);
  font-size: 18px;
}

.auth-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-password-rules {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-error {
  min-height: 22px;
  margin: 0;
  color: #b33445;
  font-weight: 850;
  line-height: 1.4;
}

.account-access-list {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 17, 25, 0.1);
}

.account-access-list section {
  display: grid;
  gap: 8px;
}

.account-access-list h3 {
  margin: 0;
  font-size: 18px;
}

.account-access-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(16, 17, 25, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.account-access-list span {
  color: var(--text);
  font-weight: 850;
  white-space: nowrap;
}

.order-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 6vw, 80px);
}

.order-copy h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
}

.order-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.62;
}

.order-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(16, 17, 25, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
}

.order-form input {
  min-height: 46px;
  padding: 0 14px;
}

.order-form textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.video-frame {
  position: relative;
  min-height: min(72vh, 760px);
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 13, 18, 0.02), rgba(12, 13, 18, 0.86)),
    var(--cover-gradient),
    var(--cover-image);
  background-size: auto, auto, cover;
  background-position: center;
  color: white;
  box-shadow: var(--shadow);
}

.video-frame-content {
  position: relative;
  z-index: 1;
  width: min(430px, 84%);
  text-align: center;
}

.video-frame-content span {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: transparent;
}

.video-frame-content span::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--dark);
}

.video-frame-content h2 {
  font-size: clamp(28px, 4vw, 48px);
}

.detail-card {
  padding: 24px;
}

.detail-card + .detail-card {
  margin-top: 18px;
}

.prompt-box {
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid rgba(16, 17, 25, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: #2d303b;
  white-space: pre-wrap;
  font: 15px/1.55 "Segoe UI", Arial, sans-serif;
}

.copy-button {
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  background: var(--dark);
  color: white;
}

.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.tips-grid article {
  padding: 22px;
}

.soon-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(242, 188, 85, 0.9), rgba(201, 236, 95, 0.62)),
    linear-gradient(90deg, rgba(16, 17, 25, 0.08) 1px, transparent 1px);
  background-size: auto, 34px 34px;
}

.bottom-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: rgba(16, 17, 25, 0.16);
}

.bottom-menu-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px clamp(18px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.bottom-menu-card:hover {
  background: var(--dark);
  color: white;
  transform: translateY(-1px);
}

.bottom-menu-card span {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 940;
  line-height: 1.08;
}

.bottom-menu-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.bottom-menu-card:hover small,
.bottom-menu-primary small {
  color: rgba(255, 255, 255, 0.72);
}

.bottom-menu-primary {
  background: linear-gradient(135deg, var(--coral), var(--violet));
  color: white;
}

.bottom-menu-card.is-disabled {
  color: #918b84;
}

.bottom-menu-card.is-disabled:hover {
  background: rgba(255, 255, 255, 0.78);
  color: #918b84;
  transform: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 6vw, 80px);
  border-top: 1px solid rgba(16, 17, 25, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.78), rgba(234, 249, 247, 0.84));
  color: #717988;
  font-weight: 760;
}

@media (max-width: 1100px) {
  .library-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-menu-bar,
  .intro-band,
  .section-heading,
  .ai-overview,
  .order-panel,
  .bottom-menu,
  .feature-grid,
  .guide-strip,
  .library-grid,
  .courses-grid,
  .video-layout,
  .tips-grid,
  .soon-section {
    grid-template-columns: 1fr;
  }

  .screen-menu {
    position: static;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .main-menu-bar {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 10px;
  }

  .main-menu-bar::-webkit-scrollbar {
    display: none;
  }

  .main-menu-link {
    min-width: max-content;
    flex: 0 0 auto;
    padding: 0 14px;
    white-space: nowrap;
  }

  .hero {
    min-height: 560px;
    align-items: end;
  }

  .hero-carousel {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: end;
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero-carousel-copy h1 {
    max-width: 14ch;
    font-size: clamp(40px, 11vw, 58px);
  }

  .library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-panel,
  .admin-form-grid,
  .prompt-structure-fields,
  .guide-cards,
  .course-player-shell,
  .lesson-principles,
  .lesson-coursera-grid,
  .prompt-guide-grid {
    grid-template-columns: 1fr;
  }

  .course-player-shell {
    display: block;
    height: 100vh;
    overflow: auto;
  }

  .course-player-sidebar {
    min-height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 17, 25, 0.1);
  }

  .course-toc-toggle {
    display: block;
  }

  .course-player-lessons {
    display: none;
    max-height: 56vh;
    overflow: auto;
  }

  .course-player-modal.is-toc-open .course-player-lessons {
    display: grid;
  }

  .course-player-main {
    overflow: visible;
  }

  .course-player-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .course-admin-actions-label {
    display: block;
  }

  .hero-page {
    min-height: 520px;
  }

  .menu-link {
    min-height: 68px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-track {
    min-height: 390px;
  }

  .hero-carousel-shell,
  .hero-carousel-shell .carousel-track {
    min-height: 390px;
  }

  .style-slide {
    width: min(520px, 78vw);
    height: 360px;
    min-height: 360px;
  }

  .auth-button {
    justify-self: end;
    min-width: auto;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-cta-row {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-cta-row .button {
    min-height: 46px;
    padding: 0 16px;
  }

  .cta-desktop {
    display: none;
  }

  .cta-mobile {
    display: inline;
  }

  .hero-text-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .style-slide.is-prev {
    transform: translate(calc(-50% - 150px), -47%) scale(0.76);
  }

  .style-slide.is-next {
    transform: translate(calc(-50% + 150px), -47%) scale(0.76);
  }

  .style-slide.is-far-prev,
  .style-slide.is-far-next {
    opacity: 0;
  }

  .character-hero {
    min-height: 430px;
    border-radius: 18px;
  }

  .character-card {
    width: min(84vw, 330px);
  }

  .character-card.is-center {
    transform: translateX(-50%) scale(0.96);
  }

  .character-card.is-left,
  .character-card.is-right {
    opacity: 0.22;
    filter: blur(3px) saturate(0.66);
  }

  .character-card.is-left {
    transform: translateX(-106%) translateY(8%) scale(0.38);
  }

  .character-card.is-right {
    transform: translateX(5%) translateY(8%) scale(0.38);
  }

  .character-card.is-back {
    opacity: 0;
  }

  .character-ghost {
    top: 10%;
    font-size: clamp(48px, 18vw, 72px);
  }

  .character-label {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 540px;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(36px, 12vw, 48px);
  }

  .hero-actions .button,
  .video-card .button,
  .main-menu-link {
    width: 100%;
  }

  .intro-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .style-slide {
    width: min(360px, 82vw);
    height: 340px;
    min-height: 340px;
  }

  .style-caption {
    padding: 20px;
  }

  .main-menu-link {
    min-height: 42px;
    font-size: 12px;
  }

  .character-hero {
    min-height: 390px;
  }

  .character-card {
    width: min(92vw, 310px);
  }

  .character-nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .character-nav-prev {
    left: 10px;
  }

  .character-nav-next {
    right: 10px;
  }
}

/* Final fullscreen hero override from TZ_fullscreen_motion_hero_with_generated_characters_Codex */
.site-header {
  position: fixed;
  right: 0;
  left: 0;
  background: rgba(255, 250, 246, 0.72);
}

main#top {
  padding-top: 0;
}

.hero-carousel {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(132px, 16vh, 172px) clamp(18px, 5vw, 92px) clamp(92px, 11vh, 136px);
  background:
    radial-gradient(circle at 76% 26%, color-mix(in srgb, var(--hero-character-bg, #f7a16e) 48%, transparent), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(255, 86, 107, 0.16), transparent 30%),
    radial-gradient(circle at 52% 86%, rgba(124, 92, 255, 0.12), transparent 40%),
    linear-gradient(135deg, #fff8f2 0%, #f5f7fb 48%, #e9f7f5 100%);
}

.hero-carousel .hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.94) 0%, rgba(255, 250, 246, 0.78) 31%, rgba(255, 250, 246, 0.2) 58%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 28vh;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0), rgba(255, 250, 246, 0.72));
  pointer-events: none;
}

.hero-carousel-copy {
  z-index: 6;
  width: min(590px, 48vw);
  padding: clamp(18px, 2.5vw, 34px) 0;
}

.hero-carousel-copy h1 {
  max-width: 13ch;
  font-size: clamp(46px, 5.7vw, 88px);
  line-height: 0.98;
}

.hero-carousel-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(17px, 1.35vw, 21px);
  color: #5d6473;
}

.hero-carousel .hero-cta-row {
  display: none;
}

.panel-stage {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  margin-top: 0;
}

.character-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.character-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 66% 42%, color-mix(in srgb, var(--hero-character-panel, #f9bc91) 68%, transparent), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.66), transparent 28%),
    radial-gradient(circle at 76% 88%, rgba(255, 255, 255, 0.46), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--hero-character-bg, #f7a16e) 24%, transparent), rgba(255, 255, 255, 0));
}

.character-hero::after {
  right: -10%;
  bottom: -24%;
  width: min(680px, 48vw);
  background: color-mix(in srgb, var(--hero-character-panel, #f9bc91) 24%, white 16%);
  opacity: 0.48;
}

.character-ghost {
  inset: 14vh 2vw auto;
  z-index: 1;
  color: rgba(16, 17, 25, 0.045);
  font-size: clamp(90px, 20vw, 310px);
  line-height: 0.8;
  text-align: right;
  white-space: nowrap;
}

.character-stage {
  z-index: 2;
}

.character-card {
  left: 69%;
  bottom: 5vh;
  width: min(36vw, 520px);
  max-height: 78vh;
}

.character-card.is-center {
  z-index: 5;
  opacity: 1;
  filter: drop-shadow(0 42px 34px rgba(20, 23, 35, 0.18)) saturate(1.04);
  transform: translateX(-50%) scale(1.42);
}

.character-card.is-left {
  z-index: 3;
  opacity: 0.74;
  filter: blur(2px) saturate(0.84);
  transform: translateX(-115%) translateY(7%) scale(0.82) rotate(-4deg);
}

.character-card.is-right {
  z-index: 3;
  opacity: 0.76;
  filter: blur(2px) saturate(0.84);
  transform: translateX(12%) translateY(7%) scale(0.82) rotate(4deg);
}

.character-card.is-back {
  z-index: 2;
  opacity: 0.46;
  filter: blur(4px) saturate(0.7);
  transform: translateX(-50%) translateY(-3%) scale(0.62);
}

.character-label {
  left: auto;
  right: clamp(20px, 6vw, 92px);
  bottom: clamp(104px, 12vh, 150px);
  max-width: min(380px, 34vw);
  border-radius: 18px;
  background: rgba(16, 17, 25, 0.18);
}

.character-nav {
  z-index: 8;
  top: 54%;
}

.character-nav-prev {
  left: min(58vw, 760px);
}

.character-nav-next {
  right: clamp(18px, 4vw, 64px);
}

@media (max-width: 980px) {
  .hero-carousel {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 112px;
    padding-bottom: 92px;
  }

  .hero-carousel-copy {
    width: min(620px, 86vw);
    align-self: flex-start;
  }

  .hero-carousel-copy h1 {
    font-size: clamp(42px, 10vw, 76px);
  }

  .character-card {
    left: 58%;
    bottom: 3vh;
    width: min(62vw, 440px);
    max-height: 56vh;
  }

  .character-card.is-center {
    transform: translateX(-50%) scale(1.02);
  }

  .character-card.is-left,
  .character-card.is-right {
    opacity: 0;
  }

  .character-label {
    right: 16px;
    bottom: 82px;
    max-width: min(360px, calc(100vw - 32px));
  }

  .character-nav-prev {
    left: 16px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 8px 10px;
  }

  .hero-carousel {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 92px 18px 82px;
  }

  .hero-carousel-copy {
    width: 100%;
  }

  .hero-carousel-copy h1 {
    max-width: 12ch;
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-carousel-copy p:not(.eyebrow) {
    max-width: 310px;
    font-size: 15px;
  }

  .character-ghost {
    top: 48vh;
    font-size: clamp(54px, 18vw, 82px);
    opacity: 0.6;
  }

  .character-card {
    left: 58%;
    bottom: 7vh;
    width: min(82vw, 330px);
    max-height: 42vh;
  }

  .character-label {
    display: none;
  }

  .character-nav {
    top: 70%;
  }
}

/* Системные сообщения (заявка отправлена, ошибки формы). */
.site-messages {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.site-message {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
}

.site-message--success {
  background: rgba(24, 200, 223, 0.16);
  border: 1px solid rgba(24, 200, 223, 0.4);
}

.site-message--error {
  background: rgba(255, 86, 107, 0.16);
  border: 1px solid rgba(255, 86, 107, 0.45);
}

/* Тело урока и материалы на странице курса. */
.lesson-body {
  margin-top: 12px;
}

.lesson-video {
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  background: #000;
}

.lesson-checklist ul,
.lesson-assignment ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.lesson-material {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.lesson-material summary {
  cursor: pointer;
  font-weight: 600;
}

.lesson-material pre,
.prompt-text {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* Страницы аккаунта: вход, регистрация, кабинет                       */
/* ------------------------------------------------------------------ */

.auth-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-card h1 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.auth-note {
  margin: 0 0 20px;
  opacity: 0.72;
  font-size: 15px;
  line-height: 1.55;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.form-field > span {
  opacity: 0.8;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(24, 200, 223, 0.7);
}

.form-field--invalid input {
  border-color: rgba(255, 86, 107, 0.8);
}

.form-field__error {
  color: #ff8a9b;
  font-size: 13px;
  font-style: normal;
}

.form-field__hint {
  opacity: 0.55;
  font-size: 12.5px;
  line-height: 1.5;
}

.form-field__hint ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.form-errors {
  padding: 12px 14px;
  border: 1px solid rgba(255, 86, 107, 0.45);
  border-radius: 10px;
  background: rgba(255, 86, 107, 0.14);
  font-size: 14px;
}

.form-errors p {
  margin: 0;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
}

/* Кабинет */

.account-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.account-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.account-head h1 {
  margin: 4px 0 6px;
  font-size: 32px;
}

.account-logout {
  margin: 0;
}

.account-section {
  margin-top: 28px;
}

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

.account-item {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.account-item__cover {
  flex: 0 0 116px;
  height: 78px;
  border-radius: 10px;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.08);
}

.account-item__body {
  min-width: 0;
}

.account-item__body h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.account-item__body p {
  margin: 0 0 8px;
  opacity: 0.72;
  font-size: 14px;
  line-height: 1.5;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 440px;
}

@media (max-width: 640px) {
  .account-item {
    flex-direction: column;
  }

  .account-item__cover {
    flex: none;
    width: 100%;
    height: 140px;
  }
}

/* ------------------------------------------------------------------ */
/* Светлые glass-страницы: вход, кабинет и заявка                     */
/* ------------------------------------------------------------------ */

.studio-page {
  min-height: 100vh;
  padding: clamp(112px, 13vh, 148px) clamp(16px, 5vw, 78px) clamp(58px, 8vh, 92px);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 128, 158, 0.25), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(215, 255, 89, 0.2), transparent 28%),
    linear-gradient(135deg, #f9e8e4 0%, #eefaff 34%, #74bcfb 100%);
  color: #171821;
}

.studio-hero {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 210px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.studio-copy h1,
.account-hero h1 {
  max-width: 680px;
  margin: 16px 0 18px;
  color: #fff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 14px 46px rgba(41, 68, 104, 0.18);
}

.studio-copy p:not(.eyebrow),
.account-hero .studio-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 650;
  line-height: 1.6;
}

.studio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.studio-facts span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.glass-form,
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 70px rgba(46, 71, 103, 0.16);
  backdrop-filter: blur(20px) saturate(1.12);
}

.auth-page {
  max-width: none;
  margin: 0;
  display: block;
}

.auth-layout {
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 440px);
}

.auth-card {
  max-width: none;
  padding: clamp(24px, 3vw, 34px);
  color: #171821;
}

.auth-card h2,
.account-profile h2,
.continue-card h2,
.account-section h2,
.account-profile-form h2 {
  margin: 6px 0 10px;
  color: #171821;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.08;
}

.auth-note {
  color: #5d687a;
  opacity: 1;
}

.auth-card form,
.glass-form {
  display: grid;
  gap: 14px;
}

.form-field > span,
.order-form label span {
  color: #2a3445;
  opacity: 1;
  font-weight: 850;
}

.form-field input,
.form-field textarea,
.form-field select,
.order-form input,
.order-form textarea,
.order-form select {
  min-height: 48px;
  border: 1px solid rgba(23, 24, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #171821;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.order-form input:focus,
.order-form textarea:focus,
.order-form select:focus {
  outline: 3px solid rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.62);
}

.form-field__hint {
  color: #6b7280;
  opacity: 1;
}

.auth-links a,
.account-section-head a,
.profile-link {
  color: #5c4ce6;
  font-weight: 850;
  text-decoration: none;
}

.account-page {
  max-width: none;
  margin: 0;
}

.account-hero,
.account-dashboard,
.account-library-grid,
.account-profile-form {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.account-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.account-dashboard {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 20px;
  margin-bottom: 20px;
}

.account-profile,
.continue-card,
.account-section,
.account-profile-form {
  padding: clamp(22px, 3vw, 32px);
}

.account-profile p,
.continue-card p,
.account-section p,
.account-profile-form p {
  color: #5d687a;
  line-height: 1.55;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.account-stats span {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: #5d687a;
  font-weight: 800;
}

.account-stats strong {
  display: block;
  color: #171821;
  font-size: 28px;
  line-height: 1;
}

.progress-line {
  width: 100%;
  height: 10px;
  overflow: hidden;
  margin: 22px 0;
  border-radius: 999px;
  background: rgba(23, 24, 33, 0.08);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #f4577e, #7c5cff);
}

.account-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.account-section {
  margin-top: 0;
}

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

.account-item {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.5);
}

.account-item__body p {
  color: #5d687a;
  opacity: 1;
}

.account-profile-form {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
  gap: 24px;
  margin-top: 20px;
}

.account-form {
  max-width: none;
}

.order-page .order-panel {
  padding: 0;
}

.order-page .order-form {
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.5);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .studio-page {
    padding: 104px 16px 52px;
  }

  .studio-hero,
  .auth-layout,
  .account-dashboard,
  .account-library-grid,
  .account-profile-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .studio-hero {
    min-height: auto;
  }

  .account-hero {
    display: grid;
  }

  .studio-copy h1,
  .account-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }
}

/* Финальные правки контраста и адаптива для Django-страниц. */
.studio-page .studio-copy h1,
.studio-page .account-hero h1 {
  color: #171821;
  text-shadow: 0 12px 38px rgba(255, 255, 255, 0.36);
}

.studio-page .studio-copy p:not(.eyebrow),
.studio-page .account-hero .studio-copy p {
  color: #334155;
  font-weight: 600;
}

.studio-page .eyebrow,
.auth-card .eyebrow,
.glass-panel .eyebrow {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  color: #253044;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.studio-page .studio-facts span {
  background: rgba(255, 255, 255, 0.58);
  color: #171821;
}

.auth-status-card .auth-links {
  margin-top: 20px;
}

.auth-status-card .button {
  width: fit-content;
}

.auth-card input::placeholder,
.auth-card textarea::placeholder,
.order-form input::placeholder,
.order-form textarea::placeholder {
  color: #6b7280;
  font-weight: 500;
}

.site-messages {
  position: fixed;
  top: 92px;
  right: clamp(16px, 4vw, 42px);
  z-index: 80;
  display: grid;
  gap: 8px;
  max-width: min(460px, calc(100vw - 32px));
}

.site-message {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #171821;
  box-shadow: 0 16px 42px rgba(46, 71, 103, 0.16);
  backdrop-filter: blur(16px);
}

body[data-active-panel="library"] .section-shell,
body[data-active-panel="courses"] .section-shell {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 128, 158, 0.2), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(215, 255, 89, 0.16), transparent 28%),
    linear-gradient(135deg, #f9e8e4 0%, #eefaff 34%, #74bcfb 100%);
}

body[data-active-panel="courses"] .library-toolbar {
  align-items: start;
  gap: 22px;
}

body[data-active-panel="courses"] .course-catalog-filters {
  margin-top: 0;
}

body[data-active-panel="courses"] .course-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-page {
  display: grid;
  place-items: center;
}

.error-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
}

.error-card h1 {
  margin: 12px 0;
  color: #171821;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.error-card p {
  color: #4b5563;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 800px) {
  body .site-header {
    grid-template-columns: 1fr auto;
  }

  .studio-page {
    padding-top: 88px;
  }

  .studio-copy.auth-intro {
    display: grid;
    gap: 10px;
  }

  .studio-page .studio-copy h1,
  .studio-page .account-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(32px, 9vw, 44px);
  }

  .studio-page .studio-copy p:not(.eyebrow),
  .studio-page .account-hero .studio-copy p {
    font-size: 14px;
    line-height: 1.5;
  }

  .studio-facts {
    margin-top: 8px;
  }

  .auth-card,
  .account-profile,
  .continue-card,
  .account-section,
  .account-profile-form,
  .order-page .order-form {
    padding: 20px;
  }

  .auth-links {
    gap: 10px;
  }

  .auth-links .button,
  .auth-card .button,
  .order-form .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body .auth-button {
    min-width: 112px;
    max-width: 128px;
    white-space: normal;
    line-height: 1.1;
  }

  .studio-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-layout {
    gap: 18px;
  }
}

/* Финальное выравнивание фильтров библиотеки. */
body[data-active-panel="library"] .library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

body[data-active-panel="library"] .filter-bar {
  width: 100%;
  justify-content: flex-start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 14px 34px rgba(40, 45, 66, 0.08);
  backdrop-filter: blur(16px);
}

body[data-active-panel="library"] .filter-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
}

@media (max-width: 760px) {
  body[data-active-panel="library"] .filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body[data-active-panel="library"] .filter-bar::-webkit-scrollbar {
    display: none;
  }

  body[data-active-panel="library"] .filter-button {
    flex: 0 0 auto;
  }
}
