/* /assets/css/style.css */
:root {
  color-scheme: light;
  --accent: #64748b; /* серо-голубой - спокойный профессиональный акцент */
}

/* Типографика для контента статьи (prose) */
.prose { font-size: 15px; line-height: 1.7; color: #3f3f46; } /* zinc-700-ish */
.prose p { margin: 0 0 .75em; }
.prose a { color: #1f2a33; text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--fp-accent); }
.prose strong { color: #1f2a33; font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid rgba(100, 116, 139, 0.2); margin: 1.2em 0; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; }
.prose img {
  max-width: 820px;
  width: 50%;
  display: block;
  margin: 0.8em auto;
  border: 1px solid rgba(100, 116, 139, 0.18);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prose img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767px) {
  .prose img {
    width: 90%;
  }
}

@media (hover: none) {
  .prose img:hover {
    transform: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  }
}

.prose h1 { margin: 0 0 .6em; font-weight: 600; font-size: 1.5em; color: #1f2a33; }
.prose h2 { margin: 1.4em 0 .5em; font-weight: 600; font-size: 1.2em; color: #18181b; }
.prose h3 { margin: 1.2em 0 .4em; font-weight: 600; font-size: 1.05em; color: #18181b; }
.prose h4 { margin: 1.1em 0 .4em; font-weight: 600; font-size: .98em; color: #1f2a33; }
.prose h5 { margin: 1em 0 .35em; font-weight: 600; font-size: .95em; color: #1f2a33; }
.prose h6 { margin: 1em 0 .35em; font-weight: 600; font-size: .9em; color: #1f2a33; text-transform: uppercase; letter-spacing: .02em; }

.prose ul, .prose ol { margin: .6em 0 .8em; padding-left: 2.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .2em 0; }
/* вложенные списки — дополнительный отступ для ясной иерархии */
.prose ul ul, .prose ol ul, .prose ol ol { margin: .2em 0 .35em; padding-left: 1.5em; }
.prose ol > li { font-weight: 500; }
.prose ul ul li, .prose ol ul li { font-weight: 400; }

.prose table {
  width: max-content;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto;
  font-size: .95em;
  color: #1f2a33;
  scrollbar-width: thin;
  scrollbar-color: #c9d2d8 #f2f4f6;
  border-radius: 6px;
}
.prose caption {
  text-align: left;
  margin-bottom: .4em;
  color: #5b6b77;
  font-size: .9em;
}
.prose th, .prose td {
  padding: 6px 8px;
  border: 1px solid rgba(100, 116, 139, 0.2);
  vertical-align: top;
}
.prose thead th {
  background: #f5f7f8;
  font-weight: 600;
}
.prose tbody tr:nth-child(even) {
  background: #fafbfc;
}

.prose-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: .8em auto 1em;
  border-radius: 8px;
}

.prose-table-scroll::-webkit-scrollbar {
  height: 8px;
}
.prose-table-scroll::-webkit-scrollbar-track {
  background: #f2f4f6;
  border-radius: 8px;
}
.prose-table-scroll::-webkit-scrollbar-thumb {
  background: #c9d2d8;
  border-radius: 8px;
  border: 2px solid #f2f4f6;
}
.prose-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #b6c2ca;
}

.prose code {
  background: rgba(15, 23, 42, 0.06);
  padding: 0.12em 0.35em;
  border-radius: 4px;
  font-size: .95em;
}
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  font-size: .9em;
}
.prose blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid rgba(24,24,27,.18);
  color: rgba(24,24,27,.78);
}

/* Мелкое улучшение читабельности якорей */
html { scroll-behavior: smooth; }

/* Приглушённые иконки остаются приглушёнными */

/* Точечный паттерн для блока Процесс */
.process-pattern {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

/* Общий фон: тонкие "научные" линии */
body {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 36px 36px, 48px 48px;
  background-position: 0 0, 0 0;
}

/* Узор для серого фона Tailwind (bg-fp-bg) - бесшовный геометрический узор + современные градиенты */
.bg-fp-bg {
  background: 
    /* Более контрастные градиентные переливы */
    radial-gradient(ellipse at top left, rgba(100, 116, 139, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at top right, rgba(255, 220, 180, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(100, 116, 139, 0.15) 0%, transparent 60%),
    /* Дополнительные контрастные градиенты */
    radial-gradient(ellipse at center top, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(148, 163, 184, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at left center, rgba(100, 116, 139, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at right center, rgba(148, 163, 184, 0.12) 0%, transparent 55%),
    /* Линейные градиенты для дополнительного контраста */
    linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, transparent 40%),
    linear-gradient(45deg, rgba(148, 163, 184, 0.08) 0%, transparent 40%),
    linear-gradient(225deg, rgba(255, 220, 180, 0.1) 0%, transparent 40%),
    linear-gradient(315deg, rgba(100, 116, 139, 0.1) 0%, transparent 40%),
    /* Геометрический узор */
    url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' x='0' y='0' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Cline x1='0' y1='0' x2='80' y2='80' stroke='rgba(255,255,255,0.12)' stroke-width='0.8'/%3E%3Cline x1='0' y1='0' x2='80' y2='40' stroke='rgba(255,255,255,0.1)' stroke-width='0.7'/%3E%3Cline x1='0' y1='40' x2='80' y2='0' stroke='rgba(255,255,255,0.1)' stroke-width='0.7'/%3E%3Cline x1='0' y1='0' x2='40' y2='80' stroke='rgba(255,255,255,0.1)' stroke-width='0.7'/%3E%3Cline x1='40' y1='0' x2='80' y2='80' stroke='rgba(255,255,255,0.1)' stroke-width='0.7'/%3E%3Cline x1='0' y1='20' x2='80' y2='60' stroke='rgba(255,255,255,0.09)' stroke-width='0.6'/%3E%3Cline x1='0' y1='60' x2='80' y2='20' stroke='rgba(255,255,255,0.09)' stroke-width='0.6'/%3E%3Cline x1='20' y1='0' x2='60' y2='80' stroke='rgba(255,255,255,0.09)' stroke-width='0.6'/%3E%3Cline x1='60' y1='0' x2='20' y2='80' stroke='rgba(255,255,255,0.09)' stroke-width='0.6'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E"),
    /* Базовый цвет фона */
    #d1d9e0;
  background-size: 
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    80px 80px,
    auto;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
}

/* --- Левое меню (как в старой верстке) --- */
:root{
  --fp-menu: #5f747b;
  --fp-menu-dark: #51666d;
  --fp-accent: #e59632;
  --fp-line: #d7dee3;
}

.fp-panel{
  background: #fff;
  border-left: 1px solid var(--fp-line);
  border-right: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fp-panel__head{
  background: var(--fp-menu);
  padding: 14px 12px;
  border-bottom: 1px solid var(--fp-line);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.fp-sticky{
  position: sticky;
  top: 16px;
}

.fp-scroll{
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fp-menu__group{
  border-top: 1px solid var(--fp-line);
}

.fp-menu__toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px;
  background: 
    radial-gradient(ellipse at top left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at top right, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--fp-menu-dark) 0%, transparent 60%),
    linear-gradient(135deg, var(--fp-menu-dark) 0%, var(--fp-menu) 50%, var(--fp-menu-dark) 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.fp-menu__toggle:hover{
  background: var(--fp-menu-dark);
}

.fp-menu__chev{
  opacity: .9;
  font-size: 18px;
  color: var(--fp-accent);
  line-height: 0.8;
  display: inline-flex;
  align-items: center;
}

.fp-menu__panel{
  background: #fff;
  overflow-y: auto;
  max-height: 560px;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #c9d2d8 #f2f4f6;
}

.fp-menu__item{
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: #22313a;
  border-top: 1px solid var(--fp-line);
}

.fp-menu__item:hover{
  background: #f5f7f8;
}

.fp-menu__item--active{
  background: #eef2f4;
  font-weight: 600;
  position: relative;
}

.fp-menu__item--active::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fp-accent);
}

/* CMS-меню (авто) — стили под дизайн меню */
.fp-menu ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-menu > ul > li > a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px;
  background:
    radial-gradient(ellipse at top left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at top right, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--fp-menu-dark) 0%, transparent 60%),
    linear-gradient(135deg, var(--fp-menu-dark) 0%, var(--fp-menu) 50%, var(--fp-menu-dark) 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.fp-menu > ul > li > a:hover{
  background: var(--fp-menu-dark);
}

.fp-menu li.has-children > a::after{
  content: "▾";
  color: var(--fp-accent);
  font-size: 18px;
  line-height: 0.8;
}

.fp-menu li > ul{
  background: #fff;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Дочки скрыты по умолчанию, открываются с анимацией */
.fp-menu li.has-children:not(.is-open) > ul{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.fp-menu li.has-children.is-open > ul{
  max-height: 420px;
  opacity: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c9d2d8 #f2f4f6;
}

@media (max-width: 767px) {
  .fp-menu li.has-children.is-open > ul{
    max-height: 260px;
  }
}

.fp-menu li > ul > li > a{
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: #22313a;
  text-decoration: none;
  border-top: 1px solid var(--fp-line);
}

.fp-menu li > ul > li > a:hover{
  background: #f5f7f8;
}

.fp-menu li.is-current > a,
.fp-menu li.is-active > a{
  background: #eef2f4;
  color: #22313a;
  font-weight: 600;
  position: relative;
}

.fp-menu li.is-current > a::before,
.fp-menu li.is-active > a::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fp-accent);
}

/* Активная мамка: выглядим как обычная неактивная */
.fp-menu li.has-children.is-active > a{
  background:
    radial-gradient(ellipse at top left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at top right, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--fp-menu-dark) 0%, transparent 60%),
    linear-gradient(135deg, var(--fp-menu-dark) 0%, var(--fp-menu) 50%, var(--fp-menu-dark) 100%);
  color: #fff;
  font-weight: 400;
}

.fp-menu li.has-children.is-active > a::before{
  display: none;
}

/* CMS-аккордеон: панели, высота, скролл */
.cms-menu-accordion-button{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 14px 12px;
  background:
    radial-gradient(ellipse at top left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at top right, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, var(--fp-menu-dark) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--fp-menu-dark) 0%, transparent 60%),
    linear-gradient(135deg, var(--fp-menu-dark) 0%, var(--fp-menu) 50%, var(--fp-menu-dark) 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.cms-menu-accordion-button:hover{
  background: var(--fp-menu-dark);
}

.cms-menu-accordion-title{
  flex: 1;
}

.cms-menu-accordion-button::after{
  content: "▾";
  color: var(--fp-accent);
  font-size: 18px;
  line-height: 0.8;
}

.cms-menu-accordion-panel{
  background: #fff;
  overflow-y: auto;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: #c9d2d8 #f2f4f6;
}

.cms-menu-accordion-panel.is-collapsed{
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.cms-menu-accordion-panel.is-open{
  max-height: 560px;
  opacity: 1;
  overflow-y: auto;
}

.cms-menu-accordion-panel::-webkit-scrollbar{ width: 6px; }
.cms-menu-accordion-panel::-webkit-scrollbar-track{ background: #f2f4f6; }
.cms-menu-accordion-panel::-webkit-scrollbar-thumb{ background: #c9d2d8; border-radius: 8px; border: 2px solid #f2f4f6; }
.cms-menu-accordion-panel::-webkit-scrollbar-thumb:hover{ background: #b6c2ca; }

/* Скрываем дублирующую "мамку" внутри панели */
.cms-menu-accordion-panel > li > a{
  display: none !important;
}

.cms-menu-accordion-panel > li > ul{
  margin: 0;
  padding: 0;
}

.cms-menu-accordion-panel > li > ul > li > a{
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: #22313a;
  text-decoration: none;
  border-top: 1px solid var(--fp-line);
}

.cms-menu-accordion-panel > li > ul > li > a:hover{
  background: #f5f7f8;
}

.cms-menu-accordion-panel li.is-current > a,
.cms-menu-accordion-panel li.is-active > a{
  background: #eef2f4;
  font-weight: 600;
  position: relative;
}

.cms-menu-accordion-panel li.is-current > a::before,
.cms-menu-accordion-panel li.is-active > a::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fp-accent);
}

.fp-btn{
  display: inline-block;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  border: 1px solid var(--fp-line);
  user-select: none;
}

.fp-btn--accent{
  background: linear-gradient(90deg, #f2b457 0%, #e59632 100%);
  border-color: var(--fp-accent);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(243, 154, 31, 0.18);
  position: relative;
}

.fp-btn--accent::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.fp-btn--accent:hover{
  filter: brightness(0.99);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(243, 154, 31, 0.22);
}

.fp-btn--ghost{
  background: #fff;
  color: #22313a;
}

.fp-btn--ghost:hover{
  background: #f5f7f8;
}

.fp-scroll::-webkit-scrollbar{ width: 6px; }
.fp-scroll::-webkit-scrollbar-track{ background: #f2f4f6; }
.fp-scroll::-webkit-scrollbar-thumb{ background: #c9d2d8; border-radius: 8px; border: 2px solid #f2f4f6; }
.fp-scroll::-webkit-scrollbar-thumb:hover{ background: #b6c2ca; }

.fp-menu__panel::-webkit-scrollbar{ width: 6px; }
.fp-menu__panel::-webkit-scrollbar-track{ background: #f2f4f6; }
.fp-menu__panel::-webkit-scrollbar-thumb{ background: #c9d2d8; border-radius: 8px; border: 2px solid #f2f4f6; }
.fp-menu__panel::-webkit-scrollbar-thumb:hover{ background: #b6c2ca; }

/* Навигационное меню с градиентом */
.nav-gradient {
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%),
    radial-gradient(ellipse at center, rgba(100, 116, 139, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse at left, rgba(148, 163, 184, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at right, rgba(100, 116, 139, 0.06) 0%, transparent 60%);
  background-blend-mode: overlay;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Навигационные ссылки с приятными эффектами при наведении */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #22313a;
  text-transform: uppercase;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.nav-link .nav-icon {
  display: inline-block;
  transition: all 0.3s ease;
  color: var(--fp-accent);
  opacity: 0.7;
}

.nav-link:hover .nav-icon {
  opacity: 1;
  transform: translateX(2px);
}

/* Верхнее меню из CMS (секция top) */
.fp-top-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-top-menu li {
  display: block;
}

.fp-top-menu a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #22313a;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fp-top-menu a::before {
  content: "▸";
  display: inline-block;
  color: var(--fp-accent);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.fp-top-menu a:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.fp-top-menu a:hover::before {
  opacity: 1;
  transform: translateX(2px);
}

@media (max-width: 767px) {
  #fp-top-menu-mobile .fp-top-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  #fp-top-menu-mobile .fp-top-menu a {
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.01em;
    white-space: normal;
  }

  #fp-top-menu-mobile .fp-top-menu a::before {
    display: none;
  }
}

/* Hero блок с внутренним бордюром и градиентами */
.hero-gradient-border {
  position: relative;
  background-image:
    /* Стеклянные переливы */
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    linear-gradient(225deg, rgba(148, 163, 184, 0.1) 0%, transparent 50%),
    linear-gradient(315deg, rgba(100, 116, 139, 0.08) 0%, transparent 50%),
    /* Градиенты в углах */
    radial-gradient(ellipse at top left, rgba(100, 116, 139, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at top right, rgba(148, 163, 184, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(100, 116, 139, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(148, 163, 184, 0.08) 0%, transparent 60%);
  background-blend-mode: overlay, overlay, overlay, overlay, normal, normal, normal, normal;
}

.hero-gradient-border::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 10;
}

/* Стеклянные переливы для hero */
.hero-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0%, transparent 50%),
    linear-gradient(225deg, rgba(100, 116, 139, 0.2) 0%, transparent 50%),
    linear-gradient(315deg, rgba(148, 163, 184, 0.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
  opacity: 0.8;
}

/* Слайдер hero на главной: мягкое перекрытие и перелив */
.hero-slide {
  opacity: 0;
  animation: heroFade 18s ease-in-out infinite;
  transform: scale(1.02);
}

.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: 6s; }
.hero-slide-3 { animation-delay: 12s; }

.hero-shimmer {
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.16) 48%,
    rgba(255, 255, 255, 0.08) 54%,
    rgba(255, 255, 255, 0) 70%
  );
  mix-blend-mode: soft-light;
  animation: heroShimmer 12s ease-in-out infinite;
}

.hero-bloom {
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 15% 80%, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0) 70%),
    radial-gradient(60% 70% at 85% 20%, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0) 72%);
  mix-blend-mode: screen;
  animation: heroBloom 16s ease-in-out infinite;
}

@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.03); }
  6% { opacity: 1; transform: scale(1.01); }
  24% { opacity: 1; transform: scale(1); }
  30% { opacity: 0; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1.03); }
}

@keyframes heroShimmer {
  0% { transform: translateX(-30%); opacity: 0.45; }
  50% { transform: translateX(30%); opacity: 0.65; }
  100% { transform: translateX(90%); opacity: 0.45; }
}

@keyframes heroBloom {
  0% { opacity: 0.22; transform: scale(1) translate3d(0, 0, 0); }
  50% { opacity: 0.36; transform: scale(1.05) translate3d(-1.5%, 1%, 0); }
  100% { opacity: 0.22; transform: scale(1) translate3d(0, 0, 0); }
}

/* Легкие тени для карточек категорий */
.category-card .rounded-lg.border.bg-white {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Декоративный уголок в правом верхнем углу */
.decorative-corner-top {
  position: relative;
}

.decorative-corner-top::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(100, 116, 139, 0.15) 50%);
  border-top-right-radius: 0.5rem;
  z-index: 1;
  pointer-events: none;
}

.decorative-corner-top::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(100, 116, 139, 0.4);
  border-right: 2px solid rgba(100, 116, 139, 0.4);
  z-index: 2;
  pointer-events: none;
}

/* Хлебные крошки */
.breadcrumbs {
  position: relative;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li a {
  text-decoration: none;
  transition: all 0.2s ease;
  color: rgba(45, 55, 72, 0.95);
  font-size: 13px;
}

.breadcrumbs li a:hover {
  text-decoration: underline;
  color: var(--fp-accent);
}

.breadcrumbs li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px;
  border-radius: 50%;
  background: rgba(100, 116, 139, 0.6);
}

/* CMS breadcrumbs override */
.cms-breadcrumbs{
  font-size: 13px !important;
  color: rgba(45, 55, 72, 0.95) !important;
}

.cms-breadcrumbs a{
  color: rgba(45, 55, 72, 0.95) !important;
  text-decoration: underline;
}

.cms-breadcrumbs a:hover{
  color: var(--fp-accent) !important;
  text-decoration: underline;
}

.cms-breadcrumbs span{
  color: rgba(45, 55, 72, 0.95) !important;
}

/* Скрываем последнюю крошку (дочку), оставляем "Главная — Мамка" */
.cms-breadcrumbs span:last-of-type{
  display: none !important;
}

/* Дерево меню */
.menu-tree {
  font-size: 14px;
}

.menu-tree__group {
  margin-bottom: 24px;
}

.menu-tree__parent {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(148, 163, 184, 0.05) 100%);
  border-left: 3px solid var(--fp-accent);
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 16px;
}

.menu-tree__children {
  padding-left: 24px;
  border-left: 2px solid rgba(100, 116, 139, 0.15);
  margin-left: 12px;
  counter-reset: menu-item;
}

.menu-tree__item {
  display: block;
  padding: 6px 10px;
  color: #22313a;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: 4px;
  counter-increment: menu-item;
}

.menu-tree__item::before {
  content: counter(menu-item) ".";
  position: absolute;
  left: -16px;
  color: var(--fp-accent);
  font-size: 12px;
  font-weight: 600;
}

.menu-tree__item:hover {
  background: rgba(100, 116, 139, 0.06);
  color: var(--fp-accent);
  padding-left: 20px;
}

/* menu-tree: простой список без аккордеона */
body[data-page="menu-tree"] .menu-tree ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

body[data-page="menu-tree"] .menu-tree > ul > li{
  list-style: none;
  margin: 0 0 24px;
}

body[data-page="menu-tree"] .menu-tree > ul > li > a{
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(148, 163, 184, 0.05) 100%);
  border-left: 3px solid var(--fp-accent);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2a33;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

body[data-page="menu-tree"] .menu-tree > ul > li > a::before{
  content: "";
  width: 16px;
  height: 14px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 16 14'%3E%3Cpath fill='%23f39a1f' d='M1.5 2.5C1.5 1.67 2.17 1 3 1h3.2c.5 0 .98.2 1.34.56l.6.6c.19.19.45.3.72.3H13c.83 0 1.5.67 1.5 1.5v7.5c0 .83-.67 1.5-1.5 1.5H3c-.83 0-1.5-.67-1.5-1.5v-9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  font-size: 14px;
}

body[data-page="menu-tree"] .menu-tree > ul > li > ul{
  padding-left: 24px;
  border-left: 2px solid rgba(100, 116, 139, 0.15);
  margin: 8px 0 0 12px;
  counter-reset: menu-tree-item;
}

body[data-page="menu-tree"] .menu-tree > ul > li > ul > li{
  list-style: none;
  margin-bottom: 4px;
}

body[data-page="menu-tree"] .menu-tree > ul > li > ul > li > a{
  display: block;
  padding: 4px 0 4px 10px;
  color: #22313a;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  counter-increment: menu-tree-item;
}

body[data-page="menu-tree"] .menu-tree > ul > li > ul > li > a::before{
  content: counter(menu-tree-item) ".";
  position: absolute;
  left: -14px;
  color: var(--fp-accent);
  font-size: 12px;
  font-weight: 600;
}

body[data-page="menu-tree"] .menu-tree > ul > li > ul > li > a:hover{
  background: rgba(100, 116, 139, 0.06);
  color: var(--fp-accent);
  padding-left: 20px;
}

/* CMS-дерево меню на странице menu-tree */
body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-button{
  display: none;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel{
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel li > ul{
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li{
  list-style: none;
  margin: 0 0 24px;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > a{
  display: flex !important;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(148, 163, 184, 0.05) 100%);
  border-left: 3px solid var(--fp-accent);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2a33;
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > a::before{
  content: "";
  width: 16px;
  height: 14px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 16 14'%3E%3Cpath fill='%23f39a1f' d='M1.5 2.5C1.5 1.67 2.17 1 3 1h3.2c.5 0 .98.2 1.34.56l.6.6c.19.19.45.3.72.3H13c.83 0 1.5.67 1.5 1.5v7.5c0 .83-.67 1.5-1.5 1.5H3c-.83 0-1.5-.67-1.5-1.5v-9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  font-size: 14px;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > ul{
  padding-left: 24px;
  border-left: 2px solid rgba(100, 116, 139, 0.15);
  margin: 8px 0 0 12px;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > ul > li{
  list-style: none;
  margin-bottom: 4px;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > ul > li > a{
  display: block;
  padding: 10px 16px;
  color: #22313a;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > ul > li > a::before{
  content: '▸';
  position: absolute;
  left: -20px;
  color: var(--fp-accent);
  font-size: 12px;
}

body[data-page="menu-tree"] .menu-tree .cms-menu-accordion-panel > li > ul > li > a:hover{
  background: rgba(100, 116, 139, 0.06);
  color: var(--fp-accent);
  padding-left: 20px;
}

/* Разделитель перед кнопкой каталога */
.menu-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(100, 116, 139, 0.35) 20%,
    rgba(148, 163, 184, 0.45) 50%,
    rgba(100, 116, 139, 0.35) 80%,
    transparent 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.menu-divider::before {
  content: '';
  position: absolute;
  top: -0.5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%
  );
  opacity: 0.6;
}

.menu-divider i {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0 6px;
  font-size: 14px;
}
