:root {
  --bg: #edf3ff;
  --bg-2: #f8fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(108, 135, 183, 0.18);
  --text: #18345b;
  --muted: #6d83a8;
  --primary: #4b7df0;
  --primary-2: #7be16b;
  --shadow-lg: 0 28px 60px rgba(48, 92, 162, 0.18);
  --shadow-md: 0 14px 30px rgba(43, 82, 145, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-display: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(85, 143, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(120, 223, 120, 0.16), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 45%, #e8f0ff 100%);
}

a {
  color: var(--primary);
}

.page-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 32px 18px 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(75, 125, 240, 0.95), rgba(90, 174, 241, 0.9) 48%, rgba(118, 227, 115, 0.9) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 22px;
  font-weight: 800;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  max-width: 660px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  border-radius: 28px;
  display: block;
  box-shadow: 0 18px 34px rgba(28, 62, 123, 0.2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 24px;
}

.page-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-switcher {
  position: relative;
  z-index: 2;
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.page-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 229, 244, 0.96);
  box-shadow: 0 12px 24px rgba(45, 83, 145, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-switcher-link.primary {
  background: linear-gradient(135deg, rgba(75, 125, 240, 0.96), rgba(118, 227, 115, 0.9));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-flag {
  font-size: 14px;
  line-height: 1;
}

.lang-link.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-switcher .page-switcher-link {
  min-height: 50px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 16px;
  font-weight: 500;
}

.hero-switcher .page-switcher-link.primary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.main-card {
  padding: 34px 30px;
}

.side-card {
  padding: 26px 22px;
}

.section + .section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.section p,
.section li {
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.section p + p {
  margin-top: 14px;
}

.section p.muted,
.meta,
.note {
  color: var(--muted);
}

.list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.list li + li {
  margin-top: 10px;
}

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

.mini-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid rgba(225, 233, 247, 0.9);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.contact-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(225, 233, 247, 0.9);
}

.contact-item strong,
.mini-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.home-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.home-landing {
  width: min(100%, 760px);
  display: grid;
  justify-items: center;
  gap: 28px;
}

.home-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 22px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 46px rgba(48, 92, 162, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  text-decoration: none;
}

.home-header-logo {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.home-actions .page-switcher-link {
  min-width: 214px;
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(75, 125, 240, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  margin-top: 22px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 12px 44px;
  }

  .hero,
  .main-card,
  .side-card {
    border-radius: 24px;
  }

  .hero {
    padding: 24px 18px;
  }

  .main-card {
    padding: 24px 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    align-items: flex-start;
  }

  .home-page {
    padding: 18px;
  }

  .home-landing {
    gap: 20px;
  }

  .home-logo-link {
    width: 100%;
    padding: 18px 16px;
    border-radius: 26px;
  }

  .home-header-logo {
    width: 100%;
    max-width: 340px;
  }

  .home-actions {
    width: 100%;
  }

  .home-actions .page-switcher-link {
    width: 100%;
    min-width: 0;
  }
}
