/* =========================================================
   user.css (Joomla Cassiopeia) — CLEAN OPTIMIZED
   Scope-safe: только нужные блоки (Header #mod-custom224, Menu #mod-menu1,
   Footer ваши модули, ListServices, MaximenuCK, Article flag)
   Убраны дубли/пересечения, сохранена логика, без глобальных поломок
   ========================================================= */


/* =========================
   0) Base (минимально)
   ========================= */
.container-header,
.container-topbar{
  padding: 0 !important;
}

:root{
  --prem-btn-w: 320px;
  --prem-btn-h: 46px;
}


/* =========================================================
   1) HEADER — Corporate Premium (ТОЛЬКО #mod-custom224)
   ========================================================= */

/* контейнер шапки */
#mod-custom224 #header.header{
  padding: 34px 0 !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  position: relative;
  overflow: visible !important;
}

/* стильные оверлеи фона (используем текущий background-image) */
#mod-custom224 #header.header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 400px at 80% 20%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.10));
  pointer-events: none;
}
#mod-custom224 #header.header::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.02) 40%,
    rgba(255,255,255,.06)
  );
  pointer-events: none;
}

/* контент поверх оверлеев */
#mod-custom224 #header.header > .container{
  position: relative;
  z-index: 2;
}

/* убираем бутстрап-минусы только в шапке */
#mod-custom224 #header.header .row{
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#mod-custom224 #header.header .row > *{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Layout */
#mod-custom224 .header-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 28px !important;
}

/* Logo */
#mod-custom224 .header-left .brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
#mod-custom224 .header-left img{
  display:block;
  max-height: 92px;
  width:auto;
  height:auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.22));
}

/* Right premium card */
#mod-custom224 .header-right--premium{
  width: min(760px, 100%);
  position: relative;

  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
  gap: 14px;

  padding: 18px 18px 16px;
  border-radius: 18px;

  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 18px 55px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* top hairline */
#mod-custom224 .header-right--premium::before{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  top:10px;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  opacity:.9;
}

/* Badge 24/7 */
#mod-custom224 .header-badge{
  position:absolute;
  top:-12px;
  right:-12px;

  height:30px;
  padding:0 12px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  border-radius:999px;
  font-weight:950;
  font-size:12px;
  letter-spacing:.9px;
  text-transform:uppercase;

  color: rgba(255,255,255,.95);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 12px 22px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.14);
}

/* Buttons row */
#mod-custom224 .header-actions{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:stretch;
  gap:12px;
}

/* Premium buttons */
#mod-custom224 .btn-prem{
  width: var(--prem-btn-w) !important;
  height: var(--prem-btn-h) !important;
  flex: 0 0 var(--prem-btn-w) !important;

  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  border-radius:999px;
  text-decoration:none !important;

  font-weight:900;
  letter-spacing:.2px;
  color:#fff !important;

  background: linear-gradient(180deg, rgba(206,60,55,1), rgba(155,40,36,1));
  box-shadow: 0 12px 26px rgba(0,0,0,.22);

  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
#mod-custom224 .btn-prem:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(0,0,0,.26);
}
#mod-custom224 .btn-prem:active{ transform: translateY(0); }

#mod-custom224 .btn-prem .btn-text{
  white-space: nowrap;
  font-size:16px;
  line-height:1;
}

/* icon bubble */
#mod-custom224 .btn-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

/* micro sheen */
#mod-custom224 .btn-prem::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  opacity:.35;
  pointer-events:none;
}
#mod-custom224 .btn-prem::before{
  content:"";
  position:absolute;
  top:-60%;
  left:-45%;
  width:45%;
  height:220%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.14) 45%,
    rgba(255,255,255,0) 100%
  );
  opacity:0;
  pointer-events:none;
}
#mod-custom224 .btn-prem:hover::before,
#mod-custom224 .btn-prem:focus-visible::before{
  opacity:1;
  animation: prem-sheen 900ms ease-out 1;
}
#mod-custom224 .btn-prem:focus-visible{
  outline: none;
  box-shadow:
    0 16px 34px rgba(0,0,0,.26),
    0 0 0 3px rgba(255,255,255,.18);
}
@media (prefers-reduced-motion: reduce){
  #mod-custom224 .btn-prem:hover::before,
  #mod-custom224 .btn-prem:focus-visible::before{
    animation:none;
    opacity:.12;
  }
}
@keyframes prem-sheen{
  0%   { transform: translateX(0) rotate(18deg); }
  100% { transform: translateX(380%) rotate(18deg); }
}

/* Phones block (общая база) */
#mod-custom224 .header-phones{
  width:100%;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.20);
  display:flex;
  flex-direction:column;
  gap:8px;
  color:#fff;

  /* защита от “точки/маркера” */
  list-style:none !important;
}
#mod-custom224 .header-phones::before,
#mod-custom224 .header-phones::after{ content:none !important; }

#mod-custom224 .phones-title{
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:.7px;
  opacity:.95;
}

/* телефоны — выделенные “плашки” (и desktop, и mobile) */
#mod-custom224 .phones-line{
  display:grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  justify-content:center !important;
}
#mod-custom224 .phones-line::before,
#mod-custom224 .phones-line::after{ content:none !important; }

#mod-custom224 .phone{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  color:#fff !important;
  font-weight:950;
  font-size:22px;
  line-height:1.05;

  text-decoration:none !important;
  border-bottom:0 !important;

  padding: 12px 16px !important;
  border-radius: 16px !important;

  background: rgba(255,255,255,.16) !important;
  border: 1px solid rgba(255,255,255,.45) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 12px 26px rgba(0,0,0,.22);

  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
#mod-custom224 .phone:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 16px 34px rgba(0,0,0,.26);
}
#mod-custom224 .phone:active{ transform: translateY(0); }

#mod-custom224 .phones-note{
  font-size:13px;
  opacity:.9;
}
#mod-custom224 .phones-bottom{
  margin-top:2px;
  font-weight:900;
  font-size:14px;
  letter-spacing:.6px;
  text-transform:uppercase;
  opacity:.95;
}

/* на десктопе телефоны в 2 колонки */
@media (min-width: 769px){
  #mod-custom224 .phones-line{
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    gap: 12px !important;
  }
}

/* Header responsive / перестройка */
@media (max-width: 992px){
  #mod-custom224 .header-row{
    flex-wrap:wrap;
    gap:14px;
  }
  #mod-custom224 .header-right--premium{
    width:100%;
    align-items:flex-start;
    text-align:left;
  }
  #mod-custom224 .header-actions{ justify-content:flex-start; }
}
@media (max-width: 840px){
  #mod-custom224 .header-actions{
    flex-direction: column;
    align-items: stretch;
  }
  #mod-custom224 .btn-prem{
    width: 100% !important;
    flex-basis: auto !important;
  }
}

/* Pixel-perfect и разные размеры desktop/mobile + логотип побольше */
@media (min-width: 993px){
  #mod-custom224 #header.header{ padding: 14px 0 !important; }
  #mod-custom224 .header-row{ gap: 14px !important; }

  #mod-custom224 .header-left img{ max-height: 76px !important; }
  #mod-custom224 .header-left{ position: relative; top: 1px; }

  #mod-custom224 .header-right--premium{
    padding: 12px 12px 10px !important;
    gap: 10px !important;
    position: relative;
    top: 0;
  }

  :root{ --prem-btn-h: 38px; }
  #mod-custom224 .phone{ font-size: 19px; }
  #mod-custom224 .phones-title{ font-size: 12px; }
  #mod-custom224 .phones-note{ font-size: 12px; opacity: .95; }
}
@media (max-width: 992px){
  #mod-custom224 #header.header{ padding: 22px 0 !important; }
  #mod-custom224 .header-left img{ max-height: 84px !important; }
  #mod-custom224 .header-right--premium{ padding: 16px 16px 14px !important; gap: 12px !important; }
  :root{ --prem-btn-h: 44px; }
  #mod-custom224 .phone{ font-size: 21px; }
}


/* =========================================================
   2) MENU — mod_menu (#mod-menu1) — 1 финальный вариант
   Стеклянная плашка + читаемый текст + стабильный dropdown
   ========================================================= */

/* Плашка меню: поверх контента, не режем dropdown */
header.container-header .container-nav{
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 99999 !important;

  /* стекло */
  background:
    linear-gradient(180deg, rgba(210,225,230,.85), rgba(190,210,215,.78)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(0,0,0,.10);
}

/* контент под меню не должен перекрывать hover */
.container-banner,
.site-grid{
  position: relative !important;
  z-index: 1 !important;
}

/* DESKTOP */
@media (min-width: 769px){

  header.container-header,
  header.container-header .container-nav,
  header.container-header .navbar,
  header.container-header .navbar-collapse,
  header.container-header .collapse{
    overflow: visible !important;
  }

  /* центрируем ul в разумной ширине */
  header.container-header .container-nav .navbar-collapse{
    display:flex !important;
    justify-content:center !important;
  }

  header.container-header #navbar1 > ul#mod-menu1{
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:center !important;

    max-width: 1200px;
    width: 100%;

    gap: 14px !important;
    margin:0 auto !important;
    padding: 10px 16px !important;
    list-style:none !important;
  }

  header.container-header #mod-menu1 > li{
    position: relative !important;
    display:inline-flex !important;
    align-items:center !important;
    gap:6px !important;
    margin:0 !important;
    padding:0 !important;
    width:auto !important;
    float:none !important;
  }

  /* TOP LINK */
  header.container-header #mod-menu1 > li > a{
    display:inline-flex !important;
    align-items:center !important;

    padding: 8px 12px !important;
    border-radius: 12px !important;

    text-decoration:none !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    white-space:nowrap !important;

    color: #0e2a33 !important;

    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
  }

  header.container-header #mod-menu1 > li > a:hover{
    background: rgba(255,255,255,.55) !important;
    color: #0b3b47 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.10);
    transform: translateY(-1px);
  }

  /* Active/current */
  header.container-header #mod-menu1 > li.active > a,
  header.container-header #mod-menu1 > li.current > a{
    background: rgba(255,255,255,.75) !important;
    color: #0b3b47 !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.7),
      0 6px 16px rgba(0,0,0,.12);
  }

  /* toggle */
  header.container-header #mod-menu1 .mod-menu__toggle-sub{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding: 6px 8px !important;
    border-radius: 12px !important;
    border:0 !important;
    background: rgba(255,255,255,.35) !important;
    line-height:1 !important;

    position: relative !important;
    z-index: 2 !important;
    opacity: .85;
    transition: opacity .15s ease, transform .15s ease;
  }
  header.container-header #mod-menu1 > li:hover .mod-menu__toggle-sub{
    opacity: 1;
    transform: translateY(-1px);
  }

  /* Submenu: opacity/visibility (устойчиво к aria-hidden) */
  header.container-header #mod-menu1 > li > ul.mod-menu__sub,
  header.container-header #mod-menu1 > li > ul.mod-menu__sub[aria-hidden="true"],
  header.container-header #mod-menu1 > li > ul.mod-menu__sub[aria-hidden="false"]{
    position:absolute !important;
    left:0 !important;
    top:100% !important;

    display:block !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;

    transform: translateY(10px) !important;
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;

    min-width: 260px !important;
    padding: 10px !important;
    margin: 0 !important;

    background:#fff !important;
    border-radius:14px !important;
    border:1px solid rgba(0,0,0,.10) !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.18) !important;

    z-index: 999999 !important;
  }

  /* “мостик” */
  header.container-header #mod-menu1 > li.parent::after,
  header.container-header #mod-menu1 > li.deeper::after{
    content:"";
    position:absolute;
    left:0;
    top:100%;
    width:100%;
    height: 18px;
    background: transparent;
  }

  /* Open */
  header.container-header #mod-menu1 > li.parent:hover > ul.mod-menu__sub,
  header.container-header #mod-menu1 > li.deeper:hover > ul.mod-menu__sub,
  header.container-header #mod-menu1 > li.parent:focus-within > ul.mod-menu__sub,
  header.container-header #mod-menu1 > li.deeper:focus-within > ul.mod-menu__sub{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform: translateY(6px) !important;
  }

  /* links in submenu */
  header.container-header #mod-menu1 ul.mod-menu__sub a{
    display:block !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    text-decoration:none !important;
    white-space:nowrap !important;
    color: #0f1a21 !important;
  }
  header.container-header #mod-menu1 ul.mod-menu__sub a:hover{
    background: rgba(28,124,140,.08) !important;
  }
}

/* MOBILE */
@media (max-width: 768px){

  /* меню поверх всего */
  header.container-header,
  header.container-header .container-nav,
  header.container-header .navbar,
  header.container-header .navbar-collapse{
    position: relative !important;
    z-index: 1000000 !important;
  }

  /* кнопка бургера справа сверху (Bootstrap) */
  header.container-header .navbar-toggler{
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;

    width: 46px !important;
    height: 46px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(0,0,0,.35) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 14px 40px rgba(0,0,0,.25) !important;
    z-index: 1000002 !important;
  }
  header.container-header .navbar-toggler .navbar-toggler-icon{
    filter: invert(1);
    opacity: .95;
  }

  /* раскрытая область меню — карточка справа */
  header.container-header .navbar-collapse{
    position: fixed !important;
    top: 70px !important;
    right: 14px !important;
    left: auto !important;

    width: min(92vw, 360px) !important;
    max-height: calc(100vh - 90px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;

    padding: 10px !important;
    margin: 0 !important;

    border-radius: 18px !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.30) !important;

    z-index: 1000001 !important;
  }

  header.container-header #navbar1 > ul#mod-menu1{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:6px !important;

    padding: 0 !important;
    margin: 0 !important;
    list-style:none !important;
  }

  header.container-header #mod-menu1 > li,
  header.container-header #mod-menu1 > li > a{
    width:100% !important;
  }

  header.container-header #mod-menu1 > li{
    position: relative !important;
    margin: 0 !important;
  }

  header.container-header #mod-menu1 > li > a{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;

    padding: 12px 54px 12px 12px !important; /* место справа под стрелку */
    border-radius: 14px !important;

    text-decoration:none !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    color: #0f1a21 !important;
  }
  header.container-header #mod-menu1 > li > a:hover,
  header.container-header #mod-menu1 > li.active > a,
  header.container-header #mod-menu1 > li.current > a{
    background: rgba(28,124,140,.10) !important;
  }

  /* стрелки справа */
  header.container-header #mod-menu1 .mod-menu__toggle-sub{
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    width: 40px !important;
    height: 40px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    border-radius: 12px !important;
    background: rgba(0,0,0,.06) !important;

    float: none !important;
  }

  /* подменю на мобилке раскрывает menu.js по aria-expanded */
  header.container-header #mod-menu1 .mod-menu__sub{
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 6px 0 0 14px !important;
    margin: 0 !important;
  }
  header.container-header #mod-menu1 .mod-menu__toggle-sub[aria-expanded="true"] + .mod-menu__sub{
    display: block !important;
  }
}


/* =========================================================
   3) LIST SERVICES (страны/флаги) — без дублей
   ========================================================= */

.listServices{
  margin-top: 28px;
}

.listServices ul{
  list-style:none;
  padding:0;
  margin:0;
}
.listServices li{ margin:0; }

.listServices .listWrapper{
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 6px;

  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 20px 24px !important;
  align-items: start;
}
.listServices .listWrapper > ul{ display: contents; }

.listServices li a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px !important;
  text-decoration:none;
}

.listServices li img{
  display:block;
  width: 120px !important;
  height: 80px !important;
  object-fit: cover;
  border: 2px solid #000 !important;
  border-radius: 4px;
  background: #fff;

  box-shadow:
    0 6px 14px rgba(0,0,0,.12),
    inset 0 1px 0 rgba(255,255,255,.35);

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.listServices li a:hover img{
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.45);
  filter: saturate(1.03) contrast(1.02);
}

.listServices .nameService{
  font-weight:700;
  font-size: 18px !important;
  line-height: 1.15 !important;
  letter-spacing: .2px;
  text-align:center;
  color:#8a0f1a;
}
.listServices li a:hover .nameService{
  text-decoration: none;
  filter: brightness(1.05);
}

@media (max-width: 1200px){
  .listServices .listWrapper{ grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}
@media (max-width: 768px){
  .listServices .listWrapper{ grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .listServices li img{ width: 100px !important; height: 66px !important; }
  .listServices .nameService{ font-size: 16px !important; }
}


/* =========================================================
   4) FOOTER — clean / premium (только ваша разметка)
   ========================================================= */

footer.container-footer.footer.full-width{
  background: #1f7f8f;
  color: rgba(255,255,255,.92);
  padding: 26px 0 30px !important;
}
footer.container-footer.footer.full-width > .grid-child{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;

  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px 42px;
  align-items: start;
}
@media (max-width: 900px){
  footer.container-footer.footer.full-width > .grid-child{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* только футерным p сброс */
footer.container-footer.footer.full-width p{ margin: 0; }

/* контакты */
#mod-custom140 .footer-contacts{
  display: grid;
  gap: 12px;
}
#mod-custom140 .footer-contacts__copy{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  opacity: .95;
}
#mod-custom140 .footer-contacts__phones{
  display: grid;
  gap: 8px;
}
#mod-custom140 .footer-contacts__phone{
  display: inline-flex;
  align-items: center;

  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;

  color: #fff !important;
  text-decoration: none !important;

  width: fit-content;
  border-bottom: 2px solid rgba(255,255,255,.55);
  padding-bottom: 2px;

  transition: border-color .12s ease, transform .12s ease, filter .12s ease;
}
#mod-custom140 .footer-contacts__phone:hover{
  border-bottom-color: rgba(255,255,255,.95);
  transform: translateY(-1px);
  filter: brightness(1.03);
}
#mod-custom140 .footer-contacts__note{
  font-size: 14px;
  line-height: 1.45;
  opacity: .9;
}

/* юридический блок */
#mod-custom288{
  font-size: 15px;
  line-height: 1.6;
  opacity: .95;

  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 16px 18px;

  box-shadow:
    0 14px 40px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.14);
}
#mod-custom288 a{
  color: rgba(255,255,255,.95) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* если виджет чата перекрывает футер */
@media (max-width: 768px){
  footer.container-footer.footer.full-width{ padding-bottom: 64px !important; }
}
@media (max-width: 520px){
  #mod-custom140 .footer-contacts__phone{ font-size: 20px; }
  #mod-custom288{ font-size: 14px; padding: 14px 14px; }
}


/* =========================================================
   5) MAXIMENU CK — dropdown поверх всего + скролл (для всех)
   ========================================================= */

.maximenuckv{
  position: relative;
  z-index: 99999 !important;
}
.maximenuckv .floatck{
  position: absolute !important;
  z-index: 1000000 !important;
  overflow: visible !important;
}
.maximenuckv .floatck .maxidrop-main{
  max-height: min(70vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* (опционально) аккуратный скроллбар */
.maximenuckv .floatck .maxidrop-main::-webkit-scrollbar{ width: 10px; }
.maximenuckv .floatck .maxidrop-main::-webkit-scrollbar-track{ background: transparent; }
.maximenuckv .floatck .maxidrop-main::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.35);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.maximenuckv .floatck .maxidrop-main{ scrollbar-width: thin; }


/* =========================================================
   6) ARTICLE — обтекание флага текстом
   ========================================================= */

.com-content-article__body > img[alt*="Флаг"]{
  float: left !important;
  margin: 0 20px 12px 0 !important;
  width: 120px !important;
  height: auto !important;
  border-radius: 6px;
}
.com-content-article__body > .moduletable,
.com-content-article__body > h2,
.com-content-article__body > iframe{
  clear: both;
}
@media (max-width: 768px){
  .com-content-article__body > img[alt*="Флаг"]{
    float: none !important;
    display: block;
    margin: 0 auto 12px !important;
  }
}

/* =========================================================
   ARTICLE: обтекание герба/флага через <figure class="pull-left">
   ========================================================= */

/* герб/флаг слева с обтеканием */
.com-content-article__body > figure.pull-left{
  float: left !important;
  margin: 0 22px 12px 0 !important;
  width: 130px;                 /* как в HTML */
  max-width: 40vw;              /* страховка на узких экранах */
}

/* картинка внутри figure */
.com-content-article__body > figure.pull-left > img{
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

/* подпись под гербом */
.com-content-article__body > figure.pull-left > figcaption{
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(15,26,33,.65);
}

/* важные “широкие” блоки не должны обтекать */
.com-content-article__body > .alert,
.com-content-article__body > div[style*="color: red"],
.com-content-article__body > .moduletable,
.com-content-article__body > table,
.com-content-article__body > iframe,
.com-content-article__body > h2{
  clear: both;
}

/* мобилка: убираем обтекание, ставим по центру */
@media (max-width: 768px){
  .com-content-article__body > figure.pull-left{
    float: none !important;
    width: min(180px, 60vw) !important;
    margin: 0 auto 12px !important;
  }
  .com-content-article__body > figure.pull-left > figcaption{
    text-align: center;
  }
}

@media (max-width: 768px){

  /* 1) ВАЖНО: убираем backdrop-filter у предков бургера (ломает fixed на iOS) */
  header.container-header .container-nav,
  header.container-header .container-nav nav.navbar{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 2) Теперь fixed реально будет fixed */
  header.container-header .navbar > .navbar-toggler{
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2147483647 !important;
  }
}


/* HARD FIX: мобильное меню — принудительно тёмный текст (перебить bootstrap/cassiopeia) */
@media (max-width: 768px){

  /* 1) Переопределяем bootstrap-переменные navbar */
  header.container-header .container-nav .navbar{
    --bs-navbar-color: #0f1a21 !important;
    --bs-navbar-hover-color: #0b3b47 !important;
    --bs-navbar-active-color: #0b3b47 !important;
    --bs-navbar-disabled-color: rgba(15,26,33,.45) !important;
  }

  /* 2) На всякий — убираем любые opacity/filters внутри меню */
  header.container-header .container-nav,
  header.container-header .container-nav .navbar,
  header.container-header .container-nav .navbar *{
    opacity: 1 !important;
    filter: none !important;
    text-shadow: none !important;
  }

  /* 3) Принудительно красим ВСЁ внутри nav (включая кнопки-стрелки) */
  header.container-header .container-nav nav.navbar,
  header.container-header .container-nav nav.navbar a,
  header.container-header .container-nav nav.navbar span,
  header.container-header .container-nav nav.navbar li,
  header.container-header .container-nav nav.navbar button{
    color: #0f1a21 !important;
  }

  /* 4) Фон раскрытого мобильного меню (если у тебя оно в потоке/статик) */
  header.container-header .navbar-collapse#navbar1{
    background: #ffffff !important;
  }

  /* 5) Подсветка пунктов меню */
  header.container-header #mod-menu1 > li > a{
    background: #f4f7f8 !important;
  }

  /* 6) Подменю — отдельной непрозрачной “вставкой” */
  header.container-header #mod-menu1 .mod-menu__toggle-sub[aria-expanded="true"] + .mod-menu__sub{
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 14px !important;
    padding: 8px !important;
    margin: 8px 0 0 0 !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
  }

  header.container-header #mod-menu1 .mod-menu__sub a{
    background: #ffffff !important;
    color: #0f1a21 !important;
  }
}

/* ==========================================
   ARTICLE: обтекание картинки справа
   Использование в контенте:
   <figure class="pull-right">...</figure>
   или <img class="pull-right" ...>
   ========================================== */

/* вариант с figure */
.com-content-article__body > figure.pull-right{
  float: right !important;
  margin: 0 0 12px 22px !important; /* отступ слева от текста */
  width: 130px;                 /* можно менять под задачу */
  max-width: 40vw;              /* защита на узких экранах */
}

/* картинка внутри figure */
.com-content-article__body > figure.pull-right > img{
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

/* подпись под картинкой */
.com-content-article__body > figure.pull-right > figcaption{
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(15,26,33,.65);
  text-align: right;
}

/* вариант без figure — просто <img class="pull-right"> */
.com-content-article__body > img.pull-right{
  float: right !important;
  margin: 0 0 12px 22px !important;
  width: 130px !important;
  height: auto !important;
  border-radius: 6px;
}

/* важные блоки не обтекают */
.com-content-article__body > .alert,
.com-content-article__body > .moduletable,
.com-content-article__body > table,
.com-content-article__body > iframe,
.com-content-article__body > h2{
  clear: both;
}

/* мобилка: убираем обтекание, ставим по центру */
@media (max-width: 768px){
  .com-content-article__body > figure.pull-right,
  .com-content-article__body > img.pull-right{
    float: none !important;
    display: block;
    width: min(180px, 60vw) !important;
    margin: 0 auto 12px !important;
  }
  .com-content-article__body > figure.pull-right > figcaption{
    text-align: center;
  }
}

/* ==========================================
   TABLE: адреса моргов — аккуратный стиль
   ========================================== */

.com-content-article__body table{
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 18px 0 24px !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 16px;
}

/* шапка */
.com-content-article__body table thead th,
.com-content-article__body table tbody tr:first-child th{
  background: linear-gradient(180deg, #eef4f6, #e3edf1);
  font-weight: 800;
  text-align: left;
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: #0f1a21;
}

/* ячейки */
.com-content-article__body table td{
  padding: 12px 14px !important;
  vertical-align: top;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: #0f1a21;
  line-height: 1.45;
}

/* последняя строка без бордера */
.com-content-article__body table tr:last-child td{
  border-bottom: 0;
}

/* колонка телефонов */
.com-content-article__body table td .h1,
.com-content-article__body table td b span{
  font-size: 22px !important;
  font-weight: 900;
  line-height: 1.25;
  color: #0b3b47;
  white-space: nowrap;
}

/* кликабельные телефоны (если есть <a href="tel:">) */
.com-content-article__body table a[href^="tel:"]{
  font-weight: 900;
  color: #0b3b47 !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(11,59,71,.35);
  padding-bottom: 1px;
}
.com-content-article__body table a[href^="tel:"]:hover{
  border-bottom-color: rgba(11,59,71,.85);
}

/* убираем старые border="1" */
.com-content-article__body table[border]{
  border: 0 !important;
}
.com-content-article__body table[border] td,
.com-content-article__body table[border] th{
  border: 0 !important;
}

/* адаптив под мобилку */
@media (max-width: 768px){
  .com-content-article__body table{
    font-size: 15px;
  }

  .com-content-article__body table,
  .com-content-article__body table tbody,
  .com-content-article__body table tr,
  .com-content-article__body table td,
  .com-content-article__body table th{
    display: block;
    width: 100% !important;
  }

  .com-content-article__body table tr{
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .com-content-article__body table th{
    background: transparent !important;
    padding: 6px 0 !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .7;
  }

  .com-content-article__body table td{
    padding: 6px 0 10px !important;
    border-bottom: 0 !important;
  }

  .com-content-article__body table td .h1,
  .com-content-article__body table td b span{
    font-size: 20px !important;
  }
}

/* ==========================================
   CTA БЛОК (mod-custom290) — красивое оформление
   ========================================== */

#mod-custom290 .alert.alert-info{
  margin: 18px 0 26px !important;
  padding: 18px 18px 16px !important;

  border-radius: 18px !important;
  border: 1px solid rgba(0,0,0,.10) !important;

  background:
    linear-gradient(180deg, rgba(240,246,248,.95), rgba(226,237,241,.92)) !important;

  box-shadow:
    0 16px 46px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.65);

  color: #0f1a21 !important;
}

/* Убираем “табличный” вид — делаем 2 колонки */
#mod-custom290 .alert.alert-info table{
  width: 100% !important;
  border: 0 !important;
  border-collapse: collapse !important;
  margin: 0 0 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}

#mod-custom290 .alert.alert-info tbody,
#mod-custom290 .alert.alert-info tr{
  display: block !important;
}

#mod-custom290 .alert.alert-info tr{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 18px !important;
  align-items: start !important;
}

/* ячейки как “мини-карточки” */
#mod-custom290 .alert.alert-info td{
  border: 0 !important;
  padding: 12px 14px !important;
  vertical-align: top !important;

  border-radius: 16px !important;
  background: rgba(255,255,255,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

/* списки */
#mod-custom290 .alert.alert-info ul.alert-info{
  margin: 0 !important;
  padding-left: 20px !important; /* маркеры */
  list-style: disc !important;
}

#mod-custom290 .alert.alert-info ul.alert-info li{
  margin: 8px 0 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f1a21 !important;
}

/* Текст ниже списков (контакты) */
#mod-custom290 .alert.alert-info p{
  margin: 0 !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;

  font-size: 18px !important;
  line-height: 1.55 !important;
}

/* Заголовочная строка в p */
#mod-custom290 .alert.alert-info p strong{
  font-weight: 900 !important;
}

/* ссылки */
#mod-custom290 .alert.alert-info a{
  color: #0b3b47 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(11,59,71,.25);
  padding-bottom: 1px;
}

#mod-custom290 .alert.alert-info a:hover{
  border-bottom-color: rgba(11,59,71,.75);
}

/* делаем телефон более “крупным” */
#mod-custom290 .alert.alert-info a[href^="tel:"]{
  font-size: 20px !important;
}

/* адаптив */
@media (max-width: 768px){
  #mod-custom290 .alert.alert-info{
    padding: 16px 14px 14px !important;
  }

  #mod-custom290 .alert.alert-info tr{
    grid-template-columns: 1fr !important;
  }

  #mod-custom290 .alert.alert-info td{
    padding: 12px 12px !important;
  }

  #mod-custom290 .alert.alert-info ul.alert-info li{
    font-size: 17px !important;
  }

  #mod-custom290 .alert.alert-info p{
    font-size: 17px !important;
  }
}

/* =========================
   TOP NAV (Joomla Cassiopeia)
   ========================= */

/* делаем фон сверху (container-nav) прозрачным,
   а саму "плашку" рисуем на nav.navbar */
.container-nav {
  background: transparent !important;
  padding: 10px 0 !important;
}

@media (min-width: 769px) {
    header.container-header #navbar1 > ul#mod-menu1 {
        padding: 0px 0px !important;
    }

.listServices .listWrapper {
    display: block;
}

@media (min-width: 769px) {
    header.container-header #mod-menu1 > li > a {
        color: #ffffff !important;
}

  
/* сама плашка меню */
.container-nav nav.navbar {
  background: linear-gradient(180deg, #556b74 0%, #35474f 100%) !important;
  max-width: 1100px;              /* узкая плашка */
  margin: 0 auto !important;      /* по центру */
  border-radius: 14px;
  padding: 10px 22px !important;  /* компактная высота */
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* выравниваем список пунктов */
.container-nav .navbar-nav {
  gap: 18px;
  align-items: center;
}

/* ссылки меню */
.container-nav .navbar-nav .nav-item > a {
  color: #f3f7f9 !important;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .4px;     /* убирает эффект "сплющенности" */
  line-height: 1.1;
  padding: 8px 10px !important;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

/* активный пункт */
.container-nav .navbar-nav .nav-item.active > a,
.container-nav .navbar-nav .nav-item.current > a {
  background: rgba(255,255,255,.12);
  border-radius: 10px;
}

/* hover */
.container-nav .navbar-nav .nav-item > a:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.10);
  border-radius: 10px;
}

/* стрелка/кнопка подменю (Joomla mod-menu__toggle-sub) */
.container-nav .mod-menu__toggle-sub {
  color: #f3f7f9 !important;
  opacity: .9;
  margin-left: 4px;
}

/* выпадающее подменю чуть аккуратнее */
.container-nav .mod-menu__sub {
  border-radius: 12px;
  padding: 10px !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}

/* мобилка: чтобы плашка была тоже красивой */
@media (max-width: 768px) {
  .container-nav nav.navbar {
    max-width: calc(100% - 20px);
    padding: 10px 14px !important;
  }
  .container-nav .navbar-nav {
    gap: 8px;
    padding-top: 8px;
  }
}

/* =========================
   FLAGS / COUNTRIES BLOCK
   ========================= */

.listServices .listWrapper ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 26px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.listServices .listWrapper ul li {
  margin: 0 !important;
  padding: 0 !important;
}

.listServices .listWrapper ul li a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* флаги меньше и аккуратнее */
.listServices .listWrapper ul li a img {
  width: 110px;
  height: auto;
  border: 1px solid rgba(0,0,0,.35) !important; /* перебиваем inline border */
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

/* подписи меньше, ровнее */
.listServices .listWrapper ul li a .nameService {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  margin: 0 !important;
  color: #7a0a0a;
}


