/* =========================================================
   Alina Karpenko — Style entry point
   Активна тема підключається через @import нижче.
   Доступні версії в /themes:
     · blend.css     — Fraunces + теплий ink + терракотовий акцент
     · editorial.css — м'який редакційний з акуратним сериф-стилем
     · bold.css      — UDC-style: яскраво-жовтий акцент, Manrope 800, brutalist (АКТИВНА)
   Щоб перемкнути — змініть рядок @import нижче.
   Детальніше: /THEMES.md
   ========================================================= */

@import url("themes/bold.css?v=20260601-01");

/* Services page: give tariff copy more room and keep images calmer on desktop. */
@media (min-width: 1024px) {
  section[data-block^="service-"] .service-detail {
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
    gap: 48px;
  }

  section[data-block^="service-"] .service-detail__media {
    max-height: 430px;
  }
}

/* Knowledge base dropdown */
.nav {
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-item__link::before {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  top: -12px;
  bottom: -18px;
}

.nav-item__link::after {
  pointer-events: none;
}

.nav-item--has-submenu .nav-item__link::before {
  display: block;
}

.nav-item--has-submenu .nav-item__link {
  padding-right: 0;
  gap: 8px;
}

.nav .nav-item--has-submenu .nav-item__link::after {
  display: none;
}

.nav-caret {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}

.nav-submenu {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  min-width: 220px;
  padding: 10px;
  background: var(--c-bg-alt, #fff);
  border: 1.5px solid var(--c-line-strong, #ddd);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  transform: translate(-50%, 8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 80;
}

.nav-item:hover .nav-submenu,
.nav-item:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav .nav-submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--c-ink, #111);
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav .nav-submenu a:hover {
  background: var(--c-accent, #ffd83d);
  color: var(--c-ink, #111);
}

.nav .nav-submenu a::after {
  display: none;
}

.mobile-nav__sublist {
  display: grid;
  gap: 0;
  margin: -2px 0 6px 18px;
  padding-left: 16px;
  border-left: 3px solid var(--c-accent, #ffd83d);
}

.mobile-nav__list .mobile-nav__sublist a {
  font-size: 1.05rem;
  padding: 9px 0;
  opacity: 0.82;
}

/* Mobile drawer must stay opaque even when the header is translucent on the home page. */
.mobile-nav {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  background: var(--c-bg, #f5f4f0) !important;
  color: var(--c-ink, #0d0d0d);
  z-index: 1000;
  isolation: isolate;
}

.mobile-nav::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--c-bg, #f5f4f0);
  z-index: -1;
  pointer-events: none;
}

.mobile-nav__head,
.mobile-nav__list,
.mobile-nav__footer {
  position: relative;
  z-index: 1;
}
