/*
Theme Name: Ruscenter
Theme URI: https://www.ruscenter.ru/
Author: Ruscenter
Description: Responsive WordPress theme preserving the visual language of the original Ruscenter website.
Version: 1.15.1
Text Domain: ruscenter
*/

:root {
  --ink: #050808;
  --muted: #666;
  --paper: #fff;
  --turquoise: #69d5cd;
  --lavender: #c1afe5;
  --lime: #c4e86f;
  --green: #8eb23a;
  --content: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%; margin: 0; color: var(--ink);
  background: #f1f1f0 url("assets/legacy-bg.jpg") repeat;
  font: 14px/1.45 Arial, "Trebuchet MS", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--ink); }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p, ul, ol { margin-top: 0; }
.container { width: min(100%, var(--content)); margin-inline: auto; }
.site-shell { min-height: 100vh; overflow: hidden; }
.site-main { min-height: 420px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 9px 14px; background: #fff; }

/* Шапка — композиция старого сайта */
.site-header { background: transparent; }
.legacy-header { position: relative; height: 230px; }
.brand { position: absolute; top: 18px; left: 35px; display: block; width: 130px; height: 187px; text-decoration: none; }
.brand img { display: block; width: 124px; height: 179px; object-fit: contain; }
.header-tools { position: absolute; top: 60px; right: 35px; display: flex; align-items: center; flex-direction: row-reverse; gap: 24px; }
.vk-link { display: block; flex: 0 0 45px; width: 45px; height: 47px; background: url("assets/legacy-social.png") no-repeat -131px 0; }
.header-search { display: flex; align-items: center; gap: 10px; color: #999; font-size: 16px; }
.search-field-wrap { position: relative; display: block; }
.header-search input { width: 277px; height: 35px; margin: 0; padding: 5px 37px 5px 8px; border: 2px solid #ccc; background: #fff; font: 14px Arial, sans-serif; }
.header-search button { position: absolute; top: 3px; right: 3px; width: 29px; height: 29px; padding: 0; border: 0; background: #fff; cursor: pointer; }
.header-search button::before { content: ""; position: absolute; top: 7px; left: 7px; width: 10px; height: 10px; border: 3px solid #d7d7d7; border-radius: 50%; }
.header-search button::after { content: ""; position: absolute; top: 19px; left: 19px; width: 7px; height: 3px; background: #d7d7d7; transform: rotate(45deg); transform-origin: left center; }
.primary-nav { position: absolute; right: 35px; bottom: 27px; }
.primary-nav ul { display: flex; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-nav li { margin-left: 27px; padding-top: 23px; border-top: 4px solid transparent; }
.primary-nav li.current-menu-item, .primary-nav li.current_page_item { border-top-color: var(--lavender); }
.primary-nav a { color: var(--ink); font-size: 18px; line-height: 18px; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { color: #675783; }
.nav-toggle { display: none; }

/* Главная */
.legacy-slider { position: relative; height: 371px; margin-bottom: 21px; padding-bottom: 21px; background: linear-gradient(to bottom, transparent 92%, rgba(0,0,0,.16) 100%); }
.legacy-slider::after { content: ""; position: absolute; z-index: -1; right: 5px; bottom: 18px; left: 5px; height: 18px; border-radius: 50%; box-shadow: 0 8px 13px rgba(0,0,0,.36); }
.legacy-slides { position: relative; height: 350px; overflow: hidden; background: var(--lavender); }
.legacy-slide { position: absolute; z-index: 0; inset: 0; display: block; height: 350px; overflow: visible; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.legacy-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.legacy-slide img { position: absolute; top: 0; right: 50px; display: block; width: 971px; max-width: none; height: 350px; margin: 0; object-fit: fill; }
.legacy-slider-control { position: absolute; z-index: 3; top: 0; bottom: 0; width: 64px; padding: 0; border: 0; background: transparent; opacity: .5; cursor: pointer; transition: opacity .2s ease; }
.legacy-slider-control:hover, .legacy-slider-control:focus-visible { opacity: 1; outline: none; }
.legacy-slider-control::before { content: ""; position: absolute; top: 50%; width: 19px; height: 19px; border-top: 4px solid #fff; border-left: 4px solid #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.legacy-slider-prev { left: 0; }
.legacy-slider-next { right: 0; }
.legacy-slider-prev::before { left: 28px; transform: translateY(-50%) rotate(-45deg); }
.legacy-slider-next::before { right: 28px; transform: translateY(-50%) rotate(135deg); }
.legacy-block { position: relative; padding-bottom: 21px; }
.legacy-block::after { content: ""; position: absolute; z-index: -1; right: 18px; bottom: 18px; left: 18px; height: 12px; border-radius: 50%; box-shadow: 0 8px 13px rgba(0,0,0,.28); }
.legacy-block-inner { padding: 38px 45px 10px; }
.legacy-news { margin-bottom: 28px; }
.legacy-news .legacy-block-inner { background: #fff; }
.legacy-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.legacy-heading h1, .legacy-heading h2 { padding-bottom: 31px; font-size: 22px; text-transform: uppercase; }
.legacy-news .legacy-heading h1 { color: var(--green); }
.legacy-heading > a { margin-top: 3px; border-bottom: 1px solid currentColor; text-decoration: none; }
.legacy-heading > a::after, .read-more::after { content: " \00bb"; }
.legacy-news-grid, .legacy-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.legacy-news-item { min-height: 150px; padding-bottom: 32px; }
.legacy-date { padding-bottom: 13px; color: var(--green); font-size: 17px; font-weight: bold; line-height: 18px; }
.legacy-round-image { float: left; display: block; width: 92px; height: 92px; margin: 4px 18px 8px 0; overflow: hidden; border-radius: 50%; }
.legacy-round-image img { width: 92px; height: 92px; object-fit: cover; }
.legacy-news-text { min-height: 100px; font-size: 14px; line-height: 20px; }
.legacy-news-text strong { display: block; margin-bottom: 5px; font-size: 15px; }
.legacy-news-text strong a { text-decoration: none; }
.legacy-news-text p { margin: 0; }
.read-more { color: #799f22; border-bottom: 1px solid currentColor; text-decoration: none; white-space: nowrap; }
.legacy-about { min-height: 280px; margin-bottom: 28px; padding: 30px 45px 25px; }
.legacy-about h2 { padding: 12px 0 25px; font-size: 28px; text-transform: uppercase; }
.legacy-about p { max-width: 585px; font-size: 14px; line-height: 19px; }
.legacy-about-image { position: relative; float: right; width: 305px; margin: -28px -20px 0 20px; }
.legacy-about-image img { width: 252px; height: 252px; border-radius: 50%; }
.legacy-about-image::after { content: "\203a"; position: absolute; top: 92px; right: 24px; color: rgba(5,8,8,.35); font-size: 76px; font-weight: 200; line-height: 1; }
.legacy-projects .legacy-block-inner { min-height: 250px; margin-left: 20px; padding-right: 35px; padding-left: 25px; background: var(--lavender); box-shadow: 50vw 0 0 var(--lavender); }
.legacy-project-grid { gap: 42px; }
.legacy-project-item { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 8px 0 30px; font-size: 12px; line-height: 18px; }
.legacy-project-item .legacy-round-image { float: none; margin: 0; }
.legacy-project-item h3 { padding: 8px 0 10px; font-size: 15px; }
.legacy-project-item h3 a { text-decoration: none; }

/* Внутренние страницы */
.page-hero { padding: 0; background: transparent; }
.page-hero > .container { min-height: 112px; padding: 30px 35px 18px; background: #fff; }
.page-hero h1 { padding: 8px 0 15px; font-size: 28px; line-height: 32px; }
.breadcrumbs { color: #666; font-size: 15px; }
.breadcrumbs a { color: #666; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 218px; gap: 0; padding: 0 0 0 35px; background: #fff; }
.content-layout > article:only-child { grid-column: 1 / -1; }
.entry-content { min-width: 0; padding: 12px 35px 45px 0; font-size: 14px; line-height: 1.55; }
.entry-content h2 { padding: 18px 0 20px; font-size: 22px; }
.entry-content h3 { padding: 14px 0 15px; font-size: 17px; }
.entry-content p, .about-copy p { margin-bottom: 12px; }
.entry-content ul, .entry-content ol { margin-bottom: 20px; padding-left: 22px; }
.entry-content img { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 9px; border: 1px solid #ddd; }
.entry-content blockquote { margin: 25px 0; padding: 5px 0 5px 20px; border-left: 5px solid var(--lavender); }
.entry-meta { margin-bottom: 22px; color: #666; }
.sidebar { min-height: 100%; padding: 44px 25px 55px; background: var(--turquoise); }
.sidebar h2 { padding-bottom: 19px; font-size: 17px; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { margin-bottom: 10px; }
.sidebar a { font-weight: bold; }

/* Архивы и карточки */
.archive-wrap { padding: 30px 35px 55px; background: #fff; }
.archive-grid { display: block; }
.card { position: relative; min-height: 180px; margin-bottom: 38px; padding: 28px 32px; overflow: hidden; border-right: 20px solid var(--lavender); border-left: 20px solid var(--lavender); background: #fff; box-shadow: 0 12px 15px -17px #000; }
.card:nth-child(3n+1) { border-right-color: var(--lime); border-left-color: transparent; }
.card:nth-child(3n+2) { border-right-color: transparent; border-left-color: #7ecbd1; }
.card-media { float: left; display: block; width: 92px; height: 92px; margin: 35px 24px 10px 0; overflow: hidden; border-radius: 50%; }
.card-media img { width: 92px; height: 92px; object-fit: cover; }
.card-body { min-height: 120px; }
.card-meta { padding-bottom: 9px; color: var(--turquoise); font-size: 16px; font-weight: bold; }
.card:nth-child(3n+1) .card-meta { color: #9aba4c; }
.card:nth-child(3n+2) .card-meta { color: #63b7bd; }
.card h3 { padding-bottom: 12px; font-size: 21px; line-height: 26px; }
.card h3 a { text-decoration: none; }
.card-excerpt { font-size: 13px; line-height: 18px; }
.card-excerpt p { margin-bottom: 7px; }
.card-link { color: var(--turquoise); text-decoration: none; border-bottom: 1px solid currentColor; }
.card-link::after { content: " \00bb"; }
.pagination { margin-top: 30px; text-align: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pagination .page-numbers { min-width: 27px; padding: 3px 7px; color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--turquoise); }
.year-group + .year-group { margin-top: 40px; }
.year-label { display: inline-block; margin-bottom: 20px; padding: 5px 10px; background: var(--lavender); font-weight: bold; }
.empty-state { padding: 40px; background: #fff; text-align: center; }

/* Контакты и формы */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 25px 0; }
.contact-card { min-height: 150px; padding: 18px; border-left: 6px solid var(--lavender); background: #f7f7f7; }
.contact-card h3 { padding: 0 0 12px; }
.contact-form { max-width: 650px; margin-top: 30px; padding: 25px; background: #f5f5f5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 12px; font-weight: bold; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 6px; padding: 7px; border: 2px solid #ccc; border-radius: 0; background: #fff; font: inherit; }
.contact-form .button, .contact-form button { padding: 9px 22px; border: 0; border-radius: 18px; background: #69cad5; color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; }
.form-notice { margin-bottom: 16px; padding: 10px; background: #def3e8; }
.form-notice.error { background: #f9d9d9; }
.legacy-note { margin: 25px 0; padding: 15px 20px; border-left: 5px solid var(--lavender); background: #f7f4fc; }

/* Подвал */
.site-footer { min-height: 215px; color: #666; background: transparent; }
.footer-inner { display: grid; grid-template-columns: 56px 320px 1fr; gap: 18px; align-items: start; padding: 55px 35px 35px; }
.footer-logo img { width: 56px; height: 58px; }
.footer-copy { padding-top: 4px; font-size: 10px; line-height: 14px; }
.footer-copy strong { display: block; margin-bottom: 12px; font-size: 14px; font-weight: normal; }
.footer-copy span { display: block; }
.footer-contacts { display: grid; grid-template-columns: 165px 160px 1fr; gap: 0; padding-top: 2px; font-size: 14px; font-weight: bold; line-height: 18px; }
.footer-contacts div { display: flex; flex-direction: column; }
.footer-contacts small { display: block; padding-bottom: 3px; font-size: 12px; font-weight: normal; line-height: 12px; }
.footer-contacts a { color: #666; }

/* Индивидуальные макеты основных разделов */
.section-canvas { background: #fff; }
.section-main-with-sidebar { display: grid; grid-template-columns: 762px 218px; align-items: stretch; }
.section-primary { min-width: 0; padding: 40px 35px 45px; }
.section-primary > h1, .contacts-section > h1 { padding-bottom: 28px; font-size: 28px; line-height: 32px; }
.legacy-sticker-sidebar { padding: 44px 26px 50px; background: var(--turquoise); }
.legacy-sticker-sidebar h2 { padding-bottom: 20px; font-size: 20px; line-height: 26px; }
.sticker-list { display: flex; align-items: center; flex-direction: column; }
.sticker-menu { --paper-rotation: -2deg; position: relative; z-index: 1; width: 160px; height: 82px; margin-bottom: 25px; perspective: 900px; transform: rotate(var(--paper-rotation)); transition: z-index 0s .25s; }
.sticker-menu:nth-child(even) { --paper-rotation: 4deg; }
.sticker-menu:nth-child(3n) { --paper-rotation: -3deg; }
.sticker-menu:nth-child(5n) { --paper-rotation: 5deg; }
.sticker-menu:hover, .sticker-menu:focus-within, .sticker-menu.is-open { z-index: 30; transform: rotate(0); transition-delay: 0s; }
.sticker-menu.is-selected { z-index: 20; transform: rotate(0); }
.sticker-menu.is-selected .sticker-card { box-shadow: 0 0 0 3px rgba(255,255,255,.9), 7px 8px 10px rgba(33,33,33,.38); }
.sticker-card { display: block; width: 160px; height: 82px; padding: 0; border: 0; border-radius: 3px; color: #555; background: transparent; box-shadow: 5px 5px 7px rgba(33,33,33,.4); cursor: pointer; font: inherit; text-transform: uppercase; }
.sticker-card-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s ease; }
.sticker-menu:hover .sticker-card-inner, .sticker-menu:focus-within .sticker-card-inner, .sticker-menu.is-open .sticker-card-inner { transform: rotateY(180deg); }
.sticker-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px 10px; border-radius: 3px; background: linear-gradient(to bottom,#e2eabe,#d2ec96); backface-visibility: hidden; font-size: 16px; font-weight: bold; text-align: center; }
.sticker-back { color: #405020; background: linear-gradient(to bottom,#d2ec96,#e9f3c3); transform: rotateY(180deg); }
.sticker-back span { padding-left: 4px; font-size: 24px; line-height: 1; }
.sticker-links { position: absolute; z-index: 50; top: -8px; right: calc(100% + 12px); width: 430px; max-height: 360px; padding: 18px 20px; overflow: auto; border: 1px solid #a9c86a; border-radius: 4px; background: #fff; box-shadow: 8px 10px 24px rgba(0,0,0,.24); opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.sticker-menu:hover .sticker-links, .sticker-menu:focus-within .sticker-links, .sticker-menu.is-open .sticker-links { opacity: 1; visibility: visible; transform: translateX(0); }
.sticker-links strong { display: block; margin-bottom: 10px; color: #6f9124; font-size: 17px; text-transform: uppercase; }
.sticker-links ul { margin: 0; padding: 0; list-style: none; }
.sticker-links li { margin: 0; padding: 6px 0; border-top: 1px solid #e5e5e5; }
.sticker-links li:first-child { border-top: 0; }
.sticker-links a { display: block; color: var(--ink); font-size: 13px; font-weight: normal; line-height: 17px; }
.sticker-links p { margin: 0; }

/* Общие списки направлений для «Событий» и «О центре» */
.sticker-default-view > h1, .sticker-direction-panel > h1 { padding-bottom: 28px; font-size: 28px; line-height: 32px; }
.sticker-default-view[hidden], .sticker-direction-panel[hidden], .events-list-panel.is-direction-hidden { display: none; }
.sticker-direction-panel { min-height: 540px; }
.sticker-direction-list { margin: 20px 0 0; padding: 0; list-style: none; }
.sticker-direction-list li { position: relative; min-height: 34px; margin: 0 0 20px; padding: 1px 0 0 38px; font-size: 16px; line-height: 22px; }
.sticker-direction-list li::before { content: "✓"; position: absolute; top: -5px; left: 2px; color: #8fca25; font-size: 30px; font-weight: bold; line-height: 1; text-shadow: 1px 2px 2px rgba(0,0,0,.18); transform: rotate(-8deg); }
.sticker-direction-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sticker-direction-list a:hover { color: #66851f; }
.sticker-modal-open { overflow: hidden; }
.sticker-modal[hidden] { display: none; }
.sticker-modal { position: fixed; z-index: 100000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 35px; background: rgba(0,0,0,.58); }
.sticker-modal-dialog { position: relative; width: min(780px,100%); max-height: calc(100vh - 70px); padding: 35px 42px 40px; overflow: auto; border: 1px solid #a9c86a; border-radius: 4px; background: #fff; box-shadow: 12px 16px 42px rgba(0,0,0,.42); }
.sticker-modal-dialog h2 { margin: 0 45px 24px 0; font-size: 27px; line-height: 34px; }
.sticker-modal-close { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; padding: 0 0 4px; border: 0; border-radius: 50%; color: #555; background: #d9efa8; cursor: pointer; font: 34px/38px Arial,sans-serif; }
.sticker-modal-close:hover, .sticker-modal-close:focus-visible { color: #000; background: #c7e67e; outline: 2px solid #789a2f; outline-offset: 2px; }
.sticker-modal-body { font-size: 15px; line-height: 1.55; }
.sticker-modal-body > :first-child { margin-top: 0; }
.sticker-modal-body > :last-child { margin-bottom: 0; }
.sticker-modal-loading { color: var(--muted); }

/* События */
.events-primary { padding-bottom: 18px; }
.events-map { position: relative; width: 419px; height: 471px; margin: 0 auto 20px; background: url("assets/events-spiral.png") no-repeat center; }
.event-year-node { position: absolute; z-index: 1; width: 44px; color: #000; font-size: 11px; text-align: center; transform: translate(-3px,-3px); }
.event-year-node.is-open { z-index: 40; }
.event-year-trigger { display: block; color: #000; text-decoration: none; }
.event-marker { display: block; width: 23px; height: 23px; margin: 0 auto -6px; border: 5px solid #c4b2e5; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(193,175,229,.25); }
.event-year { display: inline-block; min-width: 34px; padding: 4px 5px 5px; border-radius: 3px; background: rgba(218,209,235,.88); }
.event-year-node:hover .event-marker, .event-year-node.is-open .event-marker, .event-year-trigger:focus-visible .event-marker { background: var(--lavender); }
.event-year-popover { position: absolute; z-index: 50; right: auto; bottom: calc(100% + 9px); left: -12px; width: 282px; padding: 19px 14px; overflow: visible; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 21px -5px #666; text-align: left; animation: event-popover-in .2s ease-out; }
.event-year-popover[hidden] { display: none; }
.event-year-popover::after { position: absolute; bottom: -18px; left: 22px; width: 0; height: 0; border: 9px solid transparent; border-top-color: #fff; content: ""; filter: drop-shadow(0 3px 2px rgba(80,80,80,.22)); }
.popover-left .event-year-popover { right: -12px; left: auto; }
.popover-left .event-year-popover::after { right: 22px; left: auto; }
.event-year-popover strong { display: block; margin-bottom: 10px; color: #c1afe5; font-size: 13px; font-weight: bold; line-height: 14px; }
.event-year-popover ul { max-height: 250px; margin: 0; padding: 0 5px 0 25px; overflow-y: auto; list-style: square; }
.event-year-popover li { margin: 0; padding: 0 0 10px; border: 0; }
.event-year-popover li:last-child { padding-bottom: 0; }
.event-year-popover a { color: var(--ink); font-size: 14px; font-weight: bold; line-height: 16px; text-decoration: none; }
.event-year-popover a:hover, .event-year-popover a:focus-visible { text-decoration: underline; }
.event-year-popover p { margin: 0; font-size: 12px; line-height: 16px; }
@keyframes event-popover-in { from { opacity: 0; } to { opacity: 1; } }
.events-list-panel { padding: 38px 35px 55px; border-top: 1px solid #ddd; background: #fff; }
.events-list-panel > h2 { padding-bottom: 25px; font-size: 22px; }
.events-list-panel .card { margin-right: 0; margin-left: 0; }

/* О центре */
.about-primary { padding-right: 29px; }
.about-scheme { position: relative; width: 698px; height: 470px; margin: 0 auto 30px; background: url("assets/about-scheme-arrows.png") no-repeat center bottom; }
.about-center-node, .about-node-row a { display: flex; align-items: center; justify-content: center; border: 15px solid #dbdee7; border-radius: 50%; text-align: center; text-decoration: none; text-transform: uppercase; box-shadow: inset 2px 2px 1px #fff, 1px 1px 1px rgba(0,0,0,.5); }
.about-center-node { position: absolute; top: 0; left: 244px; width: 210px; height: 210px; padding: 18px; color: #fff; background: #a995c0; font-weight: bold; }
.about-node-row { position: absolute; right: 3px; bottom: 12px; left: 3px; display: flex; justify-content: space-between; }
.about-node-row a { width: 180px; height: 180px; color: #fff; background: #73cac7; font-size: 18px; font-weight: bold; }
.about-node-row a:hover { transform: scale(1.05); box-shadow: inset 3px 3px 1px #fff, 6px 6px 3px rgba(0,0,0,.25); }
.about-scheme[hidden], .about-structure-scheme[hidden] { display: none; }
.about-structure-scheme { position: relative; width: 698px; height: 740px; margin: 0 auto 30px; background: url("assets/about-scheme-arrows.png") no-repeat center bottom; }
.about-structure-node { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 200px; height: 200px; padding: 22px; border: 15px solid #dbdee7; border-radius: 50%; color: #707171; background: #cde07d; box-shadow: inset 2px 2px 1px #fff, 1px 1px 1px rgba(0,0,0,.5); font-size: 14px; font-weight: bold; line-height: 18px; text-align: center; text-decoration: none; text-transform: uppercase; transition: transform .15s linear, box-shadow .15s linear; }
.about-structure-node:hover, .about-structure-node:focus-visible { z-index: 4; outline: 0; box-shadow: inset 3px 3px 1px #fff, 6px 6px 3px rgba(0,0,0,.3); transform: scale(1.06); }
.about-structure-node--top { top: 0; left: 240px; width: 210px; height: 210px; }
.about-structure-node--middle-left { top: 270px; left: 25px; }
.about-structure-node--center { top: 270px; left: 240px; width: 210px; height: 210px; color: #fff; background: #a995c0; }
.about-structure-node--middle-right { top: 270px; left: 475px; }
.about-structure-node--bottom-left { top: 540px; left: 25px; }
.about-structure-node--bottom-center { top: 540px; left: 250px; }
.about-structure-node--bottom-right { top: 540px; left: 475px; }
.about-structure-back { position: absolute; z-index: 5; top: 8px; left: 0; padding: 6px 0; border: 0; color: #666; background: transparent; cursor: pointer; font: 14px Arial,sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.about-copy { scroll-margin-top: 20px; }
.about-copy > h2, .about-copy > .article-view { display: none; }
.about-copy > h1 { margin-top: 36px; padding: 22px 0 18px; border-top: 3px solid var(--lavender); font-size: 24px; }
.about-partners { display: grid; grid-template-columns: repeat(2,280px); gap: 0; margin: 0; padding: 0; list-style: none; }
.about-partners li { display: block; width: 280px; margin: 0; padding: 15px; text-align: center; }
.about-partners img { display: block; width: 250px; height: 70px; padding: 3px; border: 2px solid #cee877; object-fit: contain; }
.about-partners span { display: block; width: 250px; padding-top: 5px; font-size: 14px; font-weight: bold; line-height: normal; text-align: center; }

/* Проекты */
.projects-section { min-height: 520px; padding: 0 30px 32px; overflow: hidden; }
.projects-map-menu { position: relative; width: 920px; height: 474px; margin: 0 auto; background: url("assets/projects-map.png") no-repeat center; }
.project-map-node { position: absolute; display: flex; align-items: flex-start; color: #748a80; font-size: 18px; line-height: 22px; text-decoration: none; }
.project-map-node img { flex: 0 0 49px; width: 49px; height: 49px; margin-right: 10px; }
.project-map-node:hover img { width: 55px; height: 55px; }
.project-map-node:hover span { font-size: 20px; }
.project-map-node-1 { top: 8px; left: 64px; color: #9cad92; }
.project-map-node-2 { top: 73px; left: 211px; color: #87a09c; }
.project-map-node-3 { top: 22px; left: 482px; color: #737f9b; }
.project-map-node-4 { top: 95px; left: 653px; color: #958ea5; }
.project-map-node-5 { top: 362px; left: 20px; color: #b9b574; }
.project-map-node-6 { top: 419px; left: 230px; color: #b58e6b; }
.project-map-node-7 { top: 379px; left: 427px; color: #c07878; }
.project-map-node-8 { top: 330px; left: 684px; color: #b7698e; }
.projects-map-menu[hidden], .project-detail-panel[hidden], .project-detail-submenus [hidden], .project-detail-link-columns[hidden], .project-detail-content[hidden] { display: none; }
.project-detail-panel { position: relative; min-height: 475px; margin: 0 -30px; padding: 100px 30px 42px 35px; background: url("assets/project-detail-bg.png") no-repeat center 80px; }
.project-detail-back { position: absolute; z-index: 3; top: 15px; left: -70px; width: 138px; height: 136px; padding: 0; border: 0; background: transparent url("assets/project-detail-back.png") no-repeat center; cursor: pointer; transition: left .3s linear; }
.project-detail-back:hover, .project-detail-back:focus-visible { left: 0; outline: 0; }
.project-detail-next { position: absolute; z-index: 3; top: -12px; right: -55px; width: 109px; height: 109px; padding: 0; border: 0; background: transparent; cursor: pointer; transition: right .3s linear; }
.project-detail-next:hover, .project-detail-next:focus-visible { right: 0; outline: 0; }
.project-detail-next img { display: block; width: 109px; height: 109px; }
.project-detail-figure { position: relative; float: left; width: 230px; min-height: 330px; padding-top: 40px; }
.project-detail-figure > img { display: block; width: 210px; height: 205px; }
.project-detail-title { width: 210px; margin-top: 14px; font-size: 22px; line-height: 24px; text-align: center; text-transform: uppercase; }
.project-detail-panel-1 .project-detail-title, .project-detail-panel-1 .project-detail-links { color: #9cad92; }
.project-detail-panel-2 .project-detail-title, .project-detail-panel-2 .project-detail-links { color: #87a09c; }
.project-detail-panel-3 .project-detail-title, .project-detail-panel-3 .project-detail-links { color: #737f9b; }
.project-detail-panel-4 .project-detail-title, .project-detail-panel-4 .project-detail-links { color: #958ea5; }
.project-detail-panel-5 .project-detail-title, .project-detail-panel-5 .project-detail-links { color: #b9b574; }
.project-detail-panel-6 .project-detail-title, .project-detail-panel-6 .project-detail-links { color: #b58e6b; }
.project-detail-panel-7 .project-detail-title, .project-detail-panel-7 .project-detail-links { color: #c07878; }
.project-detail-panel-8 .project-detail-title, .project-detail-panel-8 .project-detail-links { color: #b7698e; }
.project-detail-link-columns { display: grid; grid-template-columns: minmax(225px,1fr) minmax(0,1.7fr); float: left; width: 675px; min-height: 100px; margin-top: 50px; background: url("assets/project-detail-list-bg.png") repeat-y left top; font-family: Arial, "Trebuchet MS", sans-serif; }
.project-detail-links, .project-detail-submenus ul { margin: 15px 0; padding: 0; list-style: none; }
.project-detail-links { min-width: 0; }
.project-detail-links li, .project-detail-submenus li { margin: 0 0 5px 20px; padding: 5px 10px 5px 22px; background: url("assets/project-detail-bullet.png") no-repeat 0 8px; }
.project-detail-links a, .project-detail-submenus a { color: #111; font-size: 16px; font-style: italic; line-height: 20px; }
.project-detail-links a:hover, .project-detail-links a:focus-visible, .project-detail-links a.is-active { color: #e23e7b; text-decoration: none; }
.project-detail-submenus { min-width: 0; }
.project-detail-submenus a:hover, .project-detail-submenus a:focus-visible { color: #e23e7b; text-decoration: none; }
.project-detail-content { float: left; width: 675px; min-height: 250px; margin-top: 50px; padding: 20px 35px 35px 40px; color: #231f20; background: #f2f3f4; font-family: Arial, "Trebuchet MS", sans-serif; }
.project-detail-content-header { display: flex; align-items: center; gap: 14px; min-height: 82px; margin-bottom: 20px; padding: 0 0 18px; border-bottom: 8px solid #dfe2e9; }
.project-detail-content-header button { flex: 0 0 56px; width: 56px; height: 56px; padding: 0 0 5px; border: 0; border-radius: 50%; color: #fff; background: #cdd1dc; cursor: pointer; font: 45px/51px Arial,sans-serif; }
.project-detail-content-header button:hover, .project-detail-content-header button:focus-visible { background: #b8bdca; outline: 0; }
.project-detail-content-header h2 { margin: 0; color: #6c6c6c; font-size: 24px; font-style: italic; line-height: 29px; }
.project-detail-content-body { font-size: 16px; line-height: 1.45; }
.project-detail-content-body p, .project-detail-content-body ul, .project-detail-content-body ol { margin-bottom: 14px; }
.project-detail-content-body > :last-child { margin-bottom: 0; }
.project-detail-content-loading { color: #777; font-style: italic; }
.project-detail-panel::after { display: table; clear: both; content: ""; }

/* Новости */
.news-title .container { padding: 35px 30px 28px; }
.news-title h1 { font-size: 28px; line-height: 32px; }
.news-archive .archive-wrap { padding: 0 0 55px; background: transparent; }
.news-archive .card { min-height: 222px; padding-top: 52px; padding-bottom: 45px; }
.news-archive .card:nth-child(odd) { margin-right: 110px; margin-left: calc(50% - 50vw); padding-left: calc(50vw - 455px); border-left: 0; }
.news-archive .card:nth-child(even) { margin-right: calc(50% - 50vw); margin-left: 110px; border-right: 0; }
.news-archive .card-media { margin-top: 20px; }

/* Контакты */
.contacts-section { padding: 40px 35px 55px; }
.contacts-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px 28px; padding: 10px 0 0; }
.contacts-content > p { display: none; }
.contacts-list-view-item { min-height: 188px; }
.contacts-list-view-item > p { display: none; }
.contacts-list-view-item .img { float: left; width: 130px; height: 130px; margin-right: 18px; overflow: hidden; border-radius: 50%; }
.contacts-list-view-item .img img { width: 130px; height: 130px; object-fit: cover; }
.contacts-list-view-item-content { min-width: 0; margin-left: 148px; padding-top: 5px; font-size: 16px; line-height: 24px; }
.contacts-list-view-item-content h2 { padding: 0 0 15px; font-size: 20px; line-height: 24px; }
.contacts-list-view-item-content .title { padding-bottom: 4px; }
.contacts-list-view-item-content p { margin-bottom: 4px; }
.contacts-list-view-item-content a { color: #69d5cd; }
.send-message { display: inline-block; min-height: 38px; margin-top: 6px; padding: 7px 0 7px 45px; color: var(--ink) !important; background: url("assets/mail-icon.png") no-repeat left center; font-weight: bold; text-decoration-line: underline; text-decoration-style: dashed; text-underline-offset: 4px; }
.contacts-content > h2, .contacts-content > h2 + p, .contacts-content > .contact-form { grid-column: 1 / -1; }
.contacts-content > h2 { margin-top: 10px; padding: 26px 0 0; border-top: 3px solid var(--lavender); font-size: 22px; }
.contacts-content > h2 + p { display: block; }
.contacts-content > p[hidden] { display: none; }
.contacts-content .contact-form { scroll-margin-top: 20px; }
.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; z-index: 100000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.62); }
.contact-modal-dialog { position: relative; width: min(700px,100%); max-height: calc(100vh - 48px); padding: 30px 30px 50px; border-right: 20px solid var(--lime); border-bottom: 20px solid var(--lime); background: #fff; box-shadow: 5px 8px 12px rgba(0,0,0,.45); overflow: visible; }
.contact-modal-dialog::before, .contact-modal-dialog::after { position: absolute; right: -20px; width: 300px; height: 20px; background: var(--lime); content: ""; }
.contact-modal-dialog::before { top: 0; clip-path: polygon(7% 0,100% 0,100% 100%,0 100%); }
.contact-modal-dialog::after { bottom: -20px; clip-path: polygon(0 0,100% 0,100% 100%,7% 100%); }
.contact-modal-close { position: absolute; z-index: 2; top: -17px; right: -17px; width: 34px; height: 34px; padding: 0 0 3px; border: 3px solid #fff; border-radius: 50%; color: #fff; background: #222; box-shadow: 0 0 2px #000; cursor: pointer; font: 30px/26px Arial,sans-serif; }
.contact-modal-dialog > h2 { padding: 0 0 22px; font-size: 18px; line-height: 24px; text-align: center; }
.contact-modal .contact-form { width: 580px; max-width: calc(100% - 40px); margin: 0 0 0 40px; padding: 0; background: transparent; }
.contact-form-fields { margin: 0; padding: 0; list-style: none; }
.contact-form-fields li { display: grid; grid-template-columns: 100px 335px; justify-content: space-between; align-items: start; padding: 8px 0; }
.contact-form-fields li.contact-altcha { grid-template-columns: 1fr; justify-items: end; }
.ruscenter-altcha-widget { display: block; width: 335px; max-width: 100%; min-height: 78px; }
.contact-form-fields label { margin: 0; padding-top: 9px; font-size: 14px; font-weight: normal; }
.contact-modal .contact-form input, .contact-modal .contact-form textarea { width: 100%; margin: 0; padding: 5px; border: 2px solid #ccc; border-radius: 0; background: #fff; font: inherit; }
.contact-modal .contact-form input { height: 36px; }
.contact-modal .contact-form textarea { min-height: 105px; resize: vertical; }
.contact-modal .contact-form .button, .contact-modal .contact-form button { float: right; margin-top: 7px; padding: 9px 22px; border: 0; border-radius: 18px; color: #fff; background: #69cad5; font-size: 16px; font-weight: bold; cursor: pointer; }
.contact-modal .contact-form::after { display: table; clear: both; content: ""; }
.contact-modal .form-notice { margin: 0 0 12px; }
body.contact-modal-open { overflow: hidden; }

@media (max-width: 1019px) {
  .container { width: calc(100% - 28px); }
  .legacy-header { height: 200px; }
  .brand { left: 20px; }
  .header-tools { right: 20px; }
  .primary-nav { right: 20px; }
  .primary-nav li { margin-left: 18px; }
  .primary-nav a { font-size: 16px; }
  .legacy-slider { height: auto; }
  .legacy-slides { height: auto; aspect-ratio: 971 / 350; }
  .legacy-slide { height: 100%; overflow: hidden; }
  .legacy-slide img { position: static; width: 100%; height: 100%; margin: 0; object-fit: fill; }
  .section-main-with-sidebar { grid-template-columns: minmax(0,1fr) 218px; }
  .projects-section { overflow-x: auto; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 20px); }
  .legacy-header { height: 92px; }
  .brand { top: 8px; left: 8px; width: 76px; height: 76px; }
  .brand img { width: auto; height: 76px; object-position: left top; }
  .header-tools { display: none; }
  .nav-toggle { position: absolute; top: 27px; right: 10px; display: block; padding: 9px 14px; border: 1px solid #888; background: rgba(255,255,255,.75); font: bold 14px Arial, sans-serif; }
  .primary-nav { position: absolute; z-index: 100; top: 82px; right: 0; bottom: auto; left: 0; display: none; padding: 12px; background: #fff; box-shadow: 0 9px 18px rgba(0,0,0,.18); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; }
  .primary-nav li, .primary-nav li.current-menu-item, .primary-nav li.current_page_item { margin: 0; padding: 0; border: 0; }
  .primary-nav a { display: block; padding: 10px; font-size: 17px; }
  .legacy-slider { margin-bottom: 12px; padding-bottom: 10px; }
  .legacy-block-inner { padding: 26px 20px 8px; }
  .legacy-heading h1, .legacy-heading h2 { padding-bottom: 22px; font-size: 20px; }
  .legacy-news-grid, .legacy-project-grid { grid-template-columns: 1fr; }
  .legacy-news-item { min-height: 135px; }
  .legacy-about { padding: 22px 20px; }
  .legacy-about-image { float: none; width: 170px; margin: 0 auto 10px; }
  .legacy-about-image img { width: 160px; height: 160px; }
  .legacy-about-image::after { top: 49px; right: -2px; }
  .legacy-about h2 { font-size: 22px; }
  .legacy-project-item { grid-template-columns: 82px 1fr; }
  .legacy-project-item .legacy-round-image, .legacy-project-item .legacy-round-image img { width: 82px; height: 82px; }
  .legacy-projects .legacy-block-inner { margin-left: 0; padding-right: 20px; padding-left: 20px; box-shadow: none; }
  .page-hero > .container { min-height: 0; padding: 22px 20px 12px; }
  .page-hero h1 { font-size: 24px; line-height: 28px; }
  .content-layout { grid-template-columns: 1fr; padding-left: 20px; }
  .entry-content { padding: 10px 20px 35px 0; }
  .sidebar { margin-left: -20px; padding: 25px 20px; }
  .archive-wrap { padding: 24px 12px 40px; }
  .card, .card:nth-child(n) { padding: 20px 18px; border-right-width: 8px; border-left-width: 8px; }
  .card h3 { font-size: 18px; line-height: 23px; }
  .card-media { width: 78px; height: 78px; margin: 30px 16px 8px 0; }
  .card-media img { width: 78px; height: 78px; }
  .contact-grid, .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 42px 1fr; padding: 35px 12px 25px; }
  .footer-logo img { width: 42px; height: auto; }
  .footer-contacts { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .section-main-with-sidebar { grid-template-columns: 1fr; }
  .section-primary { padding: 28px 20px 35px; }
  .legacy-sticker-sidebar { padding: 28px 20px; }
  .sticker-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .sticker-menu { width: 100%; height: 68px; margin: 0; transform: none; }
  .sticker-card { width: 100%; height: 68px; }
  .sticker-face { font-size: 13px; }
  .sticker-menu.is-open { grid-column: 1 / -1; height: auto; }
  .sticker-menu.is-open .sticker-card { height: 68px; }
  .sticker-links { position: relative; top: auto; right: auto; width: 100%; max-height: 320px; margin-top: 10px; opacity: 0; visibility: hidden; transform: none; }
  .sticker-menu.is-open .sticker-links { opacity: 1; visibility: visible; }
  .sticker-direction-panel { min-height: 0; }
  .sticker-direction-list { margin-top: 8px; }
  .sticker-direction-list li { margin-bottom: 15px; padding-left: 32px; font-size: 14px; line-height: 20px; }
  .sticker-direction-list li::before { font-size: 25px; }
  .sticker-modal { padding: 14px; }
  .sticker-modal-dialog { max-height: calc(100vh - 28px); padding: 28px 22px 30px; }
  .sticker-modal-dialog h2 { margin-right: 38px; font-size: 22px; line-height: 28px; }
  .sticker-modal-close { top: 8px; right: 8px; }
  .event-year-popover { position: fixed; top: 50%; right: 20px !important; bottom: auto; left: 20px !important; width: auto; max-height: 60vh; overflow: hidden; transform: translateY(-50%); }
  .event-year-popover::after { display: none; }
  .event-year-popover ul { max-height: calc(60vh - 62px); }
  .events-map { height: 375px; margin-bottom: -76px; transform: scale(.78); transform-origin: top center; }
  .events-list-panel { padding: 28px 12px 40px; }
  .about-scheme { width: 100%; height: auto; background: none; }
  .about-center-node { position: static; width: 190px; height: 190px; margin: 0 auto 25px; }
  .about-node-row { position: static; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .about-node-row a { width: 100%; height: auto; aspect-ratio: 1; border-width: 8px; font-size: 12px; }
  .about-structure-scheme { width: 100%; height: auto; padding-top: 42px; background: none; }
  .about-structure-node { position: relative; top: auto; left: auto; width: 180px; height: 180px; margin: 0 auto 18px; border-width: 10px; font-size: 12px; line-height: 16px; }
  .about-structure-node--center { width: 190px; height: 190px; }
  .about-structure-back { top: 0; }
  .about-partners { grid-template-columns: 1fr; width: 100%; }
  .about-partners li { width: 100%; }
  .about-partners img, .about-partners span { margin-right: auto; margin-left: auto; }
  .projects-section { padding: 20px; overflow: visible; }
  .projects-map-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; width: 100%; height: auto; background: none; }
  .project-map-node { position: static; align-items: center; min-height: 100px; padding: 12px; background: #f5f5f5; font-size: 14px; line-height: 18px; }
  .project-map-node img { flex-basis: 43px; width: 43px; height: 43px; }
  .project-detail-panel { min-height: 0; margin: 0; padding: 78px 0 30px; background-position: center 55px; background-size: auto 72px; }
  .project-detail-back { top: 0; left: -65px; transform: scale(.72); transform-origin: top left; }
  .project-detail-back:hover, .project-detail-back:focus-visible { left: -20px; }
  .project-detail-next { top: 4px; right: 0; width: 62px; height: 62px; }
  .project-detail-next:hover, .project-detail-next:focus-visible { right: 0; }
  .project-detail-next img { width: 62px; height: 62px; }
  .project-detail-figure { float: none; width: 100%; min-height: 0; padding-top: 20px; }
  .project-detail-figure > img { width: 170px; height: auto; margin: 0 auto; }
  .project-detail-title { width: 100%; margin: 8px auto 22px; font-size: 19px; line-height: 22px; }
  .project-detail-link-columns { grid-template-columns: 1fr; float: none; width: 100%; margin-top: 0; background: #f2f3f4; }
  .project-detail-links, .project-detail-submenus ul { margin: 12px 0; }
  .project-detail-submenus { border-top: 5px solid #dfe2e9; }
  .project-detail-content { float: none; width: 100%; min-height: 0; margin-top: 0; padding: 18px; }
  .project-detail-content-header { gap: 10px; min-height: 68px; border-bottom-width: 5px; }
  .project-detail-content-header button { flex-basis: 48px; width: 48px; height: 48px; font-size: 37px; line-height: 43px; }
  .project-detail-content-header h2 { font-size: 20px; line-height: 24px; }
  .project-detail-content-body { font-size: 15px; }
  .news-archive .archive-wrap { width: 100%; }
  .news-archive .card:nth-child(n) { width: calc(100% - 20px); margin: 0 10px 28px; padding: 25px 18px; border-right-width: 8px; border-left-width: 8px; }
  .contacts-section { padding: 28px 20px 40px; }
  .contacts-content { grid-template-columns: 1fr; gap: 28px; }
  .contacts-list-view-item-content { margin-left: 148px; }
  .contacts-content > h2, .contacts-content > h2 + p, .contacts-content > .contact-form { grid-column: auto; }
  .contact-modal { padding: 14px; }
  .contact-modal-dialog { max-height: calc(100vh - 28px); padding: 28px 20px 32px; border-right-width: 10px; border-bottom-width: 10px; overflow: auto; }
  .contact-modal-dialog::before, .contact-modal-dialog::after { right: -10px; height: 10px; }
  .contact-modal-dialog::after { bottom: -10px; }
  .contact-modal-close { top: 5px; right: 5px; }
  .contact-modal .contact-form { width: 100%; max-width: 100%; margin-left: 0; }
  .contact-form-fields li { grid-template-columns: 1fr; gap: 5px; }
  .contact-form-fields label { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
