/* Спільне меню: використовує чинні кольори, типографіку та геометрію OLE AUTO. */
.site-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  color: var(--cream);
  white-space: nowrap;
}

.site-desktop-link,
.site-desktop-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-desktop-link:hover,
.site-desktop-link:focus-visible,
.site-desktop-link[aria-current="page"],
.site-desktop-trigger:hover,
.site-desktop-trigger:focus-visible,
.site-desktop-trigger[aria-expanded="true"],
.site-desktop-trigger.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.site-desktop-dropdown {
  position: relative;
}

.site-desktop-trigger::after {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.18s ease, margin 0.18s ease;
}

.site-desktop-trigger[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.site-desktop-panel {
  position: absolute;
  z-index: 160;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  width: 250px;
  gap: 4px;
  padding: 8px;
  color: var(--cream);
  background: rgba(7, 24, 36, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -7px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-desktop-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-desktop-panel a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  color: var(--white);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.site-desktop-panel a:hover,
.site-desktop-panel a:focus-visible,
.site-desktop-panel a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.09);
}

.site-menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible,
.site-menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(245, 239, 225, 0.48);
}

.site-menu-toggle:focus-visible,
.site-services-menu a:focus-visible,
.site-menu-close:focus-visible {
  outline: 3px solid rgba(245, 239, 225, 0.88);
  outline-offset: 3px;
}

.site-menu-icon,
.site-menu-icon::before,
.site-menu-icon::after {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-menu-icon {
  position: relative;
}

.site-menu-icon::before,
.site-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.site-menu-icon::before { top: -7px; }
.site-menu-icon::after { top: 7px; }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon { background: transparent; }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon::before { top: 0; transform: rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] .site-menu-icon::after { top: 0; transform: rotate(-45deg); }

.site-services-menu {
  position: fixed;
  z-index: 140;
  top: 78px;
  left: clamp(18px, 4vw, 56px);
  width: min(390px, calc(100vw - 36px));
  padding: 10px;
  color: var(--cream);
  background: rgba(7, 24, 36, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(7, 24, 36, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-services-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.site-menu-head strong {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-menu-close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 26px;
  cursor: pointer;
}

.site-services-menu nav {
  display: grid;
  gap: 4px;
  padding: 2px;
}

.site-services-menu a {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 54px;
  padding: 12px 42px 12px 12px;
  border-radius: 9px;
  transition: background 0.18s ease;
}

.site-services-menu a::after {
  position: absolute;
  top: 50%;
  right: 14px;
  content: "→";
  color: var(--cream);
  transform: translateY(-50%);
}

.site-services-menu a:hover,
.site-services-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.site-services-menu b {
  color: var(--white);
  font-size: 15px;
  font-weight: 820;
}

.site-services-menu small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.site-services-menu a.site-menu-primary {
  background: var(--red, var(--wine, #9f2d28));
}

.site-services-menu a.site-menu-primary:hover,
.site-services-menu a.site-menu-primary:focus-visible {
  background: var(--red-dark, var(--wine-dark, #77201d));
}

.site-header .header-meta,
.topbar > .nav { margin-left: auto; }

.site-header .site-brand-cluster .brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.environment-banner + .site-header .site-services-menu {
  top: 114px;
}

.release-environment-label {
  position: fixed;
  z-index: 90;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: var(--cream);
  background: rgba(7, 24, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 760;
  pointer-events: none;
}

.ole-footer-container {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
}

.ole-footer-cta {
  padding: 44px 0;
  color: #fff;
  background: #9f2d28;
}

.ole-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.ole-footer-kicker {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.ole-footer-cta h2 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.ole-footer-cta p:not(.ole-footer-kicker) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.ole-footer-cta-button {
  display: inline-flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: #071824;
  background: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ole-footer-cta-button:hover,
.ole-footer-cta-button:focus-visible {
  background: #f5efe1;
  transform: translateY(-2px);
}

.ole-footer {
  display: block;
  padding: 58px 0 24px;
  color: #fff;
  background: #071824;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ole-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.75fr));
  gap: clamp(28px, 5vw, 68px);
}

.ole-footer-brand p {
  max-width: 380px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.65;
}

.ole-footer-logo {
  display: inline-flex;
}

.ole-footer-logo img {
  width: 70px;
  height: 70px;
  border-radius: 9px;
  object-fit: cover;
}

.ole-footer-socials,
.ole-footer-messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.ole-footer-socials a,
.ole-footer-messengers a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ole-footer-icon svg {
  width: 22px;
  height: 22px;
}

.ole-footer-socials a:hover,
.ole-footer-socials a:focus-visible,
.ole-footer-messengers a:hover,
.ole-footer-messengers a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.ole-footer-icon:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.ole-footer-icon.instagram { color: #e96baa; }
.ole-footer-icon.facebook { color: #5f91ea; }
.ole-footer-icon.tiktok { color: #f3f5f7; }
.ole-footer-icon.youtube { color: #ff4d4d; }
.ole-footer-icon.telegram { color: #29a9ea; }
.ole-footer-icon.viber { color: #a77bd4; }
.ole-footer-icon.whatsapp { color: #25d366; }

.ole-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ole-footer-column h3 {
  margin: 5px 0 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.ole-footer-column > a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.ole-footer-column > a:hover,
.ole-footer-column > a:focus-visible {
  color: #fff;
}

.ole-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 11px;
}

.ole-footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ole-footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.ole-footer-bottom a:hover,
.ole-footer-bottom a:focus-visible {
  color: #fff;
}

.quick-contact {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 10px;
}

body.menu-open .quick-contact { display: none; }

.quick-contact-panel {
  display: grid;
  gap: 8px;
  width: min(230px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 24, 36, 0.96);
  box-shadow: 0 20px 56px rgba(7, 24, 36, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.quick-contact.is-open .quick-contact-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.quick-contact:focus-within .quick-contact-panel,
.quick-contact:has(.quick-contact-toggle:hover) .quick-contact-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.quick-contact-link,
.quick-contact-toggle {
  display: inline-flex;
  align-items: center;
  border: 0;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.quick-contact-link {
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.quick-contact-link:hover,
.quick-contact-link:focus-visible { background: rgba(255, 255, 255, 0.15); }
.quick-contact-icon,
.quick-contact-toggle svg { flex: 0 0 auto; width: 22px; height: 22px; }
.quick-contact-link.whatsapp .quick-contact-icon { color: #25d366; }
.quick-contact-link.viber .quick-contact-icon { color: #8f5db7; }
.quick-contact-link.telegram .quick-contact-icon { color: #29a9ea; }

.quick-contact-toggle {
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--red, var(--wine, #9f2d28));
  box-shadow: 0 18px 44px rgba(159, 45, 40, 0.34);
  transition: transform 0.18s ease, background 0.18s ease;
}

.quick-contact-toggle:hover,
.quick-contact-toggle:focus-visible {
  background: var(--red-dark, var(--wine-dark, #77201d));
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .site-desktop-nav { display: none; }
  .site-menu-toggle { display: inline-flex; }
  .site-header .header-meta { margin-left: auto; }
}

@media (max-width: 900px) {
  .ole-footer-grid { grid-template-columns: 1.25fr 1fr 1fr; }
  .ole-footer-contacts { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .header-meta {
    display: flex;
    min-width: 0;
    gap: 6px;
    margin-left: auto;
  }
  .site-header .header-city { display: none; }
  .site-header .header-phone {
    min-height: 44px;
    font-size: 12px;
    letter-spacing: -0.02em;
  }
  .site-header .header-cta {
    min-height: 44px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .site-header .site-brand-cluster .brand img {
    width: 42px;
    height: 42px;
  }
  .ole-footer-container { width: min(calc(100% - 30px), 1180px); }
  .ole-footer-cta { padding: 36px 0; }
  .ole-footer-cta-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .ole-footer-cta-button { width: 100%; }
  .ole-footer { padding-top: 42px; }
  .ole-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .ole-footer-brand { grid-column: 1 / -1; }
  .ole-footer-contacts { grid-column: 1 / -1; }
  .ole-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 36px; }
  .ole-footer-bottom > div { gap: 14px; }
  .site-brand-cluster { gap: 7px; }
  .site-brand-cluster .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .site-menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .site-services-menu {
    top: 70px;
    left: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    border-radius: 12px;
  }
  .environment-banner + .site-header .site-services-menu {
    top: 106px;
    max-height: calc(100dvh - 118px);
  }
  .site-services-menu a { min-height: 60px; }
  .release-environment-label { right: 8px; bottom: 8px; }
}

@media (max-width: 760px) {
  .topbar .nav-messengers { display: none; }
  .topbar .nav { min-width: 0; flex: 0 1 auto; }
  .topbar .nav-contact { min-width: 0; }
  .topbar .nav-phone {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .topbar .nav .nav-cta {
    display: inline-flex !important;
    min-height: 44px;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .site-header .header-inner {
    width: 100%;
    padding: 0 8px;
    gap: 4px;
  }
  .site-header .site-brand-cluster { gap: 4px; }
  .site-header .site-menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .site-header .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .site-header .site-brand-cluster .brand img {
    width: 36px;
    height: 36px;
  }
  .site-header .header-meta { gap: 4px; }
  .site-header .header-phone {
    min-height: 44px;
    font-size: 10.5px;
  }
  .site-header .header-cta {
    min-height: 44px;
    padding: 0 7px;
    font-size: 10.5px;
  }
  .topbar {
    gap: 4px;
    padding-inline: 8px;
  }
  .topbar .site-brand-cluster { gap: 4px; }
  .topbar .site-menu-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .topbar .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .topbar .brand img {
    width: 36px;
    height: 36px;
  }
  .topbar .nav,
  .topbar .nav-contact { gap: 4px; }
  .topbar .nav-phone { font-size: 10.5px; }
  .topbar .nav .nav-cta {
    min-height: 44px;
    padding: 0 7px;
    font-size: 10.5px;
  }
  .quick-contact {
    right: 10px;
    bottom: 10px;
  }
  .quick-contact-panel { width: min(220px, calc(100vw - 20px)); }
  .tracking-intro h1 {
    font-size: 42px;
    overflow-wrap: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle,
  .site-menu-icon,
  .site-menu-icon::before,
  .site-menu-icon::after,
  .site-services-menu,
  .site-services-menu a {
    transition: none;
  }
}
