@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("./assets/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --background: #f4f7fc;
  --ink: #172a4b;
  --muted: #65758e;
  --blue: #2455d6;
  --border: #dee6f2;
  --gap: 18px;
  --visible: 4;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font-family: Manrope, Arial, sans-serif; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
button:focus-visible, a:focus-visible, .carousel:focus-visible { outline: 3px solid #2455d6; outline-offset: 4px; }
.page { min-height: 100svh; display: flex; flex-direction: column; }
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1px max-content;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 22px max(24px, calc((100vw - 1336px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.identity { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); min-width: 0; }
.identity--esaa { justify-content: center; }
.identity--studyup { justify-content: flex-start; }
.esaa-wordmark { display: block; width: 100%; max-width: 720px; height: auto; object-fit: contain; }
.brand-divider { width: 1px; height: 64px; background: var(--border); }
.studyup-emblem { width: 98px; height: 98px; object-fit: contain; flex: none; }
.studyup-wordmark { display: flex; flex-direction: column; gap: 9px; }
.studyup-name { color: #153b81; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -1.8px; white-space: nowrap; }
.studyup-name > span, .teal { color: #20bfb4; }
.studyup-academy { color: #153b81; font-size: 18px; font-weight: 750; letter-spacing: 3px; line-height: 1; margin-top: -5px; }
.studyup-tagline { color: #47648f; font-size: 12px; line-height: 1.5; font-weight: 650; }
main { display: flex; flex: 1; align-items: center; padding: clamp(16px, 2.5vh, 30px) 32px; min-width: 0; }
.services { width: min(100%, 1336px); margin: 0 auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 5px 18px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 6px; }
h1 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -1.1px; font-weight: 750; }
h1 span { color: #61789e; font-weight: 500; }
.subtitle { margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.section-caption { padding-bottom: 3px; color: #70819c; font-size: 13px; white-space: nowrap; }
.section-caption:hover, footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.carousel { overflow: hidden; padding: 8px 4px 16px; touch-action: pan-y; border-radius: 16px; }
.track { display: flex; width: 100%; gap: var(--gap); align-items: stretch; will-change: transform; }
.product {
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px #172a4b05;
  --accent: #2455d6;
}
.product.is-current { border-color: #9db6f1; box-shadow: 0 5px 16px #2455d612; }
.product:hover, .product:focus-visible { border-color: var(--accent); box-shadow: 0 5px 16px #2455d618; }
.product:focus-visible { outline-offset: -4px; }
.product img { -webkit-user-drag: none; }
.product--moodle { --accent: #de791d; }
.product--school { --accent: #14a69e; }
.product--time { --accent: #138166; }
.product--digital { --accent: #084246; }
.product--admission { --accent: #2455d6; }
.product--restauration { --accent: #d38129; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; }
.product-number { color: #9ba8bb; font-size: 13px; font-weight: 600; }
.product-logo { height: clamp(60px, calc(100svh - 720px), 120px); display: flex; align-items: center; justify-content: center; margin: 6px 0; }
.product-logo > img { width: 100%; max-height: 100%; object-fit: contain; }
.product-logo .moodle-logo { max-width: 178px; }
.product-logo .basmatime-logo { max-width: 238px; mix-blend-mode: multiply; }
.product-logo .payment-logo { max-width: 244px; }
.product-logo .restauration-logo { max-width: 260px; }
.card-studyup { display: flex; gap: 5px; align-items: center; justify-content: center; width: 100%; }
.card-studyup img { width: 62px; height: 60px; object-fit: contain; min-width: 0; }
.card-studyup .studyup-name { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -1.3px; }
.card-esaa { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; height: 100%; }
.card-esaa img { width: 31px; height: 100%; max-height: 60px; object-fit: contain; flex: none; }
.service-wordmark { display: flex; flex-direction: column; gap: 5px; color: #084246; min-width: 0; }
.service-wordmark strong { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.service-wordmark > span { font-size: 14px; font-weight: 650; line-height: 1.3; }
.service-wordmark--admission strong { color: #153b81; font-size: clamp(25px, 2.4vw, 31px); }
.service-wordmark--admission > span { color: #168b84; letter-spacing: 2px; }
.product-copy { flex: 1; }
.product h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.35; }
.product h2 > span { color: #7c8da5; font-size: 14px; font-weight: 500; letter-spacing: 0; margin-left: 3px; }
.product p { font-size: 16px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.product-bottom { display: flex; flex-direction: column; gap: 12px; margin-top: 17px; color: #76869e; font-size: 12px; }
.product-line { height: 3px; width: 28px; border-radius: 4px; background: var(--accent); }
.carousel-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 12px; padding: 0 5px; }
.autoplay { display: inline-flex; align-items: center; gap: 9px; justify-self: start; border: none; background: transparent; color: #62738c; font-size: 13px; padding: 10px 0; }
.autoplay svg { width: 14px; height: 14px; color: #4567a4; }
.autoplay .play-icon { display: none; }
.autoplay[aria-pressed="true"] .play-icon { display: block; }
.autoplay[aria-pressed="true"] .pause-icon { display: none; }
.pagination { display: flex; align-items: center; gap: 3px; }
.pagination button { display: grid; place-items: center; padding: 0; width: 29px; height: 40px; border: none; background: none; }
.pagination button > span { width: 7px; height: 7px; border-radius: 6px; background: #bcc9de; transition: width 180ms, background 180ms; }
.pagination button[aria-current="true"] > span { width: 24px; background: var(--blue); }
.navigation { display: flex; align-items: center; gap: 8px; justify-self: end; }
.counter { display: flex; gap: 6px; margin-right: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.counter > span { color: #8e9cb0; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: white; color: #486083; border: 1px solid var(--border); border-radius: 9px; }
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { background: #eaf0fc; border-color: #b5c8ed; }
.arrow--next { background: var(--blue); color: white; border-color: var(--blue); }
.arrow--next:hover { background: #1d46b5; border-color: #1d46b5; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 36px; border-top: 1px solid var(--border); color: #8190a6; font-size: 12px; }
footer strong { color: #153b81; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 851px) {
  .masthead { grid-template-columns: minmax(0, 1.65fr) 1px minmax(0, 1fr); }
}
@media (max-width: 1199px) {
  :root { --visible: 3; }
  .masthead { gap: 34px; }
  .section-caption { display: none; }
}
@media (max-width: 850px) {
  :root { --visible: 2; }
  main { padding-right: 24px; padding-left: 24px; }
  .masthead { grid-template-columns: minmax(0, 620px); gap: 18px; }
  .identity--studyup { justify-content: center; }
  .brand-divider { display: none; }
  .studyup-name { font-size: 35px; }
  .studyup-emblem { width: 86px; height: 90px; }
  .identity { gap: 12px; }
  .autoplay { width: 36px; height: 42px; justify-content: center; padding: 0; }
  .autoplay-label { display: none; }
}
@media (max-width: 599px) {
  :root { --visible: 1; --gap: 14px; }
  .masthead { padding: 16px 18px; gap: 14px; }
  .identity { gap: 8px; }
  .identity--esaa { justify-content: center; }
  .identity--studyup { justify-content: center; }
  .studyup-emblem { width: 44px; height: 62px; }
  .studyup-name { font-size: 25px; letter-spacing: -1.3px; }
  .studyup-tagline { font-size: 8px; line-height: 1.5; }
  .studyup-academy { font-size: 11px; letter-spacing: 1.7px; margin-top: -3px; }
  .studyup-wordmark { gap: 6px; }
  main { padding: 18px 20px; }
  .section-heading { padding: 0 4px 14px; }
  .eyebrow { font-size: 11px; margin-bottom: 6px; }
  h1 { font-size: 26px; letter-spacing: -0.8px; }
  .subtitle { font-size: 14px; margin-top: 7px; }
  .product { padding: 19px 24px 16px; }
  .product-logo { height: clamp(78px, 13svh, 114px); margin: 5px 0; }
  .product-logo .payment-logo { max-width: 240px; }
  .card-studyup .studyup-name { font-size: 36px; }
  .product h2 { font-size: 23px; }
  .product p { line-height: 1.5; margin-top: 7px; }
  .product-bottom { margin-top: 18px; gap: 13px; }
  .carousel-toolbar { grid-template-columns: auto 1fr auto; gap: 4px; margin-top: 3px; padding: 0 4px; }
  .pagination { justify-content: center; gap: 1px; }
  .pagination button { width: 22px; }
  .pagination button[aria-current="true"] > span { width: 20px; }
  .counter { margin-right: 3px; font-size: 12px; gap: 3px; }
  .arrow { width: 40px; height: 40px; }
  .navigation { gap: 6px; }
  footer { padding: 11px 24px; font-size: 10px; }
  footer > :first-child { max-width: 210px; }
}
@media (max-width: 420px) {
  .counter { display: none; }
}
@media (max-width: 370px) {
  .masthead { gap: 15px; }
  .studyup-emblem { width: 48px; }
  .studyup-name { font-size: 25px; }
  main { padding: 14px 14px; }
  h1 { font-size: 24px; }
  .counter { display: none; }
  .pagination button { width: 20px; }
}
@media (max-height: 740px) and (min-width: 600px) {
  .masthead { padding-top: 12px; padding-bottom: 12px; }
  .studyup-emblem { height: 80px; width: 80px; }
  main { padding-top: 18px; padding-bottom: 18px; }
  .section-heading { padding-bottom: 14px; }
  .product-logo { height: 60px; }
  .product-bottom { margin-top: 17px; gap: 14px; }
}
@media (max-height: 640px) and (min-width: 600px) {
  .masthead { padding-top: 9px; padding-bottom: 9px; }
  .studyup-emblem { height: 64px; width: 64px; }
  main { padding-top: 12px; padding-bottom: 12px; }
  .section-heading { padding-bottom: 8px; }
  .subtitle { display: none; }
  h1 { font-size: 28px; }
  .product { padding-top: 16px; padding-bottom: 14px; }
  .product-logo { height: 52px; }
  .product-bottom { margin-top: 12px; gap: 9px; }
  footer { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
