body {
    margin: 0;
    padding: 0;
    font-family: 'Ysabeau SC';
    color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Revard';
}

h1 {
    font-size: clamp(42px, 3vw, 50px);
}

.dots, 
.dot, 
.arrow-left, 
.arrow-right,
.carousel-maps,
.arrow,
button,
.block_img_txt *,
.text-presentation_top_panel * {
  -webkit-tap-highlight-color: transparent; /* Убирает синюю рамку на мобильных */
  user-select: none; /* Запрещает выделение текста/элементов при клике */
  outline: none;     /* Убирает пунктирную рамку фокуса */
  cursor: pointer;
}

/* === Секции с фоном === */
.front-section {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  
}

.fix-height {
    height: 100vh;
}

section.dark {
    color: white;
}

/* Полупрозрачная маска */
.front-section .overlay,
section .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(62, 116, 123, 0.50);
    z-index: 0;
}

/* === Плашка (header) === */
header {
    background-color: rgba(62, 116, 123, 0.7);
    /*background: rgba(0,0,0,0.25);*/
    /*height: clamp(94px, 6.25vw, 146px);*/
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 12;
    top: 0;
    right: 0;
    left: 0;
}

section.block-gallery,
section.maps-carousel-wrap,
section.text_and_bg,
section.text_and_links,
section.block-text-pres {
    padding-top: 150px;
}

@media (max-width: 768px) {
    header {
        height: 54px;
    }

    section.block-gallery,
    section.maps-carousel-wrap,
    section.text_and_bg,
    section.text_and_links,
    section.block-text-pres {
        padding-top: 50px;
    }
}

.is_light header {
    /*background: rgba(0, 0, 0, 0.1);*/
}

.is_dark header {
    border-bottom: solid 0px #fff;
}

header .container {
    max-width: 1415px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-container {
    max-width: 1415px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
    margin-top: 100px;
}

.logo img {
    height: 60px;
    transition: opacity 0.3s;
    cursor: pointer;
}

.logo img.alt {
    display: none;
}

.is_light .logo .main {
    display: none;
}

.is_light .logo .alt {
    display: block;
}

/* Иконки */





/* icons */

.icon .icon-dark {
    /*display: none;*/
}
/*
.is_light .icon .icon-dark {
    display: block;
}
.is_light .icon .icon-light {
    display: none;
}

.icon.voice .icon-button.icon-press {
    display: none;
}

.icon.voice.active .icon-button {
    display: none;
}
.icon.voice.active .icon-button.icon-press {
    display: block;
}

*/






.icons {
    display: flex;
    gap: 20px;
}

.icons {
    user-select: none; 
  -webkit-user-select: none; /* для Safari */
  -moz-user-select: none;    /* для Firefox */
}

.icon {
    width: 55px;
    height: 55px;
    cursor: pointer;
    transition: transform 0.2s, fill 0.3s;
}

.icon:hover {
    transform: scale(1.1);
}

.icon svg path {
    fill: white;
    transition: fill 0.3s;
}

.icon:hover svg path {
    fill: rgb(255, 200, 50);
}
.icon.voice img,
.icon.music img {
    width: 32px;
    height: 32px;
}
.icon.nature img {
    width: 55px;
    height: 55px;
}

/* 1. Скрываем вообще всё по умолчанию */
.icons .icon-button {
    display: none;
}

/* 2. Логика для ТЕМНОЙ темы (body.is_dark) */
/* Показываем светлые иконки в зависимости от состояния paused */
.is_dark .icon.music:not(.paused) .stop-nature.icon-light,
.is_dark .icon.music.paused .play-nature.icon-light,
.is_dark .icon:not(.music) .icon-light {
    display: block;
}

/* 3. Логика для СВЕТЛОЙ темы (body.is_light) */
/* Показываем темные иконки в зависимости от состояния paused */
.is_light .icon.music:not(.paused) .stop-nature.icon-dark,
.is_light .icon.music.paused .play-nature.icon-dark,
.is_light .icon:not(.music) .icon-dark {
    display: block;
}

/* 4. Специфическая логика для иконки voice (пауза/нажатие) */
/* Если нужно как-то отдельно обрабатывать .icon-press */
.icon.voice:active .icon-press {
    display: block;
}

.icons .icon.voice .icon-button.icon-press {
    display: none;
}

.icons .icon.voice.active .icon-button {
    display: none;
}

.icons .icon.voice.active .icon-button.icon-press {
    display: block;
}





/* main-menu */
@media screen and (min-width: 500px) {
    .icon.nature {
        margin-left: 200px;
    }
}

/* start block */

.start-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.start-content-wrap {
    width: 100%;
    max-width: 1500px;
    aspect-ratio: 1533 / 599;
    background-image: url(/themes/naukan/images/form_front_desktop.svg);
    background-size: contain; /* Картинка всегда впишется целиком */
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;
}

.start-content {
    display: flex;
}

.start-image {
    width: 178px;
    margin-top: 22px;
}

.start-image svg {
    width: 100%;
    height: auto;
}

/* Текст */
.start-text {
    flex: 1;
    margin-left: -3vw;
    color: #fff;
}

.start-text h1.site-name {
    font-size: clamp(33px, 4vw, 87px);
    line-height: 1;
    margin: 0 0 20px;
    font-weight: 400;
    color: #fff;
    text-align: right;
    margin-left: auto;
}

.site-slogan {
    text-align: left;
    max-width: 245px;
    float: right;
}

/* front section */

.before-title {
    font-family: 'Bad Script', cursive;
    font-weight: 400;
    font-style: Italic;
    font-size: 22px;
    line-height: 100%;  
    text-align: right;
    margin-bottom: 5px;
    margin-right: 63px;
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: clamp(50px, 5.2vw, 100px);
    transform: translateX(-50%);
    width: clamp(50px, 4.2vw, 80px);
    height: clamp(50px, 4.2vw, 80px);
    border: 0px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.1);
}

.scroll-down svg {
    width: 40%;
    height: 40%;
    transition: transform 0.3s;
}

.scroll-down:hover svg {
    transform: translateY(3px);
}




/* .front-section .content-container  */

.front-section .content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1014px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* text-wrap */
.front-section .content-container .text-wrap {
    text-align: center;
    margin-bottom: 90px;
}

/* section-title */
.front-section .content-container .section-title {
    font-weight: 400;
    font-style: normal;
    font-size: 80px;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 45px;
}

/* section-text */
.front-section .content-container .section-text {
    font-weight: 400;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0;
}

/* audio-wrap */
.front-section .content-container .audio-wrap,
.centered .audio-wrap {
    margin-bottom: 45px;
    width: 100%;
}

.audio-wrap .text-presentation__narrator {
    text-align: center;
}

.text-presentation__audio {
    width: 100%;
}

.text-presentation__audio audio {
    width: 100%;
    display: block;
}


/* кнопка "Читать..." */
.front-section .content-container .read-more,
.centered .read-more {
    display: inline-block;
    width: 226px;
    padding: 15px 0;
    text-align: center;
    background: rgba(62, 96, 123, 1);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 20px;
    transition: background 0.3s ease, transform 0.25s ease;
    cursor: pointer;
}

.front-section .content-container .read-more:hover,
.centered .read-more:hover {
    background: black;
    transform: translateY(-3px);
}

@media screen and (max-width: 1366px) {
    .front-section .content-container {
        width: 90%;
        max-width: 100%;
    }
    .front-section .content-container .text-wrap {
        margin-bottom: 60px;
    }
    .front-section .content-container .section-title {
        font-size: 40px;
    }
    .front-section .content-container .section-text {
        font-size: 20px;
    }
    .front-section .content-container .read-more {
        width: 180px;
    }
}

.block-header {
    font-family: 'Ysabeau SC';
    font-weight: 400;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    padding-top: 20px;
}

/* section last */

.last-bottom {
    margin-top: -4px;
}

.full-image-wrap img {
    width: 100%;
}

.toolbar-horizontal header {
    top: 39px;
}

.toolbar-horizontal.toolbar-tray-open header {
    top: 78.8px;
}

/* map */

.bg-dark {
    background: rgba(33, 33, 33, 0.2);
    padding: 20px;
}

/* text present */

.text-presentation__text-entity {
    display: flex;
    align-items: flex-start;
    gap: 124px;
}

.text-presentation__text-entity .text-view-left {
    max-width: 380px;
}

.text-view-left {
    flex: 0 0 auto;
}

.text-presentation__narrator {
    font-size: 20px;
    font-weight: bold;
    margin-top: 16px;
}

.text-presentation__narrator-photo img {
    max-width: 230px;
    border: solid 10px #fff;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.text-presentation__interlinear {
    flex: 1;
    padding-right: 30px;
    max-height: 70vh;
    overflow-y: auto;
}



/* scroll -- START */

.text-presentation__interlinear {
    position: relative; /* Обязательно для позиционирования иконок */
    overflow-y: auto;
    padding-right: 15px; /* Освобождаем место под скроллбар и иконки */
}

/* Общие стили для иконок */


/* Стилизация самого скроллбара (Chrome, Safari, Edge) */
.text-presentation__interlinear::-webkit-scrollbar {
    width: 6px;
}

.text-presentation__interlinear::-webkit-scrollbar-track {
    background: transparent;
    /* Делаем отступы сверху и снизу, чтобы бегунок не налезал на иконки */
    margin: 18px 0; 
}

.text-presentation__interlinear::-webkit-scrollbar-thumb {
    background-color: rgba(62, 96, 123, 1);
    border-radius: 10px;
}

/* Для Firefox */
.text-presentation__interlinear {
    scrollbar-width: thin;
    scrollbar-color: rgba(62, 96, 123, 1) transparent;
}


/* scroll -- END */



.interlinear-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.interlinear-switcher button {
  padding: 4px 10px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
}

.interlinear-switcher button.active {
  background: #333;
  color: #fff;
}

.paragraph--type--interlinear-translation  {
    margin-bottom: 1em;
}

.paragraph--type--interlinear-translation > div:first-child {
    color: rgba(14, 89, 140, 1);
}

.paragraph--type--interlinear-translation > div:last-child {
    color: #000000;
    margin-left: 16px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .text-presentation__text-entity {
        flex-direction: column;
    }
    .text-view-left {
        margin-bottom: 16px;
    }
    .paragraph--type--interlinear-translation > div:last-child {
        margin-left: 0;
    }
}
 
/* centered */

.centered {
    min-height: 100vh;
    display: flex;
    align-items: center;        /* по вертикали */
    justify-content: center;    /* по горизонтали */
}

.centered .content-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1014px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.centered.section-more-details .content-wrap {
    max-width: 1200px;
}

.centered.block-gallery .content-wrap {
    max-width: 100%;
}

.centered.block-gallery .text-wrap {
    max-width: 1014px;
}

.centered.block-gallery .carousel {
    width: 100%;
    max-width: 100%;
}

.block-text-pres {
    margin-top: 50px;
    background-position: bottom;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .block-text-pres {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
*/
.centered .text-wrap {
    text-align: center;
    margin-bottom: 90px;
}

.centered h2 {
    font-weight: 400;
    font-style: normal;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0;
    margin-bottom: 45px;
}

.centered .section-text {
    font-weight: 400;
    font-size: 25px;
    line-height: 100%;
}

.audio-wrap .text-presentation__narrator {
    color: rgba(226, 112, 85, 1);
}

/* images bg */

.ornament-container {
    background-repeat: no-repeat;
    background-size: auto calc(100% - 60px); 
    background-position: center;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ornament-container {
        background-size: auto calc(100% - 60px); 
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .ornament-container {
        /* Ориентация по ширине: ширина занимает 100% контейнера, высота автоматом */
        background-size: auto calc(100% - 60px); 
    }
}

@media (min-width: 1367px) and (max-width: 1899px) {
    .ornament-container {
        /* Ориентация по ширине: ширина занимает 100% контейнера, высота автоматом */
        background-size: auto calc(100% - 100px); 
    }
}

@media (min-width: 1900px) {
    .ornament-container {
        /* Ориентация по ширине: ширина занимает 100% контейнера, высота автоматом */
        background-size: auto calc(100% - 100px); 
        background-position: center bottom;
    }
}

/* icon-text-link */

.icon-text-link {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.icon-text-link:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.icon-text-link__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.icon-text-link__title {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.em;
}

.icon-text-link__description {
    font-size: 25px;
    line-height: 1em;
    color: #555;
}


/* background-container */

.background-container {
    background-size: cover;
    background-repeat: no-repeat;
}

.text_and_bg .content-wrap {
    max-width: 1280px;
    align-items: inherit;
}
.text_and_bg .text-wrap {
    color: #fff;
    padding: 36px 65px;
    max-width: 960px;
    background: rgba(62, 116, 123, 0.3); 
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(10px); /* Для поддержки Safari */
    mask-image: radial-gradient(circle, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%);
    text-align: left;
}


.text_and_bg {
    position: relative;
    background-size: cover;
    background-position: top;
    color: #fff;
}

/* Полупрозрачная подложка */
.text_and_bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(62, 116, 123, 0.50);
    z-index: 1;
}

.centered.text_and_bg {
    align-items: inherit;
}

/* Контент поверх подложки */
.text_and_bg .content-wrap {
    position: relative;
    z-index: 2;
    justify-content: flex-end; /* ⬇ вниз */
    padding-bottom: 50px; /* ⬅ отступ от низа */
}

.centered.text_and_bg h2 {
    font-size: 40px;
}

.centered.text_and_bg .section-text,
.centered.text_and_links .section-text {
    font-size: 25px;
}

.centered.text_and_bg .text-wrap,
.centered.text_and_links .text-wrap {
    text-align: left;    
}

/* SECTION text_and_links -- START */

.text_and_links {
    padding: 100px 10px;
}

@media (max-width: 768px) {
    .text_and_links {
        padding: 50px 10px;
    }
}

.text_and_links .content-wrap {
    max-width: 1280px;
}

.text_and_links .section-text {
    max-width: 820px;
    font-size: 25px;
    font-weight: 400;
    font-size: 25px;
    line-height: 100%;
}

.text_and_links .section-text {
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .text_and_links .section-text {
        margin-left: 73px;
    }
}

.text_and_links .icon-text-link__title {
    font-size: 30px;
}

.text_and_links .icon-text-link__description {
    font-size: 25px;
    line-height: 1em;
}


/* Контейнер для всех элементов */
.text-and-links__items > div {
  display: grid;
  /* Создаем 2 колонки одинаковой ширины */
  grid-template-columns: repeat(2, 1fr);
  /* Расстояние между карточками (настройте под себя) */
  gap: 30px 40px; 
}

/* Стили для самих карточек-ссылок */
.icon-text-link {
  display: flex;
  align-items: flex-start; /* Иконка вверху, текст рядом */
  gap: 20px; /* Отступ между иконкой и текстом */
  text-decoration: none;
  height: 100%; /* Чтобы все карточки в ряду были одной высоты */
}

/* Адаптивность: на мобильных устройствах переходим в 1 колонку */
@media (max-width: 768px) {
  .text-and-links__items > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Дополнительно: чтобы иконки не сжимались */
.icon-text-link__icon {
  flex-shrink: 0;
  width: 60px; /* Задайте нужную ширину иконки */
}

.icon-text-link__icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* SECTION field_block_img_txt -- START */

.block_img_txt {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    background-image: url('/themes/naukan/images/ornament-waves.svg');
    background-repeat: repeat-x;
    background-size: auto 30px; 
    background-position: center bottom 50px;
    padding-bottom: 100px;
    padding-top: 100px;
}

.block_img_txt:before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background-color: rgba(62, 117, 124, 0.20);
    z-index: 0;
}

@media (min-width: 1024px) {
    .block_img_txt {
        background-size: auto 80px;
        padding-bottom: 200px;
        padding-top: 200px;
    }
}

.block_img_txt .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.block_img_txt .content-wrap {    
    width: 100%;
    height: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.field_block_img_txt .field-wrap {
    max-width: 370px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.field_block_img_txt .field-wrap > div {
    width: 100%;
    min-height: 50px;
}

.field_block_img_txt .paragraph--foto-text {
    display: flex;
    flex-direction: column;
    align-items: center;    
    text-align: left;
}

.field_block_img_txt .paragraph--foto-text {
    gap: 30px;
}

.field_block_img_txt .field-wrap > div:nth-child(2) .paragraph--foto-text,
.field_block_img_txt .field-wrap > div:nth-child(4) .paragraph--foto-text {
    flex-direction: column-reverse;
}

.paragraph--foto-text .foto-text__image img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

.paragraph--foto-text .foto-text__title {
    font-family: 'Revard';    
    line-height: 1em;
    font-weight: 400;
    color: #fff;    
}

.paragraph--foto-text .foto-text__title {
    font-size: 20px;
    margin-bottom: 10px;
}

.paragraph--foto-text .foto-text__description {    
    line-height: 1em;
    color: #fff;
}

.paragraph--foto-text .foto-text__description {
    font-size: 14px;
}

@media (min-width: 1024px) {
    .field_block_img_txt .field-wrap {
        max-width: 1280px;
        display: grid;
        /* Две колонки равной ширины */
        grid-template-columns: 1fr 1fr;
        margin: 0 auto;
    }

    .field_block_img_txt .field-wrap > div {
        position: relative;
    }

    .field_block_img_txt .field-wrap > div:nth-child(1) {
        max-width: 645px;
        justify-self: start;        
        margin-bottom: 460px; 
    }
    .field_block_img_txt .field-wrap > div:nth-child(1)::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 460px;
        background-image: 
            url('/themes/naukan/images/vert-line-1.svg'), 
            url('/themes/naukan/images/vert-line-2.svg');
        background-repeat: no-repeat;
        background-position: right bottom, left top;
        background-size: 20px 394px, 20px 330px;
        max-width: 420px;
    }

    .field_block_img_txt .field-wrap > div:nth-child(2) {
        max-width: 420px;
        justify-self: end;
        margin-top: 285px;
        margin-bottom: 411px;
    }
    .field_block_img_txt .field-wrap > div:nth-child(2)::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 411px;
        background-image: 
            url('/themes/naukan/images/vert-line-3.svg'), 
            url('/themes/naukan/images/vert-line-4.svg');
        background-repeat: no-repeat;
        background-position: right top, left top;
        background-size: 20px 400px, 20px 410px;
    }

    .field_block_img_txt .field-wrap > div:nth-child(3) {
        max-width: 420px;
        justify-self: start;
    }

    .field_block_img_txt .field-wrap > div:nth-child(4) {
        max-width: 645px;
        justify-self: end;
        margin-top: 100px;
    }

    .field_block_img_txt .paragraph--foto-text {
        gap: 50px;
    }

    .paragraph--foto-text .foto-text__title {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .paragraph--foto-text .foto-text__description {
        font-size: 25px;
    }
}


/* SECTION field_block_img_txt -- END */

/* main menu */

/* Базовое состояние */
.burger-menu {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition:
    opacity .3s ease,
    transform .3s ease,
    visibility .3s ease;
}

/* Активное состояние */
.burger-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Контент меню */
.burger-menu .text-and-links__items {
    max-width: 960px;
    margin: 120px auto 0;
    padding: 0 24px;
    display: grid;
    gap: 16px;
}

/* Анимация появления пунктов */
.burger-menu.is-open .icon-text-link {
    animation: menuItemFade .4s ease forwards;
}

.burger-menu .icon-text-link {
    opacity: 0;
}

.burger-menu.is-open .icon-text-link:nth-child(1) { animation-delay: .05s }
.burger-menu.is-open .icon-text-link:nth-child(2) { animation-delay: .1s }
.burger-menu.is-open .icon-text-link:nth-child(3) { animation-delay: .15s }
.burger-menu.is-open .icon-text-link:nth-child(4) { animation-delay: .2s }
.burger-menu.is-open .icon-text-link:nth-child(5) { animation-delay: .25s }
.burger-menu.is-open .icon-text-link:nth-child(6) { animation-delay: .3s }

@keyframes menuItemFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-scroll {
    overflow: hidden;
}

#burger-menu {
    color: #000;
}

.burger-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.text-and-links__items > div > div:nth-last-child(-n+4) a.icon-text-link {
    pointer-events: none;
    opacity: 0.5 !important;
}

/* audio details */

.section-more-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 
    max-height 0.6s ease,
    opacity 0.4s ease;
    min-height: 0;
    position: relative;
}

.section-more-details.is-visible {
    max-height: 2000px;
    min-height: 100vh;
    opacity: 1;
    padding: 200px 0;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 4.96%, rgba(62, 116, 123, 0.5) 67.09%);    
    background-attachment: fixed;    
    background-repeat: no-repeat;
    background-size: cover;
}

/* maps-carousel-wrap */

.maps-carousel-wrap {
    position: relative;
}

.maps-carousel-wrap .section-title,
.maps-carousel-wrap .section-description {
    color: #fff;
    text-align: center;
}

.maps-carousel-wrap .content-wrap {
    max-width: inherit;
}

.maps-carousel-wrap .content-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 24px;
  background-image: url('../images/ornament_line_left.svg'); /* Путь к файлу */
  background-repeat: no-repeat;
  background-position: left center;
}

.maps-carousel-wrap .content-wrap::after {
  content: "";
  position: absolute;
  bottom: 90px;
  right: 0;
  width: 100%;
  height: 24px;
  background-image: url('../images/ornament_line_right.svg'); /* Путь к файлу */
  background-repeat: no-repeat;
  background-position: right center;
}

.maps-carousel-wrap .content-wrap .text-wrap {
    max-width: 1124px;
    padding-bottom: 115px;
    margin-bottom: 0;
}

.maps-carousel-wrap .content-wrap .text-wrap .section-title {
    max-width: 817px;
    padding-top: 115px;
    padding-bottom: 38px;
    font-weight: 400;
    font-size: 42px;
    line-height: 1em;
    letter-spacing: 0;
    margin: 0 auto;
}

.maps-carousel-wrap .content-wrap .text-wrap .section-description {
    font-size: 25px;
    line-height: 1.2em;
}

/* audioplayer */

.custom-player-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.waveform-container {
    width: 100%; 
    max-width: 900px;
    height: 120px;
    flex-grow: 1;
    position: relative;
    cursor: pointer;
}
.play-btn {
    width: 100px;
    height: 100px;
    cursor: pointer;
    border: none;
    background: none;
}
.play-btn svg { width: 100%; height: 100%; fill: #52A5B0; }

/* Стилизация самого бегунка внутри холста WaveSurfer */
.waveform-container shadow-root canvas {
    display: block;
}


/* base text */

h2.section-title {
    font-size: 80px;
    text-align: center;
}

.section-text {
    font-size: 28px;
    margin-bottom: 100px;
    text-align: center;
}



@media (max-width: 1365px) {
    h2.section-title {
        font-size: 35px;
    }

    .section-text {
        font-size: 15px;
    }
}

@media (max-width: 1000px) {
    h2.section-title {
        font-size: 26px;
    }

    .section-text {
        font-size: 12px;
    }
}

.text_and_bg .section-title,
.text_and_bg .section-text,
.text_and_links .section-title,
.text_and_links .section-text {
    text-align: left;
}


.carousel-maps .section-description {
    margin-bottom: 115px;
}

.maps-carousel-wrap .content-wrap .text-wrap .section-title {
    line-height: 1.1em;
}

/* section.block-gallery start */

section.block-gallery {
  position: relative;
  padding-top: 100px;
  padding-bottom: 200px;
}

section.block-gallery .text-wrap {
    margin-top: 100px;
}


section.block-gallery::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 355px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 4.97%, rgba(62, 116, 123, 0.5) 67.11%);
  z-index: 0; 
  pointer-events: none;
}

section.block-gallery > * {
  position: relative;
  z-index: 1;
}

/* section.block-gallery end */

/* ornament-line-top start */

.ornament-line-top {
    display: flex;
    gap: 50px;
    position: absolute;
    top: 80px;
}

.cycle-left {

}

.svg-line {

}

.cycle-right {

}

/* ornament-line-top end */

.ornament-figure {
    margin-top: 50px;
    display: block;
    text-align: center;
}

.ornament-figure img {
    width: 262px;
}

.text-images-section {
  background: 
    url('../images/line-ornament-struucture.svg') repeat-x center / auto 60px, 
    rgba(148, 204, 148, 1);
  min-height: 200px;
  padding: 100px 0;
}

/* switch LANG panel -- text-presentation_top_panel */

.text-presentation_top_border,
.text-presentation_top_panel {
    margin-bottom: 65px;
}

.text-presentation_top_border {
    display: flex;
    gap: 56px;
    align-items: center;
    height: 80px;
}

.text-presentation_top_border .svg-line {
    height: 1px;
}

.text-presentation_top_border .circle {
    width: 20px;
    height: 20px;
}

.text-presentation_top_panel {
    margin-left: -10px;
    display: flex;
    gap: 20px;
    align-items: center;
    height: 80px;
}

.text-presentation_top_panel .svg-line {
    height: 1px;
}

.text-presentation_top_panel .line-left-part {
    width: 183px;
}

.text-presentation_top_panel .line-right-part {
    width: 167px;
}

.text-presentation_top_panel .red-circle {
    display: block;
    border-radius: 50%;
    background: rgba(241, 78, 71, 0.8);
    width: 5px;
    height: 5px;
    flex-shrink: 0; 
}


.lang-ru-icon,
.lang-ru_ny-icon,
.lang-ny-icon {
    cursor: pointer;
}

.lang-ru-icon:hover,
.lang-ru_ny-icon:hover,
.lang-ny-icon:hover {
    opacity: 0.7;
}

.lang-ru-icon.active:hover,
.lang-ru_ny-icon.active:hover,
.lang-ny-icon.active:hover {
    opacity: 1;
}

.lang-ru-icon,
.lang-ny-icon,
.lang-ru_ny-icon {
    width: 54px;
    /*height: 60px;*/
    flex-shrink: 0; 
}
/*
.lang-ru_ny-icon {
    width: 70px;
    height: 80px;
}
*/

.text-presentation_top_panel .text-switch {
    color: #3E607B;
}

.text-presentation_top_panel .text-switch.active {
    color: #000;
}


/* menu-is-open */

.menu-is-open {
    overflow: hidden;
}

/* legend-item-icons */

.legend-item-icons img {
    width: 30px;
    height: auto;
}

#block-naukan-content header {
    position: static !important;
    background: none !important;
    display: block !important;
}