body {hyphens: auto;  word-break: break-word; overflow-wrap: break-word;}
.offcanvas-menu {background-color: #003b5c;color: #252525;}
.offcanvas-menu .offcanvas-inner ul.menu > li a {color: #fff;}
.offcanvas-menu .offcanvas-inner ul.menu > li a:hover {color: #26a69a;}
.offcanvas-menu .offcanvas-inner ul.menu li.active a {color: #19fff4;}
.offcanvas-active .burger-icon > span {background-color: #ffffff;}
.burger-icon > span {background-color: #ffffff;}
a.sp-sign-in {color: #ffffff}
li::marker{color:#003b5c}
h1 {font-size: 2.667rem!important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  background: linear-gradient(to right, #01579B, #4FC3F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 59, 92, 0.3);}
.article-header h2 a, h2 {color: #01579B!important;font-size: 2rem; /* 36px */font-weight: 600;font-family: 'Playfair Display', serif;margin-bottom: 0.75rem;}
h3 {color: #26A69A;font-size: 1.556rem; /* ≈ 28px */font-weight: 600;margin-bottom: 0.5rem;}
h4 {color: #26A69A;font-size: 1.222rem; /* ≈ 22px */font-weight: 500;}
h5 {font-size: 1.111rem; /* ≈ 20px */font-weight: 500;}
#sp-header, #sp-footer {background: #003B5C;}
.sp-megamenu-parent > li > a {color: #fff;}
.sp-megamenu-parent > li:hover > a {color: #26a69a!important;}
.sp-megamenu-parent > li.active > a {color: #19fff4!important;}
/* блоки внимания начало */
  /* БАЗОВЫЕ СТИЛИ */
  .universal-block {
    display: flex;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    align-items: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
  }
  
  .universal-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
  }
  
  .block-icon {
    font-size: 2.8rem;
    margin-right: 25px;
    min-width: 50px;
    text-align: center;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
  }
  
  .block-content-inner {
    z-index: 2;
  }
  
  .block-content-inner h3, .block-content-inner h2 {
    margin-top: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  }
  
  .block-content-inner p {
    line-height: 1.7;
    margin-bottom: 0;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  /* ИНДИВИДУАЛЬНЫЕ СТИЛИ */
  /* Внимание */
  .attention-block { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);}
  .attention-block::before { background: #ff9800; }
  .attention-block h3, .attention-block h2 { color: #ff6d00; }
  .attention-block p, .attention-block ul, .attention-block li::marker { color: #5d4037;}
  .attention-block .block-icon { animation: pulse 1.5s infinite; color: #ff6d00;}
  
  /* Успех */
  .success-block { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);}
  .success-block::before { background: #4caf50; }
  .success-block h3, .success-block h2 { color: #2e7d32; }
  .success-block p, .success-block ul, .success-block li::marker { color: #1b5e20;}
  .success-block .block-icon { animation: levitate 2.5s infinite ease-in-out; color: #2e7d32;}

  /* Совет */
  .advice-block { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);}
  .advice-block::before { background: #2196f3; }
  .advice-block h3, .advice-block h2 { color: #0d47a1; }
  .advice-block p, .advice-block ul, .advice-block li::marker { color: #1565c0;}
  .advice-block .block-icon { animation: glow 2s infinite alternate; color: #0d47a1;}

  /* Факт */
  .fact-block { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);}
  .fact-block::before { background: #9c27b0; }
  .fact-block h3, .fact-block h2 { color: #6a1b9a; }
  .fact-block p, .fact-block ul, .fact-block li::marker { color: #4a148c;}
  .fact-block .block-icon { animation: spin 4s infinite linear; color: #6a1b9a;}

  /* Пульсация (для attention) */
  @keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
  }

  /* Парение (для success) */
  @keyframes levitate {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(5deg); }
  }

  /* Мерцание (для advice) */
  @keyframes glow {
    0%, 100% { 
      opacity: 1;
      filter: drop-shadow(0 0 5px currentColor);
    }
    50% { 
      opacity: 0.8;
      filter: drop-shadow(0 0 15px currentColor);
    }
  }
  
  /* Вращение (для fact) */
  @keyframes spin {
    0% { transform: rotateY(0); }
    100% { transform: rotateY(360deg); }
  }

  /* АДАПТИВ */
  @media (max-width: 768px) {
    .universal-block {
      flex-direction: column;
      text-align: center;
    }
    .block-icon {
      margin-right: 0;
      margin-bottom: 20px;
    }
  }
/* блоки внимания конец */
/* цитата начало */
.quote-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    background: #003B5C;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 59, 92, 0.15);
    margin: 2rem 0;
    max-width: 100%;
    flex-wrap: wrap;
    color: #F0F4F8;
    background-image: radial-gradient(circle at top left, rgba(79, 195, 247, 0.15), rgba(38, 166, 154, 0.05));
    background-blend-mode: soft-light;
  }

  .quote-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #26A69A;
  }

  .quote-text {
    flex: 1;
    min-width: 220px;
  }

  .quote-text blockquote {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
    color: #4FC3F7;
  }

  .quote-author {
    font-weight: 600;
    color: #F0F4F8;
  }

  .quote-position {
    font-size: 0.9rem;
    color: #B0BEC5;
  }

  @media (max-width: 600px) {
    .quote-block {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .quote-text {
      text-align: center;
    }
  }
/* цитата конец */
/* FAQ начало */
.faq-section {
  margin: 2rem auto;
  padding: 1rem;
  background: #E1F5FE;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 59, 92, 0.12);
}

.faq-item {
  background: #F0F4F8;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 59, 92, 0.1);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 59, 92, 0.18);
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.3rem;
  padding: 1rem 1.5rem;
  color: #003B5C;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #d1eaff;
}

.faq-question::after {
  content: '➤';
  position: absolute;
  right: 1.5rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #4FC3F7;
}

.faq-item.open .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #ffffff;
  color: #263238;
  font-size: 1rem;
  padding: 0 1.5rem;
  border-top: 1px solid #bbdefb;
}

.faq-item.open .faq-answer {
  max-height: 1500px;
  padding: 1rem 1.5rem;
}
/* FAQ конец */
/* оглавление начало */
.toggle-box {
  border: 1px solid #4FC3F7;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem 0;
  box-shadow: 0 8px 20px -6px rgba(0, 59, 92, 0.15);
  font-size: 15px;
}

.toggle-box input { display: none; }

.toggle-box label {
  display: flex;
  align-items: center;
  background: #003B5C;
  color: #F0F4F8;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
  font-size: 17px;
  transition: background 0.3s ease;
}

.toggle-box label::before {
  content: '▾';
  display: inline-block;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.toggle-box input:not(:checked) + label::before {
  content: '▸';
}

.toggle-content {
  display: none;
  padding: 15px 20px;
  background: #F0F4F8;
  color: #263238;
}

.toggle-box input:checked ~ .toggle-content {
  display: block;
}

.toggle-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toggle-content li {
  margin: 6px 0;
}

.toggle-content li.indent-h3 { margin-left: 20px; }
.toggle-content li.indent-h4 { margin-left: 40px; }
.toggle-content li.indent-h5 { margin-left: 60px; }
.toggle-content li.indent-h6 { margin-left: 80px; }

.toggle-content a {
  text-decoration: none;
  color: #01579B;
  transition: color 0.2s ease;
  font-size: 1rem;
}

.toggle-content a:hover {
  color: #26A69A;
  text-decoration: underline;
}
/* оглавление конец */
/* таблицы начало */
.table-section {
  word-break: normal;
  background: #e6f7ff;
  padding: 30px;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 0 20px rgba(0, 70, 130, 0.1);
}
.table-title {
  text-align: center;
  margin-bottom: 20px;
}
.table {
  overflow-x: auto;
}
table {
  width: 100%;
}
table th, table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #cce7ff;
}
table thead {
  background: #cceeff;
  color: #003366;
  font-weight: bold;
}
table tbody tr:nth-child(even) {
  background: #f2fbff;
}
table tbody tr:hover {
  background: #d6f0ff;
}
/* таблицы конец */
/* модули начало */
/* ====== Новый материал ====== */
div.new-materials {
  background: #e6f7ff !important;
  border-left: 5px solid #3399cc !important;
  border-radius: 16px !important;
  padding: 30px 25px !important;
  box-shadow: 0 4px 12px rgba(0, 90, 180, 0.08) !important;
}

p.new {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: inline-block;
  background: #3399cc;
  color: #fff;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 12px;
  clip-path: polygon(0 10%, 100% 0%, 100% 90%, 0% 100%);
  animation: pulse-wave 3s infinite ease-in-out;
}

/* Анимация волны */
@keyframes pulse-wave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ====== Популярные материалы ====== */
div.top-materials {
  background: #f0f9ff !important;
  border-left: 5px solid #005580 !important;
  border-radius: 16px !important;
  padding: 30px 25px !important;
  box-shadow: 0 4px 12px rgba(0, 60, 120, 0.12) !important;
}

p.top {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: inline-block;
  background: #005580;
  color: #fff;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  animation: float-up 4s infinite ease-in-out;
}

/* Анимация всплытия */
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ===== Разделители между материалами ===== */
.mod-articles-items li:not(:last-child) article.mod-articles-item {
  border-bottom: 1px dashed #aaddee;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

div.mod-articles-title {margin: 0 0 10px;}
/* модули конец */
/* видео начало */
/** видео вертикальное начало **/
.whale-vertical-video {
background: #eaf6ff;
border-left: 5px solid #2196f3;
border-radius: 16px;
padding: 25px;
margin: 1rem 0;
box-shadow: 0 6px 18px rgba(0, 60, 100, 0.12);
text-align: center;
}

/** Подпись **/
.video-description {
margin-top: 2rem;
}

/** Контейнер для вертикального видео **/
.vertical-video-container {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 80, 130, 0.1);
max-width: 100%;
}

/** Видео фиксированной высоты и авто-ширины **/
.vertical-video-container video {
height: 80vh;
width: auto;
max-width: 100%;
border-radius: 12px;
}
/** видео вертикальное конец **/
/** видео полноэкранное начало **/
.whale-video-block {
  background: #eaf6ff;
  border-left: 5px solid #2196f3;
  border-radius: 14px;
  padding: 25px;
  margin: 1rem 0;
  box-shadow: 0 6px 16px rgba(0, 60, 100, 0.1);
}

/* Заголовок */
.whale-video-block h2 {
  font-size: 1.8rem;
  color: #004b75;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

/* Описание */
.whale-video-description {
  margin-top: 2rem;
  text-align: center;
  color: #046;
  font-style: italic;
  line-height: 1.4;
}

/** Видео-обёртка **/
.whale-video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0, 80, 130, 0.15);
}

/** Само видео **/
.whale-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
/** видео полноэкранное конец **/
/* CSS для <figure class="image"> конец */
figure.image {
  margin: 1.5rem auto;
  text-align: center;
  background: #e6f7fb; /* нежный голубой фон */
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 60, 100, 0.08);
  max-width: 100%;
  overflow: hidden;
}

figure.image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

figure.image:hover img {
  transform: scale(1.02);
}

figure.image figcaption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #004466;
  font-style: italic;
  line-height: 1.4;
}
/* CSS для <figure class="image"> конец */
/* видео конец */
/* страница поиска начало*/
/* Общая обёртка списка */
#search-result-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px;
  background-color: #F0F4F8;
  list-style: none;
}

/* Одна карточка */
#search-result-list li {
  display: flex;
  flex-direction: row;
  gap: 20px;
  background-color: #ffffff;
  border: 2px solid #4FC3F7;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 59, 92, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#search-result-list li:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(1, 87, 155, 0.2);
}

/* Изображение */
.result__image {
  flex-shrink: 0;
}

.result__image img {
  width: 220px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #26A69A;
}

/* Заголовок */
.result-title {
  font-size: 1.4em;
  margin: 0 0 12px 0;
  color: #003B5C;
  line-height: 1.3;
}

.result-title a {
  color: inherit;
  text-decoration: none;
}

.result-title a:hover {
  text-decoration: none;
  color: #01579B;
}

/* Текст */
.result-text {
  font-size: 1em;
  color: #263238;
  line-height: 1.5;
}

/* Контейнер для текста */
#search-result-list li > .result-title,
#search-result-list li > .result-text {
  flex: 1;
}

@media (max-width: 768px) {
  #search-result-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .result__image img {
    width: 100%;
    max-width: 100%;
  }

  .result-title, .result-text {
    text-align: left;
  }
}

/* страница поиска конец*/
/* аудиоплеер начало*/
.audio-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F0F4F8; /* Морская пена */
  border: 2px solid #4FC3F7; /* Лазурный */
  border-radius: 12px;
  padding: 20px;
  margin: 30px auto;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 59, 92, 0.2); /* Глубокая волна с прозрачностью */
}

.audio-player-title {
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 18px;
  color: #01579B; /* Океанская глубина */
  text-align: center;
}

.audio-player audio {
  width: 100%;
  outline: none;
  background-color: #F0F4F8;
  color: #263238; /* Грифельно-серый текст */
}

.audio-player audio::-webkit-media-controls-panel {
  background-color: #F0F4F8;
}
/* аудиоплеер конец */

/* похожие статьи в конце статей начало*/
.materials-block {
border-radius: 16px;
padding: 30px 25px;
margin: 40px 0;
box-shadow: 0 4px 12px rgba(0, 80, 130, 0.08);
}

.materials-title {
font-size: 1.5rem;
margin-bottom: 20px;
display: flex;
align-items: center;
}

/* Сетка */
.materials-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 20px;
}

.material-item {
background: #ffffff;
border-radius: 12px;
overflow: hidden;
transition: 0.3s ease;
border: 1px solid #cceeff;
}

.material-item:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0, 102, 153, 0.15);
}

.material-item img {
width: 100%;
height: 170px;
object-fit: cover;
}

.material-content {
padding: 15px;
}

.material-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #003e66;
  line-height: 1.4;
}

.material-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.material-title a:hover {
  color: #0077aa;
}

.material-desc {
  font-size: 16px;
  color: #557799;
  line-height: 1.4;
  margin: 0;
}


.pohozhie-materials {
background: #e6f7ff; /* светло-голубой */
border-left: 5px solid #00aaff;
}
.badge-pohozhie {
background: #00c2ff;
color: #fff;
font-weight: bold;
padding: 6px 12px;
border-radius: 8px;
}
/* похожие статьи в конце статей конец*/