:root {
  --color-primary: #e83c66;
  --color-primary-dark: #481320;
  --color-bg-soft: #f6f6f6;
  --color-text: #000000;
  --color-white: #ffffff;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-family: "Open Sans", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.teacher-page-canvas {
  background: var(--color-bg-soft);
  margin: 0 auto;
  max-width: 1586px;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.teacher-main {
  padding: 24px 0 0;
}

.teacher-main-grid {
  column-gap: 72px;
  display: grid;
  grid-template-columns: 863px 476px;
  margin-left: 96px;
  width: 1411px;
}

.teacher-main-left {
  min-width: 0;
}

.teacher-profile-card {
  background: #ffe5ed;
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-sm);
  column-gap: 30px;
  display: grid;
  grid-template-columns: 311px 468px;
  min-height: 557px;
  padding: 39px 27px 38px;
}

.teacher-profile-photo {
  border-radius: var(--radius-12);
  height: 466px;
  margin: 0;
  overflow: hidden;
  width: 311px;
}

.teacher-profile-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.teacher-profile-content {
  padding-top: 56px;
}

.teacher-profile-content h1 {
  font-size: 47.141px;
  font-weight: 600;
  letter-spacing: -0.9428px;
  line-height: 50.767px;
  margin: 0;
}

.teacher-profile-content h2 {
  color: #344b63;
  font-size: 26.371px;
  font-weight: 600;
  letter-spacing: -0.5274px;
  line-height: 36.92px;
  margin: 9px 0 0;
}

.teacher-profile-content p {
  font-size: 16px;
  line-height: 38.027px;
  margin: 13px 0 0;
}

.teacher-programs-line {
  color: #0b1e28;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14px;
  line-height: 1.55 !important;
  margin-top: 12px !important;
}

.teacher-social-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.teacher-social-row a {
  align-items: center;
  background: #344b63;
  border-radius: var(--radius-10);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.teacher-intro-text,
.teacher-free-time-text {
  font-family: "Open Sans", sans-serif;
  font-size: 20.45px;
  font-weight: 400;
  line-height: 34.027px;
  margin: 0;
  width: 854px;
}

.teacher-intro-text {
  margin-top: 45px;
}

.teacher-hero-image {
  border-radius: var(--radius-12);
  height: 618px;
  margin: 64px 0 0;
  overflow: hidden;
  width: 854px;
}

.teacher-hero-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.teacher-free-time-title {
  font-size: 50.51px;
  font-weight: 600;
  letter-spacing: -1.0502px;
  line-height: 60.012px;
  margin: 65px 0 0;
  width: 566px;
}

.teacher-free-time-text {
  margin-top: 29px;
}

.teacher-main-right {
  align-self: stretch;
  min-height: 100%;
}

.teacher-side-rail {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 96px;
}

.side-arrow {
  height: 74px;
  margin: 0 auto;
  pointer-events: none;
  transform: rotate(-89.6deg);
  width: 149px;
}

.side-arrow-up {
  margin-bottom: 38px;
}

.side-arrow-down {
  margin-top: 44px;
}

.challenge-tag {
  align-items: center;
  background: #ffcad9;
  border-radius: var(--radius-24);
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  line-height: 20px;
  padding: 6px 12px;
  width: fit-content;
}

.challenge-card {
  background: var(--color-white);
  border: 1px solid #979797;
  border-radius: var(--radius-16);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), var(--shadow-sm);
  margin-top: 12px;
  min-height: 567px;
  padding: 21px 27px 26px;
  position: relative;
  width: 476px;
}

.challenge-image-wrap {
  border-radius: var(--radius-12);
  height: 290px;
  overflow: hidden;
  position: relative;
  width: 419px;
}

.challenge-image-main {
  height: 394px;
  left: -11px;
  max-width: none;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 752px;
}

.challenge-price-line {
  align-items: baseline;
  display: inline-flex;
  gap: 8px;
  margin-top: 35px;
}

.challenge-price-line strong {
  color: #0b1e28;
  font-size: 27.493px;
  font-weight: 700;
  letter-spacing: -0.5499px;
  line-height: 38.491px;
}

.challenge-price-line span {
  color: #0b1e28;
  font-size: 16.379px;
  font-weight: 400;
  letter-spacing: -0.3276px;
  line-height: 22.931px;
}

.challenge-cta {
  align-items: center;
  background: var(--color-primary-dark);
  border-radius: 90.213px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  color: var(--color-white);
  display: inline-flex;
  font-size: 22px;
  font-weight: 600;
  gap: 8.457px;
  justify-content: center;
  letter-spacing: -0.22px;
  line-height: 30px;
  margin-top: 18px;
  min-height: 57px;
  overflow: hidden;
  padding: 0 25px;
  position: relative;
  width: 390px;
  white-space: nowrap;
}

.challenge-cta img {
  flex: 0 0 33.83px;
  height: 33.83px;
  width: 33.83px;
}

.challenge-note {
  font-size: 18.542px;
  line-height: 28.843px;
  margin: 17px 0 0;
  width: 422px;
}

.teacher-switcher-card {
  background: #ffffff;
  border: 1px solid #d6d6d6;
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
  padding: 20px;
  width: 476px;
}

.teacher-switcher-card h3 {
  color: #0b1e28;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  margin: 0;
}

.teacher-switcher-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.teacher-switcher-link {
  background: #fff6f9;
  border: 1px solid transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}

.teacher-switcher-link strong {
  color: #0b1e28;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.teacher-switcher-link span {
  color: #3d4852;
  font-size: 14px;
  line-height: 20px;
}

.teacher-switcher-link.is-active {
  background: #ffe5ed;
  border-color: rgba(232, 60, 102, 0.42);
}

.site-footer {
  margin-top: 72px;
}

.homepage-effects .teacher-page-canvas {
  isolation: isolate;
}

.homepage-effects .teacher-page-canvas::before,
.homepage-effects .teacher-page-canvas::after {
  border-radius: 999px;
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.homepage-effects .teacher-page-canvas::before {
  background: radial-gradient(circle, rgba(232, 60, 102, 0.12) 0%, rgba(232, 60, 102, 0) 72%);
  height: 380px;
  right: -120px;
  top: 840px;
  width: 380px;
}

.homepage-effects .teacher-page-canvas::after {
  background: radial-gradient(circle, rgba(252, 192, 49, 0.1) 0%, rgba(252, 192, 49, 0) 72%);
  height: 320px;
  left: -140px;
  top: 1710px;
  width: 320px;
}

.homepage-effects.homepage-scrolled .contact-strip {
  box-shadow: 0 14px 28px rgba(11, 30, 40, 0.2);
}

.homepage-effects .top-news-right a,
.homepage-effects .social-links a,
.homepage-effects .teacher-social-row a,
.homepage-effects .teacher-switcher-link,
.homepage-effects .footer-social a,
.homepage-effects .footer-links-col a,
.homepage-effects .footer-legal a,
.homepage-effects .challenge-tag,
.homepage-effects .challenge-card,
.homepage-effects .teacher-profile-card,
.homepage-effects .teacher-hero-image,
.homepage-effects .challenge-cta,
.homepage-effects .footer-newsletter-btn {
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    background-color 280ms ease,
    filter 320ms ease,
    opacity 260ms ease;
}

.homepage-effects .teacher-profile-photo,
.homepage-effects .teacher-hero-image,
.homepage-effects .challenge-image-wrap {
  overflow: hidden;
}

.homepage-effects .teacher-profile-photo img,
.homepage-effects .teacher-hero-image img,
.homepage-effects .challenge-image-wrap img,
.homepage-effects .challenge-cta img,
.homepage-effects .footer-newsletter-btn img {
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
  will-change: transform;
}

.homepage-effects .challenge-cta::before,
.homepage-effects .footer-newsletter-btn::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 82%);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
  transition: opacity 280ms ease;
}

.homepage-effects .fx-reveal {
  --reveal-translate-x: 0px;
  --reveal-translate-y: 32px;
  filter: blur(14px);
  opacity: 0;
  transform: translate3d(var(--reveal-translate-x), var(--reveal-translate-y), 0) scale(0.985);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.homepage-effects .fx-reveal.fx-from-left {
  --reveal-translate-x: -48px;
  --reveal-translate-y: 0px;
}

.homepage-effects .fx-reveal.fx-from-right {
  --reveal-translate-x: 48px;
  --reveal-translate-y: 0px;
}

.homepage-effects .fx-reveal.fx-from-small {
  --reveal-translate-y: 18px;
}

.homepage-effects .fx-reveal.is-visible {
  filter: blur(0);
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .homepage-effects .top-news-right a:hover,
  .homepage-effects .social-links a:hover,
  .homepage-effects .teacher-social-row a:hover,
  .homepage-effects .teacher-switcher-link:hover,
  .homepage-effects .footer-social a:hover,
  .homepage-effects .footer-links-col a:hover,
  .homepage-effects .footer-legal a:hover {
    transform: translateY(-2px);
  }

  .homepage-effects .teacher-switcher-link:hover {
    border-color: rgba(232, 60, 102, 0.4);
    box-shadow: 0 12px 24px rgba(11, 30, 40, 0.08);
  }

  .homepage-effects .teacher-profile-card:hover,
  .homepage-effects .challenge-card:hover,
  .homepage-effects .teacher-hero-image:hover {
    box-shadow: 0 24px 40px rgba(11, 30, 40, 0.12);
    transform: translateY(-6px);
  }

  .homepage-effects .teacher-profile-card:hover .teacher-profile-photo img,
  .homepage-effects .teacher-hero-image:hover img,
  .homepage-effects .challenge-card:hover .challenge-image-wrap img {
    filter: saturate(1.04);
    transform: scale(1.03);
  }

  .homepage-effects .challenge-tag:hover {
    box-shadow: 0 12px 24px rgba(232, 60, 102, 0.24);
    transform: translateY(-3px);
  }

  .homepage-effects .challenge-cta:hover,
  .homepage-effects .footer-newsletter-btn:hover {
    box-shadow: 0 22px 34px rgba(72, 19, 32, 0.28);
    transform: translateY(-3px);
  }

  .homepage-effects .challenge-cta:hover::before,
  .homepage-effects .footer-newsletter-btn:hover::before {
    opacity: 1;
    transform: translateX(120%);
    transition: transform 700ms ease, opacity 220ms ease;
  }

  .homepage-effects .challenge-cta:hover img,
  .homepage-effects .footer-newsletter-btn:hover img {
    transform: translateX(4px);
  }
}

.homepage-effects .challenge-cta:focus-visible,
.homepage-effects .footer-newsletter-btn:focus-visible,
.homepage-effects .top-news-right a:focus-visible,
.homepage-effects .social-links a:focus-visible,
.homepage-effects .teacher-social-row a:focus-visible,
.homepage-effects .teacher-switcher-link:focus-visible,
.homepage-effects .footer-social a:focus-visible,
.homepage-effects .footer-links-col a:focus-visible,
.homepage-effects .footer-legal a:focus-visible,
.homepage-effects .top-news-close:focus-visible {
  outline: 3px solid rgba(252, 192, 49, 0.9);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .homepage-effects .top-news-right a,
  .homepage-effects .social-links a,
  .homepage-effects .teacher-social-row a,
  .homepage-effects .teacher-switcher-link,
  .homepage-effects .footer-social a,
  .homepage-effects .footer-links-col a,
  .homepage-effects .footer-legal a,
  .homepage-effects .challenge-tag,
  .homepage-effects .challenge-card,
  .homepage-effects .teacher-profile-card,
  .homepage-effects .teacher-hero-image,
  .homepage-effects .challenge-cta,
  .homepage-effects .footer-newsletter-btn,
  .homepage-effects .teacher-profile-photo img,
  .homepage-effects .teacher-hero-image img,
  .homepage-effects .challenge-image-wrap img,
  .homepage-effects .challenge-cta img,
  .homepage-effects .footer-newsletter-btn img,
  .homepage-effects .fx-reveal {
    animation: none !important;
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  body {
    overflow-x: auto;
  }

  .teacher-page-canvas {
    min-width: 1586px;
  }
}

@media (max-width: 1199px) {
  body.homepage-effects .main-nav {
    display: none !important;
  }

  body.homepage-effects .contact-strip-inner {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 !important;
  }

  body.homepage-effects .social-links {
    margin-left: 0 !important;
  }

  body {
    overflow-x: hidden;
  }

  .teacher-page-canvas {
    min-width: 0;
    overflow-x: clip;
  }

  .teacher-main {
    padding-top: 20px;
  }

  .teacher-main-grid {
    column-gap: 0;
    grid-template-columns: 1fr;
    margin: 0 auto;
    row-gap: 28px;
    width: calc(100% - 32px);
  }

  .teacher-profile-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
    row-gap: 18px;
  }

  .teacher-profile-photo {
    aspect-ratio: 311 / 466;
    height: auto;
    width: 100%;
  }

  .teacher-profile-content {
    padding-top: 0;
  }

  .teacher-profile-content h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  .teacher-profile-content h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .teacher-profile-content p {
    font-size: 15px;
    line-height: 1.8;
  }

  .teacher-programs-line {
    font-size: 13px;
    line-height: 1.5 !important;
  }

  .teacher-intro-text,
  .teacher-free-time-text {
    font-size: 13px;
    line-height: 1.72;
    width: 100%;
  }

  .teacher-intro-text {
    margin-top: 24px;
  }

  .teacher-hero-image {
    aspect-ratio: 854 / 618;
    height: auto;
    margin-top: 28px;
    width: 100%;
  }

  .teacher-free-time-title {
    font-size: 46px;
    line-height: 1.12;
    margin-top: 30px;
    width: 100%;
  }

  .teacher-free-time-text {
    margin-top: 18px;
  }

  .teacher-side-rail {
    margin: 0 auto;
    max-width: 560px;
    position: static;
  }

  .challenge-card {
    margin-top: 10px;
    min-height: 0;
    padding: 16px;
    width: 100%;
  }

  .challenge-image-wrap {
    aspect-ratio: 419 / 290;
    height: auto;
    width: 100%;
  }

  .challenge-image-main {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
  }

  .challenge-price-line {
    margin-top: 18px;
  }

  .challenge-price-line strong {
    font-size: 24px;
    line-height: 1.2;
  }

  .challenge-price-line span {
    font-size: 14px;
    line-height: 1.4;
  }

  .challenge-cta {
    font-size: 18px;
    line-height: 1.2;
    margin-top: 14px;
    min-height: 52px;
    width: 100%;
  }

  .challenge-cta img {
    flex: 0 0 28px;
    height: 28px;
    width: 28px;
  }

  .challenge-note {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 12px;
    width: 100%;
  }

  .teacher-switcher-card {
    margin-top: 12px;
    width: 100%;
  }

  .site-footer {
    margin-top: 56px;
  }

  .homepage-effects .teacher-page-canvas::before,
  .homepage-effects .teacher-page-canvas::after {
    display: none;
  }
}

@media (max-width: 767px) {
  body.homepage-effects .top-news-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 !important;
  }

  body.homepage-effects .top-news-right {
    width: 100%;
  }

  body.homepage-effects .top-news-right a {
    font-size: 14px;
    line-height: 18px;
  }

  body.homepage-effects .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  body.homepage-effects .nav-actions {
    gap: 12px;
    width: 100%;
  }

  body.homepage-effects .btn-cart,
  body.homepage-effects .btn-login {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
  }

  .teacher-main-grid {
    width: calc(100% - 24px);
  }

  .teacher-profile-content h1 {
    font-size: 27px;
    letter-spacing: -0.54px;
  }

  .teacher-profile-content h2 {
    font-size: 20px;
    letter-spacing: -0.2px;
  }

  .teacher-profile-content p {
    font-size: 14px;
    line-height: 1.65;
  }

  .teacher-programs-line {
    font-size: 12px;
    line-height: 1.45 !important;
  }

  .teacher-social-row {
    margin-top: 14px;
  }

  .teacher-free-time-title {
    font-size: 45px;
    letter-spacing: -0.56px;
  }

  .teacher-intro-text,
  .teacher-free-time-text {
    font-size: 11px;
    line-height: 1.58;
  }

  .challenge-tag {
    font-size: 13px;
    gap: 6px;
    line-height: 18px;
  }

  .challenge-cta {
    font-size: 16px;
    min-height: 48px;
    padding: 0 16px;
  }

  .challenge-note {
    font-size: 14px;
    line-height: 1.45;
  }

  .teacher-switcher-card {
    padding: 16px;
  }

  .teacher-switcher-card h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .teacher-switcher-link strong {
    font-size: 15px;
    line-height: 1.35;
  }
}
