/** RAIS custom.css — безопасные правки после template.css */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body {
  font-family: "Manrope", Inter, Arial, sans-serif;
}

.joomla-nav a,
.nav a,
.btn,
.brand,
.section-title,
.hero h1 {
  font-family: "Manrope", Inter, Arial, sans-serif;
}

/* ===== RAIS Joomla menu ===== */

.site-header {
  overflow: visible;
}

.header-inner {
  position: relative;
}

.joomla-nav,
.nav {
  position: static;
}

.joomla-nav ul,
.joomla-nav li,
.nav ul,
.nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.joomla-nav > ul,
.nav > ul,
.joomla-nav .mod-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.joomla-nav > ul > li,
.nav > ul > li,
.joomla-nav .mod-menu > li {
  position: relative;
}

.joomla-nav a,
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: color .22s ease, text-shadow .22s ease;
}

/* технологичная подсветка */
.joomla-nav a::before,
.nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-4), var(--accent-2));
  box-shadow: 0 0 18px rgba(79, 107, 255, .35);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.joomla-nav a:hover,
.nav a:hover,
.joomla-nav .current > a,
.joomla-nav .active > a,
.nav .current > a,
.nav .active > a {
  color: var(--text);
  text-shadow: 0 0 18px rgba(79, 107, 255, .18);
}

.joomla-nav a:hover::before,
.nav a:hover::before,
.joomla-nav .current > a::before,
.joomla-nav .active > a::before,
.nav .current > a::before,
.nav .active > a::before {
  width: 100%;
}

/* стрелка у пунктов с вложенностью */
.joomla-nav li.parent > a::after,
.joomla-nav li.deeper > a::after,
.nav li.parent > a::after,
.nav li.deeper > a::after,
.joomla-nav li:has(> ul) > a::after,
.nav li:has(> ul) > a::after {
  content: "⌄";
  margin-left: 3px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  transition: transform .22s ease;
}

.joomla-nav li:hover > a::after,
.nav li:hover > a::after {
  transform: rotate(180deg);
}

/* первый уровень выпадающего меню */
.joomla-nav > ul > li > ul,
.nav > ul > li > ul,
.joomla-nav .mod-menu > li > ul {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 200;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 6px 22px;
  width: 320px;
  grid-template-columns: 1fr;
  padding: 24px;
  border: 1px solid rgba(221, 230, 245, .95);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 107, 255, .13), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(0, 191, 166, .10), transparent 26%),
    rgba(255, 255, 255, .96);
  box-shadow:
    0 28px 80px rgba(23, 32, 51, .16),
    inset 0 1px 0 rgba(255, 255, 255, .75);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

/* мостик, чтобы меню не пропадало при движении мыши */
.joomla-nav > ul > li > ul::before,
.nav > ul > li > ul::before,
.joomla-nav .mod-menu > li > ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.joomla-nav > ul > li:hover > ul,
.nav > ul > li:hover > ul,
.joomla-nav .mod-menu > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* пункты внутри выпадающего меню */
.joomla-nav > ul > li > ul a,
.nav > ul > li > ul a,
.joomla-nav .mod-menu > li > ul a {
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 11px 12px 11px 34px;
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.joomla-nav > ul > li > ul a::before,
.nav > ul > li > ul a::before,
.joomla-nav .mod-menu > li > ul a::before {
  left: 12px;
  top: 50%;
  bottom: auto;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(0, 191, 166, .25);
  transform: translateY(-50%) rotate(45deg);
}

.joomla-nav > ul > li > ul a:hover,
.nav > ul > li > ul a:hover,
.joomla-nav .mod-menu > li > ul a:hover {
  color: var(--accent);
  background: rgba(238, 244, 255, .86);
  transform: translateX(4px);
}

/* второй уровень вложенности */
.joomla-nav ul ul ul,
.nav ul ul ul {
  position: static;
  display: block;
  grid-column: auto;
  width: auto;
  margin: 4px 0 8px 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.joomla-nav ul ul ul a,
.nav ul ul ul a {
  padding: 7px 10px 7px 24px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

/* мобильное меню */
@media (max-width: 1080px) {
  body.mobile-menu-open .nav,
  body.mobile-menu-open .joomla-nav {
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  body.mobile-menu-open .joomla-nav > ul,
  body.mobile-menu-open .nav > ul,
  body.mobile-menu-open .joomla-nav .mod-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  body.mobile-menu-open .joomla-nav > ul > li > ul,
  body.mobile-menu-open .nav > ul > li > ul,
  body.mobile-menu-open .joomla-nav .mod-menu > li > ul {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin: 6px 0 10px;
    padding: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    background: #F8FAFF;
    border-radius: 18px;
  }

  body.mobile-menu-open .joomla-nav a,
  body.mobile-menu-open .nav a {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ===== Compact dropdown menu fix ===== */

.joomla-nav > ul > li > ul,
.nav > ul > li > ul,
.joomla-nav .mod-menu > li > ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 320px;
  padding: 16px;
  border: 1px solid rgba(221, 230, 245, .95);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 107, 255, .12), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(0, 191, 166, .10), transparent 26%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(23, 32, 51, .14);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

/* мостик между пунктом меню и выпадающим блоком */
.joomla-nav > ul > li > ul::before,
.nav > ul > li > ul::before,
.joomla-nav .mod-menu > li > ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

/* показ dropdown при наведении */
.joomla-nav > ul > li:hover > ul,
.nav > ul > li:hover > ul,
.joomla-nav .mod-menu > li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* пункты внутри dropdown */
.joomla-nav > ul > li > ul a,
.nav > ul > li > ul a,
.joomla-nav .mod-menu > li > ul a {
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 11px 12px 11px 34px;
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

/* иконка-сигнал слева у пунктов dropdown */
.joomla-nav > ul > li > ul a::before,
.nav > ul > li > ul a::before,
.joomla-nav .mod-menu > li > ul a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(0, 191, 166, .25);
  transform: translateY(-50%) rotate(45deg);
}

.joomla-nav > ul > li > ul a:hover,
.nav > ul > li > ul a:hover,
.joomla-nav .mod-menu > li > ul a:hover {
  color: var(--accent);
  background: rgba(238, 244, 255, .86);
  transform: translateX(4px);
}

/* ===== Mobile submenu fix ===== */

@media (max-width: 1080px) {
  body.mobile-menu-open .joomla-nav,
  body.mobile-menu-open .nav {
    display: flex !important;
    flex-direction: column;
  }

  body.mobile-menu-open .joomla-nav ul,
  body.mobile-menu-open .nav ul,
  body.mobile-menu-open .joomla-nav .mod-menu {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  body.mobile-menu-open .joomla-nav li,
  body.mobile-menu-open .nav li {
    width: 100%;
  }

  body.mobile-menu-open .joomla-nav > ul > li > ul,
  body.mobile-menu-open .nav > ul > li > ul,
  body.mobile-menu-open .joomla-nav .mod-menu > li > ul {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 6px 0 8px !important;
    padding: 10px !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: #F8FAFF !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  body.mobile-menu-open .joomla-nav ul ul a,
  body.mobile-menu-open .nav ul ul a {
    padding-left: 30px !important;
    color: var(--text-soft) !important;
    font-size: 14px !important;
    font-weight: 750 !important;
  }

  body.mobile-menu-open .joomla-nav ul ul a::before,
  body.mobile-menu-open .nav ul ul a::before {
    left: 12px !important;
    width: 8px !important;
    height: 8px !important;
  }

  body.mobile-menu-open .joomla-nav ul::before,
  body.mobile-menu-open .nav ul::before {
    display: none !important;
  }
}

/* ===== RAIS premium menu typography ===== */

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px);
}

.joomla-nav > ul,
.nav > ul,
.joomla-nav .mod-menu {
  gap: 34px;
}

.joomla-nav a,
.nav a {
  min-height: 48px;
  color: #4E5D73;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.joomla-nav > ul > li > a,
.nav > ul > li > a,
.joomla-nav .mod-menu > li > a {
  padding: 0 2px;
}

/* активный пункт */
.joomla-nav .current > a,
.joomla-nav .active > a,
.nav .current > a,
.nav .active > a {
  color: #172033;
  font-weight: 950;
}

/* технологичная линия */
.joomla-nav a::before,
.nav a::before {
  height: 3px;
  bottom: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4F6BFF, #38BDF8, #00BFA6);
  box-shadow:
    0 0 14px rgba(79, 107, 255, .28),
    0 0 22px rgba(0, 191, 166, .18);
}

/* hover */
.joomla-nav a:hover,
.nav a:hover {
  color: #172033;
  text-shadow: 0 0 22px rgba(79, 107, 255, .16);
}

/* dropdown крупнее и солиднее */
.joomla-nav > ul > li > ul,
.nav > ul > li > ul,
.joomla-nav .mod-menu > li > ul {
  width: 360px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 107, 255, .14), transparent 32%),
    radial-gradient(circle at 100% 25%, rgba(0, 191, 166, .11), transparent 30%),
    rgba(255, 255, 255, .97);
  box-shadow:
    0 28px 80px rgba(23, 32, 51, .16),
    inset 0 1px 0 rgba(255,255,255,.82);
}

/* пункты dropdown */
.joomla-nav > ul > li > ul a,
.nav > ul > li > ul a,
.joomla-nav .mod-menu > li > ul a {
  min-height: 48px;
  padding: 13px 14px 13px 38px;
  border-radius: 16px;
  color: #4E5D73;
  font-size: 15.5px;
  font-weight: 850;
  letter-spacing: -0.012em;
}

.joomla-nav > ul > li > ul a:hover,
.nav > ul > li > ul a:hover,
.joomla-nav .mod-menu > li > ul a:hover {
  color: #172033;
  background:
    linear-gradient(90deg, rgba(79,107,255,.10), rgba(0,191,166,.08));
  transform: translateX(5px);
}

/* мобильное меню крупнее */
@media (max-width: 1080px) {
  body.mobile-menu-open .nav,
  body.mobile-menu-open .joomla-nav {
    padding: 22px !important;
    border-radius: 26px !important;
  }

  body.mobile-menu-open .joomla-nav a,
  body.mobile-menu-open .nav a {
    min-height: 46px;
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
  }

  body.mobile-menu-open .joomla-nav ul ul a,
  body.mobile-menu-open .nav ul ul a {
    min-height: 42px;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
}

.joomla-nav a,
.nav a {
  font-family: "Manrope", Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.joomla-nav .current > a,
.joomla-nav .active > a,
.nav .current > a,
.nav .active > a {
  font-weight: 900;
}


/* ===== Hero audit orbit fix ===== */

.audit-hero__panel-wrap {
  position: relative !important;
  overflow: visible !important;
  isolation: isolate;
}

.audit-panel {
  position: relative !important;
  z-index: 3 !important;
}

.audit-orbit-scene {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
  z-index: 4 !important;
  opacity: 0.9 !important;
  mix-blend-mode: multiply;
}

.audit-orbit {
  position: absolute !important;
  border-radius: 50% !important;
  border: 2px solid rgba(79, 107, 255, 0.28) !important;
  background: transparent !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 0 42px rgba(79, 107, 255, 0.13) !important;
}

.audit-orbit--1 {
  width: 430px !important;
  height: 430px !important;
  animation: auditOrbitSpin 28s linear infinite !important;
}

.audit-orbit--2 {
  width: 330px !important;
  height: 330px !important;
  border-color: rgba(0, 191, 166, 0.30) !important;
  animation: auditOrbitSpinReverse 22s linear infinite !important;
}

.audit-orbit--3 {
  width: 230px !important;
  height: 230px !important;
  border-color: rgba(139, 92, 246, 0.30) !important;
  animation: auditOrbitSpin 18s linear infinite !important;
}

.audit-orbit__dot {
  position: absolute !important;
  border-radius: 50% !important;
}

.audit-orbit__dot--1 {
  top: 42px !important;
  right: 54px !important;
  width: 14px !important;
  height: 14px !important;
  background: var(--accent-2) !important;
  box-shadow:
    0 0 0 8px rgba(0, 191, 166, 0.10),
    0 0 24px rgba(0, 191, 166, 0.34) !important;
}

.audit-orbit__dot--2 {
  top: 10px !important;
  left: calc(50% - 8px) !important;
  width: 16px !important;
  height: 16px !important;
  background: var(--accent-4) !important;
  box-shadow:
    0 0 0 8px rgba(56, 189, 248, 0.10),
    0 0 24px rgba(56, 189, 248, 0.30) !important;
}

.audit-orbit__dot--3 {
  left: 18px !important;
  top: 50% !important;
  width: 15px !important;
  height: 15px !important;
  transform: translateY(-50%) !important;
  background: var(--accent-3) !important;
  box-shadow:
    0 0 0 8px rgba(139, 92, 246, 0.10),
    0 0 24px rgba(139, 92, 246, 0.32) !important;
}

@keyframes auditOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes auditOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ===== Audit scanning bars fix ===== */

.audit-progress {
  position: relative !important;
  height: 12px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #DBE4F2 !important;
}

.audit-progress__fill {
  position: relative !important;
  display: block !important;
  width: 16%;
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--accent), var(--accent-4) 42%, var(--accent-2) 78%) !important;
  background-size: 220% 100% !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10) inset,
    0 6px 16px rgba(79,107,255,.18) !important;
  will-change: width, background-position;
  animation:
    auditBarFlow 9s linear infinite,
    auditBarPulse 7.5s ease-in-out infinite !important;
}

.audit-progress__fill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.72) 46%, transparent 100%);
  transform: translateX(-120%);
  animation: auditBarShine 7.2s ease-in-out infinite;
}

.audit-progress__fill::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 3px solid var(--accent-2);
  box-shadow:
    0 0 0 6px rgba(0,191,166,.12),
    0 0 18px rgba(0,191,166,.32);
}

@keyframes auditBarFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes auditBarShine {
  0%, 60%, 100% { transform: translateX(-120%); }
  80% { transform: translateX(140%); }
}

@keyframes auditBarPulse {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.06) brightness(1.03); }
}


/* ===== Joomla category/blog cards grid ===== */

.joomla-component-section .blog,
.joomla-component-section .com-content-category-blog {
  width: min(100%, 1180px);
  margin: 0 auto;
}

/* контейнеры материалов Joomla */
.joomla-component-section .blog-items,
.joomla-component-section .items-leading,
.joomla-component-section .items-row,
.joomla-component-section .com-content-category-blog__items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

/* отдельная карточка материала */
.joomla-component-section .blog-item,
.joomla-component-section .item,
.joomla-component-section .com-content-category-blog__item {
  height: 100%;
  padding: 22px !important;
  border: 1px solid var(--border) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(79, 107, 255, .06), transparent 30%),
    #fff !important;
  box-shadow: 0 18px 45px rgba(23, 32, 51, .07) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}

.joomla-component-section .blog-item:hover,
.joomla-component-section .item:hover,
.joomla-component-section .com-content-category-blog__item:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong) !important;
  box-shadow: 0 26px 60px rgba(23, 32, 51, .12) !important;
}

/* изображения */
.joomla-component-section .blog-item .item-image,
.joomla-component-section .item .item-image,
.joomla-component-section .com-content-category-blog__item .item-image {
  margin: 0 0 18px !important;
}

.joomla-component-section .blog-item .item-image img,
.joomla-component-section .item .item-image img,
.joomla-component-section .com-content-category-blog__item .item-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
}

/* заголовки карточек */
.joomla-component-section .blog-item h2,
.joomla-component-section .item h2,
.joomla-component-section .com-content-category-blog__item h2 {
  margin: 0 0 12px !important;
  font-size: 24px !important;
  line-height: 1.14 !important;
  letter-spacing: -0.03em;
}

.joomla-component-section .blog-item h2 a,
.joomla-component-section .item h2 a,
.joomla-component-section .com-content-category-blog__item h2 a {
  color: var(--text) !important;
  text-decoration: none !important;
}

.joomla-component-section .blog-item h2 a:hover,
.joomla-component-section .item h2 a:hover,
.joomla-component-section .com-content-category-blog__item h2 a:hover {
  color: var(--accent) !important;
}

/* текст intro */
.joomla-component-section .blog-item p,
.joomla-component-section .item p,
.joomla-component-section .com-content-category-blog__item p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* мета-информация */
.joomla-component-section .article-info {
  margin: 0 0 12px !important;
  color: var(--text-soft);
  font-size: 13px;
}

/* кнопка подробнее */
.joomla-component-section .readmore a,
.joomla-component-section .readmore .btn,
.joomla-component-section a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--accent) !important;
  font-weight: 850;
  text-decoration: none !important;
}

.joomla-component-section .readmore a:hover,
.joomla-component-section .readmore .btn:hover,
.joomla-component-section a.btn-secondary:hover {
  background: #EEF4FF;
  border-color: var(--border-strong);
}

/* если Joomla добавляет bootstrap column-классы */
.joomla-component-section .items-row > [class*="span"],
.joomla-component-section .items-row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

/* 4 колонки — если хочешь компактнее */
@media (min-width: 1280px) {
  .joomla-component-section.blog-grid-4 .blog-items,
  .joomla-component-section.blog-grid-4 .items-leading,
  .joomla-component-section.blog-grid-4 .items-row,
  .joomla-component-section.blog-grid-4 .com-content-category-blog__items {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* адаптив */
@media (max-width: 1080px) {
  .joomla-component-section .blog-items,
  .joomla-component-section .items-leading,
  .joomla-component-section .items-row,
  .joomla-component-section .com-content-category-blog__items {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .joomla-component-section .blog-items,
  .joomla-component-section .items-leading,
  .joomla-component-section .items-row,
  .joomla-component-section .com-content-category-blog__items {
    grid-template-columns: 1fr !important;
  }

  .joomla-component-section .blog-item,
  .joomla-component-section .item,
  .joomla-component-section .com-content-category-blog__item {
    padding: 18px !important;
  }
}


/* ===== Premium breadcrumbs like agency header ===== */

.breadcrumbs-position {
  padding: 28px 0;
  background: #121C2A;
  border: 0;
}

.breadcrumb,
.breadcrumbs,
.mod-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .62);
  font-size: 15px;
  font-weight: 650;
}

.breadcrumb li,
.breadcrumbs li,
.mod-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, .62);
}

.breadcrumb li + li::before,
.breadcrumbs li + li::before,
.mod-breadcrumbs li + li::before {
  content: "—";
  margin: 0 10px;
  color: rgba(255, 255, 255, .35);
}

.breadcrumb a,
.breadcrumbs a,
.mod-breadcrumbs a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: color .22s ease, border-color .22s ease;
}

.breadcrumb a:hover,
.breadcrumbs a:hover,
.mod-breadcrumbs a:hover {
  color: #fff;
  border-color: var(--accent-2);
}

.breadcrumb .active,
.breadcrumbs .active,
.mod-breadcrumbs .active,
.breadcrumb span,
.breadcrumbs span,
.mod-breadcrumbs span {
  color: rgba(255, 255, 255, .62);
}

/* убираем дефолтные bootstrap-отступы */
.breadcrumb-item + .breadcrumb-item {
  padding-left: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: 0;
  color: rgba(255, 255, 255, .35);
}

/* ===== Mobile header CTA buttons ===== */

@media (max-width: 1080px) {
  .header-inner {
    gap: 10px;
  }

  .header-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .header-actions .btn {
    width: auto;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 0;
    border-radius: 999px;
  }

  /* первая кнопка — телефон */
  .header-actions .btn:first-child {
    width: 42px;
    padding: 0;
  }

.header-actions .btn:first-child::before {
  content: "✆";
  font-size: 32px;
  line-height: 1;
  color: var(--accent-2);
  text-shadow: 0 0 14px rgba(0, 191, 166, .35);
}

@media (max-width: 1080px) {
  .header-actions .btn:first-child::before {
    display: inline-block;
    transform: rotate(-38deg);
  }
}

.header-actions .btn:first-child {
  width: 42px;
  padding: 0;
  border-color: rgba(0, 191, 166, .22);
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 191, 166, .14), transparent 45%),
    rgba(255, 255, 255, .82);
}

  /* вторая кнопка — обсудить проект */
  @media (max-width: 1080px) {
  .header-actions .btn-primary {
    width: auto;
    min-width: auto;
    padding: 10px 14px;
    font-size: 13px;
  }

  .header-actions .btn-primary::before {
    content: "";
  }
}

/*для позиции service-hero*/

/* ===== Service hero: semantic structure ===== */

.service-hero {
  position: relative;
  padding: 86px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 107, 255, .14), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(0, 191, 166, .12), transparent 28%),
    linear-gradient(180deg, #F5F8FF 0%, #EEF4FF 100%);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,107,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,107,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.service-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: 70px;
  align-items: center;
}

.service-hero__content h1 {
  max-width: 760px;
  margin: 24px 0 24px;
  color: #172033;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: .98;
  font-weight: 940;
  letter-spacing: -.065em;
}

.service-hero__lead {
  max-width: 720px;
  margin: 0 0 34px;
  color: #5D6B82;
  font-size: 21px;
  line-height: 1.62;
  font-weight: 480;
}

.service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.service-hero__mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-hero__mini span {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid #DCE6FF;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #3152C8;
  font-size: 13px;
  font-weight: 850;
}

/* visual */

.semantic-visual {
  position: relative;
  min-height: 430px;
  border: 1px solid #DCE6FF;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.94), rgba(255,255,255,.58) 48%, rgba(238,244,255,.82)),
    linear-gradient(135deg, rgba(79,107,255,.08), rgba(0,191,166,.08));
  box-shadow: 0 34px 90px rgba(23, 32, 51, .13);
  overflow: hidden;
}

.semantic-visual__glow {
  position: absolute;
  inset: 40px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(0,191,166,.24), transparent 60%);
  filter: blur(28px);
  animation: semanticPulse 7s ease-in-out infinite;
}

.semantic-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.semantic-lines path {
  fill: none;
  stroke: rgba(79,107,255,.28);
  stroke-width: 2;
  stroke-dasharray: 8 10;
  animation: semanticDash 18s linear infinite;
}

.semantic-core,
.semantic-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(220,230,255,.95);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 52px rgba(23,32,51,.11);
}

.semantic-core {
  left: 50%;
  top: 50%;
  width: 156px;
  height: 156px;
  transform: translate(-50%, -50%);
  border-radius: 42px;
  background:
    radial-gradient(circle at 25% 20%, rgba(0,191,166,.22), transparent 42%),
    linear-gradient(135deg, #FFFFFF, #EEF4FF);
}

.semantic-core strong {
  color: #172033;
  font-size: 34px;
  font-weight: 940;
  letter-spacing: -.04em;
}

.semantic-core span,
.semantic-node span {
  color: #6B778C;
  font-size: 13px;
  font-weight: 650;
}

.semantic-node {
  width: 138px;
  min-height: 92px;
  padding: 18px;
  border-radius: 26px;
}

.semantic-node strong {
  color: #172033;
  font-size: 18px;
  font-weight: 900;
}

.semantic-node--1 {
  left: 40px;
  top: 54px;
}

.semantic-node--2 {
  right: 46px;
  top: 44px;
}

.semantic-node--3 {
  left: 38px;
  bottom: 48px;
}

.semantic-node--4 {
  right: 48px;
  bottom: 48px;
}

.semantic-node::before {
  content: "";
  width: 11px;
  height: 11px;
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(0,191,166,.45);
}

@keyframes semanticDash {
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes semanticPulse {
  0%, 100% {
    opacity: .55;
    transform: scale(.96);
  }

  50% {
    opacity: .95;
    transform: scale(1.05);
  }
}

@media (max-width: 1080px) {
  .service-hero {
    padding: 58px 0 70px;
  }

  .service-hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .service-hero__content h1 {
    font-size: clamp(40px, 9vw, 58px);
  }

  .semantic-visual {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .service-hero {
    padding: 42px 0 54px;
  }

  .service-hero__content h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .service-hero__lead {
    font-size: 17px;
  }

  .service-hero__actions .btn {
    width: 100%;
  }

  .semantic-visual {
    min-height: 430px;
    border-radius: 30px;
  }

  .semantic-core {
    width: 132px;
    height: 132px;
    border-radius: 34px;
  }

  .semantic-core strong {
    font-size: 28px;
  }

  .semantic-node {
    width: 124px;
    min-height: 82px;
    padding: 14px;
  }

  .semantic-node--1 {
    left: 18px;
    top: 36px;
  }

  .semantic-node--2 {
    right: 18px;
    top: 36px;
  }

  .semantic-node--3 {
    left: 18px;
    bottom: 34px;
  }

  .semantic-node--4 {
    right: 18px;
    bottom: 34px;
  }
}
