/* patriotika. — тема «Тильда» (13.11.2026, scripts/51-patriotika-tilda): блоки страниц, перенесённых с Wix (wix-row, wix-btn, wix-cols,
   wix-event, wix-gallery, wix-tiles, «Государственные символы»), в стиле Тильды. Прежний файл (тема «Wix») — before/patriotika-tilda-20261113/. */

/* шапка: длинное название РОЦ — в 2 строки рядом с логотипом */
.tl-logo{ max-width: 350px; }
.tl-logo__text{ font-size: 14px; }

/* главная: «Основные направления» — 3 + 2 по центру, номер в кружке */
.pat-dirs{ display: flex; flex-wrap: wrap; justify-content: center; gap: 50px 40px; }
.pat-dirs > .tl-feature{ flex: 0 1 340px; }
.pat-dirs .tl-feature__icon{ font-size: 30px; font-weight: 700; }
.pat-dirs .tl-feature p{ margin-top: 20px; color: var(--tl-text); line-height: 1.55; }

/* главная: галерея «Из жизни РОЦ» — 10 фото ровно в 2 ряда по 5 (на телефоне — по 2) */
.tl-home .tl-gallery{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 960px){ .tl-home .tl-gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* страницы с колонками, событиями, галереями — шире обычной колонки текста */
.tl-text:has(.wix-cols, .wix-event, .wix-gallery, .wix-tiles, .wx-columns){ max-width: 1000px; }

/* ряды «название — кнопка» (документы, положения, методические материалы) */
.tl-text .wix-row{ display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--tl-line); }
.tl-text .wix-row:first-child, .tl-text :not(.wix-row) + .wix-row{ border-top: 1px solid var(--tl-line); }
.tl-text .wix-row > :not(.wix-row__btns){ grid-column: 1; margin: 0; }
.tl-text .wix-row > * + :not(.wix-row__btns){ margin-top: 4px; }
.tl-text .wix-row p, .tl-text .wix-row h2, .tl-text .wix-row h3{ font-size: 17px; line-height: 1.45; font-weight: 400; }
.tl-text .wix-row strong, .tl-text .wix-row b{ font-weight: 600; }
.tl-text .wix-row__btns{ grid-column: 2; grid-row: 1 / span 20; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tl-text a.wix-btn{ display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border: 2px solid var(--tl-accent); border-radius: var(--tl-radius); color: var(--tl-accent); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: none; transition: background .2s, color .2s; }
.tl-text a.wix-btn:hover, .tl-text a.wix-btn:focus-visible{ background: var(--tl-accent); color: var(--tl-btn-text); box-shadow: none; }
.tl-text h4{ color: var(--tl-accent); }

/* основная колонка + колонка справа (кубок, логотип, «Города-герои») */
.tl-text .wix-cols{ display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: start; }
.tl-text .wix-main > :first-child{ margin-top: 0; }
.tl-text .wix-aside{ text-align: center; }
.tl-text .wix-aside p{ margin: 0 0 16px; }
.tl-text .wix-aside img{ max-width: 100%; height: auto; }
.tl-text .wix-aside h4{ margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
.tl-text .wix-aside__box{ margin: 0 0 20px; padding: 20px 16px; border-radius: 12px; background: var(--tl-bg-alt); }
.tl-text .wix-aside__box h4{ margin: 4px 0; font-size: 16px; font-weight: 400; color: var(--tl-text); }
.tl-text .wix-aside__box h4:first-child{ margin-bottom: 12px; font-size: 20px; font-weight: 600; color: var(--tl-heading); }
.tl-text .wix-linkimg img{ max-width: 220px; height: auto; }

/* галереи и плитки */
.tl-text .wix-gallery{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 1.2em 0 2em; }
.tl-text .wix-gallery a.wix-photo{ display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; box-shadow: none; }
.tl-text .wix-gallery img{ display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s; }
.tl-text .wix-gallery a.wix-photo:hover img{ transform: scale(1.04); }
.tl-text .wix-figure{ margin: 1.2em 0 2em; max-width: 720px; }
.tl-text .wix-figure img{ display: block; max-width: 100%; height: auto; }
.tl-text .wix-tiles{ display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px; margin: 1.2em 0 2em; }
.tl-text a.wix-tile{ display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 18px; border-radius: 12px; background: var(--tl-bg); box-shadow: 0 4px 20px rgba(0, 0, 0, .07); color: var(--tl-heading); text-align: center; transition: box-shadow .2s, transform .2s; }
.tl-text a.wix-tile:hover{ box-shadow: 0 8px 28px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.tl-text .wix-tile__img{ display: flex; align-items: center; justify-content: center; height: 150px; }
.tl-text .wix-tile__img img{ max-height: 150px; width: auto; max-width: 100%; margin: 0; }
.tl-text .wix-tile__title{ font-weight: 600; line-height: 1.35; }

/* «События»: карточка — заголовок, текст, фото справа (текст обтекает) */
.tl-text .wix-event{ display: flow-root; margin: 0 0 40px; padding: 32px 36px; border-radius: 12px; background: var(--tl-bg-alt); }
.tl-text .wix-event__head{ margin: 0 0 14px; }
.tl-text .wix-event__head > *{ margin: 0; color: var(--tl-heading); font-size: 24px; font-weight: 600; line-height: 1.3; text-align: left; }
.tl-text .wix-event > .wix-event__media{ float: right; width: 300px; max-width: 42%; margin: 4px 0 16px 30px; }
.tl-text .wix-event a.wix-photo{ display: block; box-shadow: none; }
.tl-text .wix-event__media img{ display: block; width: 100% !important; height: auto !important; border-radius: 4px; }
.tl-text .wix-event__media .wix-gallery{ grid-template-columns: 1fr; margin: 0; }
.tl-text .wix-event__body{ display: block; }
.tl-text .wix-event__text p{ margin: 0 0 .7em; }

/* списки файлов */
.tl-text .file-list{ margin: 1em 0 1.6em; padding: 20px 24px; border-radius: 12px; background: var(--tl-bg-alt); }
.tl-text .file-list__title{ margin: 0 0 8px; font-weight: 600; }
.tl-text .file-list ul{ margin: 0; padding-left: 1.2em; }
.tl-text .file-size{ color: var(--tl-muted); font-size: .85em; }

/* «Государственные символы»: название уже в заголовке страницы — над колонками только герб и флаг */
.tl-text .pat-sym__head{ display: flex; justify-content: center; align-items: center; gap: 40px; margin: 0 0 40px; }
.tl-text .pat-sym__head .wx-pagetitle{ display: none; }
.tl-text .pat-sym__head img:first-child{ width: 83px; height: auto; }
.tl-text .pat-sym__head img:last-child{ width: 116px; height: auto; }
.tl-text .wx-columns{ display: grid; grid-template-columns: var(--wx-cols, 1fr 1fr); gap: 48px; align-items: start; }
.tl-text .wx-column > :first-child{ margin-top: 0; }
.tl-text .pat-sym__row{ display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--tl-line); }
.tl-text .pat-sym__row:first-child{ border-top: 1px solid var(--tl-line); }
.tl-text .pat-sym__row p{ margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--tl-heading); }
.tl-text .pat-sym__row a{ flex: none; box-shadow: none; }
.tl-text .pat-sym__row img{ display: block; height: auto; }
.tl-text .pat-sym__video{ max-width: 434px; margin: 30px auto 12px; }
.tl-text .pat-sym__video a{ display: block; box-shadow: none; }
.tl-text .pat-sym__video img, .tl-text .pat-sym__pic img{ display: block; width: 100%; height: auto; }
.tl-text .pat-sym__cap{ margin: 0 0 24px; font-size: 15px; color: var(--tl-muted); text-align: center; }
.tl-text .pat-sym__anthem{ padding: 28px 24px; border-radius: 12px; background: var(--tl-bg-alt); font-size: 17px; line-height: 1.6; text-align: center; }
.tl-text .pat-sym__anthem p{ margin: 0 0 1em; }
.tl-text .pat-sym__anthem p:last-child{ margin-bottom: 0; }
.tl-text .pat-sym__anthem .pat-sym__anthem-h{ color: var(--tl-accent); font-size: 20px; font-weight: 600; }
.tl-text .pat-sym__pic{ max-width: 262px; margin: 24px auto 0; }

/* правки после осмотра (13.11): плитки по центру, плитка без картинки — название по центру; «Контакты» (форма + карта) — обычная колонка;
   подпись после превью видео — вплотную к нему; на страницах с правой колонкой ряды вне колонок — той же ширины, что в колонке */
.tl-text .wix-tiles{ grid-template-columns: repeat(auto-fit, minmax(210px, 240px)); justify-content: center; }
.tl-text a.wix-tile:not(:has(.wix-tile__img)){ justify-content: center; }
.tl-text--wide:has(form):not(:has(table, details)){ max-width: 760px; }
.tl-text .wix-linkimg{ margin: 1.2em 0 .4em; }
.tl-text .wix-linkimg + :is(h3, h4){ margin-top: .3em; margin-bottom: 1.4em; }
.tl-text .wix-linkimg a[href*=".mp4" i]{ display: inline-block; position: relative; box-shadow: none; }
.tl-text .wix-linkimg a[href*=".mp4" i]::after{ content: "▶"; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 52px; text-align: center; }
.tl-text:has(> .wix-cols) > .wix-row{ max-width: calc(100% - 288px); }
@media (max-width: 760px){ .tl-text:has(> .wix-cols) > .wix-row{ max-width: none; } }

/* видео в окне (кнопки «Просмотреть», site.js) */
.vpop{ position: fixed; inset: 0; margin: auto; width: min(960px, 94vw); max-width: 94vw; height: fit-content; max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #000; overflow: hidden; }
.vpop::backdrop{ background: rgba(0, 0, 0, .85); }
.vpop__bar{ display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 14px; background: #111; color: #fff; font-size: 15px; line-height: 1.3; }
.vpop__close{ flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.vpop__close:hover, .vpop__close:focus-visible{ background: rgba(255, 255, 255, .25); }
.vpop__video{ display: block; width: 100%; max-height: 80vh; background: #000; }

@media (max-width: 760px){
  .tl-logo{ max-width: none; }
  .pat-dirs{ gap: 36px; }
  .tl-text .wix-cols, .tl-text .wx-columns{ grid-template-columns: 1fr; gap: 30px; }
  .tl-text .wix-row{ grid-template-columns: 1fr; }
  .tl-text .wix-row__btns{ grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 12px; }
  .tl-text .wix-gallery, .tl-text .wix-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tl-text .wix-event{ display: flex; flex-direction: column; padding: 22px 18px; }
  .tl-text .wix-event__head{ order: 1; } .tl-text .wix-event__body{ order: 2; }
  .tl-text .wix-event > .wix-event__media{ order: 3; float: none; width: auto; max-width: none; margin: 14px 0 0; }
  .tl-text .wix-event__head > *{ font-size: 20px; }
  .tl-text .pat-sym__head{ gap: 24px; }
}
