:root {
  --brand-sky: #59B7E5;
  --brand-sky-soft: #DFF1FA;
  --brand-blue: #34A4DC;
  --brand-navy: #124987;
  --white: #FFFFFF;
  --ink: #27211F;
  --ink-soft: #3F383C;
  --brand-red: #BD2F28;
  --brand-teal: #1D5A5E;

  --container: 1120px;
  --radius-lg: 22px;
  --radius-md: 15px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 240ms ease;
}

body.is-loading .site-shell {
  opacity: 0;
}

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

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--white);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

body:not(.is-loading) .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  display: flex;
  align-items: center;
  gap: 6px;
}

.loader-mark span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-blue);
  animation: loaderPulse 900ms ease-in-out infinite;
}

.loader-mark span:nth-child(2) {
  animation-delay: 120ms;
}

.loader-mark span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.hero {
  width: 100%;
  overflow: hidden;
  background: var(--brand-sky-soft);
}

.hero picture,
.hero-image {
  display: block;
  width: 100%;
}

.hero-image {
  height: auto;
}

.main-content {
  flex: 1;
  background: var(--white);
}

.language-section {
  position: relative;
  padding: clamp(48px, 6vw, 78px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.language-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -180px;
  right: -150px;
  border-radius: 50%;
  background: rgba(223, 241, 250, 0.42);
  filter: blur(2px);
  pointer-events: none;
}

.language-section::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: -180px;
  bottom: -180px;
  border-radius: 50%;
  background: rgba(89, 183, 229, 0.06);
  pointer-events: none;
}

.language-panel {
  position: relative;
  z-index: 1;
  max-width: 1010px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(18, 73, 135, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 44px rgba(18, 73, 135, 0.055);
}

.language-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 30px;
}

.language-section h1 {
  margin: 0;
  color: var(--brand-navy);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
}

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

.language-card {
  position: relative;
  isolation: isolate;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 15px 16px;

  border: 1px solid rgba(18, 73, 135, 0.1);
  border-radius: var(--radius-md);

  background: var(--white);
  color: var(--brand-navy);

  text-decoration: none;
  overflow: hidden;

  box-shadow: 0 3px 10px rgba(18, 73, 135, 0.035);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.language-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -3;

  border-radius: inherit;

  background:
    linear-gradient(110deg,
      #59B7E5,
      #34A4DC,
      #8ED3F2,
      #1D5A5E,
      #34A4DC,
      #59B7E5);

  background-size: 300% 300%;

  opacity: 0;

  animation: languageBorderFlow 3.2s linear infinite;

  transition: opacity 220ms ease;
}

.language-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -2;

  border-radius: calc(var(--radius-md) - 1px);

  background: #ffffff;
}

.language-card .language-card_shine {
  position: absolute;
  top: 0;
  left: -50%;

  width: 34%;
  height: 100%;

  pointer-events: none;

  background:
    linear-gradient(110deg,
      transparent 0%,
      rgba(223, 241, 250, 0.04) 30%,
      rgba(89, 183, 229, 0.08) 50%,
      rgba(255, 255, 255, 0.5) 68%,
      transparent 100%);

  transform: skewX(-18deg);

  opacity: 0;
  transition: opacity 180ms ease;

  z-index: -1;
}

.language-card:hover {
  transform: translateY(-2px);

  border-color: transparent;

  color: var(--brand-blue);

  box-shadow:
    0 7px 18px rgba(18, 73, 135, 0.065),
    0 0 0 1px rgba(89, 183, 229, 0.025);
}


.language-card:hover::before,
.language-card:focus-visible::before {
  opacity: 1;
}


.language-card:hover .language-card_shine {
  opacity: 0.7;
  animation: languageShine 1.15s ease forwards;
}

.language-card_icon-wrap {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background:
    rgba(223, 241, 250, 0.62);

  transition:
    transform 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}


.language-card:hover .language-card_icon-wrap {
  transform: scale(1.06);

  background:
    rgba(223, 241, 250, 0.9);

  box-shadow:
    0 4px 10px rgba(52, 164, 220, 0.1);
}


.language-card_icon {
  width: 20px;
  height: 20px;

  display: block;

  object-fit: contain;

  transition:
    transform 220ms ease;
}


.language-card:hover .language-card_icon {
  transform: scale(1.05);
}

.language-card_label {
  position: relative;

  font-size: 0.98rem;
  font-weight: 650;

  line-height: 1.2;

  letter-spacing: -0.01em;

  transition:
    transform 220ms ease,
    color 220ms ease;
}


.language-card:hover .language-card_label {
  transform: translateX(2px);
}

.language-card:active {
  transform:
    translateY(-1px) scale(0.985);

  box-shadow:
    0 4px 12px rgba(18, 73, 135, 0.07);
}


.language-card:active::before {
  opacity: 1;

  animation-duration: 1.2s;
}

.language-card:focus-visible {
  outline: 3px solid rgba(89, 183, 229, 0.22);

  outline-offset: 3px;

  border-color: transparent;
}

@keyframes languageBorderFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes languageShine {
  0% {
    left: -50%;
  }

  100% {
    left: 125%;
  }
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--brand-navy);
}

.footer-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-block: 9px;
  font-size: 0.72rem;
  font-weight: 450;
}

.footer-logo {
  display: block;
  width: auto;
  max-width: 74px;
  max-height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

@media (max-width: 1023px) {
  .language-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .language-section {
    padding: 34px 0 44px;
  }

  .language-panel {
    padding: 24px 16px 20px;
    border-radius: 18px;
  }

  .language-heading-wrap {
    gap: 8px;
    margin-bottom: 22px;
  }

  .language-section h1 {
    font-size: 1.55rem;
  }

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

  .language-card {
    min-height: 64px;
    gap: 9px;
    padding: 12px 12px;
    border-radius: 13px;
  }

  .language-card::after {
    border-radius: 12px;
  }

  .language-card_icon-wrap {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border-radius: 9px;
  }

  .language-card_icon {
    width: 18px;
    height: 18px;
  }

  .language-card_label {
    font-size: 0.9rem;
  }

  .footer-inner {
    min-height: 54px;
    gap: 5px;
    padding-block: 8px;
    font-size: 0.68rem;
  }

  .footer-logo {
    max-width: 68px;
    max-height: 20px;
  }
}

@media (max-width: 360px) {
  .language-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}