
/*NOTE: This file is intended for programmers. Aspro technical support is not advised to work with him.*/

/* ========================================
   REFACTORED WITH TYPOGRAPHY SYSTEM
   Дата рефакторинга: 04.03.2026
   Использует переменные из typography.css
   ======================================== */

/* ========================================
   ЛОГОТИП
   ======================================== */
.logo {
  max-width: 250px;
  height: 70px;
}

/* ========================================
   МЕНЮ
   ======================================== */
body.menu_lowercase_n .header-menu__title {
  font-size: var(--font-size-lg);
}

body.menu_lowercase_n .menu-side-column__item > .menu-side-column__item-link {
  text-transform: uppercase;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-bold);
}

/* ========================================
   ЗАГОЛОВКИ И АККОРДЕОНЫ
   ======================================== */
h2.head-accord,
h3.head-accord {
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  margin: -3px 0 0;
}

/* Специфичный селектор для аккордеона, чтобы перебить .content h4 */
.accordion-head h4.switcher-title,
.item-accordion-wrapper h4.switcher-title,
h4.switcher-title {
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* ========================================
   УСЛУГИ
   ======================================== */
.services-list__item:not(.services-list__item--has-additional-text) .services-list__item-preview {
  max-height: 120px;
}

.services-list__item-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

.services-list__item-additional-text-wrapper {
  left: 24px;
  right: 24px;
}

.services-list__item-image-wrapper--TOP.services-list__item-image-wrapper--PICTURE .services-list__item-link,
.services-list__item-image-wrapper--TOP.services-list__item-image-wrapper--PICTURE > span {
  width: 100%;
  height: 200px;
  max-width: 400px;
}

/* ========================================
   БАННЕРЫ
   ======================================== */
.banners-big--normal .banners-big__depend-height {
  height: 700px;
}

.banners-big__title--xs {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  letter-spacing: 0.04em;
}

.banners-big__text-block--small {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-light);
}

/* ========================================
   БЛОКИ И КОНТЕНТ
   ======================================== */
.styled-block {
  font-size: var(--font-size-xl);
  background: var(--light_bg_black);
  border-left: 4px solid var(--space-accent);
  color: var(--basic_text_black);
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.styled-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--space-primary), var(--space-accent));
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

.index-block__preview {
  font-size: var(--font-size-xl);
  line-height: 1.6;
}

/* ========================================
   КОНТАКТЫ И ТЕЛЕФОНЫ
   ======================================== */
a.phones__phone-link.phones__phone-first.dark_link {
  font-weight: var(--font-weight-extrabold);
  font-size: var(--font-size-md);
}

/* ========================================
   ЦЕНЫ
   ======================================== */
.price {
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  font-size: var(--font-size-base);
}

/* ========================================
   МАРКЕТИНГ И ТИЗЕРЫ
   ======================================== */
.marketing-item h3 {
  margin-top: 25px;
}

.tizers-list__item-image-wrapper--PICTURES.tizers-list__item-image-wrapper--position-TOP {
  width: 220px;
  height: 200px;
  margin: 0 auto 20px;
  border: 1px #04a39e inset;
}

.tizers-list__item--with-bg.tizers-list__item--images-PICTURES.tizers-list__item--images-position-TOP {
  padding: 20px;
  text-align: center;
}

/* ========================================
   ССЫЛКИ
   ======================================== */
.tab-content a {
  color: #007d24;
}

.tab-content a:hover {
  color: #f01119;
}

/* ========================================
   УТИЛИТЫ
   ======================================== */
.rounded {
  border: 1.5px solid #59d3aa;
}

/* Утилитарные классы для размеров (deprecated - используйте переменные) */
.font_18 {
  font-size: var(--font-size-md);
}

.font_17 {
  font-size: var(--font-size-xl);
}

.font_14 {
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
}

.font_15 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
}

/* ========================================
   СРАВНЕНИЕ ИЗОБРАЖЕНИЙ (Before/After)
   ======================================== */
.compare {
  --w: 50%;
  position: relative;
  max-width: 820px;
  margin: 2rem auto;
  font-family: sans-serif;
  cursor: pointer;
}

.compare img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.compare .after {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  overflow: hidden;
}

.compare .handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--w);
  width: 4px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #0003;
  pointer-events: none;
}

.compare .handle::before {
  content: "⇆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font: 14px/1 sans-serif;
  font-weight: bold;
  color: #000a;
}

/* Альтернативный вариант сравнения */
.comparison-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.image-wrapper {
  position: relative;
  height: 0;
  padding-bottom: 75%;
}

.comparison-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-before {
  width: 100%;
}

.img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
  resize: horizontal;
  min-width: 5%;
  max-width: 100%;
  border-right: 3px solid #fff;
  box-sizing: border-box;
  box-shadow: 3px 0 5px rgba(0, 0, 0, 0.2);
}

.img-after img {
  filter: brightness(1.05);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 3px solid #4a6cf7;
  border-radius: 50%;
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #4a6cf7;
}

.slider-handle::before,
.slider-handle::after {
  content: "";
  position: absolute;
  height: 100vh;
  width: 2px;
  background: #4a6cf7;
  left: 50%;
  transform: translateX(-50%);
}

.slider-handle::before {
  top: -100vh;
}

.slider-handle::after {
  bottom: -100vh;
}

.labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 15px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.label {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* ========================================
   АНИМАЦИИ ГРАДИЕНТНОГО ПОДЧЁРКИВАНИЯ
   ======================================== */
:root {
  --space-primary: #218a64;
  --space-accent: #04a39e;
}

@keyframes space-underline {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Главное меню */
.header-menu__link:hover::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  animation: space-underline 0.6s ease forwards;
  transform-origin: left;
}

/* Блочные ссылки */
.index-block__link:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  animation: space-underline 0.4s ease forwards;
  transform-origin: left;
}

/* Ссылки перед элементами */
.text_before_items a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  animation: space-underline 0.5s ease forwards;
  transform-origin: left;
}

/* Заголовки элементов */
.services-list__item-title a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  animation: space-underline 0.6s ease forwards;
  transform-origin: left;
}

/* Ссылки в контенте - видимые с градиентным цветом, только в текстовых блоках детальных страниц */
/* Применяется ТОЛЬКО на детальных страницах, исключая все списки и карточки */
body:not(.catalog-section):not(.catalog-element-list) .detail .content p a:not(.btn),
body:not(.catalog-section):not(.catalog-element-list) .detail .content blockquote a:not(.btn),
body:not(.catalog-section):not(.catalog-element-list) .detail .content td a:not(.btn),
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper p a:not(.btn),
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper blockquote a:not(.btn),
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper td a:not(.btn) {
  position: relative;
  text-decoration: none;
  color: var(--space-primary);
  font-weight: var(--font-weight-medium);
  transition: color 0.3s ease;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body:not(.catalog-section):not(.catalog-element-list) .detail .content p a:not(.btn):hover,
body:not(.catalog-section):not(.catalog-element-list) .detail .content blockquote a:not(.btn):hover,
body:not(.catalog-section):not(.catalog-element-list) .detail .content td a:not(.btn):hover,
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper p a:not(.btn):hover,
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper blockquote a:not(.btn):hover,
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper td a:not(.btn):hover {
  filter: brightness(1.2);
}

body:not(.catalog-section):not(.catalog-element-list) .detail .content p a:not(.btn):hover::after,
body:not(.catalog-section):not(.catalog-element-list) .detail .content blockquote a:not(.btn):hover::after,
body:not(.catalog-section):not(.catalog-element-list) .detail .content td a:not(.btn):hover::after,
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper p a:not(.btn):hover::after,
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper blockquote a:not(.btn):hover::after,
body:not(.catalog-section):not(.catalog-element-list) .detail .section-content-wrapper td a:not(.btn):hover::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  animation: space-underline 0.4s ease forwards;
  transform-origin: left;
}


/* ========================================
   УЛУЧШЕННЫЙ ДИЗАЙН ДЕТАЛЬНОЙ СТРАНИЦЫ
   Адаптирован для светлой и тёмной темы
   Применяется к services, marketplace и другим детальным страницам
   ======================================== */

/* Основной контент - увеличенный размер для лучшей читаемости */
/* Применяется только к детальным страницам внутри .detail */
.detail .content,
.detail .section-content-wrapper {
  font-size: 1.3em;
  letter-spacing: 0.01em;
  line-height: 1.75;
}

/* Исключаем списки секций, элементов и каталоги */
.catalog-section .content,
.catalog-element-list .content,
.items.row .content,
.index-block .content,
.catalog .content,
section.catalog {
  font-size: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

/* Заголовки в контенте */
.content h2,
.section-content-wrapper h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--white_text_black);
  position: relative;
  padding-bottom: 0.75rem;
}

.content h2::after,
.section-content-wrapper h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
  border-radius: 2px;
}

.content h3,
.section-content-wrapper h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--white_text_black);
}

.content h4,
.section-content-wrapper h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin: 0;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--white_text_black);
}

/* Параграфы */
.content p,
.section-content-wrapper p {
  margin-bottom: 1.25rem;
  color: var(--basic_text_black);
}

.content p:last-child,
.section-content-wrapper p:last-child {
  margin-bottom: 0;
}

/* Списки - исключаем навигационные элементы */
.content ul:not(.nav):not(.nav-tabs):not(.breadcrumb),
.content ol:not(.nav):not(.nav-tabs):not(.breadcrumb),
.section-content-wrapper ul:not(.nav):not(.nav-tabs):not(.breadcrumb),
.section-content-wrapper ol:not(.nav):not(.nav-tabs):not(.breadcrumb) {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.content ul:not(.nav):not(.nav-tabs):not(.breadcrumb) li,
.content ol:not(.nav):not(.nav-tabs):not(.breadcrumb) li,
.section-content-wrapper ul:not(.nav):not(.nav-tabs):not(.breadcrumb) li,
.section-content-wrapper ol:not(.nav):not(.nav-tabs):not(.breadcrumb) li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
  color: var(--basic_text_black);
}

.content ul:not(.nav):not(.nav-tabs):not(.breadcrumb) li,
.section-content-wrapper ul:not(.nav):not(.nav-tabs):not(.breadcrumb) li {
  position: relative;
  list-style: none;
  padding-left: 1.5rem;
}

.content ul:not(.nav):not(.nav-tabs):not(.breadcrumb) li::before,
.section-content-wrapper ul:not(.nav):not(.nav-tabs):not(.breadcrumb) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--space-accent);
  border-radius: 50%;
}

.content ol:not(.nav):not(.nav-tabs):not(.breadcrumb),
.section-content-wrapper ol:not(.nav):not(.nav-tabs):not(.breadcrumb) {
  counter-reset: item;
}

.content ol:not(.nav):not(.nav-tabs):not(.breadcrumb) li,
.section-content-wrapper ol:not(.nav):not(.nav-tabs):not(.breadcrumb) li {
  counter-increment: item;
  position: relative;
  list-style: none;
  padding-left: 2rem;
}

.content ol:not(.nav):not(.nav-tabs):not(.breadcrumb) li::before,
.section-content-wrapper ol:not(.nav):not(.nav-tabs):not(.breadcrumb) li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: var(--font-weight-semibold);
  color: var(--space-primary);
}

/* Вложенные списки */
.content ul:not(.nav):not(.nav-tabs) ul,
.content ol:not(.nav):not(.nav-tabs) ul,
.content ul:not(.nav):not(.nav-tabs) ol,
.content ol:not(.nav):not(.nav-tabs) ol,
.section-content-wrapper ul:not(.nav):not(.nav-tabs) ul,
.section-content-wrapper ol:not(.nav):not(.nav-tabs) ul,
.section-content-wrapper ul:not(.nav):not(.nav-tabs) ol,
.section-content-wrapper ol:not(.nav):not(.nav-tabs) ol {
  margin: 0.5rem 0;
}

/* Цитаты с анимацией */
.content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: var(--light_bg_black);
  border-left: 4px solid var(--space-accent);
  border-radius: 8px;
  font-style: italic;
  color: var(--basic_text_black);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.6s ease-out;
}

.content blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--space-primary), var(--space-accent));
  animation: slideDown 0.6s ease-out;
}

.content blockquote p {
  margin-bottom: 0;
}

/* Специальные типы blockquote */
.content blockquote.info,
blockquote.info {
  background: rgba(212, 237, 218, 0.5);
  border-left-color: #28a745;
  color: #155724;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 4px solid #28a745;
  border-radius: 8px;
  font-style: italic;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.6s ease-out, subtleGlow 4s ease-in-out infinite;
}

.content blockquote.info::before,
blockquote.info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #28a745, #20c997);
  animation: slideDown 0.6s ease-out, borderShine 4s ease-in-out infinite;
}

.content blockquote.danger,
blockquote.danger {
  background: rgba(248, 215, 218, 0.5);
  border-left-color: #dc3545;
  color: #721c24;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  font-style: italic;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.6s ease-out, subtleGlow 4s ease-in-out infinite;
}

.content blockquote.danger::before,
blockquote.danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #dc3545, #c82333);
  animation: slideDown 0.6s ease-out, borderShine 4s ease-in-out infinite;
}

/* Темная тема для blockquote */
@media (prefers-color-scheme: dark) {
  .content blockquote.info,
  blockquote.info {
    background: rgba(40, 167, 69, 0.15);
    color: #66d98f;
  }
  
  .content blockquote.danger,
  blockquote.danger {
    background: rgba(220, 53, 69, 0.15);
    color: #f8b4b4;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Элегантная пульсирующая анимация */
@keyframes subtleGlow {
  0%, 100% {
    box-shadow: 
      0 0 3px rgba(4, 163, 158, 0.2),
      0 0 6px rgba(4, 163, 158, 0.1);
  }
  50% {
    box-shadow: 
      0 0 6px rgba(4, 163, 158, 0.3),
      0 0 12px rgba(4, 163, 158, 0.15);
  }
}

@keyframes borderShine {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.9;
  }
}

/* Применяем анимации к блокам */
.content blockquote,
.alert,
.styled-block {
  animation: fadeInUp 0.6s ease-out, subtleGlow 4s ease-in-out infinite;
}

.content blockquote::before,
.alert::before,
.styled-block::before {
  animation: slideDown 0.6s ease-out, borderShine 4s ease-in-out infinite;
}

/* Таблицы */
.content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content table thead {
  background: linear-gradient(135deg, var(--space-primary), var(--space-accent));
}

.content table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: white;
  font-size: var(--font-size-base);
}

.content table tbody tr {
  border-bottom: 1px solid var(--stroke_black);
  transition: background-color 0.2s ease;
}

.content table tbody tr:hover {
  background-color: var(--card_bg_hover_black);
}

.content table tbody tr:last-child {
  border-bottom: none;
}

.content table tbody td {
  padding: 1rem;
  color: var(--basic_text_black);
}

/* Код */
.content code {
  padding: 0.2em 0.4em;
  background: var(--light_bg_black);
  border: 1px solid var(--stroke_black);
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--fill_dark_light_hover);
}

.content pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--light_bg_black);
  border: 1px solid var(--stroke_black);
  border-radius: 8px;
  overflow-x: auto;
}

.content pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--white_text_black);
}

/* Изображения */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Figure элементы - элегантное выделение без пульсации */
.content figure {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--light_bg_black);
  border: 2px solid var(--stroke_black);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 163, 158, 0.12);
}

.content figure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--space-primary), var(--space-accent));
}

.content figure img {
  margin: 0;
  box-shadow: none;
  border-radius: 4px;
}

.content figcaption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stroke_black);
  font-size: 0.9em;
  font-style: italic;
  color: var(--basic_text_black);
  text-align: center;
}

/* Выделение текста */
.content strong,
.content b {
  font-weight: var(--font-weight-semibold);
  color: var(--white_text_black);
}

.content em,
.content i {
  font-style: italic;
  color: var(--basic_text_black);
}

/* Горизонтальная линия */
.content hr {
  margin: 2.5rem 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--space-accent), transparent);
}

/* Акцентные блоки - адаптированы для тем */
.content .note,
.content .warning,
.content .tip {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
}

.content .note {
  background: var(--light, rgba(231, 243, 255, 0.5)) var(--dark, rgba(0, 102, 204, 0.15));
  border-color: #0066cc;
  color: var(--light, #004080) var(--dark, #66b3ff);
}

.content .warning {
  background: var(--light, rgba(255, 243, 205, 0.5)) var(--dark, rgba(255, 193, 7, 0.15));
  border-color: #ffc107;
  color: var(--light, #856404) var(--dark, #ffd966);
}

.content .tip {
  background: var(--light, rgba(212, 237, 218, 0.5)) var(--dark, rgba(40, 167, 69, 0.15));
  border-color: #28a745;
  color: var(--light, #155724) var(--dark, #66d98f);
}

/* Первая буква параграфа после заголовка */
.content h2 + p::first-letter,
.content h3 + p::first-letter {
  font-size: 3em;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  float: left;
  margin: 0.1em 0.1em 0 0;
  color: var(--space-primary);
}

/* Отступы между элементами */
.content > *:first-child {
  margin-top: 0;
}

.content > *:last-child {
  margin-bottom: 0;
}

/* ========================================
   ALERT БЛОКИ (Bootstrap alerts)
   Красивые, анимированные, адаптированные для тем
   ======================================== */

.alert {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-radius: 8px;
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.6s ease-out;
  font-size: 1rem;
  line-height: 1.6;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  animation: slideDown 0.6s ease-out;
}

/* Alert Warning - Желтый */
.alert.alert-warning {
  background: var(--light, rgba(255, 243, 205, 0.7)) var(--dark, rgba(255, 193, 7, 0.15));
  border-left-color: #ffc107;
  color: var(--light, #856404) var(--dark, #ffd966);
}

.alert.alert-warning::before {
  background: linear-gradient(180deg, #ffc107, #ff9800);
}

/* Alert Info - Синий */
.alert.alert-info {
  background: var(--light, rgba(231, 243, 255, 0.7)) var(--dark, rgba(0, 102, 204, 0.15));
  border-left-color: #0066cc;
  color: var(--light, #004080) var(--dark, #66b3ff);
}

.alert.alert-info::before {
  background: linear-gradient(180deg, #0066cc, #0099ff);
}

/* Alert Success - Зеленый */
.alert.alert-success {
  background: var(--light, rgba(212, 237, 218, 0.7)) var(--dark, rgba(40, 167, 69, 0.15));
  border-left-color: #28a745;
  color: var(--light, #155724) var(--dark, #66d98f);
}

.alert.alert-success::before {
  background: linear-gradient(180deg, #28a745, #20c997);
}

/* Alert Danger - Красный */
.alert.alert-danger {
  background: var(--light, rgba(248, 215, 218, 0.7)) var(--dark, rgba(220, 53, 69, 0.15));
  border-left-color: #dc3545;
  color: var(--light, #721c24) var(--dark, #f8b4b4);
}

.alert.alert-danger::before {
  background: linear-gradient(180deg, #dc3545, #c82333);
}

/* Заголовки в alert блоках */
.alert h4,
.alert .alert-heading {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: inherit;
  font-size: 1.1rem;
}

/* Ссылки в alert блоках */
.alert a {
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
}

.alert.alert-warning a {
  color: var(--light, #533f03) var(--dark, #ffeb99);
}

.alert.alert-info a {
  color: var(--light, #002952) var(--dark, #99ccff);
}

.alert.alert-success a {
  color: var(--light, #0b2e13) var(--dark, #99e6b3);
}

.alert.alert-danger a {
  color: var(--light, #491217) var(--dark, #ffcccc);
}

/* Адаптивность */
@media (max-width: 768px) {
  .content h2 {
    font-size: var(--font-size-xl);
    margin-top: 2rem;
  }
  
  .content h3 {
    font-size: var(--font-size-lg);
  }
  
  .content table {
    font-size: 0.9em;
  }
  
  .content table thead th,
  .content table tbody td {
    padding: 0.75rem;
  }
  
  .content blockquote {
    padding: 1rem 1rem 1rem 1.5rem;
  }
  
  .content h2 + p::first-letter,
  .content h3 + p::first-letter {
    font-size: 2.5em;
  }
  
  .alert,
  .styled-block {
    padding: 1.25rem 1.25rem 1.25rem 1.75rem;
  }
}
