/* ============ Базовые настройки ============ */
html, body {
  background-color: #f7f7f7; /* brand-gray — единый фон на всех страницах */
  font-family: 'Montserrat', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
}

/* === Единый заголовок секции (h2) === */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1f1f1f;
}

/* === Единый бейдж === */
.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Единые кнопки === */
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.site-btn-primary {
  background-color: #b91c1c;
  color: #fff !important;
  border-color: #b91c1c;
  box-shadow: 0 8px 15px rgba(185, 28, 28, 0.15);
}

.site-btn-primary:hover {
  background-color: #991b1b;
  border-color: #991b1b;
  box-shadow: 0 15px 20px rgba(185, 28, 28, 0.25);
  color: #fff !important;
}

.site-btn-outline {
  background-color: #fff;
  color: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.08);
}

.site-btn-outline:hover {
  background-color: #b91c1c;
  color: #fff !important;
  box-shadow: 0 15px 20px rgba(185, 28, 28, 0.25);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ Mesh-gradient фон (блобы) ============ */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.11;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.blob-purple {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, #a855f7, #7c3aed);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.blob-blue {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #60a5fa, #2563eb);
  top: 10%;
  right: -12%;
  animation-delay: -6s;
}

.blob-pink {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f472b6, #ec4899);
  bottom: 5%;
  left: 20%;
  animation-delay: -12s;
}

.blob-orange {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #fb923c, #f59e0b);
  bottom: -10%;
  right: 10%;
  animation-delay: -4s;
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-30px, 40px) scale(0.97);
  }

  100% {
    transform: translate(20px, 20px) scale(1.03);
  }
}


/* ============ Чередование секций ============ */
.sec-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sec-clear {
  background: transparent;
}

/* Цветовая палитра бренда */

:root {
  --brand-red: #b91c1c;
  /* глубокий красный */
  --brand-dark: #1f1f1f;
  --brand-gray: #f7f7f7;
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Ссылки ============ */
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--brand-red);
}

/* ============ Кнопки ============ */
.btn-primary {
  background-color: var(--brand-red);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #991b1b;
}

/* ============ Тени и скругления ============ */
.shadow-soft {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.rounded-xl {
  border-radius: 1rem;
}

/* ============ Хедер ============ */
header {
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

/* Ссылки в хедере */
header a {
  font-weight: 500;
  color: #1f1f1f;
}

header a:hover {
  color: var(--brand-red);
}

/* Меню */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* Логотип */
.logo img {
  height: 50px;
}

/* ============ Мобильное меню ============ */
#mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Плавное появление */
#mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Футер ============ */
footer {
  background-color: var(--brand-dark);
  color: #ccc;
  font-size: 14px;
  padding: 40px 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background-color: #1E1E1E;
  background-image: url("images/footer-bg.png");
  background-repeat: repeat;
  background-size: 420px auto;
  background-position: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.90);
  pointer-events: none;
  z-index: 0;
}

.site-footer>* {
  position: relative;
  z-index: 1;
}

footer a {
  color: #ccc;
}

footer a:hover {
  color: #fff;
}

/* ============ Адаптив ============ */
@media (max-width: 768px) {
  .btn-primary {
    padding: 10px 18px;
  }

  header {
    height: 70px;
  }

  .logo img {
    height: 40px;
  }

  .main-nav ul {
    gap: 20px;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}



@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}


.partner-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--brand-red, #b91c1c);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  animation: pulse-red 2s infinite;
}

.partner-dot::after {
  content: attr(data-name);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

@keyframes pulse-red {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.45);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 0 8px rgba(185, 28, 28, 0.16);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 14px rgba(185, 28, 28, 0);
  }
}

/* Анимация прокрутки */
#partners-container {
  height: 160px;
  /* высота блока под логотипы */
}

#partners-track {
  display: flex;
  gap: 3rem;
}

.partner-item {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  filter: grayscale(100%);
  transition: transform 0.5s, filter 0.5s;
  cursor: pointer;
}

.partner-item:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}

.partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === Пагинация DLE {navigation} === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination a {
  color: #374151;
  border: 1px solid #e5e7eb;
}

.pagination a:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.pagination span.current,
.pagination span {
  background-color: #b91c1c;
  color: #fff;
  border: 1px solid #b91c1c;
  box-shadow: 0 4px 8px rgba(185, 28, 28, 0.2);
}

.pagination .prev,
.pagination .next {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.pagination .prev:hover,
.pagination .next:hover {
  border-color: #b91c1c;
  color: #b91c1c;
}

/* Legacy классы (оставляем совместимость) */
.pagination-numbers span {
  background-color: #b91c1c;
  color: #fff;
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.2);
}

.pagination-numbers a {
  color: #374151;
  border-radius: 9999px;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pagination-numbers a:hover {
  background-color: #f3f4f6;
}

.pagination-grid a,
.pagination-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  transition: all 0.2s;
  font-weight: 500;
}

.pagination-grid a {
  color: #374151;
}

.pagination-grid a:hover {
  background-color: #f3f4f6;
}

.pagination-grid span {
  background-color: #b91c1c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.2);
}


.wa-btn {
  animation: wa-breath 3.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes wa-breath {

  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 8px 20px rgba(34, 197, 94, 0.35);
  }

  50% {
    transform: scale(1.08);
    box-shadow:
      0 12px 28px rgba(34, 197, 94, 0.55);
  }
}

/* лёгкое успокоение при наведении */
.wa-btn:hover {
  animation-play-state: paused;
}


.burger-line {
  width: 24px;
  height: 2px;
  background-color: #111;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* АНИМАЦИЯ В КРЕСТ */
.burger-active .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger-active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-active .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Каталог: переключение вкладок */
.tab-content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
}

.tab-pane {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 10;
}

/* ============ Страницы категорий ============ */

/* Отступ под фиксированный хедер (80px) — явный CSS, не зависит от Tailwind CDN */
.cat-page {
  padding-top: 80px;
  min-height: 100vh;
}

/* Страховка: если DLE оборачивает .cat-page в лишний <section> — сбрасываем его стили */
section:has(.cat-page),
section:has(.cat-page) > div {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

/* Единый контейнер breadcrumbs — всегда одинаковые отступы на всех страницах */
.breadcrumb-wrap {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ============ Хлебные крошки (breadcrumbs) ============ */
.site-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.4;
}

.site-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-breadcrumb a:hover {
  color: #b91c1c;
}

/* Разделители chevron_right внутри крошек */
.site-breadcrumb .material-symbols-outlined {
  font-size: 14px;
  color: #d1d5db;
  vertical-align: middle;
}

/* Текущая (последняя) крошка — без ссылки, чуть темнее */
.site-breadcrumb > span:last-child,
.site-breadcrumb > b:last-child {
  color: #374151;
  font-weight: 500;
}

/* ============ Prose — контент статьи из {full-story} ============ */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.prose ul, .prose ol {
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

/* Кастомный маркер для ul — красная точка через ::before */
.prose ul > li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.75rem;
  color: rgb(55 65 81);
  list-style: none;
}

.prose ul > li::before {
  content: "check_circle";
  font-family: 'Material Symbols Outlined';
  position: absolute;
  left: 0;
  top: -0.1rem;
  color: #b91c1c;
  font-size: 1.25rem;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1.75rem;
}

/* Нумерованный список — цифра через counter */
.prose ol {
  counter-reset: prose-counter;
}

.prose ol > li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.75rem;
  color: rgb(55 65 81);
  list-style: none;
  counter-increment: prose-counter;
}

.prose ol > li::before {
  content: counter(prose-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #b91c1c;
  font-size: 0.875rem;
}

/* Убираем ::marker во всех браузерах */
.prose li::marker { display: none; content: ''; }

.prose strong { font-weight: 700; color: #1f1f1f; }

.prose em { font-style: italic; }

.prose a {
  color: #b91c1c;
  text-decoration: underline;
  text-decoration-color: rgba(185,28,28,0.35);
  transition: color 0.2s;
}

.prose a:hover { color: #991b1b; }

.prose blockquote {
  margin: 1.5rem 0 !important;
  padding: 1rem;
  border-radius: 0.75rem;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(254 243 199 / 0.5);
  background-color: rgb(255 251 235);
  font-style: italic;
  color: rgb(146 64 14);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 768px) {
  .prose blockquote {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.prose blockquote p {
  margin: 0 !important;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* <p> после списка — итоговый amber-highlight (структура: абзац → список → вывод) */
.prose ul + p,
.prose ol + p {
  margin: 1.5rem 0 0 !important;
  padding: 1rem;
  border-radius: 0.75rem;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(254 243 199 / 0.5);
  background-color: rgb(255 251 235);
  font-style: italic;
  color: rgb(146 64 14);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 768px) {
  .prose ul + p,
  .prose ol + p {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.prose img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
}

.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}