/* Yak Yacker homepage — one owner for page 8582.
   Replaces yy-home-final, yy-home-fixes, and yy-home-wp-shell-8582. */

body.page-id-8582 #content.site-content,
body.page-id-8582 .site-content,
body.page-id-8582 #content .ast-container,
body.page-id-8582 .site-content .ast-container,
body.page-id-8582 .ast-container,
body.page-id-8582 #primary,
body.page-id-8582 .content-area,
body.page-id-8582 .site-main,
body.page-id-8582 article.page,
body.page-id-8582 article.ast-article-single,
body.page-id-8582 .entry-content,
body.page-id-8582 .wp-block-html {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  background: transparent;
  box-shadow: none;
  border: 0;
}

body.page-id-8582,
body.page-id-8582 #page {
  overflow-x: hidden;
  background: #0f0524 !important;
}

body.page-id-8582 .site-content,
body.page-id-8582 #content {
  background: transparent;
}

body.page-id-8582.ast-page-builder-template
.entry-content[data-ast-blocks-layout] > .yy-home > * {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.page-id-8582 .entry-content > *:first-child,
body.page-id-8582 .entry-content > * + *,
body.page-id-8582 .page-content > * + * {
  margin-top: 0 !important;
}

body.page-id-8582 .entry-content .yy-home h1,
body.page-id-8582 .entry-content .yy-home h2,
body.page-id-8582 .entry-content .yy-home h3,
body.page-id-8582 .entry-content .yy-home h4,
body.page-id-8582 .entry-content .yy-home p,
body.page-id-8582 .entry-content .yy-home ul,
body.page-id-8582 .entry-content .yy-home ol,
body.page-id-8582 .entry-content .yy-home li {
  margin: 0;
  padding: 0;
}

body.page-id-8582 .entry-content .yy-home p.yy-cefr-pill {
  display: none;
}

body.page-id-8582 .entry-content .yy-home a {
  text-decoration: none;
  box-shadow: none;
  color: inherit;
}

body.page-id-8582 .entry-content .yy-home img {
  border: 0;
  border-radius: 0;
  max-width: 100%;
  height: auto;
}

.yy-home {
  --yy-ink: #171321;
  --yy-muted: #716a7d;
  --yy-purple: #7c3aed;
  --yy-violet: #6528f7;
  --yy-cyan: #22d5f0;
  --yy-lav: #ece5ff;
  --yy-dark: #120a1f;
  --yy-frame: min(1440px, 100%);
  width: 100%;
  margin: 0;
  color: var(--yy-ink);
  font-family: Inter, system-ui, sans-serif;
  overflow: visible;
  background: #fff;
}

.yy-home *,
.yy-home *::before,
.yy-home *::after {
  box-sizing: border-box;
}

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

.yy-home ul {
  list-style: none;
}

.yy-frame {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 64px);
  padding-right: clamp(16px, 4vw, 64px);
}

.yy-accent {
  color: var(--yy-purple);
  font-style: normal;
  font-weight: 800;
}

.yy-accent-cyan {
  color: #7fe9fb;
  font-weight: 600;
  font-style: normal;
}

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

.yy-flag {
  display: block;
  overflow: hidden;
  line-height: 0;
  background: #111;
  box-sizing: border-box;
  border: 1.5px solid #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.38), 0 3px 8px rgba(0, 0, 0, 0.2);
}

.yy-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transform-origin: center;
}

.yy-flag--sm {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  flex: 0 0 32px;
}

.yy-flag--round {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
}

/* ---- S1 Hero ---- */
.yy-hero {
  background: var(--yy-lav);
}

.yy-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: clamp(20px, 4vw, 48px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.yy-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  max-width: 36rem;
}

.yy-hero h1 {
  font-family: "League Spartan", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--yy-ink);
}

.yy-hero__lede {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--yy-muted);
}

.yy-hero__lede--desktop {
  display: none;
}

.yy-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.yy-home a.yy-hero__cta,
.yy-home a.yy-cards__cta,
.yy-home a.yy-free__cta,
.yy-home a.yy-vocab__cta,
.yy-home a.yy-trust__cta,
.yy-home a.yy-news__cta,
.yy-home a.yy-pun__cta,
.yy-home a.yy-support__cta,
.yy-home a.yy-readers__cta,
.yy-home a.yy-tests__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 16px;
  background: var(--yy-purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

/* Soft dark shadow only. White glows on dark purple look blurry. */
.yy-home a.yy-hero__cta,
.yy-home a.yy-free__cta,
.yy-home a.yy-cards__cta,
.yy-home a.yy-trust__cta,
.yy-home a.yy-vocab__cta,
.yy-home a.yy-pun__cta,
.yy-home a.yy-news__cta,
.yy-home a.yy-support__cta,
.yy-home a.yy-support__ghost,
.yy-home .yy-stepper a.yy-lv {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.yy-home a.yy-hero__textlink {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--yy-ink);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.16s ease, color 0.16s ease;
}

.yy-fat-arrow,
.yy-cta-arrow {
  width: 20px;
  height: 12px;
  flex: 0 0 20px;
}

.yy-hero__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: min(100%, 760px);
}

.yy-phone {
  position: relative;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.yy-phone__bezel {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #111;
  padding: 4px;
  box-sizing: border-box;
  box-shadow: 0 18px 36px rgba(17, 8, 36, 0.28);
}

.yy-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

.yy-phone--splash {
  width: min(52vw, 340px);
  aspect-ratio: auto;
  height: auto;
  border-radius: 0;
  transform: none;
  z-index: 3;
  margin-right: -14%;
}

.yy-phone--splash img {
  border-radius: 0;
}

.yy-phone--study {
  width: min(52vw, 340px);
  aspect-ratio: auto;
  height: auto;
  border-radius: 0;
  transform: none;
  z-index: 2;
  margin-left: -4%;
}

.yy-hero .yy-phone__bezel {
  position: static;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.yy-hero .yy-phone {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2)) drop-shadow(0 22px 36px rgba(0, 0, 0, 0.18));
}

.yy-hero .yy-phone img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.yy-cards .yy-phone__bezel {
  position: static;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.yy-cards .yy-phone {
  filter: drop-shadow(0 6px 14px rgba(255, 255, 255, 0.16)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42));
  aspect-ratio: auto;
  height: auto;
  border-radius: 0;
  transform: none;
}

.yy-cards .yy-phone img,
.yy-phone--home img,
.yy-phone--pack img,
.yy-phone--study-s3 img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

/* ---- S2 Languages ---- */
.yy-langs {
  background: #fff;
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: clamp(36px, 5vw, 68px);
}

.yy-langs .yy-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.yy-langs h2,
.yy-free h2,
.yy-cards h2,
.yy-courses h2,
.yy-readers h2,
.yy-vocab h2,
.yy-tests h2,
.yy-resources h2,
.yy-news h2,
.yy-pun h2,
.yy-support h2 {
  font-family: "League Spartan", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.yy-langs h2 {
  font-size: clamp(22px, 3vw, 38px);
  text-align: center;
  color: var(--yy-ink);
}

.yy-flag-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
  width: min(100%, 720px);
  justify-items: center;
}

.yy-flag-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 88px;
  padding: 8px 4px 6px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--yy-ink);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.yy-flag-row .yy-flag {
  width: 80px;
  height: 53px;
  border-radius: 8px;
}

.yy-flag-row span:not(.yy-flag) {
  display: block;
  width: 100%;
}

/* ---- S3 Flashcards ---- */
.yy-cards {
  position: relative;
  overflow: hidden;
  background: var(--yy-dark);
  color: #faf7ff;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.yy-cards__glow,
.yy-cards__fade,
.yy-courses__glow,
.yy-vocab__glow,
.yy-free__wash,
.yy-install__glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.yy-cards__glow--purple {
  right: -8%;
  top: 12%;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  background: rgba(125, 59, 237, 0.12);
  filter: blur(40px);
}

.yy-cards__glow--cyan,
.yy-cards__fade {
  display: none;
}

.yy-cards .yy-frame {
  display: grid;
  gap: 36px;
  justify-items: center;
  min-width: 0;
  max-width: 100%;
}

.yy-cards__copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  width: 100%;
  max-width: min(36rem, 100%);
  min-width: 0;
}

.yy-cards h2 {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.12;
  color: #faf7ff;
}

.yy-cards__copy > p {
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.45;
  color: #d1c7eb;
}

.yy-cards__neon {
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 59, 237, 0), #7d3bed 50%, rgba(33, 212, 237, 0));
}

.yy-cards__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 280px;
  margin: 0;
}

.yy-phone--home,
.yy-phone--pack {
  flex: 0 0 auto;
  width: 32%;
  max-width: 290px;
  z-index: 1;
}

.yy-phone--home {
  margin-right: -11%;
}

.yy-phone--pack {
  margin-left: -11%;
}

.yy-phone--study-s3 {
  flex: 0 0 auto;
  width: 50%;
  max-width: 400px;
  z-index: 3;
  margin: 0;
}

/* ---- S4 Free ---- */
.yy-free {
  position: relative;
  overflow: hidden;
  background: #f7f4ff;
  padding-top: clamp(40px, 6vw, 82px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.yy-free__wash {
  left: 50%;
  top: -80px;
  width: min(1100px, 140vw);
  height: 280px;
  transform: translateX(-50%);
  background: rgba(124, 58, 237, 0.07);
  filter: blur(80px);
}

.yy-free .yy-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.yy-free h2 {
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.15;
  color: #100a22;
}

.yy-free__sub {
  max-width: 40rem;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.5;
  color: #5c5474;
}

.yy-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.yy-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 22px;
  background: #f5f1ff;
  border: 1px solid #e6dcff;
  font-weight: 500;
  font-size: 15px;
  color: #3b2f5e;
}

.yy-pill b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--yy-purple);
  color: #fff;
  font-size: 12px;
}

.yy-steps {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  text-align: left;
}

.yy-step__arrow {
  display: none;
  color: #b79bf5;
  font-size: 24px;
}

.yy-step {
  display: grid;
  grid-template-columns: 28px 64px 1fr;
  grid-template-areas: "n icon title" "n icon desc";
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}

.yy-step__n {
  grid-area: n;
  font-weight: 700;
  color: var(--yy-purple);
}

.yy-step__icon,
.yy-home img.yy-step__icon {
  grid-area: icon;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.yy-step h3 {
  grid-area: title;
  font-size: 18px;
  font-weight: 700;
  color: #100a22;
}

.yy-step p {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.45;
  color: #5c5474;
}

.yy-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1080px;
}

.yy-install__art {
  width: min(100%, 720px);
  flex: 1 1 auto;
}

.yy-install__hero,
.yy-home .yy-install img.yy-install__hero {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.14));
}

.yy-install__copy {
  max-width: 26rem;
}

.yy-install__copy p {
  font-size: 17px;
  line-height: 1.5;
  color: #4a4260;
}

.yy-home a.yy-free__cta {
  width: min(100%, 268px);
  min-height: 56px;
  margin: 16px auto 0;
  border-radius: 36px;
  background: linear-gradient(180deg, #7c3aed, #a855f7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  font-size: 18px;
}

/* ---- S6 Courses ---- */
.yy-courses {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #241059, #150730);
  color: #fff;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.yy-courses .yy-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.yy-courses h2,
.yy-readers h2,
.yy-resources h2,
.yy-tests h2 {
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.12;
  text-align: center;
}

.yy-courses h2 {
  color: #fff;
}

.yy-courses__lede,
.yy-readers__lede,
.yy-tests__lede,
.yy-vocab__lede {
  max-width: 44rem;
  text-align: center;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
}

.yy-courses__lede {
  color: #d1c7eb;
}

.yy-courses__media {
  position: relative;
  width: min(100%, 760px);
  aspect-ratio: 760 / 520;
  margin: 0;
  padding: 28px 22px 24px;
  border-radius: 28px;
  overflow: hidden;
  background: #f6f2ff;
  box-shadow: 0 18px 40px rgba(8, 4, 20, 0.28);
}

.yy-lesson {
  position: absolute;
  width: 58%;
  height: auto;
  opacity: 1;
  filter: drop-shadow(0 14px 24px rgba(23, 19, 33, 0.22));
  transform: none;
}

.yy-lesson--back {
  left: 40%;
  top: 14%;
  width: 52%;
  z-index: 1;
}

.yy-lesson--front {
  left: 6%;
  top: 20%;
  width: 56%;
  z-index: 2;
}

.yy-cefr-pill {
  display: none;
}

.yy-levels {
  display: grid;
  gap: 12px;
  width: min(100%, 590px);
}

.yy-level {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.yy-level strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 56px;
  color: #fff;
}

.yy-home .yy-level strong {
  color: #fff;
}

.yy-level:nth-of-type(1) strong {
  background: linear-gradient(180deg, #8b5cf6, #a855f7);
}

.yy-level:nth-of-type(2) strong {
  background: linear-gradient(180deg, #c05bf5, #e056c8);
}

.yy-level:nth-of-type(3) strong {
  background: linear-gradient(180deg, #22d5f0, #5be3c0);
}

.yy-level h3 {
  font-size: 18px;
  font-weight: 600;
}

.yy-level p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(198, 183, 234, 0.9);
}

.yy-level__path {
  display: block;
  width: 3px;
  height: 20px;
  margin: 0 auto 0 26px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8b5cf6, #c05bf5);
}

.yy-courses__choose {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  text-align: center;
  max-width: 40rem;
  line-height: 1.35;
}

.yy-lang-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1080px;
}

.yy-lang-cards a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 164px;
  padding: 16px 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: visible;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.yy-lang-cards .yy-flag {
  width: 96px;
  height: 64px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(8, 4, 20, 0.35);
}

.yy-lang-cards .yy-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yy-lang-cards li {
  display: flex;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 164px;
}

.yy-lang-cards__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.yy-lang-cards__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  text-align: center;
}

.yy-lang-cards small {
  margin-left: 0;
  color: #8bf0ff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---- S7 Readers ---- */
.yy-readers {
  background: #fff;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.yy-readers .yy-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.yy-readers h2,
.yy-resources h2,
.yy-tests h2,
.yy-vocab h2 {
  color: var(--yy-ink);
}

.yy-readers__lede,
.yy-tests__lede,
.yy-vocab__lede {
  color: #3d364a;
}

.yy-story-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.yy-story {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #f7f4ff;
  color: inherit;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.yy-story__cover {
  position: relative;
  margin: 0;
}

.yy-story__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 392 / 520;
  object-fit: cover;
}

.yy-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yy-violet);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.yy-story__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.yy-story__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.yy-story h3 {
  font-size: 22px;
}

.yy-story p {
  color: #4a4260;
  line-height: 1.45;
}

.yy-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #5c5474;
}

.yy-chips span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.yy-dot--violet { background: #7c3aed; }
.yy-dot--pink { background: #e056c8; }
.yy-dot--cyan { background: #22d5f0; }

.yy-home a.yy-readers__cta,
.yy-home a.yy-tests__cta {
  background: transparent;
  color: var(--yy-purple);
  padding: 8px 0;
}

/* ---- S8 Vocab ---- */
.yy-vocab {
  position: relative;
  overflow: hidden;
  background: #1a0b3a;
  color: #fff;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.yy-vocab__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.yy-vocab h2,
.yy-vocab__lede {
  color: #fff;
  text-align: center;
}

.yy-vocab__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  max-width: 1120px;
}

.yy-vocab__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  text-align: center;
  height: auto;
  box-sizing: border-box;
}

.yy-vocab__col h3 {
  font-family: "League Spartan", Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  width: 100%;
}

.yy-vocab__col > p {
  display: none;
}

.yy-home a.yy-vocab__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  min-height: 56px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #d1c7eb;
  border: 0;
  box-shadow: none;
  text-align: left;
  transition: transform 0.16s ease;
}

.yy-vocab__btn .yy-flag,
.yy-vocab__btn .yy-flag.yy-flag--sm {
  width: 84px;
  height: 56px;
  flex: 0 0 84px;
  border-radius: 10px;
  border: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.28);
}

.yy-vocab__btn .yy-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yy-vocab__btn span:last-child {
  text-align: left;
}

.yy-vocab__label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.yy-vocab__btn strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: #d1c7eb;
}

.yy-vocab__btn small {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #b7a8d9;
}

.yy-home a.yy-vocab__quiet {
  display: none;
}

.yy-vocab__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.yy-cefr-box {
  width: 100%;
  padding: 24px;
  border-radius: 24px;
  background: rgba(28, 10, 64, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.yy-cefr-box h3 {
  font-size: 22px;
}

.yy-cefr-box > p {
  margin-top: 6px;
  color: #c6b7ea;
}

.yy-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.yy-home .yy-stepper a.yy-lv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 20px;
  color: #171321;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.yy-home .yy-stepper a.yy-lv--a1 { background: #7c3aed; color: #fff; }
.yy-home .yy-stepper a.yy-lv--a2 { background: #e056c8; color: #171321; }
.yy-home .yy-stepper a.yy-lv--b1 { background: #22d5f0; color: #171321; }

.yy-home .yy-stepper span { color: #8bf0ff; font-weight: 700; }

.yy-cefr-langs {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.yy-cefr-langs a {
  display: grid;
  grid-template-columns: 22px auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #fff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.yy-cefr-langs i {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.yy-cefr-langs small {
  color: #8bf0ff;
  font-size: 12px;
}

.yy-home a.yy-pre-a1 {
  display: inline-block;
  margin-top: 14px;
  color: #c6b7ea;
  font-size: 14px;
  transition: transform 0.16s ease, color 0.16s ease;
}

.yy-table-visual {
  display: none;
  overflow: hidden;
  border-radius: 22px;
}

.yy-table-visual img {
  width: 100%;
  height: auto;
}

.yy-specialists-label {
  font-size: 20px;
  font-weight: 700;
}

.yy-specialists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}

.yy-specialists a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(28, 10, 64, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.yy-specialists small {
  display: block;
  color: #8bf0ff;
}

/* ---- S9 Tests ---- */
.yy-tests {
  background: #faf9fc;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.yy-tests__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.yy-tests__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.yy-qpreview {
  width: min(100%, 1280px);
  margin: 0;
}

.yy-qpreview__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #7c3aed;
  border-radius: 18px;
  background: #fff;
  box-sizing: border-box;
}

.yy-qpreview__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.yy-qpreview__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: #f3edff;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 600;
}

.yy-qpreview__tag .yy-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 18px;
}

.yy-qpreview__q {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: #171321;
  line-height: 1.3;
}

.yy-qpreview__blank {
  display: inline-block;
  width: 2.4em;
  border-bottom: 2px solid #171321;
  vertical-align: baseline;
}

.yy-qpreview__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yy-qpreview__opts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid #e6e0f2;
  background: #fff;
  color: #171321;
  font-size: 15px;
  font-weight: 600;
}

body.page-id-8582 .entry-content .yy-home .yy-qpreview__opts li {
  padding: 6px 12px 6px 8px;
}

.yy-qpreview__opts li.is-on {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}

.yy-qpreview__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c4bdd4;
  box-sizing: border-box;
}

.yy-qpreview__opts li.is-on .yy-qpreview__radio {
  border-color: #7c3aed;
  box-shadow: inset 0 0 0 4px #7c3aed;
}

.yy-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1280px;
}

.yy-test-grid a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 140px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--yy-ink);
  border: 1px solid #ece6f8;
  box-shadow: 0 8px 18px rgba(23, 19, 33, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.yy-test-grid a:hover,
.yy-test-grid a:focus-visible,
.yy-test-grid a:active {
  transform: translateY(-2px);
  border-color: #d8c8ff;
  box-shadow: 0 12px 28px rgba(101, 40, 247, 0.14);
  outline: none;
}

.yy-test-grid .yy-flag {
  width: 56px;
  height: 37px;
  border-radius: 6px;
}

.yy-test-grid strong {
  display: block;
  font-size: 16px;
}

.yy-test-grid strong + span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #5c5474;
}

.yy-name-short { display: inline; }
.yy-name-full { display: none; }

/* ---- S10 Trust ---- */
.yy-trust {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 420px;
}

.yy-trust__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}

.yy-trust__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 5, 28, 0.55), rgba(12, 5, 28, 0.72));
}

.yy-trust .yy-frame {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.yy-trust__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 920px;
}

.yy-trust__stat b {
  display: block;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  color: #fff;
}

.yy-stars {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
}

.yy-stars svg {
  width: 22px;
  height: 22px;
}

.yy-trust__users {
  font-size: clamp(16px, 2vw, 22px);
  padding-bottom: 12px;
  color: #fff;
}

.yy-trust__brand {
  font-weight: 700;
}

.yy-proofs {
  display: grid;
  gap: 14px;
}

.yy-proofs article,
.yy-proofs a {
  display: block;
  padding: 16px 16px 16px 18px;
  border-radius: 16px;
  background: rgba(18, 8, 40, 0.45);
  color: #fff;
  border-left: 4px solid #7c3aed;
}

.yy-proofs a {
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.yy-proofs h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.yy-proofs p {
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
}

.yy-home a.yy-trust__cta {
  width: fit-content;
  min-height: 56px;
  border-radius: 999px;
  gap: 8px;
}

/* ---- S11 Resources ---- */
.yy-resources {
  background: #f7f5ff;
  padding-top: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 56px);
}

.yy-resources .yy-frame {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yy-resources h2 {
  text-align: left;
}

.yy-resources__split {
  display: grid;
  gap: 24px;
}

.yy-resources__media {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #efeafc;
}

.yy-resources__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 50% 20%;
}

.yy-lanes {
  display: grid;
  gap: 12px;
}

.yy-home a.yy-lane {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  color: inherit;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.yy-lane__bar {
  width: 8px;
  min-height: 48px;
  border-radius: 4px;
  background: var(--yy-violet);
  flex: 0 0 8px;
}

.yy-lane h3 {
  font-size: 22px;
  color: var(--yy-violet);
}

.yy-lane p {
  margin-top: 6px;
  color: #332947;
}

/* ---- S12 Newsletter ---- */
.yy-news,
.yy-support {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.yy-news {
  background: #1a0a33;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.yy-news__row,
.yy-support__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.yy-news__copy,
.yy-support__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 32rem;
}

.yy-news__media,
.yy-support__media {
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #120624;
  aspect-ratio: 16 / 10;
}

.yy-news__media picture,
.yy-support__media picture,
.yy-news__photo,
.yy-support__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.yy-news__photo,
.yy-support__photo {
  object-fit: cover;
}

.yy-news__photo {
  object-position: 78% 48%;
}

body.page-id-8582 .yy-news h2,
body.page-id-8582 .yy-news__copy > p,
body.page-id-8582 .yy-support h2,
body.page-id-8582 .yy-support__copy > p,
body.page-id-8582 .yy-trust__stat b,
body.page-id-8582 .yy-trust__users,
body.page-id-8582 .yy-trust h3,
body.page-id-8582 .yy-proofs p,
body.page-id-8582 .yy-vocab h2,
body.page-id-8582 .yy-vocab__lede,
body.page-id-8582 .yy-courses h2 {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn strong {
  color: #d1c7eb;
  -webkit-text-fill-color: #d1c7eb;
}

body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn small {
  color: #b7a8d9;
  -webkit-text-fill-color: #b7a8d9;
}

.yy-home a.yy-news__cta {
  width: fit-content;
  border-radius: 16px;
  background: #fff;
  color: #4d1ab8;
}

/* ---- S13 Pun ---- */
.yy-pun {
  background: #faf9fc;
  color: var(--yy-ink);
  padding-top: 28px;
  padding-bottom: 28px;
}

.yy-pun__row {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.yy-pun__media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
}

.yy-pun__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
}

.yy-pun__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.yy-pun h2,
.yy-pun__copy > p {
  color: var(--yy-ink);
}

.yy-home a.yy-pun__cta {
  width: fit-content;
  border-radius: 16px;
  background: var(--yy-purple);
  color: #fff;
}

/* ---- S14 Support ---- */
.yy-support {
  background: #0f0524;
  margin-bottom: 0;
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.yy-support__photo {
  object-position: 50% 42%;
}

.yy-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.yy-home a.yy-support__cta {
  border-radius: 16px;
  background: #38f0fa;
  color: #120d38;
}

.yy-home a.yy-support__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 16px;
  color: #c7f7ff;
  font-weight: 600;
  border: 1px solid rgba(199, 247, 255, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

body.page-id-8582 .site-footer,
body.page-id-8582 #colophon {
  margin-top: 0 !important;
  padding-top: 0;
  border-top: 0 !important;
  box-shadow: none;
}

body.page-id-8582 .site-above-footer-wrap,
body.page-id-8582 #colophon .site-above-footer-wrap {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.page-id-8582 .site-primary-footer-wrap,
body.page-id-8582 #colophon .site-primary-footer-wrap {
  margin-top: 0 !important;
  padding-top: 48px;
  border-top: 0 !important;
  box-shadow: none !important;
}

body.page-id-8582 .site-footer::before,
body.page-id-8582 #colophon::before,
body.page-id-8582 .site-primary-footer-wrap::before,
body.page-id-8582 .site-below-footer-wrap::before {
  content: none !important;
  display: none !important;
  border: 0 !important;
  height: 0 !important;
}

@media (max-width: 767px) {
  body.page-id-8582 .yy-support {
    min-height: 0;
  }

  body.page-id-8582 .site-primary-footer-wrap,
  body.page-id-8582 #colophon .site-primary-footer-wrap {
    padding-top: 36px;
  }
}

@media (max-width: 979px) {
  .yy-lang-cards__name {
    min-height: 0;
  }
}

/* ---- Desktop / tablet ---- */
@media (min-width: 600px) {
  .yy-flag-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: min(100%, 880px);
  }

  .yy-name-short { display: none; }
  .yy-name-full { display: inline; }

  .yy-lang-cards,
  .yy-specialists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .yy-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 32px;
  }

  .yy-hero__copy {
    text-align: left;
    max-width: none;
  }

  .yy-hero__lede--desktop { display: block; }
  .yy-hero__lede--mobile { display: none; }

  .yy-hero__actions { justify-content: flex-start; }

  .yy-home a.yy-hero__textlink { display: inline-flex; }

  .yy-vocab__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 28px;
    align-items: stretch;
  }

  .yy-home a.yy-vocab__btn {
    max-width: none;
  }

  .yy-test-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .yy-test-grid li {
    flex: 0 1 calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
  }

  .yy-test-grid a {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .yy-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .yy-step {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "n" "title" "desc";
    justify-items: center;
    text-align: center;
  }

  .yy-step__icon,
  .yy-home img.yy-step__icon {
    width: 96px;
    height: 96px;
  }

  .yy-install {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    max-width: 1080px;
    text-align: left;
  }

  .yy-install__art {
    flex: 1 1 58%;
    width: min(100%, 720px);
  }

  .yy-install__copy {
    flex: 1 1 36%;
    max-width: none;
  }

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

  .yy-proofs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yy-resources__split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .yy-pun__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
    gap: 32px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .yy-pun__copy {
    padding: 0;
    justify-content: center;
  }

  .yy-pun__media img {
    height: auto;
    display: block;
  }

  .yy-news {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .yy-support {
    padding-top: 28px;
    padding-bottom: 0;
  }

  .yy-news__row,
  .yy-support__row {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: stretch;
    gap: 40px;
    min-height: 360px;
    height: 360px;
  }

  .yy-news__media,
  .yy-support__media {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 24px;
    overflow: hidden;
  }

  .yy-news__copy,
  .yy-support__copy {
    margin-left: 0;
    text-align: left;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (min-width: 980px) {
  .yy-cards .yy-frame {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    justify-items: stretch;
  }

  .yy-cards__copy {
    align-items: flex-start;
    text-align: left;
    max-width: 20.5rem;
  }

  .yy-cards__media {
    justify-content: flex-end;
    width: min(100%, 920px);
  }

  .yy-cards__glow--purple {
    opacity: 0.85;
  }

  .yy-phone--splash { width: 360px; margin-right: -72px; }
  .yy-phone--study { width: 360px; margin-left: -24px; }

  .yy-vocab__panel {
    flex-direction: row;
    align-items: stretch;
  }

  .yy-cefr-box { flex: 1 1 42%; }
  .yy-table-visual {
    display: block;
    flex: 1 1 58%;
  }

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

  .yy-lang-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 1120px;
    margin-inline: auto;
  }

  .yy-lang-cards li {
    flex: 0 1 calc((100% - 36px) / 4);
    max-width: calc((100% - 36px) / 4);
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 172px;
  }

  .yy-test-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .yy-proofs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .yy-trust__photo {
    object-position: center 35%;
  }
}

@media (min-width: 1280px) {
  .yy-courses .yy-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 1440px) {
  .yy-phone--home,
  .yy-phone--pack { width: 290px; }
  .yy-phone--home { margin-right: -56px; }
  .yy-phone--pack { margin-left: -36px; }
  .yy-phone--study-s3 { width: 400px; margin: 0; }
}

@media (max-width: 379px) {
  .yy-flag-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .yy-flag-row .yy-flag {
    width: 64px;
    height: 42px;
  }
}

body.page-id-8582 .entry-content .yy-home img.yy-news__photo,
body.page-id-8582 .entry-content .yy-home img.yy-support__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

body.page-id-8582 .entry-content .yy-home img.yy-trust__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

body.page-id-8582 .entry-content .yy-home .yy-vocab__btn .yy-flag img,
body.page-id-8582 .entry-content .yy-home .yy-lang-cards .yy-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-id-8582 .entry-content .yy-home .yy-news__media,
body.page-id-8582 .entry-content .yy-home .yy-support__media,
body.page-id-8582 .entry-content .yy-home .yy-pun__media,
body.page-id-8582 .entry-content .yy-home .yy-pun__media img {
  border-radius: 24px;
}

body.page-id-8582 .entry-content .yy-home .yy-cards .yy-phone img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

body.page-id-8582 .entry-content .yy-home .yy-hero .yy-phone img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

body.page-id-8582 .entry-content .yy-home a.yy-hero__cta,
body.page-id-8582 .entry-content .yy-home a.yy-cards__cta,
body.page-id-8582 .entry-content .yy-home a.yy-free__cta,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__cta,
body.page-id-8582 .entry-content .yy-home a.yy-trust__cta,
body.page-id-8582 .entry-content .yy-home a.yy-pun__cta {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

body.page-id-8582 .yy-pun h2,
body.page-id-8582 .yy-pun__copy > p {
  color: var(--yy-ink);
  -webkit-text-fill-color: var(--yy-ink);
}

body.page-id-8582 .entry-content .yy-home a.yy-vocab__quiet {
  color: #c6b7ea;
  -webkit-text-fill-color: #c6b7ea;
}

body.page-id-8582 .entry-content .yy-home a.yy-news__cta {
  color: #4d1ab8 !important;
  -webkit-text-fill-color: #4d1ab8 !important;
}

body.page-id-8582 .entry-content .yy-home a.yy-support__cta {
  color: #120d38;
  -webkit-text-fill-color: #120d38;
}

body.page-id-8582 .entry-content .yy-home a.yy-readers__cta,
body.page-id-8582 .entry-content .yy-home a.yy-tests__cta,
body.page-id-8582 .entry-content .yy-home a.yy-hero__textlink {
  color: #7c3aed;
  -webkit-text-fill-color: #7c3aed;
}

body.page-id-8582 .entry-content .yy-home a.yy-support__ghost {
  color: #c7f7ff;
  -webkit-text-fill-color: #c7f7ff;
}

body.page-id-8582 .entry-content .yy-home a.yy-hero__cta,
body.page-id-8582 .entry-content .yy-home a.yy-free__cta,
body.page-id-8582 .entry-content .yy-home a.yy-cards__cta,
body.page-id-8582 .entry-content .yy-home a.yy-trust__cta,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__cta,
body.page-id-8582 .entry-content .yy-home a.yy-pun__cta,
body.page-id-8582 .entry-content .yy-home a.yy-news__cta,
body.page-id-8582 .entry-content .yy-home a.yy-support__cta,
body.page-id-8582 .entry-content .yy-home a.yy-support__ghost,
body.page-id-8582 .entry-content .yy-home .yy-stepper a.yy-lv {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Shared hover lift for linked cards, flags, lanes, and CTAs. */
body.page-id-8582 .entry-content .yy-home .yy-flag-row a:hover,
body.page-id-8582 .entry-content .yy-home .yy-flag-row a:focus-visible,
body.page-id-8582 .entry-content .yy-home .yy-test-grid a:hover,
body.page-id-8582 .entry-content .yy-home .yy-test-grid a:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-story:hover,
body.page-id-8582 .entry-content .yy-home a.yy-story:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-lane:hover,
body.page-id-8582 .entry-content .yy-home a.yy-lane:focus-visible {
  transform: translateY(-2px);
  border-color: #d8c8ff;
  box-shadow: 0 12px 28px rgba(101, 40, 247, 0.14);
  outline: none;
}

body.page-id-8582 .entry-content .yy-home .yy-lang-cards a:hover,
body.page-id-8582 .entry-content .yy-home .yy-lang-cards a:focus-visible,
body.page-id-8582 .entry-content .yy-home .yy-specialists a:hover,
body.page-id-8582 .entry-content .yy-home .yy-specialists a:focus-visible,
body.page-id-8582 .entry-content .yy-home .yy-cefr-langs a:hover,
body.page-id-8582 .entry-content .yy-home .yy-cefr-langs a:focus-visible,
body.page-id-8582 .entry-content .yy-home .yy-proofs a:hover,
body.page-id-8582 .entry-content .yy-home .yy-proofs a:focus-visible {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 22px rgba(12, 5, 28, 0.28);
  outline: none;
}

body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn:hover,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn:focus-visible {
  transform: translateY(-2px);
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}

body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn:hover .yy-flag,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__btn:focus-visible .yy-flag {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3);
}

body.page-id-8582 .entry-content .yy-home a.yy-hero__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-hero__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-free__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-free__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.16);
}

body.page-id-8582 .entry-content .yy-home a.yy-cards__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-cards__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-trust__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-trust__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-vocab__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-pun__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-pun__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-news__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-news__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-support__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-support__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-support__ghost:hover,
body.page-id-8582 .entry-content .yy-home a.yy-support__ghost:focus-visible,
body.page-id-8582 .entry-content .yy-home .yy-stepper a.yy-lv:hover,
body.page-id-8582 .entry-content .yy-home .yy-stepper a.yy-lv:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.16);
}

body.page-id-8582 .entry-content .yy-home a.yy-hero__textlink:hover,
body.page-id-8582 .entry-content .yy-home a.yy-hero__textlink:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-readers__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-readers__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-tests__cta:hover,
body.page-id-8582 .entry-content .yy-home a.yy-tests__cta:focus-visible,
body.page-id-8582 .entry-content .yy-home a.yy-pre-a1:hover,
body.page-id-8582 .entry-content .yy-home a.yy-pre-a1:focus-visible {
  transform: translateY(-1px);
  color: #5b21b6;
}

body.page-id-8582 .entry-content .yy-home a.yy-pre-a1:hover,
body.page-id-8582 .entry-content .yy-home a.yy-pre-a1:focus-visible {
  color: #fff;
}

body.page-id-8582 .entry-content .yy-home a.yy-table-visual {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

body.page-id-8582 .entry-content .yy-home a.yy-table-visual:hover,
body.page-id-8582 .entry-content .yy-home a.yy-table-visual:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-8582 .entry-content .yy-home a {
    transition: none;
  }

  body.page-id-8582 .entry-content .yy-home a:hover,
  body.page-id-8582 .entry-content .yy-home a:focus-visible {
    transform: none;
  }
}
