:root {
  --ink: #454b4f;
  --ink-deep: #343a3e;
  --teal: #3d8481;
  --teal-dark: #2f6d6a;
  --coral: #da523e;
  --peach: #dd9468;
  --peach-border: #da7d42;
  --button-shadow: #ae4d2e;
  --sky: #edf6ff;
  --white: #fff;
  --green: #80b31c;
  --focus: #0061a0;
  --container: 1170px;
  --header-height: 100px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--white);
  background: var(--focus);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform .2s ease;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-shell {
  width: 100%;
  padding-top: var(--header-height);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  padding: 20px 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
  backdrop-filter: blur(8px);
}

.header-inner,
.header-actions,
.primary-nav,
.teacher-link {
  display: flex;
  align-items: center;
}

.header-inner {
  height: 100%;
  justify-content: space-between;
}

.logo {
  display: flex;
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  width: 246px;
  height: auto;
}

.primary-nav {
  gap: 46px;
  margin-left: auto;
  margin-right: 30px;
}

.primary-nav > a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: color .25s ease;
}

.primary-nav > a:hover {
  color: var(--teal);
}

.primary-nav .teacher-link {
  gap: 12px;
  padding: 9px 16px;
  color: var(--teal);
  border: 1px dashed var(--teal);
  border-radius: 26px;
}

.primary-nav .teacher-link:hover {
  border-style: solid;
}

.header-actions {
  gap: 22px;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: flex;
  min-width: 52px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

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

.language-arrow {
  transition: transform .2s ease;
}

.language-menu[open] .language-arrow {
  transform: rotate(180deg);
}

.language-popover {
  position: absolute;
  top: 100%;
  left: 50%;
  padding: 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(52, 58, 62, .18);
  transform: translateX(-50%);
}

.language-popover button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  color: var(--white);
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--peach);
  border: 4px solid var(--peach-border);
  border-radius: 32px;
  box-shadow: 0 4px 0 var(--button-shadow);
  transition: transform .25s var(--ease), box-shadow .25s ease, filter .25s ease;
}

.button:hover {
  box-shadow: 0 1px 0 var(--button-shadow);
  transform: translateY(3px);
}

.button:active {
  transform: translateY(4px) scale(.99);
}

.button-header {
  min-height: 54px;
  padding: 12px 30px;
}

.nav-login {
  display: none;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  cursor: pointer;
  background: var(--button-shadow);
  border: 0;
  border-radius: 8px;
}

.menu-toggle span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 4px;
  transition: transform .35s ease, opacity .2s ease, top .35s ease;
}

.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 30px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 18;
  visibility: hidden;
  opacity: 0;
  background: rgba(52, 58, 62, .64);
  transition: opacity .25s ease, visibility .25s ease;
}

.menu-scrim.is-visible {
  visibility: visible;
  opacity: 1;
}

.map-hero {
  margin-top: -40px;
  background: #7fb21b;
}

.map-scene {
  position: relative;
  min-height: 600px;
  aspect-ratio: 3955 / 2160;
  max-height: 691px;
  overflow: hidden;
  isolation: isolate;
  background: #7fb21b;
}

.map-world {
  position: absolute;
  inset: 0;
  min-width: 980px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.map-base,
.map-layer {
  position: absolute;
  user-select: none;
  pointer-events: none;
}

.map-base {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-layer {
  height: auto;
  filter: drop-shadow(0 8px 6px rgba(32, 47, 15, .1));
  transform-origin: 50% 100%;
  animation: map-arrival .9s var(--ease) both;
}

.layer-mountains { top: -10%; left: -1%; width: 28%; animation-delay: .05s; }
.layer-mountain-trees { top: 0; right: 1%; width: 20%; animation-delay: .1s; }
.layer-zoo { top: 7%; left: 8%; width: 22%; animation-delay: .18s; }
.layer-school { top: 7%; left: 37%; width: 13%; animation-delay: .26s; }
.layer-museum { top: 8%; right: 13%; width: 17%; animation-delay: .34s; }
.layer-houses-top { top: 36%; left: 27%; width: 20%; animation-delay: .42s; }
.layer-shop { top: 45%; left: 9%; width: 11%; animation-delay: .5s; }
.layer-cafe { top: 48%; left: 50%; width: 8%; animation-delay: .58s; }
.layer-phone { top: 47%; left: 62%; width: 4.5%; animation-delay: .62s; }
.layer-playground { top: 44%; right: 5%; width: 17%; animation-delay: .66s; }
.layer-houses-bottom { bottom: 5%; left: 40%; width: 15%; animation-delay: .7s; }
.layer-tree { right: 1%; top: 20%; width: 6%; animation-delay: .74s; }
.layer-cars { inset: 20% auto auto 25%; width: 52%; animation-delay: .8s; filter: none; }
.layer-airplane { top: 2%; left: 49%; width: 14%; animation: plane-drift 8s ease-in-out infinite alternate; }

.map-intro {
  position: absolute;
  z-index: 4;
  left: max(20px, calc((100% - var(--container)) / 2));
  bottom: 42px;
  width: min(440px, calc(100% - 40px));
  padding: 24px 28px 25px;
  color: var(--white);
  background: rgba(61, 132, 129, .94);
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(23, 59, 57, .25);
  backdrop-filter: blur(8px);
  animation: intro-in .8s .35s var(--ease) both;
}

.map-kicker {
  display: block;
  margin-bottom: 7px;
  color: #ffe0bc;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-intro strong {
  display: block;
  margin-bottom: 16px;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(27px, 3vw, 42px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.04;
}

.map-start {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  background: #ffe0bc;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 4px 0 #ca8255;
}

.map-start span {
  font-size: 22px;
  transition: transform .2s ease;
}

.map-start:hover span {
  transform: translateX(4px);
}

.map-scroll-cue {
  position: absolute;
  z-index: 4;
  right: 34px;
  bottom: 28px;
  width: 28px;
  height: 43px;
  border: 2px solid var(--white);
  border-radius: 16px;
  opacity: .8;
}

.map-scroll-cue::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  content: "";
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.monitor-section {
  padding: 55px 0 77px;
  background: var(--white) url("assets/branch.png") 100% 150px no-repeat;
}

.monitor-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}

.almabek {
  position: relative;
  z-index: 2;
  margin-right: -30px;
}

.monitor-card {
  position: relative;
}

.monitor-card p {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 72px 45px;
  color: var(--white);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.path-section {
  padding: 85px 0;
  background: var(--sky);
}

.section-title,
.motivation-copy h2 {
  margin: 0;
  color: var(--teal);
  font-family: "Exo 2", "Trebuchet MS", sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.2;
}

.path-section .section-title {
  margin-bottom: 78px;
  text-align: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 34px;
  padding: 0;
  margin: 0 0 46px;
  list-style: none;
}

.feature-list li {
  display: flex;
  min-width: 0;
  align-items: center;
}

.feature-list img {
  flex: 0 0 auto;
  margin-right: 17px;
  transition: transform .35s var(--ease);
}

.feature-list li:hover img {
  transform: translateY(-7px) rotate(-2deg);
}

.feature-list span {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

.centered-action {
  text-align: center;
}

.motivation-section {
  padding: 40px 0 70px;
  background: var(--white) url("assets/chary.png") 100% 100px no-repeat;
}

.motivation-layout {
  display: flex;
  align-items: center;
}

.winner-image {
  margin-right: 40px;
}

.motivation-copy h2 {
  margin-bottom: 30px;
  color: var(--coral);
}

.certificate-section {
  padding: 120px 0;
  margin-bottom: -80px;
  background: var(--sky);
}

.certificate-layout {
  position: relative;
  min-height: 274px;
}

.certificate-copy {
  position: relative;
  z-index: 2;
}

.certificate-copy .section-title {
  margin-bottom: 30px;
}

.certificate-copy p {
  margin: 0 0 30px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.certificate-image {
  position: absolute;
  z-index: 1;
  top: -65px;
  left: 480px;
}

.site-footer {
  position: relative;
  z-index: 3;
}

.footer-main {
  position: relative;
  padding: 45px 0;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr minmax(310px, 1.1fr) auto;
  align-items: center;
  gap: 60px;
}

.footer-logo {
  margin-bottom: 28px;
}

.partner-list {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.partner-list a {
  display: grid;
  min-width: 44px;
  min-height: 56px;
  place-items: center;
  transition: transform .25s ease, opacity .25s ease;
}

.partner-list a:hover {
  opacity: .78;
  transform: translateY(-3px);
}

.footer-navigation nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 44px;
}

.footer-navigation nav a {
  color: var(--coral);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.footer-navigation nav a:hover {
  color: var(--white);
}

.search-form {
  position: relative;
}

.search-form input {
  width: 100%;
  height: 44px;
  padding: 0 52px 0 20px;
  color: var(--white);
  background: none;
  border: 1px solid var(--white);
  border-radius: 23px;
  outline: 0;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, .86);
}

.search-form input:focus {
  border-color: #8ad6d2;
  box-shadow: 0 0 0 3px rgba(138, 214, 210, .25);
}

.search-form button {
  position: absolute;
  inset: 0 2px 0 auto;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
}

.search-status {
  min-height: 18px;
  margin: 8px 12px -26px;
  color: var(--white);
  font-size: 13px;
}

.back-to-top {
  display: flex;
  min-width: 70px;
  min-height: 88px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: 0;
  opacity: .58;
  transition: opacity .25s ease, transform .25s ease;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 9px 0;
  color: var(--white);
  background: var(--ink-deep);
  font-size: 14px;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 28px;
}

.footer-bottom p,
.footer-bottom address {
  margin: 0;
}

.footer-bottom address {
  font-style: normal;
  text-align: center;
}

.footer-bottom a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
}

.made-by {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.made-by a {
  color: var(--coral);
  text-decoration: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(52, 58, 62, .9);
  backdrop-filter: blur(5px);
}

.modal {
  position: fixed;
  z-index: 51;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 40px;
  overflow: auto;
  background-color: var(--white);
  background-image: radial-gradient(rgba(61, 132, 129, .07) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
  animation: modal-in .34s var(--ease) both;
}

[hidden] {
  display: none !important;
}

.modal-close {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  transition: transform .25s ease;
}

.modal-close:hover {
  transform: rotate(8deg) scale(1.05);
}

.welcome-content {
  text-align: center;
}

.welcome-content h2 {
  margin: 0 40px 28px;
  color: var(--teal);
  font-family: "Exo 2", sans-serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
}

.welcome-content > p {
  margin: 0 0 28px;
  font-weight: 600;
  line-height: 1.45;
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 30px;
}

.course-actions .button {
  width: 100%;
}

.button-yellow {
  background: var(--peach);
  border-color: var(--peach-border);
}

.button-blue {
  background: var(--teal);
  border-color: var(--teal-dark);
  box-shadow: 0 4px 0 #235b58;
}

.returning-user,
.account-switch {
  display: grid;
  gap: 10px;
  padding: 20px 12px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .15);
}

.returning-user span,
.account-switch span {
  font-weight: 600;
}

.returning-user button,
.account-switch button {
  width: fit-content;
  min-height: 38px;
  padding: 4px 8px;
  margin: auto;
  color: var(--teal);
  font-family: "Exo 2", sans-serif;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  background: none;
  border: 0;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form input {
  width: 100%;
  height: 60px;
  padding: 0 28px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid rgba(69, 75, 79, .2);
  border-radius: 30px;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15);
}

.auth-form input:focus {
  outline: 3px solid rgba(0, 97, 160, .3);
  border-color: var(--focus);
}

.auth-form .button {
  width: 100%;
}

.form-status {
  min-height: 19px;
  margin: -3px 0 0;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
}

.social-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px;
  font-weight: 600;
}

.social-login > div {
  display: flex;
  gap: 10px;
}

.social-login button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  cursor: pointer;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.social-login button:hover {
  box-shadow: 0 5px 8px rgba(0, 0, 0, .2);
  transform: translateY(-2px);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  width: min(380px, calc(100% - 44px));
  padding: 15px 18px;
  color: var(--white);
  font-weight: 700;
  background: var(--ink-deep);
  border-left: 5px solid var(--coral);
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .25);
  animation: toast-in .3s var(--ease) both;
}

@keyframes map-arrival {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes plane-drift {
  from { transform: translate(-40px, 18px) rotate(-2deg); }
  to { transform: translate(65px, -14px) rotate(2deg); }
}

@keyframes intro-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-cue {
  0%, 100% { opacity: .25; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 11px); }
}

@keyframes modal-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1199px) {
  .primary-nav { gap: 22px; margin-right: 22px; }
  .monitor-section,
  .motivation-section { background-image: none; }
  .certificate-image { left: 370px; }
}

@media (max-width: 991px) {
  .primary-nav {
    position: fixed;
    z-index: 19;
    top: var(--header-height);
    right: 20px;
    display: grid;
    width: 250px;
    gap: 0;
    padding: 16px;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    background: var(--white);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
    transform: translateY(-12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav > a {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
  }

  .primary-nav .teacher-link {
    margin: 7px 0 12px;
  }

  .nav-login {
    display: inline-flex;
  }

  .desktop-login {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .map-scene { min-height: 540px; }
  .monitor-card p { font-size: 24px; }
  .feature-list span { font-size: 19px; }
  .winner-image { width: 44%; }
  .certificate-copy p { font-size: 21px; }
  .certificate-image { top: -35px; left: 300px; width: 54%; }
  .footer-grid { grid-template-columns: 1fr 1.5fr auto; gap: 28px; }
  .footer-navigation nav { gap: 14px; }
  .footer-navigation nav a { font-size: 15px; }
  .footer-bottom-grid { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .made-by { justify-content: center; }
}

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

  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header { height: var(--header-height); padding: 12px 0; }
  .logo img { width: 150px; }
  .header-actions { gap: 8px; }
  .language-menu summary { min-width: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
  .primary-nav { top: var(--header-height); right: 15px; }

  .map-hero { margin-top: 0; }
  .map-scene { min-height: 470px; max-height: 560px; aspect-ratio: auto; }
  .map-world { min-width: 840px; }
  .map-intro { left: 15px; bottom: 20px; width: calc(100% - 30px); padding: 20px; }
  .map-intro strong { font-size: 29px; }
  .map-scroll-cue { display: none; }

  .monitor-section { padding: 40px 0; }
  .almabek { display: none; }
  .monitor-card img { width: 300px; }
  .monitor-card p { padding: 43px 22px; font-size: 19px; }

  .path-section { padding: 52px 0 58px; }
  .section-title,
  .motivation-copy h2 { font-size: 31px; }
  .path-section .section-title { margin-bottom: 44px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .feature-list li { flex-direction: column; text-align: center; }
  .feature-list img { width: 86px; margin: 0 0 12px; }
  .feature-list span { font-size: 17px; }

  .motivation-section { padding: 38px 0 54px; }
  .motivation-layout { flex-direction: column; text-align: center; }
  .winner-image { width: min(330px, 84%); margin: 0 0 20px; }

  .certificate-section { padding: 52px 0 110px; margin-bottom: -72px; }
  .certificate-layout { display: flex; flex-direction: column-reverse; min-height: 0; align-items: center; }
  .certificate-image { position: static; width: min(430px, 100%); margin-bottom: 26px; }
  .certificate-copy { text-align: center; }
  .certificate-copy p { font-size: 19px; }
  .certificate-copy p br { display: none; }

  .footer-main { padding: 88px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-logo { margin-inline: auto; }
  .partner-list { justify-content: center; }
  .footer-navigation nav { display: none; }
  .search-form { max-width: 420px; margin: auto; }
  .back-to-top { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); }
  .back-to-top:hover { transform: translate(-50%, -3px); }
  .search-status { margin-bottom: 0; }
  .footer-bottom { padding: 16px 0; }
  .footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; }

  .modal { padding: 34px 20px 24px; }
  .welcome-content h2 { margin-inline: 32px; font-size: 30px; }
  .course-actions { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .header-actions { gap: 3px; }
  .language-arrow { display: none; }
  .map-world { min-width: 760px; }
  .map-intro { bottom: 14px; }
  .map-kicker { font-size: 12px; }
  .map-intro strong { font-size: 25px; }
  .button { width: 100%; padding-inline: 22px; }
  .feature-list { gap-inline: 8px; }
  .feature-list span { font-size: 15px; }
  .social-login { flex-direction: column; gap: 12px; }
}

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

@media (forced-colors: active) {
  .button,
  .map-start,
  .teacher-link { border: 2px solid ButtonText; }
  .map-intro { background: Canvas; color: CanvasText; }
}
