:root {
  --violet: #d7c9e3;
  --blue: #b8b9e4;
  --orange: #f6d9ca;
  --green: #d9ebe1;
  --muted: #6b7280;
  --shadow: 0 6px 18px rgba(26, 38, 62, 0.08);
  --header-offset: max(8px, 1vh);
  --header-space: clamp(180px, 24vh, 240px);
}

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

* {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial,
    sans-serif;
}

input,
select,
textarea,
button {
  font: inherit;
}

body,
html {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--violet), var(--blue)) no-repeat
    fixed;
  min-height: 100svh;
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.content {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-space) + var(--header-offset)) clamp(10px, 3vw, 24px) max(10px, 1vh);
  gap: 3vh;
}

.container {
  width: min(67vw, 1120px);
  min-height: 20vh;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-offset);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  color: black;
  flex-basis: 20%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.header-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  gap: 8px;
  text-align: center;
}

.header .logo {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--violet);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.2px;
  padding-right: 1.8vw;
}
.header h3 {
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.link {
  color: var(--orange);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 180ms ease;
  font-weight: 600;
  display: inline-block;
}
.link:hover {
  background: rgba(43, 124, 255, 0.08);
  transform: translateY(-2px);
  color: var(--green);
}

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

.footer {
  position: relative;
  bottom: 1vh;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

footer p {
  margin: 0;
  padding: 0;
}

.main,
.cards,
.courses-main,
.carousel {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (min-height: 972px) {
  .container {
    min-height: 0;
  }
}
@media (max-width: 968px) {
  .header-text {
    flex-direction: column;
  }
}
@media (max-width: 848px) {
  .link {
    min-width: 15%;
  }
}
@media (max-width: 621px) {
  :root {
    --header-space: 178px;
  }

  .header {
    padding: 18px 16px;
  }

  .header .logo {
    width: 68px;
    height: 68px;
  }

  .header h1 {
    font-size: 20px;
  }
  .header h3 {
    font-size: 12px;
  }
}
@media (max-width: 479px) {
  .content {
    padding-inline: 8px;
  }

  .container {
    width: 100%;
  }

  .nav {
    gap: 6px;
    padding: 10px 8px;
  }

  .link {
    font-size: 11px;
    min-width: auto;
    padding: 7px 8px;
  }
}
@media (max-width: 344px) {
  .header h1 {
    font-size: 15px;
  }
  .header h3 {
    font-size: 7px;
  }
}
@media (max-width: 1000px) {
  .container {
    width: 90vw;
  }
  html,
  body {
    overflow-x: hidden;
  }
}
