
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
  padding-top: 100px;
}

#content:has(.hero:first-child) {
  padding-top: 0;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-header {
  display: flex;
  justify-content: start;
  align-items: center;
  padding-inline: var(--site-padding);
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

#header.scrolled .site-header {
  background: #fff;
  border-bottom-color: #e5e5e5;
}

#header.burger-open .site-header {
  background: #09132e;
  border-bottom-color: transparent;
}

#header.burger-open .logo__default { display: none; }
#header.burger-open .logo__dark    { display: block; }
#header.burger-open .burger__icon  { filter: brightness(0) invert(1); }

#header:not(.scrolled) .nav__link {
  color: #fff;
}

#header:not(.scrolled) .nav__arrow {
  color: #fff;
}

#header .nav__link:hover,
#header .nav__link.active {
  background: linear-gradient(to right, #5BC4F5, #7B5CF5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* прозорий header → показуємо logo-dark (для темного фону) */
.logo__default { display: none; }
.logo__dark    { display: block; }

/* білий header → показуємо logo.svg */
#header.scrolled .logo__default { display: block; }
#header.scrolled .logo__dark    { display: none; }

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 250px;
  max-height: 100%;
}

.logo img {
  height: 100%;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 36px;
}

.nav__link {
  position: relative;
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #5BC4F5, #7B5CF5);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link.active::after {
  transform: scaleX(1);
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

.nav__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transform-origin: center;
  transition: transform 0.25s ease;
  -webkit-text-fill-color: initial;
  color: #222;
}

.nav__dropdown-toggle {
  outline: none;
}

.nav__dropdown.open .nav__arrow {
  transform: rotate(180deg);
}

.nav__link:hover .nav__arrow {
  color: #7B5CF5;
}

.nav__link.active .nav__arrow {
  color: #7B5CF5;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  min-width: 190px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  flex-direction: column;
  overflow: hidden;
  padding: 6px 0;
}

.nav__dropdown.open .nav__dropdown-menu {
  display: flex;
}

.nav__dropdown-menu a {
  padding: 11px 22px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav__dropdown-menu a:hover {
  background: #f5f0ff;
  background: linear-gradient(to right, #5BC4F5, #7B5CF5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer ── */
.site-footer {
  background: #09132e;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.footer__body {
  padding: 48px 0 36px;
  margin-inline: var(--site-padding);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__risk {
  color: #ccd6e0;
}

.footer__company {
  font-weight: 700;
}

.footer__address,
.footer__reg {
  color: #ccd6e0;
  text-transform: uppercase;
}

.footer__contact {
  font-weight: 600;
}

.footer__email a {
  color: #ccd6e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__email a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px var(--site-padding);
  text-align: center;
  color: #ccd6e0;
}

/* ── Burger ── */
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.burger__icon {
  width: 26px;
  height: 26px;
  transition: filter 0.25s ease;
  filter: brightness(0);
}

/* на прозорому header — іконка біла */
#header:not(.scrolled) .burger__icon {
  filter: brightness(0) invert(1);
}

/* ── Responsive: tablet і менше ── */
@media (max-width: 1024px) {
  .burger {
    display: flex;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #09132e;
    padding: 16px var(--site-padding) 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }

  .nav.mobile-open {
    display: flex;
  }

  .nav__link {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    -webkit-text-fill-color: #fff;
    background: none;
    color: #fff;
  }

  .nav__link.active,
  .nav__link:hover {
    -webkit-text-fill-color: #5BC4F5;
    background: none;
    color: #5BC4F5;
  }

  .nav__link::after {
    display: none;
  }

  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    background: transparent;
  }

  .nav__dropdown.open .nav__dropdown-menu {
    display: flex;
  }

  .nav__dropdown-menu a {
    padding: 10px 0;
    font-size: 15px;
    border-left: none;
    color: rgba(255,255,255,0.65);
  }
}
