

/* Start:/bitrix/components/bitrix/breadcrumb/templates/.default/style.css?1712838656585*/
.bx-breadcrumb {
	margin: 10px 0;
}
.bx-breadcrumb i {
	color: #b5bdc2;
	line-height: 13px;
	font-size: 12px;
	vertical-align: middle;
	margin-right: 5px;
}
.bx-breadcrumb .bx-breadcrumb-item {
	float: left;
	margin-bottom: 10px;
	white-space: nowrap;
	line-height: 13px;
	vertical-align: middle;
	margin-right: 10px;
}
.bx-breadcrumb .bx-breadcrumb-item span {
	font-family: "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 13px;
	white-space: normal;
}
.bx-breadcrumb .bx-breadcrumb-item a {border-bottom: none;}
.bx-breadcrumb .bx-breadcrumb-item a:hover {}

/* End */


/* Start:/local/templates/mural/styles.css?17872299732272*/
/* Google Sans + точные размеры шрифтов по макету Figma.
   Файл создан отдельно от template_styles.css, пока тот недоступен для правки;
   после можно слить в template_styles.css и удалить этот файл.
   Селекторы усилены (body ...), чтобы перекрывать template_styles.css независимо от порядка подключения. */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

body {
    font-family: 'Google Sans', 'Golos Text', Arial, sans-serif;
    font-size: 16px;
}

/* Заголовки: в макете H1 и H2 одинаковые — 48px / 500 / uppercase / ls -3% / lh 100% */
body h1,
body h2 {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Меню шапки: 16px / 500 / uppercase / ls 0 */
body .site-header__link-cell a {
    font-size: 16px;
    letter-spacing: 0;
}

/* Слоган в hero: 24px / 500 / uppercase / ls 0 / lh 100% */
body .hero__slogan {
    font-size: 24px;
    letter-spacing: 0;
    line-height: 1;
}

/* Ссылки-стрелки «Узнать подробнее», «Показать всё»: 24px / 500 / uppercase / ls 0 */
body .arrow-link {
    font-size: 24px;
    letter-spacing: 0;
}

/* Карточки новостей и команды: 18px / 400 / lh 120% */
body .news-card__text,
body .team-card__name {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

/* Список городов: 24px / 500 / uppercase / ls 0 */
body .cities__list a {
    font-size: 24px;
    letter-spacing: 0;
}

/* Заголовок города в карточке мурала: 24px / 500 / uppercase / ls 0 */
body .mural-card__city {
    font-size: 24px;
    letter-spacing: 0;
}

/* Адрес в карточке мурала: 16px / 400 */
body .mural-card__address {
    font-size: 16px;
}

/* Футер: «АНО ТИЦ» 48px, меню и контакты 16px, юридическая строка 16px серым */
body .site-footer__org {
    font-size: 48px;
}

body .site-footer__legal {
    font-size: 16px;
    color: #aaaaaa;
}

/* End */


/* Start:/local/templates/mural/template_styles.css?178783599283055*/
/* ДНК-места: шаблон mural
   Основной шрифт — Google Sans, подключается <link>-ом в header.php (официальный CDN Google Fonts, есть кириллица) */

:root {
    --c-dark: #081f33;        /* тёмно-синий, блок «О проекте» */
    --c-orange: #ff4b00;      /* оранжевый акцент */
    --c-cream: #efe7da;       /* бежевый фон карточек и полос */
    --c-yellow: #f5a93d;      /* карточка Янтарный */
    --c-green: #1e3b2c;       /* карточка Светлогорск */
    --c-blue: #1f44e0;        /* карточка Зеленоградск */
    --c-blue-btn: #134aff;    /* синий кнопок-стрелок листания */
    --c-lightblue: #bcd6ea;   /* карточка Гвардейск */
    --c-red: #f03d19;         /* карточка Гурьевск */
    --c-gray: #aaaaaa;        /* второстепенный текст */
    --c-line: #d9d9d9;

    --font-main: 'Google Sans', 'Golos Text', Arial, sans-serif;
    --container-pad: 48px;
    --news-card-w: 300px;     /* ширина карточки в лентах новостей и команды */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Макет свёрстан под 1440: на широких экранах страница стоит по центру,
   по краям остаются белые поля (фон body распространяется на весь холст).
   Ограничение висит на body, чтобы под него попали и шапка с баннером,
   и подвал — он лежит за пределами .site-main */
body {
    max-width: 1440px;
    margin: 0 auto;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    background: #fff;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.container {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* Заголовки: в макете uppercase, letter-spacing -3%, line-height 100% */
h1, h2, .h-style {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* В макете H1 и H2 одинаковые: 48px */
h1 { font-size: 48px; }
h2 { font-size: 48px; }

/* ---------- Шапка ---------- */

/* Шапка лежит поверх баннера. По макету: логотип 169x39 (x48, y18),
   меню по центру страницы (y31, gap 18), значок VK 29x29 (x1363, y22) */
.site-main { position: relative; }

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 18px var(--container-pad) 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #fff;
}

.site-header__logo img { width: 169px; height: 39px; }

.site-header__nav {
    position: absolute;
    top: 31px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-header__nav a:hover,
.site-header__nav a.selected { color: var(--c-orange); }

/* Чёрный квадрат VK смещён на 4px ниже логотипа (y22 против y18) */
.site-header__vk { margin-top: 4px; color: #000; }
.site-header__vk:hover { color: var(--c-orange); }

/* Обёртка меню нужна только мобильному: на десктопе она не создаёт своего блока,
   и шапка остаётся прежней раскладкой «логотип — меню по центру — VK справа» */
.site-header__menu { display: contents; }

/* Телефон и почта нужны только в мобильном меню */
.site-header__contacts { display: none; }

/* Кнопка «меню» видна только на мобильном. По макету: подпись 14px uppercase
   и две полоски 24x2 с зазором 2; в открытом меню полоски складываются в крестик */
.site-header__burger {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: inherit;
    cursor: pointer;
}

.site-header__burger:hover { color: var(--c-orange); }

.site-header__burger-icon {
    position: relative;
    width: 24px;
    height: 6px;
}

.site-header__burger-icon::before,
.site-header__burger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: currentColor;
}

.site-header__burger-icon::before { top: 0; }
.site-header__burger-icon::after { top: 4px; }

/* Крестик: те же две полоски, сведённые в центр и повёрнутые (в макете 24x18) */
body.menu-open .site-header__burger-icon { height: 18px; }
body.menu-open .site-header__burger-icon::before { top: 8px; transform: rotate(45deg); }
body.menu-open .site-header__burger-icon::after { top: 8px; transform: rotate(-45deg); }

/* ---------- Баннер ---------- */

/* По макету: 1440x691, фото фоном, белый круг с логотипом 802px (x855, y-55),
   заголовок 48px белым слева снизу */
.hero {
    position: relative;
    aspect-ratio: 1440 / 691;
    overflow: hidden;
    background-color: var(--c-dark);
    /* Фото в макете не растянуто на всю ширину: занимает 1084 из 1440 от левого края,
       правый край перекрыт кругом с логотипом */
    background-size: contain;
    background-position: left top;
    background-repeat: no-repeat;
    color: #fff;
}

/* Размытое тёмное пятно под заголовком: в макете эллипс 926x187 с blur 200 */
.hero::before {
    content: "";
    position: absolute;
    left: -6.7%;
    top: 69.9%;
    width: 64.3%;
    height: 27.1%;
    border-radius: 50%;
    background: #000;
    filter: blur(100px);
}

.hero__logo {
    position: absolute;
    top: -8%;
    left: 59.4%;
    width: 55.7%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #fff;
    background-size: 55%;
    background-position: 110px center;
    background-repeat: no-repeat;
}

.hero__title {
    position: absolute;
    left: var(--container-pad);
    right: 42.9%;
    bottom: 6.1%;
    font-size: clamp(28px, 3.33vw, 48px);
}

/* ---------- О проекте ---------- */

/* По макету: блок 1440x350, отступ сверху 120, заголовок (48,64), текст — колонка 664px от x=728 */
.about {
    margin-top: 50px;
    min-height: 350px;
    background: var(--c-dark);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 664px;
    padding: 54px 48px;
}

.about h2 { margin-top: 10px; }

.about__text {
    font-size: 18px;
    line-height: 1.2;
}

.about__text p + p { margin-top: 1em; }

/* ---------- Видео ---------- */

/* По макету: фото 1440x792, отступ сверху 120, кнопка play 120px по центру */
.video {
    margin: 130px auto 0;
    position: relative;
    aspect-ratio: 1440 / 755;
    background-size: cover;
    background-position: center;
    background-color: var(--c-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1345px;
}

.video__play {
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    background: #000;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video__play svg { width: 40px; height: 45px; }

.video__play:hover { background: var(--c-orange); }

/* ---------- Мурал-маршрут: список и карта ---------- */

/* По макету: блок 1440x868 во всю ширину, шапка 129px, ниже панель 473px и карта 966x739.
   Тонкие линии в макете 0.5px чёрные — в вёрстке 1px с половинной прозрачностью */
.route-map {
    margin-top: 125px;
    --route-map-line: 1px solid rgba(0, 0, 0, .5);
}

.route-map__head {
    display: grid;
    grid-template-columns: 660px 1fr;
    align-items: start;
    gap: 24px;
    min-height: 129px;
    padding: 0px var(--container-pad) 24px;
    border-bottom: var(--route-map-line);
}

.route-map__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-top: 10px;
    font-size: 18px;
    line-height: 1.2;
}

.route-map__intro p { max-width: 476px;     margin-bottom: 14px; }

.route-map__more { color: var(--c-blue-btn); }
.route-map__more:hover { color: var(--c-orange); }

.route-map__body {
    display: grid;
    grid-template-columns: 473px 1fr;
    height: 739px;
    border-bottom: var(--route-map-line);
}

.route-map__panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-right: var(--route-map-line);
}

/* Поиск: строка 89px, иконка и плейсхолдер с отступом 48px как у пунктов списка */
.route-map__search {
    flex: 0 0 auto;
    height: 89px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 var(--container-pad);
    border-bottom: var(--route-map-line);
}

.route-map__search-icon { flex: 0 0 24px; color: var(--c-gray); }

.route-map__search-input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    color: #000;
}

.route-map__search-input::placeholder { color: var(--c-gray); }
.route-map__search-input::-webkit-search-cancel-button { cursor: pointer; }

.route-map__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Пункт списка: 89px, название 24px, под ним адрес 18px серым; обе строки в одну строку */
.route-map__item {
    display: block;
    width: 100%;
    height: 89px;
    padding: 19px var(--container-pad);
    border: none;
    border-bottom: var(--route-map-line);
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.route-map__item:last-child {
    border-bottom: none;
}

/* display у пункта перебивает браузерное правило для [hidden], поэтому скрываем явно */
.route-map__item[hidden] { display: none; }

.route-map__item-name,
.route-map__item-address {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.route-map__item-name {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    color: #000;
}

.route-map__item-address {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--c-gray);
}

.route-map__item:hover .route-map__item-name,
.route-map__item--active .route-map__item-name {
    color: var(--c-blue-btn);
    text-decoration: underline;
}

.route-map__empty { padding: 24px var(--container-pad); color: var(--c-gray); }

/* overflow и contain обязательны: без них метки с карточкой вылезают за границы карты,
   страница расширяется, появляется горизонтальная прокрутка — и карта уходит
   в бесконечный пересчёт размера, загружая тайлы до падения вкладки по памяти */
.route-map__map {
    position: relative;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--c-cream);
}

/* Кнопки масштаба: колесом мыши карта не зумится, чтобы не мешать прокрутке страницы */
.route-map__zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.route-map__zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.route-map__zoom-btn:hover { color: var(--c-blue-btn); }

/* Метка на карте: чёрная капля, у выбранного мурала — синяя */
.route-map__pin { position: relative; }

.route-map__pin--hidden { display: none; }

.route-map__pin--active { z-index: 3; }

.route-map__pin-btn {
    display: block;
    padding: 0;
    border: none;
    background: none;
    color: #000;
    cursor: pointer;
    transform: translate(-50%, -100%);
}

.route-map__pin--active .route-map__pin-btn { color: var(--c-blue-btn); }

/* Карточка мурала на карте: 324x116 по макету, висит под меткой */
.route-map__card {
    position: absolute;
    top: 8px;
    left: -20px;
    width: 324px;
    padding: 32px 20px 20px;
    background: #fff;
    cursor: default;
}

.route-map__card-close {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--c-gray);
    cursor: pointer;
}

.route-map__card-close:hover { color: #000; }

.route-map__card-name {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

/* Название-ссылка на страницу мурала: синяя стрелка-ссылка (тот же вид, что «Оставить отзыв»),
   чтобы из карточки было понятно, что по названию можно перейти.
   Размер наследуем от заголовка карточки — он на мобильном свой (16px) */
.route-map__card .route-map__card-link {
    color: var(--c-blue-btn);
    font-size: 22px;
    line-height: inherit;
    text-align: left;
    /* Длинное название переносится — стрелка тогда стоит у последней строки, а не по центру */
    align-items: flex-end;
}

.route-map__card .route-map__card-link::after {
    flex-shrink: 0;
    font-size: inherit;
}

.route-map__card-link:hover,
.route-map__card-link:focus-visible { color: var(--c-orange); }

.route-map__card-address {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--c-gray);
}

/* Ссылка-стрелка «Узнать подробнее», «Показать всё» */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
}

.arrow-link::after { content: "\2192"; font-size: 24px; }

.arrow-link:hover { color: var(--c-orange); }

/* У .arrow-link задан display, поэтому браузерное правило для [hidden] перебивается:
   без этого кнопка «Показать все точки» видна и до раскрытия, и после него */
.arrow-link[hidden] { display: none; }

/* Тот же вид, когда стрелка-ссылка на самом деле кнопка (раскрыть точки, открыть окно) */
button.arrow-link {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}

/* ---------- Новости ---------- */

.news { margin-top: 130px; }

/* Обёртка ленты со стрелками листания */
.scroller { position: relative; }

/* По макету: синий квадрат 44x44 без скруглений, белая стрелка 29px,
   по центру картинок карточек (отступ ленты + половина высоты картинки) */
.scroller__btn {
    position: absolute;
    top: calc(36px + var(--news-card-w) * 2 / 3);
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--c-blue-btn);
    color: #fff;
    font-family: inherit;
    font-size: 29px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroller__btn--prev::before { content: "\2190"; }
.scroller__btn--next::before { content: "\2192"; }

.scroller__btn:hover { filter: brightness(.88); }

.scroller__btn:disabled { opacity: 0; pointer-events: none; }

.scroller__btn--prev { left: 0; }
.scroller__btn--next { right: 0; }

/* Точки-пагинация ленты: по макету на мобильном они заменяют стрелки.
   Сами точки (.slider-dot) описаны ниже, вместе с каруселями страницы мурала */
.scroller__dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

/* overflow: hidden, а не auto — колесо мыши над лентой уводило её вбок вместо
   прокрутки страницы. Стрелки и точки листают по-прежнему: программной прокрутке
   (scrollTo/scrollBy из js/script.js) hidden не мешает. Без overflow карточки
   вылезали за 1440 и растягивали страницу по горизонтали. */
.news__list {
    margin-top: 36px;
    display: flex;
    gap: 8px;
    overflow-x: hidden;
    scrollbar-width: none;
}

.news__list::-webkit-scrollbar { display: none; }

.news-card { flex: 0 0 var(--news-card-w); }

.news-card__image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    background: var(--c-cream);
}

.news-card__text { margin-top: 12px; font-size: 18px; line-height: 1.2; }

a.news-card:hover .news-card__text { text-decoration: underline; }

/* ---------- Муралы ---------- */

.murals { margin-top: 100px; }

.murals__grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mural-card {
    padding: 14px 14px 10px;
    color: #000;
    background: var(--c-cream);
}

.mural-card--dark { color: #fff; }

.mural-card__city {
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
}

.mural-card__image {
    margin-top: 14px;
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, .4);
}

.mural-card__address { margin-top: 10px; font-size: 16px; }

.murals__more { margin-top: 36px; text-align: center; }

.mural-card:nth-child(2n) {
    background: var(--c-yellow);
}
.mural-card:nth-child(3n) {
    background: var(--c-green);
    color: #fff;
}
.mural-card:nth-child(4n) {
    background: var(--c-blue);
    color: #fff;
}
.mural-card:nth-child(5n) {
    background: var(--c-lightblue);
}
.mural-card:nth-child(6n) {
    background: var(--c-red);
    color: #fff;
}


/* ---------- Изучите каждый город ---------- */

/* По макету: блок 1440x660, слева колонка 720 (бежевая шапка 124 + список городов),
   справа фото во всю высоту. Тонкие линии сверху, снизу и по границе колонок */
.cities {
    margin-top: 120px;
    display: grid;
    grid-template-columns: 720px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 660px;
    border-top: 1px solid rgba(0, 0, 0, .5);
    border-bottom: 1px solid rgba(0, 0, 0, .5);
}

.cities__head {
    grid-column: 1;
    min-height: 124px;
    display: flex;
    align-items: center;
    padding: 16px var(--container-pad);
    background: var(--c-cream);
    border-right: 1px solid rgba(0, 0, 0, .5);
}

.cities__list {
    grid-column: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 38px var(--container-pad);
    border-right: 1px solid rgba(0, 0, 0, .5);
    max-height: 535px;
    overflow-y: auto;
}

/* Пункт: синий круг 46px с номером и название 24px */
.cities__link {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 46px;
}

.cities__num {
    flex: 0 0 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--c-blue-btn);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Названия муралов длиннее названий городов и переносятся — отсюда межстрочный 1.1 */
.cities__name {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
}

.cities__link:hover .cities__name,
.cities__link:focus-visible .cities__name {
    color: var(--c-blue-btn);
    text-decoration: underline;
}

/* Фото городов лежат стопкой, видно только активное — переключение без подгрузки */
.cities__photos {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    background: var(--c-cream);
}

.cities__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s;
}

.cities__photo--active { opacity: 1; }

/* ---------- Команда ---------- */

.team { margin-top: 130px; }

.team__list {
    margin-top: 36px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.team__list::-webkit-scrollbar { display: none; }

.team-card { flex: 0 0 300px; }

.team-card__photo {
    aspect-ratio: 5 / 6;
    width: 100%;
    object-fit: cover;
    background: var(--c-cream);
}

.team-card__name { margin-top: 12px; font-size: 18px; line-height: 1.2; }

/* ---------- Футер ---------- */

/* По макету: полоса 1440x294 с тонкими линиями сверху, снизу и по центру.
   Слева логотип (201px, отступ 179) и копирайт 14px, справа меню и контакты 24px.
   Линии в макете 0.5px чёрные — в вёрстке это 1px с половинной прозрачностью */
.site-footer {
    margin-top: 120px;
    border-top: 1px solid rgba(0, 0, 0, .5);
    border-bottom: 1px solid rgba(0, 0, 0, .5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 294px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 44px;
    /* 110/720 от половины футера — отступ слева уезжает вместе с шириной экрана */
    padding: 24px 24px 24px 15.3%;
    border-right: 1px solid rgba(0, 0, 0, .5);
}

.site-footer__logo { width: 205px; max-width: 40%; height: auto; }

.site-footer__copyright {
    max-width: 312px;
    font-size: 14px;
    line-height: 1;
    color: var(--c-gray);
}

/* Меню и контакты начинаются на одной высоте, весь блок — по центру футера */
.site-footer__info {
    align-self: center;
    padding: 24px var(--container-pad) 24px 46px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__nav,
.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.site-header__logo img:last-child {
  display: none;
}

/* Панель меню белая — логотип и подпись «меню» на ней тёмные */
body.menu-open .site-header__logo img:first-child { display: none; }
body.menu-open .site-header__logo img:last-child { display: block; }
.site-footer__nav a:hover,
.site-footer__contacts a:hover { color: var(--c-orange); }

.site-main.inner-page .site-header {
  position: static;
  padding-bottom: 18px;

}
.site-main.inner-page .site-header__logo img:last-child {
  display: block;
}
.site-main.inner-page .site-header__logo img:first-child {
  display: none;
}
.site-main.inner-page .site-header__nav a {
  color: var(--c-dark);
}
/* Тёмный цвет задан селектором с большей специфичностью, чем общий hover выше,
   и без этих правил на внутренних страницах меню вообще не подсвечивалось */
.site-main.inner-page .site-header__nav a:hover,
.site-main.inner-page .site-header__nav a.selected {
  color: var(--c-orange);
}
.site-main.inner-page .site-header__burger {
  color: var(--c-dark);
}
.site-main.inner-page .site-header__burger:hover {
  color: var(--c-orange);
}

.site-narrow-page {
  max-width: 665px;
  margin: 0 auto;
}
.bx-breadcrumb {
  margin: 30px 0 42px;
}
.bx-breadcrumb .bx-breadcrumb-item a {
  color: #B4B4B4;
  font-size: 18px;
}
.bx-breadcrumb .bx-breadcrumb-item a:hover {
  color: var(--c-orange);
}
.bx-breadcrumb .bx-breadcrumb-item span {
  color: #B4B4B4;
  font-size: 18px;
  font-family: var(--font-main);
}
.bx-breadcrumb i {
  display: none;
}
.bx-breadcrumb .bx-breadcrumb-item:not(:first-child) {
  padding-left: 65px;
  position: relative;
}
.bx-breadcrumb .bx-breadcrumb-item:not(:first-child)::before {
  position: absolute;
  left: 0;
  top: 7px;
  background: #B4B4B4;
  height: 1px;
  width: 53px;
  content: "";
}

.news-page__title { margin-bottom: 36px; }

/* Та же карточка, что в ленте новостей на главной, но сеткой, без листания */
.news-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 8px;
}

/* Заглушка вместо отсутствующей картинки, чтобы карточки в ряду были одной высоты */
.news-card__image--empty { aspect-ratio: 3 / 4; width: 100%; background: var(--c-cream); }

.news-page__empty { font-size: 18px; line-height: 1.2; color: var(--c-gray); }

/* ---------- Раздел «Новости»: постраничная навигация ---------- */

.news-pager {
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-pager__page,
.news-pager__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.news-pager__page--current,
.news-pager__page:hover,
.news-pager__arrow:hover { background: var(--c-blue-btn); color: #fff; }

.news-pager__arrow { font-size: 29px; }
.news-pager__arrow--prev::before { content: "\2190"; }
.news-pager__arrow--next::before { content: "\2192"; }

/* ---------- Раздел «Новости»: страница новости ---------- */

/* По макету колонка текста 665px по центру страницы шириной 1440 */
.news-detail {
    max-width: calc(665px + var(--container-pad) * 2);
    margin: 0 auto;
    padding: 0px var(--container-pad) 0px;
}

.news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--c-gray);
}

.news-detail__back::before { content: "\2190"; font-size: 24px; line-height: 1; }

.news-detail__back:hover { color: var(--c-orange); }

.news-detail__title { margin-top: 28px; }

.news-detail__lead,
.news-detail__text {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.2;
}

.news-detail__lead p,
.news-detail__text p { margin-bottom: 20px; }

.news-detail__picture { width: 100%; margin-top: 32px; }

/* Заголовки внутри текста из визуального редактора: 18px Medium, без uppercase.
   Перебиваем общее правило h1, h2 (48px, uppercase) */
.news-detail__text h2,
.news-detail__text h3,
.news-detail__text h4,
.news-detail__text h5 {
    margin: 12px 0 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    display: block;
}

.news-detail__text > :first-child { margin-top: 0; }

.news-detail__text ul,
.news-detail__text ol { margin: 0 0 20px; padding-left: 22px; }

.news-detail__text li { margin-bottom: 12px; }
.news-detail__text li:last-child { margin-bottom: 0; }

.news-detail__text img { width: 100%; height: auto; }

.news-detail__text a { color: var(--c-blue-btn); text-decoration: underline; }
.news-detail__text a:hover { color: var(--c-orange); }

.news-detail__text blockquote {
    margin: 32px 0;
    padding-left: 20px;
    border-left: 2px solid var(--c-blue-btn);
}

.news-detail__gallery { margin-top: 64px; }

.news-gallery {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.news-gallery__item img {
    width: 100%;
    aspect-ratio: 324 / 396;
    object-fit: cover;
    background: var(--c-cream);
}

.news-gallery__item:hover img { opacity: .85; }

/* Видимый фокус с клавиатуры для всего интерактива раздела */
.news-page .news-card:focus-visible,
.news-pager a:focus-visible,
.news-detail__back:focus-visible,
.news-gallery__item:focus-visible {
    outline: 2px solid var(--c-blue-btn);
    outline-offset: 3px;
}

/* ---------- Адаптив (базовый) ---------- */

@media (max-width: 1024px) {
    h1, h2 { font-size: 34px; }

    /* Поля страницы на мобильном — 25px (на телефоне ниже сужаются до 16px по макету) */
    :root { --container-pad: 25px; }

    /* Меню прячется за кнопку «меню» с двумя полосками — так шапка нарисована в макете */
    .site-header { align-items: center; padding: 16px var(--container-pad) 0; }
    .site-header__logo img { width: 140px; height: 32px; }

    .site-header__burger { display: inline-flex; }

    /* Логотип и кнопка «меню» лежат поверх панели: по макету в открытом меню
       они остаются на своих местах, меняются только цвет и вид значка */
    .site-header__logo,
    .site-header__burger { position: relative; z-index: 2; }

    /* Панель меню во весь экран (макет — фрейм «меню», 393x696): белый фон,
       пункты 20px от y=88, ниже контакты и значок VK. Класс --open вешает script.js */
    .site-header__menu {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 88px var(--container-pad) 32px;
        background: #fff;
        color: #000;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity var(--anim-fast) var(--anim-ease),
            visibility var(--anim-fast) var(--anim-ease);
    }

    .site-header__menu--open {
        opacity: 1;
        visibility: visible;
    }

    .site-header__nav {
        position: static;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 20px;
        white-space: normal;
    }

    /* Панель белая — ссылки чёрные и на внутренних страницах тоже */
    .site-main.inner-page .site-header__nav a { color: #000; }
    .site-main.inner-page .site-header__nav a:hover,
    .site-main.inner-page .site-header__nav a.selected { color: var(--c-orange); }

    /* Контакты: 44px от меню, между строками 8 */
    .site-header__contacts {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 44px;
        font-size: 20px;
        font-weight: 500;
        line-height: 1;
        text-transform: uppercase;
    }

    .site-header__contacts a:hover { color: var(--c-orange); }

    /* svg — строчный элемент, из-за базовой линии снизу оставался лишний зазор */
    .site-header__vk { margin-top: 44px; color: #000; }
    .site-header__vk svg { display: block; }

    /* Пока меню открыто, шапка прилипает к верху экрана (иначе на прокрученной
       странице кнопка закрытия уехала бы за экран), а страница не прокручивается */
    body.menu-open { overflow: hidden; }

    body.menu-open .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 40;
        color: #000;
    }

    /* Круг с логотипом уходит вправо и ниже шапки, чтобы не перекрывать меню */
    .hero { aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
    .hero__logo { top: 14%; left: 42%; width: 52%; }
    .hero__title { left: var(--container-pad); right: var(--container-pad); bottom: 5%; font-size: clamp(24px, 4.5vw, 36px); }

    .about { grid-template-columns: 1fr; gap: 24px; padding: 40px var(--container-pad); }
    .about h2 { margin-top: 0; }
    .video__play { width: 72px; height: 72px; }

    /* Мурал-маршрут: карта уезжает под список */
    .route-map__head { grid-template-columns: 1fr; padding: 0 var(--container-pad) 24px; min-height: 0; }
    .route-map__body { grid-template-columns: 1fr; height: auto; }
    .route-map__panel { border-right: none; }
    .route-map__list { max-height: 420px; }
    .route-map__search { padding: 0 var(--container-pad); }
    .route-map__item { padding: 19px var(--container-pad); }
    .route-map__map { height: 420px; border-top: var(--route-map-line); }
    .route-map__card { width: 260px; }

    .murals__grid { grid-template-columns: 1fr; }

    .cities { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
    .cities__head { padding: 24px var(--container-pad); border-right: none; }
    .cities__list { padding: 24px var(--container-pad); gap: 24px; border-right: none; }
    .cities__photos { grid-column: 1; grid-row: auto; min-height: 320px; }

    .site-footer { grid-template-columns: 1fr; min-height: 0; }
    .site-footer__brand {
        padding: 32px var(--container-pad);
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, .5);
    }
    .site-footer__logo { width: 160px; }
    .site-footer__info { padding: 32px var(--container-pad); }
    .site-footer__nav,
    .site-footer__contacts { font-size: 18px; }

    /* Новости: колонка уже, поля как у остальных внутренних блоков */
    .news-page { padding: 96px var(--container-pad) 60px; }
    .news-page__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 8px; }
    .news-detail { max-width: none; padding: 96px var(--container-pad) 60px; }
    .news-detail__gallery { margin-top: 48px; }
}

/* ---------- Телефон: главная по мобильному макету (фрейм «моб», 393px) ----------

   Все размеры ниже сняты с макета шириной 393: поля страницы 16, заголовки блоков 28,
   подзаголовки и подписи 16, названия в карточках 20. Блоки, которые на десктопе идут
   в две колонки, складываются в одну; ленты новостей и команды показывают два слайда
   и листаются точками вместо стрелок. */

@media (max-width: 600px) {
    /* Поля страницы по макету — 16px */
    :root { --container-pad: 16px; }

    h1, h2 { font-size: 28px; }

    .site-header__logo img { width: 124px; height: 28px; }

    /* ---- Баннер ---- */

    /* По макету 393x696: фотополоса 393x407 сверху, ниже чёрный фон,
       заголовок на y=292 и белый круг 429px на y=428 (нижний край обрезан) */
    .hero {
        aspect-ratio: 393 / 696;
        background-color: #000;
        /* Фото шире экрана и занимает только верхнюю часть баннера, ниже — чёрный фон.
           Масштаб и сдвиг сняты с макета: 748px по ширине, левый край за экраном */
        background-size: 190% auto;
        background-position: 20% top;
    }

    /* Размытое пятно под заголовком: в макете эллипс 903x341 (x -246, y 248) */
    .hero::before {
        left: -62.6%;
        top: 35.6%;
        width: 229.8%;
        height: 49%;
    }

    .hero__title {
        top: 41.9%;
        bottom: auto;
        left: var(--container-pad);
        right: var(--container-pad);
        font-size: 28px;
    }

    /* Круг по центру экрана, логотип внутри — по центру видимой части круга */
    .hero__logo {
        top: 61.5%;
        left: 50%;
        width: 109.2%;
        transform: translateX(-50%);
        background-size: 52.4%;
        background-position: 55% 18.3%;
    }

    /* ---- О проекте ---- */

    .about {
        margin-top: 64px;
        min-height: 0;
        padding: 44px var(--container-pad);
        gap: 24px;
    }

    .about__text { font-size: 16px; }

    /* ---- Видео ---- */

    /* По макету 361x203 — то есть в полях страницы, а не во всю ширину */
    .video {
        margin: 64px var(--container-pad) 0;
        max-width: none;
        aspect-ratio: 361 / 203;
    }

    .video__play { width: 32px; height: 32px; }
    .video__play svg { width: 15px; height: 17px; }

    /* ---- Мурал-маршрут ---- */

    .route-map { margin-top: 64px; }

    .route-map__head { gap: 16px; padding: 0 var(--container-pad) 16px; }
    .route-map__intro { gap: 0; padding-top: 0; font-size: 16px; }
    .route-map__intro p { max-width: none; margin-bottom: 16px; }

    /* Ссылки-стрелки («Узнать подробнее», «Показать всё») в макете 16px */
    .arrow-link { gap: 8px; font-size: 16px; }
    .arrow-link::after { font-size: 22px; }

    /* Строка поиска и пункты списка — 71px, текст 16px */
    .route-map__search { height: 71px; gap: 8px; }
    .route-map__search-input { font-size: 16px; }

    /* Шесть пунктов в экране, как в макете, дальше список прокручивается */
    .route-map__list { max-height: 426px; }
    .route-map__item { height: 71px; padding: 16px var(--container-pad); }
    .route-map__item-name { font-size: 16px; }
    .route-map__item-address { margin-top: 4px; font-size: 16px; }

    .route-map__map { height: 480px; }

    /* Карточка мурала на карте: 278x126 */
    .route-map__card { width: 278px; padding: 26px 14px; }
    .route-map__card-close { top: 8px; right: 8px; }
    .route-map__card-name { font-size: 16px; }
    .route-map__card-address { margin-top: 4px; font-size: 16px; }

    /* ---- Новости и команда ---- */

    /* Два слайда в экране: 50% ширины списка минус половина зазора.
       Проценты считаются от content-box списка, поля страницы в них уже не входят */
    .news { margin-top: 48px; }
    .team { margin-top: 64px; }

    .news__list,
    .team__list { margin-top: 16px; gap: 8px; }

    .news-card,
    .team-card { flex: 0 0 calc(50% - 4px); }

    .news-card__text,
    .team-card__name { margin-top: 8px; font-size: 16px; }

    /* Вместо стрелок — точки-пагинация, как на страницах мурала и маршрута.
       Раз стрелок нет, ленту листают пальцем — возвращаем overflow-x в auto
       (на десктопе он hidden, чтобы колесо мыши не уводило ленту вбок) */
    .scroller__btn { display: none; }
    .scroller__dots { display: flex; }

    .news__list {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    /* ---- Муралы ---- */

    .murals { margin-top: 64px; }
    .murals__grid { margin-top: 16px; gap: 16px; }

    .mural-card { padding: 16px; }
    .mural-card__city { font-size: 20px; }
    /* Селектор с родителем нарочно: отступ обёртки задан ещё раз в слое анимаций */
    .mural-card > .mural-card__media { margin-top: 16px; }
    .mural-card__address { margin-top: 16px; font-size: 16px; }

    .murals__more { margin-top: 16px; }

    /* ---- Изучите каждый город ---- */

    /* Бежевая шапка 88px с линией под ней, список, под ним фото 393x287.
       Нижней линии у блока в мобильном макете нет — её закрывает фото */
    .cities { margin-top: 64px; border-bottom: none; }

    .cities__head {
        min-height: 88px;
        padding: 16px var(--container-pad);
        border-bottom: 1px solid rgba(0, 0, 0, .5);
    }

    .cities__list { gap: 20px; padding: 16px var(--container-pad) 0; }
    .cities__link { gap: 8px; min-height: 32px; }
    .cities__num { flex: 0 0 32px; height: 32px; font-size: 16px; }
    .cities__name { font-size: 20px; }

    .cities__photos {
        margin-top: 16px;
        min-height: 0;
        aspect-ratio: 393 / 287;
    }

    /* ---- Футер ---- */

    /* Верхняя половина: логотип и копирайт в строку, под линией — сначала контакты,
       потом меню (в мобильном макете порядок обратный десктопному) */
    .site-footer { margin-top: 64px; }

    .site-footer__brand {
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 26px var(--container-pad) 30px 12%;
    }

    .site-footer__logo { width: 140px; max-width: none; }
    .site-footer__copyright { font-size: 12px; }

    .site-footer__info {
        flex-direction: column;
        gap: 20px;
        padding: 21px var(--container-pad) 20px;
    }

    .site-footer__contacts { order: -1; }

    .site-footer__nav,
    .site-footer__contacts { gap: 8px; font-size: 20px; }
}

/* ---------- Страница мурала ---------- */

/* Страница лежит внутри .site-page.container (поля 48px), поэтому гасим их
   отрицательным полем и держим свои: от --mural-pad считаются ленты и блок
   карты, которые уходят во всю ширину экрана. Тот же приём, что у .route-page.
   Крошки над заголовком выводит bitrix:breadcrumb из header.php */
.mural-page {
    --mural-pad: var(--container-pad);
    margin: 0 calc(-1 * var(--container-pad));
    padding: 0 var(--container-pad);
}

/* По макету: h1 и описание слева (колонка текста 554px), фото 664x604 — справа,
   правая колонка начинается на 728px по сетке макета */
.mural-detail__intro {
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(0, 664px);
    align-items: start;
}

.mural-detail__text {
    max-width: 554px;
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.2;
}

.mural-detail__text p { margin-bottom: 16px; }
.mural-detail__text > *:last-child { margin-bottom: 0; }

.mural-detail__photo { display: block; }

.mural-detail__image {
    width: 100%;
    aspect-ratio: 664 / 604;
    object-fit: cover;
    background: var(--c-cream);
}

/* ---------- Мурал: создание ---------- */

/* Заголовок, текст во всю контентную ширину и лента фото с подписями */
.mural-creation { margin-top: 130px; }

.mural-creation__text {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.2;
}

.mural-creation__text p { margin-bottom: 16px; }
.mural-creation__text > *:last-child { margin-bottom: 0; }

/* ---------- Мурал: было — стало ---------- */

.mural-ba { margin-top: 130px; }

/* Обложка ролика во всю контентную ширину, кнопка play 120px по центру */
.mural-ba__video {
    position: relative;
    display: block;
    margin-top: 32px;
    aspect-ratio: 1344 / 739;
    overflow: hidden;
    background: var(--c-cream);
}

/* Раскладываем картинку абсолютом: высота родителя задана через aspect-ratio,
   а от такой высоты проценты у ребёнка не считаются — height: 100% схлопнулся бы в auto */
.mural-ba__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mural-ba__video .video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mural-ba__video:hover .video__play { background: var(--c-orange); }

/* ---------- Мурал: ленты фото ---------- */

/* Одна и та же лента в блоках «Создание мурала» и «Торжественное открытие»:
   слайды 664x444 идут навылет за края экрана, стрелки лежат поверх картинок
   по краям контентной области */
.mural-opening { margin-top: 130px; }

.mural-gallery__scroller {
    position: relative;
    margin: 32px calc(-1 * var(--mural-pad)) 0;
}

/* scroll-padding обязателен: без него scroll-snap выравнивает первый слайд
   по краю контейнера, а не по краю контентной области — лента приезжает
   прокрученной на ширину padding, и стрелка «назад» остаётся активной */
.mural-gallery__list {
    display: flex;
    gap: 16px;
    padding: 0 var(--mural-pad);
    scroll-padding-left: var(--mural-pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overflow-x: hidden;
}

.mural-gallery__list::-webkit-scrollbar { display: none; }

.mural-gallery__slide {
    flex: 0 0 664px;
    max-width: 85%;
    scroll-snap-align: start;
}

.mural-gallery__link { display: block; }

.mural-gallery__caption {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.2;
}

.mural-gallery__image {
    width: 100%;
    aspect-ratio: 664 / 444;
    object-fit: cover;
    background: var(--c-cream);
}

/* Кнопки листания — тот же синий квадрат 44x44, что у лент на главной */
.mural-gallery__btn,
.route-gallery__btn,
.reviews__btn {
    position: absolute;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--c-blue-btn);
    color: #fff;
    font-family: inherit;
    font-size: 29px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mural-gallery__btn--prev::before,
.route-gallery__btn--prev::before,
.reviews__btn--prev::before { content: "\2190"; }

.mural-gallery__btn--next::before,
.route-gallery__btn--next::before,
.reviews__btn--next::before { content: "\2192"; }

.mural-gallery__btn:hover,
.route-gallery__btn:hover,
.reviews__btn:hover { filter: brightness(.88); }

.mural-gallery__btn:disabled,
.route-gallery__btn:disabled,
.reviews__btn:disabled { opacity: 0; pointer-events: none; }

.mural-gallery__btn {
    top: 50%;
    transform: translateY(-50%);
}

.mural-gallery__btn--prev { left: var(--mural-pad); }
.mural-gallery__btn--next { right: var(--mural-pad); }

/* ---------- Точки-пагинация (галерея и отзывы) ---------- */

/* По макету: квадраты 9x9, активный 15x15, зазор 6. Видны только на мобильном */
.mural-gallery__dots,
.route-gallery__dots,
.reviews__dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    background: var(--c-blue-btn);
    opacity: .45;
    cursor: pointer;
}

.slider-dot--active {
    width: 15px;
    height: 15px;
    opacity: 1;
}

/* ---------- Мурал: отзывы ---------- */

.reviews { margin-top: 130px; }

/* Пока отзывов к муралу нет, шаблон слайдера ничего не выводит и в секции
   остаётся одна кнопка «Оставить отзыв» — она центрируется теми же правилами */

.reviews__slider { position: relative; }

.reviews__list {
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overflow-x: hidden;
}

.reviews__list::-webkit-scrollbar { display: none; }

/* Слайд занимает всю ширину: колонка 1092px по центру — сверху автор, под ним цитата */
.reviews__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 126px;
    text-align: center;
}

.reviews__author {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews__avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background: var(--c-line);
}

/* Аватара в макете основного состояния нет, поэтому отступ появляется только с ним */
.reviews__avatar + .reviews__name { margin-top: 24px; }

.reviews__name {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.reviews__post {
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.2;
}

.reviews__text {
    max-width: 1092px;
    margin: 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
}

/* «Читать всё» — продолжение цитаты, поэтому не ссылка-стрелка, а обычный текст */
.reviews__read {
    margin-left: .3em;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-transform: inherit;
    color: var(--c-blue-btn);
    cursor: pointer;
}

.reviews__read:hover { color: var(--c-orange); }

/* Стрелки стоят по центру цитаты: автор занимает 52px и ещё 32px отступа */
.reviews__btn { top: 132px; }

.reviews__btn--prev { left: 0; }
.reviews__btn--next { right: 0; }

.reviews__more {
    margin: 32px auto 0;
    display: flex;
    justify-content: center;
    color: var(--c-blue-btn);
}

/* ---------- Мурал: методические рекомендации ---------- */

/* По макету: заголовок слева, подпись и ссылка на PDF — в колонке справа,
   правая колонка начинается на 728px, как в шапке блока с картой */
.mural-methodics {
    margin-top: 130px;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(0, 664px);
    align-items: start;
}

.mural-methodics__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.mural-methodics__text {
    font-size: 18px;
    line-height: 1.2;
}

.mural-methodics__text p { margin-bottom: 16px; }
.mural-methodics__text > *:last-child { margin-bottom: 0; }

.mural-methodics__pdf { color: var(--c-blue-btn); }
.mural-methodics__pdf:hover { color: var(--c-orange); }

/* Блок с картой идёт во всю ширину экрана, как на главной */
.mural-page .route-map {
    margin: 130px calc(-1 * var(--mural-pad)) 0;
}

/* ---------- Раздел «Муралы»: список ---------- */

/* Поля страницы уже задаёт .site-page.container из header.php */
.murals-page { padding-bottom: 100px; }

.murals-page__title { margin-bottom: 36px; }

/* Видимый фокус с клавиатуры */
.mural-gallery__btn:focus-visible,
.reviews__btn:focus-visible,
.reviews__read:focus-visible,
.slider-dot:focus-visible,
.mural-detail__photo:focus-visible,
.mural-gallery__link:focus-visible,
.mural-ba__video:focus-visible {
    outline: 2px solid var(--c-blue-btn);
    outline-offset: 3px;
}

/* ---------- Страница мурала: адаптив ---------- */

@media (max-width: 1024px) {
    /* Поля страницы — 25px, как у остальных внутренних блоков на мобильном */
    .mural-page { --mural-pad: 25px; }

    .mural-detail__intro { display: flex; flex-direction: column-reverse;}
    .bx-breadcrumb .bx-breadcrumb-item span {font-size: 16px;}
    .bx-breadcrumb { margin: 20px 0 24px; }

    /* Фото мурала уезжает под описание. В мобильном макете его нет вовсе,
       но прятать картинку смысла нет — она остаётся последней в колонке */
    .mural-detail__text {
        max-width: none;
        margin-top: 20px;
        font-size: 16px;
    }

    .mural-detail__photo { margin-bottom: 20px; }

    .mural-creation,
    .mural-ba,
    .mural-opening,
    .mural-methodics,
    .reviews { margin-top: 80px; }

    .mural-creation__text { margin-top: 20px; font-size: 16px; }

    .mural-methodics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mural-methodics__text { font-size: 16px; }
    .mural-methodics__pdf { font-size: 18px; }
    .mural-methodics__pdf::after { font-size: 20px; }

    .mural-ba__video { margin-top: 20px; }
    .mural-ba__video .video__play { width: 56px; height: 56px; }
    .mural-ba__video .video__play svg { width: 22px; height: 25px; }

    /* Галерея: два слайда в экране, стрелки уступают место точкам.
       overflow-x возвращаем в auto: на десктопе он hidden, чтобы колесо мыши
       над лентой не уводило её вбок вместо прокрутки страницы, но здесь стрелок
       нет и листать можно только пальцем — а свайп hidden как раз и запрещает.
       overscroll-behavior не даёт свайпу в конце ленты сработать как «назад» */
    .mural-gallery__scroller { margin-top: 20px; }
    .mural-gallery__list {
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    .mural-gallery__slide { flex: 0 0 calc(50% - 4px); max-width: none; }
    .mural-gallery__image { aspect-ratio: 177 / 216; }
    .mural-gallery__caption { margin-top: 8px; font-size: 16px; }
    .mural-gallery__btn { display: none; }

    .mural-gallery__dots,
    .reviews__dots { display: flex; margin-top: 20px; }

    /* У отзывов ровно то же: стрелок нет, листаем свайпом */
    .reviews__btn { display: none; }
    .reviews__list { overflow-x: auto; overscroll-behavior-x: contain; }
    .reviews__item { padding: 0; }
    .reviews__text { font-size: 24px; }
    .reviews__avatar { width: 64px; height: 64px; }
    .reviews__avatar + .reviews__name { margin-top: 20px; }
    .reviews__author { margin-bottom: 20px; }
    .reviews__name { font-size: 20px; }
    .reviews__post { font-size: 16px; }
    .reviews__more { margin-top: 24px; font-size: 16px; }
    .reviews__more::after { font-size: 22px; }

    .mural-page .route-map { margin-top: 80px; }

    .murals-page { padding-bottom: 60px; }
}

/* ---------- Страница маршрута ---------- */

/* Страница лежит внутри .site-page.container (поля 48px), поэтому сначала гасим
   их отрицательным полем, а дальше управляем отступами сами: --route-pad
   меняется на мобильном, и от него же считаются блоки во всю ширину экрана */
.route-page {
    --route-pad: var(--container-pad);
    margin: 0 calc(-1 * var(--container-pad));
    padding: 0 var(--route-pad);
}

/* Шапка страницы: h1 слева, описание и ссылка на PDF — в колонке 579px справа.
   Правая колонка начинается на 728px по сетке макета */
.route-about {
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(0, 579px);
    align-items: start;
}

.route-about__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.route-about__text {
    font-size: 18px;
    line-height: 1.2;
}

.route-about__text p { margin-bottom: 20px; }
.route-about__text > *:last-child { margin-bottom: 0; }

.route-about__pdf {
    margin-top: 16px;
    color: var(--c-blue-btn);
}

.route-about__pdf:hover { color: var(--c-orange); }

/* ---------- Маршрут: лента фото ---------- */

/* Лента идёт навылет за края экрана, первый слайд выровнен по контентной области.
   scroll-padding обязателен — иначе scroll-snap приклеивает слайд к краю окна */
.route-gallery {
    position: relative;
    margin: 32px calc(-1 * var(--route-pad)) 0;
}

/* overflow-x: hidden, а не auto — иначе колесо мыши над лентой уводит её вбок
   вместо прокрутки страницы. Стрелки и точки листают по-прежнему: программной
   прокрутке hidden не мешает. На мобильном он возвращается в auto — см. адаптив */
.route-gallery__list {
    display: flex;
    gap: 16px;
    padding: 0 var(--route-pad);
    scroll-padding-left: var(--route-pad);
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.route-gallery__list::-webkit-scrollbar { display: none; }

.route-gallery__slide {
    display: block;
    flex: 0 0 324px;
    max-width: 70%;
    scroll-snap-align: start;
}

.route-gallery__image {
    width: 100%;
    aspect-ratio: 324 / 396;
    object-fit: cover;
    background: var(--c-cream);
}

.route-gallery__btn {
    top: 50%;
    transform: translateY(-50%);
}

.route-gallery__btn--prev { left: var(--route-pad); }
.route-gallery__btn--next { right: var(--route-pad); }

/* ---------- Маршрут: блок с картой ---------- */

/* Блок карты во всю ширину экрана, в шапке — одна подпись вместо заголовка и ссылки */
.route-page .route-map {
    margin: 130px calc(-1 * var(--route-pad)) 0;
}

.route-map__head--wide { grid-template-columns: 1fr; }

.route-map__lead {
    max-width: 1391px;
    font-weight: 500;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

/* ---------- Маршрут: точки ---------- */

.route-points { margin-top: 130px; }

.route-points__list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Номер и фото — в левой колонке, описание начинается на той же линии 728px,
   что и текст в шапке страницы */
.route-point {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(0, 579px);
    align-items: start;
}

/* Синяя линия соединяет кружки с номерами: у промежуточных точек она
   перекрывает и зазор между ними, у последней — обрывается на кружке */
.route-point::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 0;
    bottom: -32px;
    width: 1px;
    background: var(--c-blue-btn);
}

.route-point:last-child::before { bottom: calc(100% - 46px); }

/* У точки задан display, поэтому браузерное правило для [hidden] не срабатывает.
   Скрытая точка не должна тянуть и линию слева — она рисуется на видимой последней */
.route-point[hidden] { display: none; }
.route-point:not([hidden]):has(~ .route-point[hidden])::before { bottom: calc(100% - 46px); }

.route-point__media {
    display: grid;
    grid-template-columns: 46px minmax(0, 467px);
    gap: 16px;
    align-items: start;
}

.route-point__num {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--c-blue-btn);
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-point__photo { display: block; }

.route-point__image {
    width: 100%;
    aspect-ratio: 467 / 271;
    object-fit: cover;
    background: var(--c-cream);
}

.route-point__photo--empty {
    display: block;
    width: 100%;
    aspect-ratio: 467 / 271;
    background: var(--c-cream);
}

.route-point__name {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.route-point__name a:hover { color: var(--c-blue-btn); }

.route-point__address {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.route-point__text {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.2;
}

.route-point__text p { margin-bottom: 20px; }
.route-point__text > *:last-child { margin-bottom: 0; }

.route-points__empty {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--c-gray);
}

/* Ссылка выровнена по колонке с описанием точек */
.route-points__more {
    margin-top: 32px;
    padding-left: 680px;
}

.route-points__more-link { color: var(--c-blue-btn); }
.route-points__more-link:hover { color: var(--c-orange); }

/* ---------- Маршрут: текст экскурсии ---------- */

.route-excursion {
    margin-top: 130px;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(0, 579px);
    align-items: start;
}

.route-excursion__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.route-excursion__text {
    font-size: 18px;
    line-height: 1.2;
}

.route-excursion__text p { margin-bottom: 20px; }
.route-excursion__text > *:last-child { margin-bottom: 0; }

.route-excursion__more {
    margin-top: 16px;
    color: var(--c-blue-btn);
}

.route-excursion__more:hover { color: var(--c-orange); }

.route-about__pdf:focus-visible,
.route-gallery__slide:focus-visible,
.route-gallery__btn:focus-visible,
.route-point__photo:focus-visible,
.route-point__name a:focus-visible,
.route-points__more-link:focus-visible,
.route-excursion__more:focus-visible {
    outline: 2px solid var(--c-blue-btn);
    outline-offset: 3px;
}

/* ---------- Всплывающее окно ---------- */

/* По макету: окно 834x1000 по центру поверх чёрного затемнения 60%,
   поля 32px, крестик 24x24 в правом верхнем углу (top 44) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--container-pad);
}

.modal[hidden] { display: none; }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

/* Текст длиннее окна прокручивается внутри него, страница под окном стоит на месте */
.modal__window {
    position: relative;
    width: 834px;
    max-width: 100%;
    max-height: 100%;
    padding: 32px;
    background: #fff;
    overflow-y: auto;
}

.modal__title { padding-right: 56px; }

.modal__text {
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.2;
}

.modal__text p { margin-bottom: 24px; }
.modal__text > *:last-child { margin-bottom: 0; }

.modal__text ul,
.modal__text ol { margin: 0 0 24px; padding-left: 22px; }

.modal__text li { margin-bottom: 12px; }

.modal__text img { width: 100%; height: auto; margin: 24px 0; }

.modal__text a { color: var(--c-blue-btn); text-decoration: underline; }
.modal__text a:hover { color: var(--c-orange); }

/* Подпись под текстом отзыва: имя 24px Medium и должность 18px в одну строку */
.modal__signature {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.2;
}

.modal__signature-name {
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.modal__date {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.2;
    color: var(--c-gray);
}

/* Крестик — две линии 24x2 под ±45 градусов, как в макете */
.modal__close {
    position: absolute;
    top: 44px;
    right: 32px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.modal__close::before,
.modal__close::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 24px;
    height: 2px;
    background: #000;
}

.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }

.modal__close:hover::before,
.modal__close:hover::after { background: var(--c-orange); }

.modal__close:focus-visible {
    outline: 2px solid var(--c-blue-btn);
    outline-offset: 3px;
}

/* Страница под открытым окном не прокручивается */
body.modal-open { overflow: hidden; }

/* ---------- Страница маршрута: адаптив ---------- */

@media (max-width: 1024px) {
    /* Поля страницы — 25px, как у остальных внутренних страниц */
    .route-page { --route-pad: 25px; }

    .route-about { grid-template-columns: 1fr; gap: 20px; }

    /* Лента фото: два слайда в экране, стрелки уступают место точкам,
       листать можно только пальцем — поэтому overflow-x снова auto */
    .route-gallery { margin-top: 24px; }
    .route-gallery__list {
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    .route-gallery__slide { flex: 0 0 calc(50% - 4px); max-width: none; }
    .route-gallery__btn { display: none; }
    .route-gallery__dots { display: flex; margin-top: 20px; }

    .route-page .route-map { margin-top: 80px; }
    .route-map__lead { font-size: 24px; }

    .route-points { margin-top: 80px; }
    .route-points__list { gap: 40px; }

    /* Точка складывается в столбец: номер и фото сверху, описание под ними */
    .route-point { grid-template-columns: 1fr; }
    .route-point::before { left: 16px; bottom: -40px; }
    .route-point:last-child::before { bottom: calc(100% - 32px); }
    .route-point__media { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
    .route-point__num { width: 32px; height: 32px; font-size: 15px; }
    .route-point__body { margin-top: 20px; padding-left: 44px; }
    .route-point__name { margin-top: 0; font-size: 20px; }
    .route-point__address { margin-top: 12px; }
    .route-point__text { margin-top: 16px; }

    .route-points__more { padding-left: 44px; }

    .route-excursion { margin-top: 80px; grid-template-columns: 1fr; gap: 20px; }

    /* Окно почти во весь экран, поля как у страницы */
    .modal { padding: 25px; }
    .modal__window { padding: 25px; }
    .modal__title { padding-right: 40px; }
    .modal__close { top: 25px; right: 25px; width: 20px; height: 20px; }
    .modal__close::before,
    .modal__close::after { top: 9px; width: 20px; }
    .modal__text { margin-top: 20px; }
}

/* ---------- Лёгкие анимации ---------- */

/* Анимация вынесена отдельным слоем в конец файла: правила выше остаются
   описанием макета, а здесь собраны все переходы. Длительности короткие
   (цвет — 0.2s, зум картинки — 0.5s), кривая одна на весь сайт.
   Зум работает только там, где картинка лежит в обрезающей обёртке
   (ссылка вокруг одной картинки или *__media в карточке) — иначе она
   наезжала бы на соседние карточки и подписи */
:root {
    --anim-fast: .2s;
    --anim-slow: .7s;
    --anim-ease: cubic-bezier(.4, 0, .2, 1);
    /* Зум картинки: почти без разгона, с долгим затуханием — так увеличение
       не читается рывком. Шаг маленький: 2% на фото 600px — это 12px */
    --anim-zoom: 1.02;
    --anim-zoom-ease: cubic-bezier(.16, .84, .44, 1);
}

/* Ссылки и кнопки: цвет, фон и прозрачность меняются плавно */
a,
button {
    transition:
        color var(--anim-fast) var(--anim-ease),
        background-color var(--anim-fast) var(--anim-ease),
        opacity var(--anim-fast) var(--anim-ease),
        filter var(--anim-fast) var(--anim-ease);
}

/* Полоски кнопки «меню» плавно складываются в крестик */
.site-header__burger-icon::before,
.site-header__burger-icon::after {
    transition:
        top var(--anim-fast) var(--anim-ease),
        transform var(--anim-fast) var(--anim-ease);
}

/* Текст внутри ссылок красится своими правилами — переход нужен и ему */
.cities__name,
.route-map__item-name,
.route-map__item-address,
.news-card__text,
.mural-gallery__caption {
    transition: color var(--anim-fast) var(--anim-ease);
}

/* --- Картинки: мягкий зум под обрезающей обёрткой --- */

/* Ссылка обёрнута вокруг одной картинки — обрезаем её саму */
.news-card__media,
.mural-card__media,
.mural-detail__photo,
.mural-gallery__link,
.route-gallery__slide,
.route-point__photo,
.news-gallery__item {
    display: block;
    overflow: hidden;
}

.news-card__media .news-card__image,
.mural-card__media .mural-card__image,
.mural-detail__photo .mural-detail__image,
.mural-gallery__link .mural-gallery__image,
.route-gallery__slide .route-gallery__image,
.route-point__photo .route-point__image,
.news-gallery__item img {
    transition: transform var(--anim-slow) var(--anim-zoom-ease), opacity var(--anim-fast) var(--anim-ease);
    will-change: transform;
}

/* Зум в карточках намеренно завязан на обёртку *__media: если разметка старая
   (например, осталась в кеше компонента), обёртки нет — и зума тоже нет,
   иначе увеличенная картинка налезала бы на подпись и соседнюю карточку */
a.news-card:hover .news-card__media .news-card__image,
.mural-card:hover .mural-card__media .mural-card__image,
.mural-detail__photo:hover .mural-detail__image,
.mural-gallery__link:hover .mural-gallery__image,
.route-gallery__slide:hover .route-gallery__image,
.route-point__photo:hover .route-point__image,
.news-gallery__item:hover img,
a.news-card:focus-visible .news-card__media .news-card__image,
.mural-card:focus-visible .mural-card__media .mural-card__image,
.mural-detail__photo:focus-visible .mural-detail__image,
.mural-gallery__link:focus-visible .mural-gallery__image,
.route-gallery__slide:focus-visible .route-gallery__image,
.route-point__photo:focus-visible .route-point__image,
.news-gallery__item:focus-visible img {
    transform: scale(var(--anim-zoom));
}

/* У картинки анонса мурала и обложки «Было — стало» зум чуть заметнее гасится затемнением */
.mural-ba__image { transition: transform var(--anim-slow) var(--anim-zoom-ease); }
.mural-ba__video:hover .mural-ba__image { transform: scale(var(--anim-zoom)); }

/* В карточке мурала бежевая заглушка тоже лежит в обёртке — её не двигаем */
.mural-card__media > .mural-card__image:not(img),
.news-card__media > .news-card__image--empty { transform: none; }

/* Отступ картинки внутри карточки мурала переехал на обёртку */
.mural-card__media { margin-top: 14px; }
.mural-card__media .mural-card__image { margin-top: 0; }

/* Карточка мурала слегка приподнимается */
a.mural-card {
    transition: transform var(--anim-fast) var(--anim-ease), box-shadow var(--anim-fast) var(--anim-ease);
}

a.mural-card:hover,
a.mural-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

/* --- Кнопки листания и масштаба --- */

.scroller__btn,
.mural-gallery__btn,
.route-gallery__btn,
.reviews__btn,
.route-map__zoom-btn,
.news-pager__page,
.news-pager__arrow {
    transition:
        background-color var(--anim-fast) var(--anim-ease),
        color var(--anim-fast) var(--anim-ease),
        filter var(--anim-fast) var(--anim-ease),
        opacity var(--anim-fast) var(--anim-ease),
        transform var(--anim-fast) var(--anim-ease);
}

/* У этих кнопок базовый transform — центрирование по вертикали, его нужно сохранить */
.scroller__btn:hover,
.mural-gallery__btn:hover,
.route-gallery__btn:hover { transform: translateY(-50%) scale(1.08); }

.scroller__btn:active,
.mural-gallery__btn:active,
.route-gallery__btn:active { transform: translateY(-50%) scale(.94); }

/* А у стрелок отзывов позиция задана через top, без transform */
.reviews__btn:hover { transform: scale(1.08); }
.reviews__btn:active { transform: scale(.94); }

.route-map__zoom-btn:active { transform: scale(.94); }

/* --- Круглая кнопка play --- */

.video__play {
    transition: background-color var(--anim-fast) var(--anim-ease), transform var(--anim-fast) var(--anim-ease);
}

/* На странице мурала кнопка отцентрована трансформом — его сохраняем */
.mural-ba__video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }

/* На главной кнопка стоит без трансформа */
.video .video__play:hover { transform: scale(1.08); }

/* --- Список городов/муралов: номер оживает вместе с названием --- */

.cities__num { transition: transform var(--anim-fast) var(--anim-ease), background-color var(--anim-fast) var(--anim-ease); }

.cities__link:hover .cities__num,
.cities__link:focus-visible .cities__num { transform: scale(1.1); }

/* --- Карта: метки и карточка --- */

/* Точка привязки метки — её остриё внизу, иначе при увеличении капля уедет с адреса */
.route-map__pin-btn {
    transform-origin: 50% 100%;
    transition: transform var(--anim-fast) var(--anim-ease), color var(--anim-fast) var(--anim-ease);
}

.route-map__pin-btn:hover { transform: translate(-50%, -100%) scale(1.12); }

/* Карточка мурала на карте появляется мягко, а не рывком */
.route-map__card { animation: mural-fade-up var(--anim-fast) var(--anim-ease); }

.route-map__card-link { transition: color var(--anim-fast) var(--anim-ease); }

@keyframes mural-fade-up {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* Всплывающее окно: затемнение и само окно тоже въезжают */
.modal { animation: mural-fade var(--anim-fast) var(--anim-ease); }
.modal__window { animation: mural-fade-up .28s var(--anim-ease); }

@keyframes mural-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Крестик закрытия: палочки красятся плавно, сам крестик чуть поворачивается */
.modal__close { transition: transform var(--anim-fast) var(--anim-ease); }
.modal__close::before,
.modal__close::after { transition: background-color var(--anim-fast) var(--anim-ease); }
.modal__close:hover { transform: rotate(90deg); }

/* Если система просит меньше движения — оставляем только смену цвета */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    a.news-card:hover .news-card__media .news-card__image,
    .mural-card:hover .mural-card__media .mural-card__image,
    .mural-detail__photo:hover .mural-detail__image,
    .mural-gallery__link:hover .mural-gallery__image,
    .route-gallery__slide:hover .route-gallery__image,
    .route-point__photo:hover .route-point__image,
    .news-gallery__item:hover img,
    .mural-ba__video:hover .mural-ba__image { transform: none; }

    a.mural-card:hover { transform: none; box-shadow: none; }
}

/* ---------- Мурал: окно с видео ---------- */

/* Обложка «Было — стало» может быть ссылкой, кнопкой или просто картинкой —
   кнопке гасим её собственное оформление */
button.mural-ba__video {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

/* Окно с плеером шире текстового и без полей: внутри только видео 16:9 */
.modal--video .modal__window {
    width: 1100px;
    padding: 0;
    background: #000;
    overflow: visible;
}

.modal__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* Крестик выносим над окном — на чёрном плеере чёрный крестик не виден */
.modal--video .modal__close { top: -34px; right: 0; }

.modal--video .modal__close::before,
.modal--video .modal__close::after { background: #fff; }

@media (max-width: 1024px) {
    .modal--video .modal__window { padding: 0; }
    .modal--video .modal__close { top: -30px; right: 0; }
}

.modal__close + .modal__text { margin-top: 0; }
.modal__close + .modal__text > *:first-child { padding-right: 56px; }

/* ---------- Форма «Оставить отзыв» ---------- */

.modal--form .modal__window { width: 665px; }

.review-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Ловушка для ботов: убираем с экрана, но оставляем в DOM */
.review-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.review-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
    line-height: 1.2;
}

.review-form__label { color: var(--c-gray); }
.review-form__req { color: var(--c-orange); }

.review-form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c-line);
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.2;
}

.review-form__input:focus {
    outline: none;
    border-color: var(--c-blue-btn);
}

.review-form__textarea {
    min-height: 140px;
    resize: vertical;
}

.review-form__agree {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.2;
    color: var(--c-gray);
    cursor: pointer;
}

.review-form__agree input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--c-blue-btn);
}

.review-form__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.review-form__submit {
    padding: 14px 32px;
    border: none;
    background: var(--c-blue-btn);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.review-form__submit:hover { filter: brightness(.88); }
.review-form__submit:disabled { opacity: .5; cursor: default; filter: none; }

.review-form__message {
    font-size: 16px;
    line-height: 1.2;
}

.review-form__message--error { color: var(--c-orange); }

.review-form__submit:focus-visible,
.review-form__input:focus-visible {
    outline: 2px solid var(--c-blue-btn);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    .review-form { margin-top: 20px; gap: 14px; }
    .review-form__field { font-size: 16px; }
    .review-form__input { font-size: 16px; padding: 10px 14px; }
    .review-form__textarea { min-height: 120px; }
}

/* End */
/* /bitrix/components/bitrix/breadcrumb/templates/.default/style.css?1712838656585 */
/* /local/templates/mural/styles.css?17872299732272 */
/* /local/templates/mural/template_styles.css?178783599283055 */
