:root {
  --color-primary: #3e6ff2;
  --color-secondary: #f2f4fb;
  --color-accent: #2fa58d;
  --color-highlight: #f3d9b8;
  --color-text: #253142;
  --color-surface: #ffffff;
  --color-dark: #1b2533;
  --color-link-hover: #fdf2a6;
  --shadow-sm: 0 0.25rem 0.75rem rgba(31, 46, 64, 0.08);
  --shadow-md: 0 0.75rem 1.5rem rgba(31, 46, 64, 0.12);
  --radius-sm: 0.6rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.2rem;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.6rem;
  --space-xl: 2.4rem;
  --container: 72rem;
  --transition: 0.25s ease;
  --font-head: "Poppins", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--color-text);
  background: linear-gradient(180deg, #fbfcff 0%, #eef3ff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body.menu-open {
  overflow: hidden;
}

a,
button {
  transition: all var(--transition);
}

a {
  color: var(--color-dark);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

.logo:hover,
.logo:focus-visible {
  color: #fff;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-md);
}

.card img {
  width: 100%;
  height: clamp(12rem, 30vw, 16rem);
  object-fit: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  margin: 0 0 0.55rem;
  line-height: 1.25;
  color: var(--color-dark);
}

h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

h2 {
  font-size: clamp(1.02rem, 2vw, 1.35rem);
}

h3 {
  font-size: clamp(0.92rem, 1.65vw, 1.12rem);
}

p {
  margin: 0 0 var(--space-md);
}

.container {
  width: min(94%, var(--container));
  margin-inline: auto;
}

.site-header {
  position: relative;
  padding: var(--space-sm) 0;
}

.header-shell {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 2rem;
  box-shadow: var(--shadow-sm);
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--color-dark);
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  padding: 0.45rem 0.7rem;
  border-radius: 1.4rem;
  color: #fff;
}

.logo-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #fff 20%, #d2f3dc 100%);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.38rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 1201;
}

.menu-toggle.active {
  display: none;
}

.menu-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-dark);
  font-size: 1.3rem;
  cursor: pointer;
}

.hero {
  padding: var(--space-lg) 0 var(--space-xl);
}

.hero-panel {
  background: linear-gradient(140deg, rgba(245, 247, 250, 0.92) 0%, rgba(74, 144, 226, 0.2) 100%), url("../img/hero-bg.jpg") center/cover no-repeat;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.2rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
}

.hero p {
  max-width: 38rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 2rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.56rem 0.96rem;
  font-size: 0.83rem;
  font-weight: 700;
  margin-top: var(--space-sm);
}

.btn.secondary {
  background: var(--color-accent);
}

.btn:hover {
  background: var(--color-dark);
  color: var(--color-link-hover);
}

.orbital-wrap {
  display: grid;
  place-items: center;
}

.orbital {
  width: min(15rem, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0.12rem solid rgba(31, 46, 64, 0.18);
  position: relative;
}

.orbital span {
  position: absolute;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  animation: loop 8s linear infinite;
  transform-origin: 6rem 6rem;
}

.orbital span:nth-child(1) {
  background: #5b9fed;
  top: 45%;
  left: 45%;
  animation-delay: 0s;
}

.orbital span:nth-child(2) {
  background: #7bae7f;
  top: 45%;
  left: 45%;
  animation-delay: -2.6s;
}

.orbital span:nth-child(3) {
  background: #d18f62;
  top: 45%;
  left: 45%;
  animation-delay: -5.2s;
}

@keyframes loop {
  from {
    transform: rotate(0deg) translateX(6rem) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(6rem) rotate(-360deg);
  }
}

section {
  padding: var(--space-lg) 0;
}

main section:nth-of-type(odd) .container > .card:only-child,
main section:nth-of-type(odd) > .container > .card:only-child {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
}

main section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(62, 111, 242, 0.04) 0%, rgba(47, 165, 141, 0.04) 100%);
}

main section h1,
main section h2 {
  display: inline-block;
  padding-bottom: 0.3rem;
  border-bottom: 0.12rem solid rgba(62, 111, 242, 0.25);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 0.06rem solid #e2eaf7;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.95rem 1.8rem rgba(31, 46, 64, 0.14);
  border-color: rgba(62, 111, 242, 0.35);
}

.grid-3 .card,
.grid-2 .card {
  height: 100%;
}

.stack-list {
  display: grid;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 144, 226, 0.12);
  border-radius: 1.2rem;
  padding: 0.3rem 0.58rem;
  font-size: 0.79rem;
  font-weight: 700;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.data-scroll {
  overflow: auto;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  font-size: 0.82rem;
  padding: 0.56rem;
  border-bottom: 0.06rem solid #e8edf4;
  text-align: left;
}

.contact-block {
  background: linear-gradient(150deg, rgba(47, 165, 141, 0.15), rgba(243, 217, 184, 0.3));
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 4vw, 1.8rem);
  box-shadow: var(--shadow-md);
}

.contact-hero .container {
  background: linear-gradient(145deg, rgba(62, 111, 242, 0.12), rgba(47, 165, 141, 0.12));
  border: 0.06rem solid rgba(62, 111, 242, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.contact-main .contact-block {
  border: 0.06rem solid rgba(47, 165, 141, 0.26);
}

.form-card {
  background: #ffffff;
}

.info-card {
  background: linear-gradient(150deg, #ffffff 0%, #f5f8ff 100%);
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.8rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 0.08rem solid #cfd8e6;
  padding: 0.58rem;
  font: inherit;
  font-size: 0.87rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

.error-text {
  color: #b43232;
  font-size: 0.76rem;
  min-height: 1rem;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  background: #f4f7fe;
  border: 0.06rem solid #d8e2f1;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.6rem;
}

.consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--color-primary);
  flex: 0 0 auto;
}

.consent label {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.35;
  font-weight: 600;
}

.consent:focus-within {
  border-color: rgba(62, 111, 242, 0.5);
  box-shadow: 0 0 0 0.16rem rgba(62, 111, 242, 0.14);
}

.site-footer {
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0;
  background: #edf3fb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.legal-main .card {
  border: 0.06rem solid #dde6f2;
}

.page-center {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-center p {
  margin-bottom: var(--space-md);
}

.cookie-banner,
.cookie-settings,
.privacy-popup {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 34rem);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.9rem;
  z-index: 1400;
}

.cookie-banner {
  bottom: 0.9rem;
}

.cookie-settings,
.privacy-popup {
  bottom: 6.6rem;
  display: none;
}

.cookie-settings.active,
.privacy-popup.active {
  display: block;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.toggle {
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 1rem;
  background: #d2dce8;
  position: relative;
  border: 0;
}

.toggle::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  transition: var(--transition);
}

.toggle.active {
  background: var(--color-accent);
}

.toggle.active::after {
  left: 1.38rem;
}

@media (max-width: 60rem) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .menu-toggle {
    display: inline-block;
  }
  .nav-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: min(88vw, 20rem);
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    transform: translateY(-100%);
    transition: transform var(--transition);
    z-index: 1200;
  }
  .nav-menu.active {
    transform: translateY(0);
  }
  .nav-menu.active + .menu-toggle {
    display: none;
  }
  .menu-close {
    display: inline-block;
    margin-left: auto;
  }
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  main section {
    padding: 1.2rem 0;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 0.9rem;
  }
  .header-shell {
    padding: 0.4rem;
  }
  .logo {
    font-size: 0.78rem;
  }
}
