:root {
  --red: #c21e2e;
  --red-dark: #981b1e;
  --red-soft: #fff5f5;
  --ink: #111111;
  --dark: #181818;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #f5f5f5;
  --off-white: #fafafa;
  --white: #ffffff;
  --success: #15803d;
  --shadow-sm: 0 8px 26px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 18px 44px rgba(17, 17, 17, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shell: 1240px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--body);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
}

h1 {
  font-size: clamp(2.35rem, 4.2vw, 3.625rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

:focus-visible {
  outline: 3px solid rgba(194, 30, 46, 0.35);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: 96px;
}

.section-heading {
  max-width: 730px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p,
.section-heading-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker--light {
  color: #ff8a8f;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading-row > div {
  max-width: 720px;
}

.section-heading-row h2 {
  margin-bottom: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 25px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button svg,
.card-link svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 9px 20px rgba(194, 30, 46, 0.2);
}

.button--primary:hover {
  background: var(--red-dark);
  box-shadow: 0 12px 26px rgba(194, 30, 46, 0.28);
}

.button--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.button--light-outline {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--white);
}

.button--light-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button--large {
  min-height: 54px;
  padding-inline: 28px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
  background: var(--red-soft);
  color: var(--red);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 700;
}

.card-link svg,
.text-link svg {
  transition: transform 0.2s ease;
}

.card-link:hover svg,
.text-link:hover svg {
  transform: translateX(4px);
}

/* Announcement */
.announcement {
  background: var(--ink);
  color: var(--white);
  font-size: 0.79rem;
}

.announcement__inner {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.announcement p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.announcement__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.announcement__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease;
}

.announcement__links a:hover {
  color: #ff9ca0;
}

.announcement__links svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 900;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.07);
}

.header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: block;
  width: 215px;
  flex: 0 0 215px;
}

.brand img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.55vw, 27px);
  color: #222;
  font-size: clamp(0.78rem, 1vw, 0.91rem);
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav > a,
.nav-dropdown > button {
  position: relative;
  padding-block: 30px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.desktop-nav > a::after,
.nav-dropdown > button::after {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transition: transform 0.22s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown > button:hover {
  color: var(--red);
}

.desktop-nav > a:hover::after,
.desktop-nav > a.is-active::after,
.nav-dropdown > button:hover::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: inherit;
  font-weight: inherit;
}

.nav-dropdown > button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.mega-menu {
  position: absolute;
  top: calc(100% - 5px);
  left: 50%;
  display: grid;
  width: min(900px, calc(100vw - 48px));
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 54px rgba(17, 17, 17, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-40%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-40%, 0);
}

.mega-menu > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mega-menu > div:nth-child(2) {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.mega-menu__title {
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.mega-menu > div a {
  color: var(--muted);
  font-size: 0.84rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-menu > div a:hover {
  color: var(--red);
  transform: translateX(3px);
}

.mega-feature {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(145deg, #181818, #3a1113);
  color: var(--white);
}

.mega-feature span {
  margin-bottom: 7px;
  color: #ff9ca0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-feature strong {
  margin-bottom: 18px;
  font-family: "Poppins", sans-serif;
  font-size: 1.08rem;
  line-height: 1.4;
}

.mega-feature em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
}

.mega-feature svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-count {
  position: absolute;
  top: 3px;
  right: 2px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 700;
}

.header-cta {
  min-height: 46px;
  margin-left: 8px;
  padding-inline: 18px;
  white-space: nowrap;
}

.mobile-menu-button,
.mobile-menu,
.mobile-overlay {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff8f8;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 630px;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: 56px;
  padding-block: 78px;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__shape--one {
  top: -210px;
  right: -120px;
  width: 560px;
  height: 560px;
  border: 100px solid rgba(194, 30, 46, 0.04);
}

.hero__shape--two {
  bottom: -260px;
  left: -230px;
  width: 500px;
  height: 500px;
  background: rgba(194, 30, 46, 0.035);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid #f0c9cb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--red-dark);
  font-size: 0.83rem;
  font-weight: 700;
}

.eyebrow span {
  color: var(--red);
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--red);
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--body);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 29px;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 0.84rem;
  font-weight: 700;
  list-style: none;
}

.hero__checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__checks span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fce4e5;
  color: var(--red);
}

.hero__checks svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(194, 30, 46, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 30, 46, 0.11), rgba(194, 30, 46, 0.025) 58%, transparent 59%);
  transform: translate(-50%, -50%);
}

.hero-visual__halo::before,
.hero-visual__halo::after {
  position: absolute;
  border: 1px dashed rgba(194, 30, 46, 0.16);
  border-radius: 50%;
  content: "";
}

.hero-visual__halo::before {
  inset: 40px;
}

.hero-visual__halo::after {
  inset: 85px;
}

.hero-book {
  position: absolute;
  bottom: 45px;
  overflow: hidden;
  border: 7px solid var(--white);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 28px 54px rgba(17, 17, 17, 0.18);
  transform-origin: bottom center;
}

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

.hero-book--main {
  z-index: 3;
  left: 50%;
  width: 280px;
  height: 350px;
  transform: translateX(-50%);
}

.hero-book--left,
.hero-book--right {
  z-index: 2;
  width: 230px;
  height: 295px;
}

.hero-book--left {
  left: 24px;
  transform: rotate(-8deg);
}

.hero-book--right {
  right: 20px;
  transform: rotate(8deg);
}

.floating-note {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
  padding: 13px 15px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.floating-note > svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-note span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.floating-note strong {
  color: var(--ink);
  font-size: 0.81rem;
}

.floating-note--top {
  top: 35px;
  right: 0;
}

.floating-note--bottom {
  bottom: 12px;
  left: 0;
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip__grid > div {
  display: flex;
  min-height: 118px;
  align-items: center;
  gap: 14px;
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}

.trust-strip__grid > div:last-child {
  border-right: 0;
}

.trust-strip__grid svg {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-strip__grid span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.5;
}

.trust-strip__grid strong {
  margin-bottom: 2px;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.89rem;
}

/* Class cards */
.classes {
  background: var(--white);
}

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

.class-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.045);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.class-card:hover {
  border-color: rgba(194, 30, 46, 0.65);
  box-shadow: 0 18px 38px rgba(194, 30, 46, 0.12);
  transform: translateY(-6px);
}

.class-card--nine { background: #fff6f6; }
.class-card--ten { background: #f7f7f7; }
.class-card--eleven { background: #fff9ef; }
.class-card--twelve { background: #f2f7ff; }

.class-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.class-card__top span {
  color: var(--red);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.class-card__top b {
  color: rgba(194, 30, 46, 0.13);
  font-family: "Poppins", sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.class-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.class-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Products */
.products {
  background: var(--surface);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filter-tabs button {
  padding: 9px 17px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: var(--white);
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-tabs button:hover,
.filter-tabs button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 7px 22px rgba(17, 17, 17, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  border-color: rgba(194, 30, 46, 0.36);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

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

.product-card__image {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  margin: 14px 14px 0;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f8f8;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 17px;
}

.product-type {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.45;
}

.product-card h3 a:hover {
  color: var(--red);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.product-card__footer strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.product-card__footer a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-card__footer a:hover {
  background: var(--red);
  color: var(--white);
}

.product-card__footer svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Benefits */
.why-us {
  background: var(--white);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.benefit-card {
  min-height: 255px;
  padding: 30px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
  border-color: #f1c6c8;
  background: #fffbfb;
  transform: translateY(-4px);
}

.benefit-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
}

.benefit-card__icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  margin-bottom: 11px;
  font-size: 1.1rem;
}

.benefit-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Exam */
.exam {
  padding-top: 32px;
  background: var(--white);
}

.exam-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: 62px;
  padding: 60px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark);
}

.exam-panel__visual {
  padding: 15px;
  border-radius: 18px;
  background: var(--white);
}

.exam-panel__visual img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.exam-panel__content h2 {
  margin-bottom: 17px;
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.exam-panel__content > p {
  margin-bottom: 23px;
  color: #d1d5db;
  font-size: 0.98rem;
}

.exam-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0 0 29px;
  padding: 0;
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 600;
  list-style: none;
}

.exam-features li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.exam-features svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #ff7b80;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.exam-panel__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.exam-panel .text-link {
  color: var(--white);
}

/* Courses */
.courses {
  background: var(--off-white);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.course-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.045);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.course-art {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
}

.course-art::before,
.course-art::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.course-art::before {
  top: -70px;
  right: -45px;
  width: 180px;
  height: 180px;
}

.course-art::after {
  right: 30px;
  bottom: -95px;
  width: 150px;
  height: 150px;
}

.course-art--physics { background: linear-gradient(145deg, #991b1b, #111827); }
.course-art--math { background: linear-gradient(145deg, #1f2937, #991b1b); }
.course-art--chemistry { background: linear-gradient(145deg, #7f1d1d, #312e81); }
.course-art--english { background: linear-gradient(145deg, #111827, #7f1d1d); }

.course-art span {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.course-art strong {
  position: relative;
  z-index: 2;
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
}

.course-art > svg {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.4;
}

.course-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px;
}

.course-label {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.course-card h3 {
  min-height: 52px;
  margin-bottom: 17px;
  font-size: 1.05rem;
}

.course-teacher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.course-teacher > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
}

.course-teacher p {
  display: flex;
  min-width: 0;
  flex-direction: column;
  margin: 0;
  line-height: 1.4;
}

.course-teacher strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-teacher small {
  color: var(--muted);
  font-size: 0.66rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.67rem;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.course-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.course-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eeeeee;
}

.course-card__footer > strong {
  color: var(--success);
  font-size: 0.92rem;
}

.course-card__footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
}

.course-card__footer svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Achievements */
.achievements {
  background: var(--red);
}

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

.achievement-grid > div {
  display: flex;
  min-height: 185px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  text-align: center;
}

.achievement-grid > div:last-child {
  border-right: 0;
}

.achievement-grid strong {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.achievement-grid strong::after {
  content: "+";
}

.achievement-grid > div:last-child strong::after {
  content: "";
}

.achievement-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--red-soft);
}

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

.testimonial-card {
  min-height: 300px;
  padding: 31px;
  border: 1px solid #f0d4d5;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.04);
}

.testimonial-card .quote {
  width: 35px;
  height: 35px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonial-card > p {
  min-height: 116px;
  margin-bottom: 24px;
  color: #374151;
  font-size: 0.96rem;
}

.student {
  display: flex;
  align-items: center;
  gap: 13px;
}

.student > span {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.student div {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.student strong {
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
}

.student small {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Partner cards */
.partners {
  background: var(--white);
}

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

.partner-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 31px;
  border-radius: 18px;
}

.partner-card--schools { background: #fff1f2; }
.partner-card--teachers { background: #f3f4f6; }
.partner-card--stockists { background: var(--ink); color: #d1d5db; }

.partner-card__icon {
  display: grid;
  width: 55px;
  height: 55px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: rgba(194, 30, 46, 0.1);
  color: var(--red);
}

.partner-card--stockists .partner-card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ff7b80;
}

.partner-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-card h3 {
  margin-bottom: 11px;
  font-size: 1.28rem;
}

.partner-card--stockists h3 {
  color: var(--white);
}

.partner-card p {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.partner-card .card-link {
  margin-top: auto;
}

.partner-card--stockists .card-link {
  color: #ff8d91;
}

/* Articles */
.articles {
  background: var(--surface);
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.article-card__visual {
  display: grid;
  min-height: 220px;
  place-items: center;
}

.article-card__visual--one { background: linear-gradient(140deg, #ffe8e9, #f9b7ba); }
.article-card__visual--two { background: linear-gradient(140deg, #ededed, #cfd1d5); }
.article-card__visual--three { background: linear-gradient(140deg, #fbe9e0, #efc2a8); }

.article-card__visual svg {
  width: 82px;
  height: 82px;
  fill: none;
  stroke: rgba(152, 27, 30, 0.7);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-card__body {
  padding: 24px;
}

.article-card__body > span {
  display: block;
  margin-bottom: 9px;
  color: var(--red);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-card h3 {
  margin-bottom: 11px;
  font-size: 1.15rem;
}

.article-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* FAQ */
.faq {
  background: var(--white);
}

.faq__inner {
  max-width: 950px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--off-white);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.accordion-item.is-open {
  border-color: rgba(194, 30, 46, 0.55);
  background: #fffafa;
}

.accordion-item button {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: transparent;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion-item button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.accordion-item.is-open button svg {
  transform: rotate(180deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel p {
  min-height: 0;
  margin: 0;
  padding: 0 22px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.91rem;
  transition: padding 0.3s ease;
}

.accordion-item.is-open .accordion-panel p {
  padding-bottom: 20px;
}

/* CTA */
.final-cta {
  padding: 36px 0 96px;
  background: var(--white);
}

.final-cta__panel {
  position: relative;
  overflow: hidden;
  padding: 68px 40px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #d1d5db;
  text-align: center;
}

.final-cta__panel::before,
.final-cta__panel::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(194, 30, 46, 0.25);
  content: "";
}

.final-cta__panel::before {
  top: -190px;
  left: -140px;
  width: 360px;
  height: 360px;
}

.final-cta__panel::after {
  right: -160px;
  bottom: -200px;
  width: 390px;
  height: 390px;
}

.final-cta h2,
.final-cta p,
.final-cta > div {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--white);
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto 29px;
}

.final-cta__panel > div {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #bdbdbd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 0.75fr);
  gap: 36px;
  padding-block: 72px 52px;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-brand img {
  width: 215px;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: 7px;
  background: var(--white);
}

.footer-brand > p {
  max-width: 330px;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.footer-grid h3 {
  margin-bottom: 9px;
  color: var(--white);
  font-size: 0.96rem;
}

.footer-grid a {
  color: #bdbdbd;
  font-size: 0.82rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid > div:not(.footer-brand) a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 330px;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 4px;
  fill: none;
  stroke: #ff7d82;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid #2b2b2b;
  background: #0a0a0a;
}

.footer-bottom .shell {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: #929292;
  font-size: 0.74rem;
}

.back-to-top {
  position: fixed;
  z-index: 700;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(194, 30, 46, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--red-dark);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transform: rotate(180deg);
}

/* Reveal animation */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Laptop and tablet */
@media (max-width: 1120px) {
  .desktop-nav {
    gap: 15px;
  }

  .desktop-nav > a:nth-last-child(2),
  .desktop-nav > a:nth-last-child(1),
  .header-user,
  .header-cta {
    display: none;
  }

  .hero__inner {
    gap: 35px;
  }

  .hero-book--main {
    width: 245px;
    height: 315px;
  }

  .hero-book--left,
  .hero-book--right {
    width: 200px;
    height: 265px;
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .shell {
    width: min(100% - 40px, var(--shell));
  }

  .section {
    padding-block: 72px;
  }

  .desktop-nav,
  .header-cta,
  .header-user {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .brand {
    width: 184px;
    flex-basis: 184px;
  }

  .brand img {
    height: 52px;
  }

  .header__inner {
    min-height: var(--header-height);
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-overlay {
    position: fixed;
    z-index: 1090;
    inset: 0;
    display: block;
    background: rgba(17, 17, 17, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    z-index: 1100;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: min(390px, 90vw);
    flex-direction: column;
    padding: 21px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: 20px 0 50px rgba(17, 17, 17, 0.18);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
  }

  .mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu__head img {
    width: 180px;
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    margin-top: 13px;
  }

  .mobile-menu nav > a,
  .mobile-menu summary {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid #eeeeee;
    color: var(--ink);
    font-size: 0.91rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--red);
    stroke-width: 2;
    transition: transform 0.2s ease;
  }

  .mobile-menu details[open] summary svg {
    transform: rotate(180deg);
  }

  .mobile-menu details > div {
    display: flex;
    flex-direction: column;
    padding: 8px 0 8px 16px;
    background: var(--off-white);
  }

  .mobile-menu details > div a {
    padding: 8px 0;
    color: var(--muted);
    font-size: 0.84rem;
  }

  .mobile-menu__actions {
    display: grid;
    gap: 11px;
    margin-top: auto;
    padding-top: 24px;
  }

  .hero__inner {
    min-height: 560px;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    padding-block: 66px;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-visual__halo {
    width: 350px;
    height: 350px;
  }

  .hero-book--main {
    width: 205px;
    height: 270px;
  }

  .hero-book--left,
  .hero-book--right {
    width: 165px;
    height: 225px;
  }

  .hero-book--left { left: 0; }
  .hero-book--right { right: 0; }

  .floating-note {
    min-width: 160px;
    padding: 10px 12px;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip__grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip__grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .class-grid,
  .product-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exam-panel {
    gap: 38px;
    padding: 42px;
  }

  .exam-features {
    grid-template-columns: 1fr;
  }

  .testimonial-grid,
  .partner-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid > :last-child,
  .partner-grid > :last-child,
  .article-grid > :last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    width: 100%;
    justify-self: center;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-grid > div:nth-child(2) {
    border-right: 0;
  }

  .achievement-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 56px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }

  .announcement__inner {
    min-height: 36px;
    justify-content: center;
    text-align: center;
  }

  .announcement p {
    font-size: 0.68rem;
  }

  .announcement__links {
    display: none;
  }

  .header__inner {
    position: relative;
    gap: 4px;
  }

  .brand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 154px;
    transform: translate(-50%, -50%);
  }

  .brand img {
    height: 48px;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 52px 44px;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 10vw, 2.6rem);
  }

  .hero__lead {
    margin-bottom: 25px;
    font-size: 0.95rem;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__checks {
    justify-content: center;
    gap: 10px 16px;
    font-size: 0.74rem;
  }

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

  .hero-visual__halo {
    width: 330px;
    height: 330px;
  }

  .hero-book {
    bottom: 45px;
  }

  .hero-book--main {
    width: 210px;
    height: 270px;
  }

  .hero-book--left,
  .hero-book--right {
    width: 145px;
    height: 205px;
  }

  .floating-note--top {
    top: 7px;
    right: -5px;
  }

  .floating-note--bottom {
    bottom: 3px;
  }

  .floating-note {
    min-width: 145px;
    gap: 8px;
  }

  .floating-note > svg {
    width: 25px;
    height: 25px;
  }

  .floating-note strong {
    font-size: 0.72rem;
  }

  .floating-note span {
    font-size: 0.62rem;
  }

  .trust-strip__grid > div {
    min-height: 100px;
    gap: 10px;
    padding: 18px 10px;
  }

  .trust-strip__grid svg {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .trust-strip__grid strong {
    font-size: 0.75rem;
  }

  .trust-strip__grid span {
    font-size: 0.64rem;
  }

  .class-grid,
  .benefit-grid,
  .course-grid,
  .testimonial-grid,
  .partner-grid,
  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-grid > :last-child,
  .partner-grid > :last-child,
  .article-grid > :last-child {
    grid-column: auto;
    max-width: none;
  }

  .class-card {
    min-height: 250px;
    padding: 23px;
  }

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

  .product-card__image {
    margin: 9px 9px 0;
  }

  .product-card__content {
    padding: 14px 12px;
  }

  .product-type {
    font-size: 0.57rem;
  }

  .product-card h3 {
    margin-bottom: 13px;
    font-size: 0.82rem;
  }

  .product-card__footer strong {
    font-size: 0.87rem;
  }

  .product-card__footer a {
    width: 32px;
    height: 32px;
  }

  .product-badge {
    top: 7px;
    left: 7px;
    font-size: 0.53rem;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs button {
    flex: 0 0 auto;
  }

  .benefit-card {
    min-height: auto;
    padding: 25px 22px;
  }

  .exam {
    padding-top: 8px;
  }

  .exam-panel {
    grid-template-columns: 1fr;
    gap: 29px;
    padding: 25px 20px 31px;
    border-radius: 18px;
  }

  .exam-panel__content h2 {
    font-size: 1.8rem;
  }

  .exam-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .exam-panel__actions .button {
    width: 100%;
  }

  .exam-panel .text-link {
    justify-content: center;
  }

  .course-card h3 {
    min-height: 0;
  }

  .achievement-grid > div {
    min-height: 140px;
    padding: 20px 8px;
  }

  .achievement-grid strong {
    font-size: 2rem;
  }

  .achievement-grid span {
    font-size: 0.7rem;
  }

  .testimonial-card {
    min-height: auto;
    padding: 25px;
  }

  .testimonial-card > p {
    min-height: auto;
  }

  .partner-card {
    min-height: 280px;
    padding: 29px 25px;
  }

  .article-card__visual {
    min-height: 190px;
  }

  .accordion-item button {
    padding: 16px 17px;
    font-size: 0.86rem;
  }

  .accordion-panel p {
    padding-inline: 17px;
    font-size: 0.84rem;
  }

  .final-cta {
    padding: 20px 0 56px;
  }

  .final-cta__panel {
    padding: 40px 20px;
    border-radius: 18px;
  }

  .final-cta__panel > div {
    flex-direction: column;
  }

  .final-cta__panel .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 22px;
    padding-block: 54px 38px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom .shell {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 142px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card__content {
    padding: 12px 10px;
  }

  .product-card h3 {
    font-size: 0.76rem;
  }

  .product-card__footer strong {
    font-size: 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}
