:root {
  --navy: #061a3b;
  --blue: #0877ff;
  --cyan: #28d7ff;
  --orange: #ff8a00;
  --text: #071833;
  --muted: #65758c;
  --line: #dbe7f5;
  --bg: #f5f8fc;
  --white: #fff;
  --tech-bg:
    radial-gradient(circle at 18% 18%, rgba(40, 215, 255, 0.18), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(8, 119, 255, 0.3), transparent 30%),
    radial-gradient(circle at 58% 72%, rgba(40, 215, 255, 0.12), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(118deg, transparent 0 33%, rgba(40, 215, 255, 0.08) 33.1% 33.25%, transparent 33.4% 100%),
    #061326;
  --tech-bg-size: auto, auto, auto, 96px 96px, 96px 96px, 100% 100%, auto;
  --footer-space: 90px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--tech-bg);
  background-size: var(--tech-bg-size);
  padding-bottom: var(--footer-space);
}

body[data-page="admin"] {
  padding-bottom: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 68px;
  padding: 0 clamp(20px, 6vw, 92px);
  color: var(--white);
  background: rgba(4, 18, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 22px;
  font-weight: 800;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 14px;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.admin-link,
.lang-toggle,
.button,
.carousel-actions button,
.admin button {
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.admin-link {
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.lang-toggle {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: clamp(28px, 6vw, 84px);
  min-height: calc(100vh - 126px);
  height: auto;
  padding: 48px clamp(22px, 8vw, 120px) 140px;
  scroll-snap-align: start;
  color: var(--white);
  background: var(--tech-bg);
  background-size: var(--tech-bg-size);
}
.hero > div {
  padding-top: 20px;
}
.section-en {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 44px);
}

.lead {
  max-width: 820px;
  color: #d9e8ff;
  font-size: 19px;
  line-height: 1.9;
}

.hero-illustration {
  display: block;
  width: min(100%, 520px);
  margin: 26px 0 0;
  border: 1px solid rgba(40, 215, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 18px;
  max-width: 760px;
  margin-top: 26px;
}

.stats article,
.hero-card,
.card,
.video-card,
.partner-card,
.admin-panel {
  border: 1px solid rgba(219, 231, 245, 0.8);
  border-radius: 8px;
  background: var(--white);
}

.stats article {
  padding: 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(40, 215, 255, 0.35);
}

.stats strong {
  display: block;
  color: var(--cyan);
  font-size: 34px;
}

.stats span {
  color: #d9e8ff;
}

.hero-card {
  align-self: center;
  padding: 30px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 24px;
}

.hero-card p,
.card p,
.video-card p,
.footer,
.admin-help {
  color: var(--muted);
  line-height: 1.75;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.72);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 24px;
  color: var(--white);
  background: var(--blue);
}

.section {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
min-height: calc(100vh - 126px);
  height: auto;
  padding: 46px 20px 120px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

main > section:last-child {
  padding-bottom: calc(46px + var(--footer-space));
}

.section.dark {
  max-width: none;
  padding-inline: clamp(20px, 7vw, 110px);
  color: var(--white);
  background: var(--tech-bg);
  background-size: var(--tech-bg-size);
}

.course-brief {
  justify-content: center;
}

.course-brief-head {
  max-width: 1160px;
  margin: 0 auto 58px;
  text-align: center;
}

.course-brief-head .section-en {
  margin-bottom: 12px;
}

.course-brief-head h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 56px);
}

.course-brief-head p:last-child {
  max-width: 1180px;
  margin: 0 auto;
  color: rgba(217, 232, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

.course-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
}

.course-track::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.course-track article {
  position: relative;
  min-height: 230px;
  padding: 34px 30px;
  border: 1px solid rgba(40, 215, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.course-track article::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -34px;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--navy);
}

.course-track strong {
  display: block;
  margin-bottom: 18px;
  color: var(--white);
  font-size: 32px;
}

.course-track p {
  margin: 0;
  color: rgba(217, 232, 255, 0.76);
  font-size: 19px;
  line-height: 1.8;
}

#partners {
  color: var(--white);
  background: var(--tech-bg);
  background-size: var(--tech-bg-size);
}

#partners .section-en {
  color: rgba(40, 215, 255, 0.78);
}

#partners .carousel-actions button {
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

#partners .carousel-actions button:hover,
#partners .carousel-actions button:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.section-title .section-en {
  order: 2;
  margin: 0;
}

.carousel-actions {
  position: absolute;
  top: 55%;
  left: clamp(18px, 4vw, 64px);
  right: clamp(18px, 4vw, 64px);
  z-index: 6;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.carousel-actions button {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
  pointer-events: auto;
}

.carousel-actions button:hover,
.carousel-actions button:focus-visible {
  border-color: rgba(40, 215, 255, 0.78);
  color: var(--white);
  background: rgba(8, 119, 255, 0.78);
  outline: none;
}

.carousel,
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  min-height: 260px;
}

.empty-card {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.partner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 170px);
  align-self: center;
  width: min(100%, 1280px);
  flex: 0 0 auto;
  gap: 22px 28px;
  margin: auto 0;
}

.card,
.video-card,
.partner-card {
  min-height: 260px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.card mark {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
}

.teacher-card {
  padding: 0;
  overflow: hidden;
}

.teacher-photo {
  display: block;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.teacher-info,
.video-info {
  padding: 26px 30px 32px;
}

.teacher-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.teacher-heading mark {
  margin-bottom: 0;
}

.teacher-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(8, 119, 255, 0.22);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(8, 119, 255, 0.08);
  font-size: 15px;
  font-weight: 800;
}

.card h3,
.video-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.video-card {
  overflow: hidden;
  padding: 0;
  color: var(--text);
}

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 16 / 10;
  margin: 0 0 26px;
  border-radius: 0;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 119, 255, 0.82), rgba(40, 215, 255, 0.28)),
    var(--navy);
  font-size: 42px;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(6, 26, 59, 0.72);
}

.teacher-info p,
.video-info p {
  display: -webkit-box;
  min-height: 84px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.teacher-info p {
  min-height: 132px;
  -webkit-line-clamp: 5;
  color: #53667f;
  font-size: 18px;
  line-height: 1.8;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  padding: 14px 16px;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 34px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 215, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 20px 44px rgba(0, 0, 0, 0.16);
}

.partner-card img {
  width: min(176px, 72%);
  height: 76px;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.partner-card strong {
  display: block;
  max-width: 100%;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.float-contact {
  position: fixed;
  right: 22px;
  bottom: 108px;
  z-index: 30;
  display: grid;
  gap: 12px;
  width: 310px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(4, 18, 40, 0.46);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.contact-minimize {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(6, 26, 59, 0.82);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.float-contact.is-minimized {
  width: 64px;
  padding: 8px;
}

.float-contact.is-minimized .contact-visual,
.float-contact.is-minimized .whatsapp-link span {
  display: none;
}

.float-contact.is-minimized .whatsapp-link {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
}

.contact-visual {
  position: relative;
  height: 198px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 21, 48, 0.72);
}

.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 13, 30, 0.02) 0%, rgba(3, 13, 30, 0.32) 44%, rgba(3, 13, 30, 0.9) 100%),
    radial-gradient(circle at 18% 18%, rgba(40, 215, 255, 0.24), transparent 34%);
}

.contact-team {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.contact-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
}

.contact-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 28px;
  line-height: 1.15;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.contact-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(135deg, var(--blue), #0b9cff);
  box-shadow: 0 14px 34px rgba(8, 119, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(8, 119, 255, 0.42);
}

.whatsapp-link svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(2, 10, 24, 0.72);
  backdrop-filter: blur(10px);
}

.video-modal.open {
  display: grid;
}

.video-modal-panel {
  width: min(920px, 92vw);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(40, 215, 255, 0.32);
  border-radius: 8px;
  background: #020a18;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.video-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 14px 0 18px;
  color: var(--white);
  background: rgba(6, 26, 59, 0.96);
  border-bottom: 1px solid rgba(40, 215, 255, 0.24);
}

.video-modal-toolbar strong {
  font-size: 16px;
}

.video-modal-body {
  background: #000;
}

.video-modal-body iframe,
.video-modal-body video {
  display: block;
  width: 100%;
  height: min(72vh, 620px);
  border: 0;
}

.video-modal-body video {
  object-fit: contain;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(8, 119, 255, 0.82);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.video-modal-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 6px;
  color: var(--white);
  background: rgba(8, 119, 255, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  font-weight: 800;
  cursor: pointer;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 8px clamp(20px, 6vw, 92px);
  color: rgba(255, 255, 255, 0.62);
  background: rgba(4, 18, 40, 0.42);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer div:first-child {
  display: grid;
  gap: 4px;
}

.footer strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.footer span {
  font-size: 13px;
}

.footer-codes {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-codes img {
  display: block;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 0;
  border-radius: 6px;
  object-fit: cover;
  background: var(--white);
}

.admin {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 20px 80px;
}

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

.admin-login {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid rgba(40, 215, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 24, 51, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.admin-login-card span {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.admin-login-card h1 {
  margin: 10px 0 22px;
  font-size: 34px;
}

.admin-login-card label {
  display: block;
  margin: 14px 0;
  font-weight: 700;
}

.admin-login-card input {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid rgba(219, 231, 245, 0.55);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.admin-login-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-login-card small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.admin-login-error {
  margin: 10px 0 0;
  color: #ffb4b4;
}

.admin h1 {
  margin-bottom: 10px;
  color: var(--white);
}

.admin .admin-help {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

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

.admin-dashboard article {
  padding: 20px;
  border: 1px solid rgba(40, 215, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin-dashboard strong {
  display: block;
  color: var(--cyan);
  font-size: 34px;
}

.admin-dashboard span {
  color: rgba(255, 255, 255, 0.72);
}

.admin-panel {
  padding: 24px;
  margin-top: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.admin-panel h2 {
  margin: 28px -24px 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7faff;
}

.admin-panel h2:first-child {
  margin-top: -24px;
  border-top: 0;
  border-radius: 8px 8px 0 0;
}

.admin label {
  display: block;
  margin: 14px 0;
  font-weight: 700;
}

.admin input,
.admin textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.admin textarea {
  min-height: 92px;
  resize: vertical;
}

.admin-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  margin: 24px -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.admin button {
  min-height: 44px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  color: var(--white);
  background: var(--blue);
}

.admin button.secondary {
  color: var(--text);
  background: #e8eef7;
}

@media (max-width: 920px) {
  :root {
    --footer-space: 104px;
  }

  html {
    scroll-snap-type: none;
  }

  nav {
    display: none;
  }

  .hero,
  .carousel,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, 140px);
    width: 100%;
  }

  .card.is-side,
  .video-card.is-side,
  .card.is-active,
  .video-card.is-active {
    min-height: 280px;
    transform: none;
  }

  .hero,
  .section {
    height: auto;
    min-height: auto;
  }

  .section {
    padding-top: 36px;
    padding-bottom: 104px;
  }

  main > section:last-child {
    padding-bottom: calc(36px + var(--footer-space));
  }

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

  .hero-card {
    align-self: auto;
  }

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

  .admin-head {
    display: block;
  }

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

  .carousel-actions {
    position: static;
    justify-content: flex-end;
    margin: -8px 0 14px;
    pointer-events: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --footer-space: 92px;
  }

  body {
    padding-bottom: var(--footer-space);
  }

  .site-header {
    gap: 10px;
    min-height: 58px;
    padding: 0 14px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 18px;
  }

  .brand span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .brand b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .lang-toggle {
    min-height: 34px;
    padding: 0 10px;
    flex: 0 0 auto;
    font-size: 13px;
  }

  .admin-link {
    display: none;
  }

  .admin-logout:not([hidden]) {
    display: inline-flex;
    align-items: center;
  }

  .admin {
    padding: 24px 14px 60px;
  }

  .admin-login {
    min-height: calc(100vh - 58px);
    padding: 16px;
  }

  .admin-login-card {
    padding: 22px;
  }

  .admin-dashboard {
    gap: 10px;
  }

  .admin-dashboard article {
    padding: 16px;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel h2 {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .admin-actions {
    margin: 20px -18px -18px;
    padding: 14px 18px;
  }

  .hero {
    min-height: auto;
    padding: 36px 16px 92px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .section-en {
    margin-bottom: 10px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-illustration {
    margin-top: 18px;
  }

  .course-brief-head {
    margin-bottom: 26px;
    text-align: left;
  }

  .course-brief-head p:last-child {
    font-size: 15px;
    line-height: 1.7;
  }

  .course-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .course-track::after,
  .course-track article::after {
    display: none;
  }

  .course-track article {
    min-height: 190px;
    padding: 24px 20px;
  }

  .course-track strong {
    font-size: 26px;
  }

  .course-track p {
    font-size: 17px;
  }

  .stats {
    gap: 10px;
    margin-top: 26px;
  }

  .stats article,
  .hero-card,
  .teacher-info,
  .video-info {
    padding: 18px;
  }

  .section {
    padding: 34px 16px 92px;
  }

  main > section:last-child {
    padding-bottom: calc(34px + var(--footer-space));
  }

  .section-title {
    margin-bottom: 20px;
  }

  .section-title > div {
    display: block;
  }

  .carousel-actions {
    margin-top: -4px;
  }

  .carousel-actions button {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .video-modal {
    padding: 14px;
  }

  .video-modal-panel {
    width: 100%;
  }

  .video-modal-close {
    top: 10px;
    left: 10px;
  }

  .video-modal-exit {
    top: 10px;
    right: 10px;
    min-height: 38px;
    padding: 0 14px;
  }

  .carousel,
  .partner-grid {
    gap: 16px;
  }

  .teacher-photo,
  .video-thumb {
    min-height: 150px;
  }

  .card h3,
  .video-card h3 {
    font-size: 20px;
  }

  .teacher-info p,
  .video-info p {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .teacher-heading {
    gap: 8px;
    margin-bottom: 16px;
  }

  .teacher-heading span {
    min-height: 32px;
    font-size: 13px;
  }

  .teacher-info p {
    -webkit-line-clamp: 4;
    font-size: 15px;
    line-height: 1.7;
  }

  .partner-grid {
    gap: 12px;
  }

  .partner-card {
    min-height: 118px;
    padding: 12px 8px;
    gap: 8px;
  }

  .partner-card img {
    width: min(104px, 76%);
    height: 48px;
  }

  .partner-card strong {
    font-size: 13px;
  }

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

  .float-contact {
    right: 12px;
    bottom: 74px;
    width: min(260px, calc(100vw - 24px));
    padding: 8px;
    background: rgba(4, 18, 40, 0.56);
  }

  .float-contact.is-minimized {
    width: 64px;
  }

  .contact-visual {
    display: none;
  }

  .whatsapp-link {
    min-height: 48px;
    font-size: 15px;
  }

  .footer {
    min-height: 48px;
    padding: 8px 14px;
  }

  .footer-codes {
    display: none;
  }
}
