.elementor-990 .elementor-element.elementor-element-018a9ec{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;border-style:none;--border-style:none;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}.elementor-990 .elementor-element.elementor-element-8c4f557{width:100%;max-width:100%;top:0px;}.elementor-990 .elementor-element.elementor-element-8c4f557 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}body:not(.rtl) .elementor-990 .elementor-element.elementor-element-8c4f557{left:0px;}body.rtl .elementor-990 .elementor-element.elementor-element-8c4f557{right:0px;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}/* Start custom CSS */:root {
  --dm-primary: #6291ba;
  --dm-bg: #6291ba;
  --dm-text-light: #ffffff;
  --dm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HEADER ===== */
.dm-header {
  position: sticky;
  top: 0;
  z-index: 999999 !important;
  background: var(--dm-bg);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: box-shadow var(--dm-transition);
}

.dm-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dm-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px; /* Збільшено з 10px */
  display: flex;
  align-items: center;
  gap: 20px;
}

/* === LOGO === */
.dm-logo {
  flex-shrink: 0;
}

.dm-logo img {
  display: block;
  height: 50px; /* Збільшено з 44px */
  width: auto;
}

/* === MENU (Desktop) === */
.dm-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.dm-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  gap: 5px
  padding: 0;
}

.dm-menu-item > a {
  display: block;
  color: var(--dm-text-light);
  text-decoration: none;
  padding: 12px 6px; /* Збільшено з 8px 4px */
  font-weight: 600;
  font-size: 16px; /* Збільшено з 15px */
  opacity: 0.95;
  transition: opacity var(--dm-transition);
  position: relative;
}

.dm-menu-item > a:hover {
  opacity: 1;
}

/* === SUBMENU (Desktop) === */
.dm-menu-item.has-submenu {
  position: relative;
}

.dm-menu-item.has-submenu > a {
  padding-right: 20px; /* Збільшено з 18px */
}

.dm-menu-item.has-submenu > a::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 2px solid var(--dm-text-light);
  border-bottom: 2px solid var(--dm-text-light);
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.8;
  transition: transform var(--dm-transition);
}

.dm-menu-item.has-submenu:hover > a::after {
  transform: translateY(-40%) rotate(45deg);
}

.dm-submenu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--dm-transition);
  list-style: none;
  z-index: 100;
}

.dm-submenu.wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.dm-menu-item.has-submenu:hover .dm-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dm-submenu li a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: background var(--dm-transition);
}

.dm-submenu li a:hover {
  background: rgba(98, 145, 186, 0.1);
  color: var(--dm-primary);
}

/* === ACTIONS (Right side) === */
.dm-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language switcher */
.dm-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.dm-lang a {
  color: var(--dm-text-light);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--dm-transition);
  padding: 4px 6px;
}

.dm-lang a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dm-lang a:hover {
  opacity: 1;
}

.dm-lang-sep {
  opacity: 0.6;
  color: var(--dm-text-light);
}

/* Social links */
.dm-socials {
  display: flex;
  gap: 8px;
}

.dm-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Збільшено з 36px */
  height: 40px;
  border-radius: 8px;
  color: var(--dm-text-light);
  opacity: 0.9;
  transition: all var(--dm-transition);
}

.dm-social:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

/* Burger button */
.dm-burger {
  display: none;
  width: 48px; /* Збільшено з 44px */
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.dm-burger-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--dm-text-light);
  border-radius: 2px;
  transition: all var(--dm-transition);
}

.dm-burger-line:nth-child(1) { top: 15px; }
.dm-burger-line:nth-child(2) { top: 23px; }
.dm-burger-line:nth-child(3) { top: 31px; }

.dm-header.menu-open .dm-burger-line:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.dm-header.menu-open .dm-burger-line:nth-child(2) {
  opacity: 0;
}

.dm-header.menu-open .dm-burger-line:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

/* Mobile elements (hidden on desktop) */
.dm-mobile-only {
  display: none;
}

/* Prevent scroll when menu is open */
body.menu-lock {
  overflow: hidden;
}

/* Backdrop */
.dm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dm-header.menu-open ~ .dm-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Приховати блок "Ми в соцмережах" на всіх мобільних пристроях */
.dm-mobile-socials {
  display: none !important;
}

/* ===== TABLET STYLES (768px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 768px) {
  .dm-nav {
    justify-content: space-between;
  }

  .dm-burger {
    display: block;
  }

  /* На планшетах показуємо перемикач мов в header */
  .dm-actions .dm-lang {
    display: flex;
  }

  /* Соціальні іконки видимі */
  .dm-actions .dm-socials {
    display: flex;
  }

  .dm-actions {
    gap: 12px;
  }

  /* Mobile menu */
  .dm-menu {
    position: fixed;
    top: 86px; /* Оновлено для більшого header */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dm-bg);
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
  }

  .dm-header.menu-open .dm-menu {
    opacity: 1;
    visibility: visible;
  }

  .dm-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 16px 80px 16px;
    width: 100%;
    min-height: 100%;
  }

  .dm-menu-item > a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .dm-menu-item > a:active {
    background: rgba(255,255,255,0.1);
  }

  /* Mobile submenu */
  .dm-menu-item.has-submenu {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
  }

  .dm-menu-item.has-submenu > a {
    position: relative;
    padding-right: 50px;
    white-space: normal;
    word-wrap: break-word;
  }

  .dm-menu-item.has-submenu > a::after {
    right: 16px;
    transition: transform var(--dm-transition);
  }

  .dm-menu-item.has-submenu.open > a::after {
    transform: translateY(-50%) rotate(225deg);
  }

  .dm-submenu {
    position: static;
    background: rgba(0,0,0,0.15);
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .dm-submenu.wide {
    grid-template-columns: 1fr;
  }

  .dm-menu-item.has-submenu.open .dm-submenu {
    max-height: none;
    padding: 8px 12px 12px;
    overflow: visible;
  }

  .dm-submenu li a {
    color: var(--dm-text-light);
    padding: 10px 12px;
    font-size: 15px;
  }

  .dm-submenu li a:hover,
  .dm-submenu li a:active {
    background: rgba(255,255,255,0.1);
    color: var(--dm-text-light);
  }

  /* Mobile only elements */
  .dm-mobile-only {
    display: block;
  }

  .dm-menu-sep {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 12px 0;
  }

  .dm-menu-label {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px 4px;
    font-weight: 600;
  }

  /* Приховати перемикач мов з бургер-меню на планшетах */
  .dm-mobile-lang {
    display: none !important;
  }

  /* Приховати відповідні сепаратори та лейбли для мови на планшетах */
  .dm-menu-item.dm-mobile-only:has(.dm-mobile-lang),
  .dm-menu-item.dm-mobile-only:has(.dm-mobile-lang) + .dm-menu-sep,
  .dm-menu-label:nth-of-type(1),
  .dm-menu-sep:nth-of-type(1) {
    display: none !important;
  }
}

/* ===== MOBILE STYLES (до 767px) ===== */
@media (max-width: 767px) {
  .dm-nav {
    padding: 12px 16px; /* Трохи менше на мобільних */
    justify-content: space-between;
  }

  .dm-logo img {
    height: 44px; /* Трохи менше на мобільних */
  }

  .dm-burger {
    display: block;
  }

  /* На смартфонах ховаємо перемикач мов з header */
  .dm-actions .dm-lang {
    display: none;
  }

  /* Соціальні іконки видимі */
  .dm-actions .dm-socials {
    display: flex;
  }

  .dm-actions {
    gap: 10px;
  }

  /* Зменшуємо іконки на дуже малих екранах */
  .dm-social {
    width: 36px;
    height: 36px;
  }

  .dm-social svg {
    width: 18px;
    height: 18px;
  }

  /* Mobile menu */
  .dm-menu {
    position: fixed;
    top: 68px; /* Оновлено для мобільного header */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dm-bg);
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
  }

  .dm-header.menu-open .dm-menu {
    opacity: 1;
    visibility: visible;
  }

  .dm-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 16px 80px 16px;
    width: 100%;
    min-height: 100%;
  }

  .dm-menu-item > a {
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .dm-menu-item > a:active {
    background: rgba(255,255,255,0.1);
  }

  /* Mobile submenu */
  .dm-menu-item.has-submenu {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
  }

  .dm-menu-item.has-submenu > a {
    position: relative;
    padding-right: 50px;
    white-space: normal;
    word-wrap: break-word;
  }

  .dm-menu-item.has-submenu > a::after {
    right: 16px;
    transition: transform var(--dm-transition);
  }

  .dm-menu-item.has-submenu.open > a::after {
    transform: translateY(-50%) rotate(225deg);
  }

  .dm-submenu {
    position: static;
    background: rgba(0,0,0,0.15);
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .dm-submenu.wide {
    grid-template-columns: 1fr;
  }

  .dm-menu-item.has-submenu.open .dm-submenu {
    max-height: none;
    padding: 8px 12px 12px;
    overflow: visible;
  }

  .dm-submenu li a {
    color: var(--dm-text-light);
    padding: 10px 12px;
    font-size: 15px;
  }

  .dm-submenu li a:hover,
  .dm-submenu li a:active {
    background: rgba(255,255,255,0.1);
    color: var(--dm-text-light);
  }

  /* Mobile only elements */
  .dm-mobile-only {
    display: block;
  }

  .dm-menu-sep {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 12px 0;
  }

  .dm-menu-label {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px 4px;
    font-weight: 600;
  }

  /* Показати перемикач мов в бургер-меню на смартфонах */
  .dm-mobile-lang {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .dm-mobile-lang a {
    color: var(--dm-text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 6px 10px;
    opacity: 0.85;
  }

  .dm-mobile-lang a.active {
    opacity: 1;
    text-decoration: underline;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .dm-nav {
    padding: 10px 14px;
  }

  .dm-logo img {
    height: 40px;
  }

  .dm-social {
    width: 32px;
    height: 32px;
  }

  .dm-social svg {
    width: 16px;
    height: 16px;
  }

  .dm-burger {
    width: 42px;
    height: 42px;
  }
}/* End custom CSS */