@font-face {
  font-family: "Electrolize";
  src: url("../fonts/electrolize-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2e3842;
  --purple: #6a51a3;
  --purple-dark: #442d65;
  --teal: #92c5ce;
  --sky: #c0f3fe;
  --lavender: #f2f0f7;
  --lavender-deep: #ece9f3;
  --white: #fff;

  --font-body: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Electrolize", "Raleway", system-ui, sans-serif;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(48px, 8vw, 88px);
  --radius: 14px;
  --shadow: 0 6px 24px rgba(46, 56, 66, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lavender);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: #b3d4fc;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Splash */

.splash {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 66vh;
  min-height: 66svh;
  padding: clamp(40px, 8vh, 72px) var(--gutter);
  text-align: center;
  color: var(--purple-dark);
  background: var(--sky);
}

.splash-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.lang-switch {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  z-index: 1;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.lang-switch a {
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--purple-dark);
}

.lang-switch a:hover {
  text-decoration: none;
  background: rgba(106, 81, 163, 0.12);
}

.lang-switch a[aria-current] {
  color: var(--white);
  background: var(--purple);
}

.splash-logo {
  width: auto;
  height: clamp(160px, min(32vw, 40vh), 360px);
  margin-inline: auto;
}

.wordmark {
  margin: 12px 0 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2rem, 11vw, 5.375rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.wordmark .accent {
  color: var(--purple);
}

.tagline {
  margin: 0.25em 0 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 700;
  color: var(--purple);
}

/* Sections */

.section {
  padding-block: var(--section-space);
}

.section h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);
  font-weight: 700;
}

.section-video {
  background: var(--lavender);
}

.section-edumeet,
.section-contact {
  background: var(--lavender-deep);
}

.section-partners {
  background: var(--lavender);
}

/* Video */

.lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  font-weight: 500;
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

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

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 1.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-weight: 400;
  color: var(--white);
  background: var(--purple);
  transition: background-color 0.2s ease;
}

.button:hover {
  color: var(--white);
  background: var(--purple-dark);
  text-decoration: none;
}

/* Partners */

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners li {
  flex: 0 0 100%;
}

.partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.partners a:hover,
.partners a:focus-visible {
  background: var(--white);
  box-shadow: var(--shadow);
}

.partners img {
  width: 100%;
  max-width: 240px;
  height: 56px;
  object-fit: contain;
}

@media (min-width: 560px) {
  .partners li {
    flex-basis: calc((100% - 14px) / 2);
  }

  .partners a {
    height: 112px;
    padding: 16px 24px;
  }

  .partners img {
    max-width: 280px;
    height: 72px;
  }
}

@media (min-width: 960px) {
  .partners li {
    flex-basis: calc((100% - 3 * 14px) / 4);
  }

  .partners a {
    height: 128px;
  }

  .partners img {
    height: 88px;
  }
}

/* Contact */

.contact-mail {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-card p {
  margin: 0;
}

.contact-card p + p {
  margin-top: 0.75em;
}

.contact-card h3 {
  margin: 0 0 0.6em;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.contact-card .company {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

/* Footer */

.footer {
  padding: 40px var(--gutter);
  text-align: center;
  font-size: 0.875rem;
  color: var(--teal);
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--teal);
}

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

.footer a:focus-visible {
  outline-color: var(--teal);
}

/* Error page */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--gutter);
  text-align: center;
  background: var(--sky);
}

.error-page .splash-logo {
  height: 140px;
}

.error-page h1 {
  margin: 20px 0 0.3em;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  color: var(--purple-dark);
}

.error-page p {
  margin: 0 0 1.5rem;
}

.error-page .error-en {
  margin-top: -0.5rem;
  font-size: 1.125rem;
  color: var(--purple);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Legal pages */

.splash-compact {
  display: block;
  place-items: normal;
  min-height: 0;
  padding: clamp(64px, 8vw, 88px) 0 clamp(36px, 5vw, 56px);
  text-align: left;
  background: linear-gradient(160deg, var(--sky) 0%, #e2f8fd 55%, var(--lavender) 100%);
}

.splash-compact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(106, 81, 163, 0.16) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 40%, #000 85%);
}

@media (max-width: 959px) {
  .splash-compact::before {
    display: none;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-brand);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--purple);
}

.kicker img {
  width: 32px;
  height: 32px;
}

.splash-compact h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.2;
  color: var(--purple-dark);
}

.section-doc {
  background: var(--lavender);
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius);
  overflow-wrap: break-word;
  background: var(--white);
  box-shadow: var(--shadow);
}

.section .doc h2 {
  margin: 2em 0 0.6em;
  font-size: 1.375rem;
}

.section .doc h2:first-child,
.doc .doc-date + h2 {
  margin-top: 0;
}

.doc h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.125rem;
  color: var(--purple-dark);
}

.doc p,
.doc ul {
  margin: 0 0 1em;
}

.doc ul {
  padding-left: 1.25em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc-date {
  font-size: 0.9375rem;
  color: #5b6672;
}

.doc-note {
  padding: 12px 16px;
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  background: var(--lavender);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.footer-links a[aria-current="page"] {
  color: var(--white);
}

.splash-compact .container {
  max-width: calc(820px + 2 * var(--gutter));
}

/* eduMEET services */

.edumeet-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0.6em;
}

.edumeet-head img {
  flex: none;
  width: 56px;
  height: 56px;
}

.section .edumeet-head h2 {
  margin: 0;
}

.section-edumeet .lead {
  margin-bottom: 0.75rem;
}

.edumeet-about {
  margin: 0 0 1.25rem;
}

.edumeet-offer {
  margin: 0 0 1.5rem;
  font-weight: 700;
  color: var(--purple-dark);
}

.edumeet-points {
  display: grid;
  gap: 14px 40px;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .edumeet-points {
    grid-template-columns: 1fr 1fr;
  }
}

.edumeet-points li {
  position: relative;
  padding-left: 30px;
}

.edumeet-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}

.edumeet-points strong {
  display: block;
  color: var(--purple-dark);
}

.section .services-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--purple);
  background: var(--sky);
}

.service-card h4 {
  margin: 0 0 0.4em;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--purple-dark);
}

.service-card p {
  margin: 0;
}

.service-card .service-link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
}

.edumeet-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 2.5rem;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.edumeet-cta p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.edumeet-cta .edumeet-cta-note {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #4a5560;
}

.edumeet-cta .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-ghost {
  color: var(--purple);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--purple);
}

.button-ghost:hover {
  color: var(--white);
  background: var(--purple);
}

/* Line breaking */

p,
li {
  text-wrap: pretty;
}

.nowrap {
  white-space: nowrap;
}
