
:root {
  --bg-main: #f4f5f8;
  --bg-card: #ffffff;
  --bg-soft: #f8f9fc;
  --navy: #132342;
  --deep-blue: #0b2348;
  --muted-gold: #e5c77b;
  --muted-gold-soft: #f6f0de;
  --border-soft: rgba(10, 25, 56, 0.12);
  --text-main: #1f2530;
  --text-soft: #5b6475;
  --accent-red: #b64242;
  --shadow-soft: 0 18px 45px rgba(10, 20, 40, 0.14);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(236, 241, 255, 0.9), transparent 55%),
    radial-gradient(circle at bottom right, rgba(246, 237, 214, 0.9), transparent 55%),
    #f6f7fb;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--deep-blue);
}

img,
iframe,
video {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}



/* Topbar – світла версія з меню як на макеті */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ffe9aa, #c9ddff);
  color: #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  padding: 6px 0;
  gap: 18px;
  min-height: 94px;
}

.topbar-left {
  min-width: 0;
  flex: 0 0 360px;
}

.logo-block {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 10px;
  margin-right: 0;
  min-width: 0;
}

/* Круглий логотип */

.logo-wrap {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 30px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.logo-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.055em;
}

.logo-sub {
  font-size: 12px;
}

.logo-kicker {
  font-size: 12px;
}

/* Горизонтальне меню */

.topbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 13px;
  font-size: 13px;
  min-width: 0;
}

.topbar-nav .nav-link {
  position: relative;
  color: #1b2430;
  text-decoration: none;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  white-space: nowrap;
}

.topbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #28344f;
  transition: width 0.18s ease;
}

.topbar-nav .nav-link:hover::after {
  width: 100%;
}

.topbar-nav .nav-link.active::after {
  width: 100%;
}

/* Права частина */

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

/* Мови */

.lang-switcher {
  display: flex;
  gap: 6px;
  background: transparent;
  padding: 0;
}

.lang-btn {
  border: 1px solid #d0d4e2;
  background: #ffffff;
  color: #1b2430;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: default;
  text-decoration: none;
  white-space: nowrap;
}

.lang-btn.lang-active {
  border-color: #1b2430;
  font-weight: 600;
}

/* Пошук */

.icon-btn {
  border: none;
  background: radial-gradient(circle at 30% 20%, #e0f1ff, #5f7ff1);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(40, 60, 130, 0.45);
}

.icon-btn:hover {
  box-shadow: 0 6px 16px rgba(40, 60, 130, 0.55);
}

.icon-search::before {
  content: "🔍";
  font-size: 14px;
}

/* Кнопки в шапці */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #172654;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
}

.btn-primary:hover {
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.48);
}

.btn-ghost {
  background: #ffffff;
  color: #111111;
  border-color: #d0d4e2;
}

.btn-ghost:hover {
  background: #f7f8fc;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-main);
}

/* Прихований текст для доступності */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero / sections */

main {
  padding: 26px 0 40px;
}

.hero {
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.hero-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 6px 0 8px;
  color: var(--navy);
}

.hero-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 520px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-soft);
}

.hero-aside {
  position: relative;
}

.hero-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hero-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(244, 215, 132, 0.18);
  color: var(--navy);
}

/* Section generic */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.section-title {
  margin: 4px 0 0;
  font-size: 20px;
  color: var(--navy);
}

.section-description {
  font-size: 13px;
  color: var(--text-soft);
  max-width: 420px;
}

/* Cards grid (used on main and others) */

.pastel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
}

.pastel-card {
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 13px;
  color: var(--text-soft);
}

.pastel-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--navy);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(13, 32, 71, 0.12);
  background: radial-gradient(circle at top, rgba(12, 28, 66, 0.08), transparent 55%), #f5f6fb;
  padding: 18px 0 14px;
  margin-top: 18px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 8px;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.footer-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}

.footer-heading {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.footer-contacts p {
  margin: 0 0 2px;
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(13, 32, 71, 0.06);
  padding-top: 6px;
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-soft);
}

/* Search overlay */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 35, 0.55);
  backdrop-filter: blur(2px);
}

.search-overlay-panel {
  position: relative;
  max-width: 420px;
  margin: 80px auto 0;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
}

.search-overlay-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.search-overlay-panel p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.search-overlay-panel form {
  display: flex;
  gap: 8px;
}

.search-overlay-panel input {
  flex: 1;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
}

.search-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

#contact-form,
#support {
  scroll-margin-top: 120px;
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Responsive */

@media (max-width: 960px) {
  .topbar-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .topbar-nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .topbar-right {
    order: 2;
    margin-left: auto;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 961px) {
  .topbar .container {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 720px) {
  .logo-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
  .logo-wrap {
  width: 70px;
  height: 70px;
  border-radius: 30px;
}
  .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
  .topbar-inner {
    padding: 8px 0 10px;
  }
  .topbar-left,
  .topbar-nav,
  .topbar-right {
    flex: 1 1 100%;
  }
  .topbar-right {
    justify-content: flex-start;
  }
  .topbar-nav {
    font-size: 12px;
    gap: 8px;
  }
  .pastel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container[style*="grid-template-columns"],
  div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .pastel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
