/* «Айша»: голубой кирпич здания, насыщенный синий и цвета букв вывески. Цвета — в :root. */
:root {
  --navy: #0f4f8c;
  --navy-2: #1c74c0;
  --sky: #4db4ea;
  --gold: #b0701a;
  --gold-light: #ffd36b;
  --ivory: #f9fcff;
  --sand: #e0f1fc;
  --ink: #0e2f4f;
  --muted: #46607a;
  --line: #cde2f1;
  --head: "Noto Serif Display", Georgia, serif;
  --body: "Golos Text", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: 23px; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.muted, .prose { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 16px; color: var(--gold); font: 500 12.5px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow--light { color: var(--gold-light); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 30px; border: 1px solid var(--navy); border-radius: 0; background: var(--navy); color: #fff; font: 500 15px var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--gold); border-color: var(--gold); }
.btn svg { width: 17px; height: 17px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--ghost, .btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover, .btn--line:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--light { background: transparent; color: inherit; border-color: var(--line); }
.btn--glass { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta .btn, .visit__card .btn, .voice .btn--light { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.cta .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--gold); background: none; color: var(--ink); font: 500 15px var(--body); text-decoration: none; cursor: pointer; }
.link-arrow svg { width: 17px; height: 17px; }
.link-arrow:hover { color: var(--gold); }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.hdr.is-scrolled { box-shadow: 0 10px 30px rgba(15, 79, 140, .06); }
.hdr::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #d8343a 0 25%, #1f8a5b 25% 50%, #1c74c0 50% 75%, #f4b731 75%); }
.hdr__bar { display: flex; align-items: center; gap: 24px; width: min(1320px, 100% - 48px); margin: auto; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { width: 46px; height: 46px; }
.brand__text b { display: block; font: 500 26px/1 var(--head); }
.brand__text small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hdr__nav { display: flex; gap: 26px; margin-inline: auto; }
.hdr__nav a { padding: 4px 0; border-bottom: 1px solid transparent; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { border-color: var(--gold); color: var(--gold); }
.hdr__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__nav + .hdr__tools { margin-left: 0; }
.tool { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink); cursor: pointer; }
.tool svg { width: 20px; height: 20px; }
.tool[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button { padding: 0 11px; height: 38px; border: 0; background: none; color: var(--muted); font: 500 13px var(--body); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.menu-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: none; color: var(--ink); font: 500 14px var(--body); cursor: pointer; }
.menu-btn__lines i { display: block; width: 20px; height: 1px; margin: 6px 0; background: currentColor; }

/* Панель меню */
.menu { position: fixed; inset: 85px 0 0 auto; z-index: 29; width: min(640px, 100%); overflow-y: auto; background: var(--navy); color: #fff; }
.menu[hidden] { display: none; }
.menu__in { display: grid; gap: 34px; padding: 36px; }
.menu__main { display: grid; grid-template-columns: 1fr; }
.menu__main a { display: flex; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font: 500 20px/1.3 var(--head); text-decoration: none; }
.menu__main a small { min-width: 22px; padding-top: 5px; color: var(--gold-light); font: 400 12px var(--body); }
.menu__main a:hover, .menu__main a[aria-current] { color: var(--gold-light); }
.search { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--gold-light); }
.search svg { width: 19px; height: 19px; flex: none; color: var(--gold-light); }
.search input { width: 100%; border: 0; outline: 0; background: none; color: #fff; font: 400 16px var(--body); }
.search input::placeholder { color: rgba(255, 255, 255, .6); }
.group { margin-top: 16px; }
.group__title { display: flex; gap: 8px; align-items: center; color: var(--gold-light); font: 500 14px var(--body); }
.group__icon svg { display: block; width: 19px; height: 19px; }
.group__list, .search-results { list-style: none; margin: 10px 0 0; padding: 0; }
.group__list a, .search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 15px; text-decoration: none; }
.search-results small { display: block; color: var(--gold-light); }
.badge { flex: none; color: var(--gold-light); font-size: 13px; }
.nav-empty { margin-top: 12px; color: var(--gold-light); }
.menu__foot { display: grid; gap: 9px; font-size: 15px; color: #d8dfe7; }
.menu__foot a, .menu__foot span { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.menu__foot svg { width: 17px; height: 17px; flex: none; color: var(--gold-light); }

/* Первый экран: синий фон с кирпичной кладкой, как стена сада, фото в рамке */
.sky { position: relative; overflow: hidden; color: #fff; background-color: var(--navy-2); background-image:
  linear-gradient(115deg, var(--navy) 10%, rgba(15, 79, 140, .55) 60%, rgba(28, 116, 192, .15)),
  linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: auto, 100% 34px, 96px 68px, 96px 68px; background-position: 0 0, 0 0, 0 0, 48px 34px; }
.sky__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; width: min(1200px, 100% - 48px); margin-inline: auto; padding: 72px 0; }
.sky__badge { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.sky__badge svg { width: 16px; height: 16px; }
.sky h1 { margin: 24px 0 22px; font-size: clamp(40px, 5vw, 70px); line-height: 1.08; }
.sky h1 em { display: block; font-style: normal; color: var(--gold-light); }
.sky p { max-width: 54ch; color: #eaf5fd; font-size: 18px; }
.sky__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.sky .btn { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.sky .btn:hover { background: #fff; border-color: #fff; }
.sky .btn--ghost, .sky__btns .btn:only-child:not(:first-child) { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.sky .btn--ghost:hover { background: transparent; border-color: var(--gold-light); color: var(--gold-light); }
.sky__chips { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .28); list-style: none; font: 500 21px var(--head); }
.sky__wave { display: none; }
.arch { aspect-ratio: 4 / 3; padding: 10px; background: #fff; box-shadow: 0 24px 60px rgba(8, 40, 74, .35); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch svg { display: block; width: 100%; height: 100%; stroke: none; }

/* Секции */
.sec { padding: 112px 0; }
.sec--tint { background: var(--sand); }
.sec--page { padding: 72px 0 96px; }
.shead { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.shead .muted { margin-top: 18px; }
.shead--left { margin-inline: 0; text-align: left; }

/* Оглавление разделов */
.tiles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; border-top: 1px solid var(--line); }
.tile { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s, padding .2s; }
.tile:hover { padding-left: 8px; color: var(--gold); }
.tile__ic { display: none; }
.tile small { color: var(--gold); font-size: 13px; }
.tile b { font: 500 22px/1.25 var(--head); }
.tile::after { content: "→"; color: var(--gold); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about .prose { font-size: 18px; }
.about__side { display: grid; gap: 32px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.figures dt { font: 400 60px/1 var(--head); color: var(--navy); }
.figures dd { margin: 8px 0 0; color: var(--muted); }
.about__pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* Преимущества: нумерованные колонки */
.whys { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--navy); counter-reset: why; }
.why { padding: 32px 32px 8px 0; counter-increment: why; }
.why + .why { padding-left: 32px; border-left: 1px solid var(--line); }
.why__ic { display: none; }
.why::before { content: "0" counter(why); display: block; margin-bottom: 28px; color: var(--gold); font-size: 13px; }
.why h3 { margin-bottom: 12px; }
.why p { color: var(--muted); font-size: 16px; }

/* Слово заведующей */
.voice { padding: 120px 0; background: var(--navy); color: #fff; }
.voice__in { display: grid; grid-template-columns: 340px 1fr; gap: 96px; align-items: center; }
.voice__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.voice blockquote { margin: 0 0 32px; font: 400 clamp(26px, 3.2vw, 42px)/1.25 var(--head); }
.voice__who b { display: block; font-weight: 500; }
.voice__who span { color: var(--gold-light); font-size: 15px; }
.voice .cta__btns { justify-content: flex-start; margin-top: 32px; }

.join { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps__n { flex: none; width: 34px; color: var(--gold); font: 400 34px/1 var(--head); }
.steps h3 { margin-bottom: 6px; font-size: 21px; }
.steps p { color: var(--muted); font-size: 16px; }
.cta { padding: 64px 56px; background: var(--navy); color: #fff; }
.cta h3 { margin-bottom: 16px; font-size: 34px; }
.cta p { color: #d8dfe7; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.official { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.official__card { display: grid; align-content: start; gap: 18px; min-height: 190px; padding: 26px 26px 26px 0; text-decoration: none; transition: color .2s; }
.official__card + .official__card { padding-left: 26px; border-left: 1px solid var(--line); }
.official__card .why__ic { display: none; }
.official__card small { color: var(--gold); font-size: 13px; }
.official__card:hover { color: var(--gold); }
.strip { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.strip h3 { margin-bottom: 20px; font: 500 15px var(--body); }
.symbols { display: flex; gap: 32px; flex-wrap: wrap; }
.symbols a { display: grid; justify-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.symbols img { height: 54px; width: auto; }
.res { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.res a { text-decoration: none; border-bottom: 1px solid var(--line); }
.res a:hover { color: var(--gold); }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.visit--solo { grid-template-columns: minmax(0, 640px); justify-content: center; }
.visit__card { padding: 56px; background: var(--navy); color: #fff; }
.visit__card h2 { font-size: 40px; }
.visit__list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 20px; }
.visit__list li { display: flex; gap: 16px; }
.visit__list svg { flex: none; width: 21px; height: 21px; margin-top: 4px; color: var(--gold-light); }
.visit__list small { display: block; color: var(--gold-light); font-size: 13px; }
.map { position: relative; min-height: 420px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map__links { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.map__links .btn, .map__links .btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }

/* Внутренние страницы */
.phero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.phero h1 { max-width: 900px; font-size: clamp(36px, 5vw, 64px); }
.phero p { max-width: 720px; margin-top: 20px; color: var(--muted); font-size: 18px; }
.phero__moon { display: none; }
.phero .eyebrow--light { color: var(--gold); }
.crumbs { margin-bottom: 28px; color: var(--muted); font-size: 14px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs span { margin: 0 6px; color: var(--gold); }
.empty { display: grid; justify-items: center; gap: 14px; padding: 64px 20px; background: var(--sand); color: var(--muted); text-align: center; }
.empty + .pager { margin-top: 40px; border-top: 0; padding-top: 0; }
.empty__ic { color: var(--gold); }
.empty__ic svg { display: block; width: 32px; height: 32px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { max-width: 46%; font: 500 20px/1.3 var(--head); text-decoration: none; }
.pager a:hover { color: var(--gold); }
.pager small { display: block; margin-bottom: 4px; color: var(--gold); font: 400 13px var(--body); }
.pager__next { text-align: right; }
.duo, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.solo { margin-bottom: 56px; }
.solo .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
.duo__card { padding: 36px; background: var(--sand); }
.duo__card--night { background: var(--navy); color: #fff; }
.article__h { margin-bottom: 24px; font-size: 30px; }
.facts { margin: 0; border-top: 1px solid var(--navy); }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.person { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.person__photo, .member__photo { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); color: var(--gold); }
.person__photo svg, .member__photo svg { width: 32%; height: 32%; }
.person__photo img, .member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person__body h2 { margin-bottom: 28px; font-size: clamp(30px, 3.4vw, 44px); }
.person__quote { margin: 32px 0 0; padding-left: 24px; border-left: 2px solid var(--gold); font: 500 24px/1.35 var(--head); }
.person__quote small { display: block; margin-bottom: 6px; color: var(--gold); font: 400 13px var(--body); }
.person-line { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.person-line img { width: 64px; height: 64px; object-fit: cover; }
.person-line small { display: block; color: var(--muted); }
.person-line b { font: 500 22px var(--head); }
.chip { display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold); }
.chip svg { width: 24px; height: 24px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; margin-bottom: 24px; }
.member .eyebrow { margin: 20px 0 6px; font-size: 11.5px; }
.member h3 { font-size: 22px; }
.member p { margin-top: 6px; font-size: 15px; }
.chips:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 32px; }
.chips button, .chips a { padding: 0 0 4px; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: 400 16px var(--body); text-decoration: none; cursor: pointer; }
.chips [aria-selected="true"], .chips a:hover { border-color: var(--gold); color: var(--ink); }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.gal-head .shead { margin-bottom: 32px; }
.gal-head .link-arrow { margin: 0 0 40px; }
.album { margin-top: 56px; }
.album__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.album__head .num { color: var(--gold); font-size: 13px; }
.album__head h2 { font-size: 32px; }
.album__head small { color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
/* Ряды без дыр: 6 фото — 3 в ряд, 8 на главной — 4 в ряд */
.pgrid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
#homeGallery { grid-template-columns: repeat(4, 1fr); }
#homeGallery:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
.thumb { padding: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease; }
.thumb:hover img { transform: scale(1.03); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vid { margin: 0; }
.vid video { width: 100%; background: #000; }
.tour { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.tour__side h2 { margin: 12px 0; font-size: 30px; }
.pdfview iframe { width: 100%; height: 76vh; border: 1px solid var(--line); }
.pdfview__btns { justify-content: flex-start; }

/* Документы */
.article { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.article__aside { position: sticky; top: 104px; }
.article__aside h3 { font-size: 22px; }
.article__aside ul { list-style: none; margin: 16px 0; padding: 0; }
.article__aside a { display: flex; gap: 10px; padding: 7px 0; font-size: 15px; text-decoration: none; }
.article__aside small { color: var(--gold); }
.aside__btns { display: flex; gap: 14px; }
.aside__btns .link-arrow { margin: 0; font-size: 14px; }
.fold { border-bottom: 1px solid var(--line); }
.fold summary { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-weight: 500; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary > svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.fold[open] summary > svg { transform: rotate(180deg); }
.fold__ic svg { display: block; width: 20px; height: 20px; color: var(--gold); }
.fold__name { flex: 1; }
.fold .badge { color: var(--gold); }
.fold__body { padding: 0 0 18px 32px; }
.files { list-style: none; margin: 0; padding: 0; }
.file { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.file__type { flex: none; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.file__body { flex: 1; min-width: 0; }
.file__title { text-decoration: none; overflow-wrap: anywhere; }
.file__title:hover { color: var(--gold); }
.file__meta { color: var(--muted); font-size: 13px; }
.file__dl { flex: none; display: flex; align-items: center; gap: 5px; color: var(--ink); font-size: 14px; text-decoration: none; }
.file__dl svg { width: 16px; height: 16px; }

/* Подвал и прочее */
.footer { padding: 88px 0 28px; background: var(--navy); color: #d8dfe7; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr 1.1fr; gap: 40px; }
.footer__brand img { width: 60px; margin-bottom: 18px; }
.footer__brand p { font: 500 19px/1.35 var(--head); color: #fff; }
.footer__col { display: grid; align-content: start; gap: 8px; }
.footer__col h3 { margin-bottom: 8px; color: var(--gold-light); font: 500 12px var(--body); letter-spacing: .16em; text-transform: uppercase; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--gold-light); }
.footer__sym { margin-top: 16px; }
.footer__word { margin: 56px 0 28px; color: rgba(255, 255, 255, .06); font: 400 clamp(72px, 19vw, 260px)/.9 var(--head); text-align: center; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--gold-light); box-shadow: 0 10px 28px rgba(15, 79, 140, .28); }
.wa-float[hidden] { display: none; }
.wa-float svg { width: 27px; height: 27px; fill: currentColor; stroke: none; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 24, 38, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox__btn { position: fixed; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .4); background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 12px; top: 50%; }
.lightbox__next { right: 12px; top: 50%; }
.lightbox__count { position: fixed; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; }

/* Анимация */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.arch.rv { transform: translateX(36px); }
.arch.rv.in { transform: none; }
.page-in { animation: page-in .45s ease; }
@keyframes page-in { from { opacity: 0; } }
.hdr::after { transform-origin: left; animation: strip-in 1.1s cubic-bezier(.2, .7, .2, 1); }
@keyframes strip-in { from { transform: scaleX(0); } }
.menu:not([hidden]) { animation: menu-in .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes menu-in { from { transform: translateX(40px); opacity: 0; } }
.menu:not([hidden]) .menu__main a { animation: menu-item .45s ease backwards; }
.menu__main a:nth-child(n+2) { animation-delay: .05s !important; }
.menu__main a:nth-child(n+5) { animation-delay: .1s !important; }
.menu__main a:nth-child(n+9) { animation-delay: .15s !important; }
@keyframes menu-item { from { transform: translateX(16px); opacity: 0; } }
.btn svg, .link-arrow svg, .tile::after { transition: transform .25s ease; }
.btn:hover svg, .link-arrow:hover svg, .tile:hover::after { transform: translateX(5px); }
.official__card, .why { transition: transform .3s ease, color .2s; }
.official__card:hover { transform: translateY(-4px); }
.member__photo img, .voice__photo img, .person__photo img { transition: transform .7s ease; }
.member:hover .member__photo img { transform: scale(1.03); }
.wa-float { transition: transform .25s ease; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 211, 107, .55); animation: wa-ring 2.6s ease-out 2s 3; }
@keyframes wa-ring { to { box-shadow: 0 0 0 16px rgba(255, 211, 107, 0); } }
.lightbox[open] { animation: page-in .3s ease; }
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* Версия для слабовидящих */
body.a11y { --ivory: #fff; --sand: #fff; --navy: #000; --navy-2: #000; --ink: #000; --muted: #000; --line: #000; --gold: #000; --gold-light: #ffe600; --head: Arial, sans-serif; --body: Arial, sans-serif; font-size: 20px; }
body.a11y .footer__word, body.a11y .hdr::after { display: none; }
body.a11y .sky { background: #000; }

@media (max-width: 1180px) {
  .hdr__nav { display: none; }
  .hdr__tools, .hdr__nav + .hdr__tools { margin-left: auto; }
  .sky__in { gap: 40px; }
}
@media (max-width: 900px) {
  .solo .facts { grid-template-columns: 1fr; }
  .sky__in, .about, .join, .voice__in, .duo, .split, .strip, .visit, .person, .tour, .article, .tiles { grid-template-columns: 1fr; }
  .sky__in { padding: 56px 0; gap: 40px; }
  .arch { width: 100%; }
  .about, .join, .voice__in { gap: 48px; }
  .voice__photo { max-width: 300px; }
  .article__aside { position: static; }
  .person__photo { max-width: 320px; }
  .team, .pgrid, .pgrid:has(> :nth-child(6):last-child), #homeGallery, #homeGallery:has(> :nth-child(6):last-child) { grid-template-columns: 1fr 1fr; }
  .whys, .official { grid-template-columns: 1fr 1fr; }
  .why:nth-child(odd), .official__card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .why:nth-child(n+3), .official__card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .sec { padding: 72px 0; }
  .voice { padding: 72px 0; }
  .cta, .visit__card { padding: 40px 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .hdr__bar { width: calc(100% - 24px); gap: 8px; min-height: 68px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__text small, #menuBtnText { display: none; }
  .hdr__tools { gap: 5px; }
  .hdr__cta { display: none; }
  .menu { inset: 73px 0 0 0; }
  .menu__in { padding: 20px; }
  .whys, .official, .footer__top { grid-template-columns: 1fr; }
  .why, .why + .why, .official__card, .official__card + .official__card { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .why:first-child, .official__card:first-child { border-top: 0; }
  .official__card { min-height: 0; }
  .team { gap: 32px 14px; }
  .member h3 { font-size: 18px; }
  .sky__chips { gap: 6px 26px; font-size: 18px; }
  .gal-head { display: block; }
  .gal-head .link-arrow { margin: 0 0 24px; }
  .file { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
body.a11y *, body.a11y *::before, body.a11y *::after { animation: none !important; transition: none !important; }

/* Живой слой: цвета букв вывески, флажки со двора, мягкие формы */
:root { --red: #d8343a; --green: #1f8a5b; --yellow: #f4b731; --r: 26px; --soft: 0 14px 40px rgba(15, 79, 140, .12); }
h1, h2, h3 { font-weight: 600; }
.btn { border-radius: 99px; padding: 15px 28px; }
.btn--sm { padding: 9px 18px; }
.tool, .lang, .menu-btn { border-radius: 99px; overflow: hidden; }
.lang button { border-radius: 99px; }
.sec--tint { background: var(--sand); }

/* Первый экран */
.bunting { position: absolute; top: 0; left: 0; width: 100%; height: 76px; stroke: none; pointer-events: none; }
.flag { transform-box: fill-box; transform-origin: 50% 0; animation: flag 3.6s ease-in-out infinite alternate; }
@keyframes flag { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.sky__in { padding: 112px 0 96px; }
.hero-art { position: relative; }
.arch { padding: 0; border-radius: 34px 34px 34px 120px; overflow: hidden; border: 8px solid #fff; }
.hero-kid { position: absolute; left: -36px; bottom: -28px; width: 150px; height: 150px; border: 6px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: var(--soft); }
.seal { position: absolute; right: -30px; top: -34px; width: 138px; height: 138px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: var(--soft); }
.seal img { width: 66px; }
.seal__ring { position: absolute; inset: 0; animation: seal 26s linear infinite; }
.seal__ring text { fill: var(--navy); stroke: none; font: 600 15px var(--body); letter-spacing: .08em; }
@keyframes seal { to { transform: rotate(360deg); } }
.hero-note { position: absolute; right: 22px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: var(--soft); font-weight: 600; }
.hero-note svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.hero-note small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.2; }

/* Бегущая строка */
.ticker { overflow: hidden; padding: 16px 0; background: var(--yellow); color: var(--ink); }
.ticker__track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker__track span { display: flex; align-items: center; }
.ticker b { padding: 0 22px; font: 600 19px var(--head); white-space: nowrap; }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.ticker i:nth-of-type(3n) { background: var(--navy-2); }
.ticker i:nth-of-type(3n+1) { background: var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Разделы: карточки с цветными значками */
.tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; border: 0; }
.tile { grid-template-columns: 1fr; justify-items: start; gap: 12px; min-height: 176px; padding: 22px; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--soft); transition: transform .25s, box-shadow .25s; }
.tile:hover { padding-left: 22px; transform: translateY(-6px); color: inherit; box-shadow: 0 20px 44px rgba(15, 79, 140, .2); }
.tile::after { display: none; }
.tile__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff; background: var(--navy-2); }
.tile__ic svg { width: 24px; height: 24px; }
.tile:nth-child(4n+1) .tile__ic { background: var(--red); }
.tile:nth-child(4n+2) .tile__ic { background: var(--green); }
.tile:nth-child(4n+3) .tile__ic { background: var(--navy-2); }
.tile:nth-child(4n) .tile__ic { background: var(--yellow); color: var(--ink); }
.tile small { order: -1; position: absolute; right: 20px; top: 20px; color: var(--muted); }
.tile { position: relative; }
.tile b { font-size: 19px; font-weight: 600; }

/* Преимущества: мозаика в цветах вывески */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento__intro { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; padding: 44px; border-radius: var(--r); color: #fff; background: linear-gradient(rgba(15, 79, 140, 0) 12%, var(--navy) 56%), url("../photos/zdanie-03.jpg") center 22% / 100% auto no-repeat, var(--navy); }
.bento__intro p { margin-top: 14px; color: #eaf5fd; }
.whys { border: 0; gap: 16px; }
.why, .why + .why { padding: 26px; border: 0; border-radius: var(--r); color: #fff; background: var(--navy-2); }
.why::before { display: none; }
.why__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); color: inherit; }
.why__ic svg { width: 24px; height: 24px; }
.why p { color: inherit; opacity: .92; }
.why:nth-of-type(4n+1) { background: var(--red); }
.why:nth-of-type(4n+2) { background: var(--green); }
.why:nth-of-type(4n+3) { background: var(--navy-2); }
.why:nth-of-type(4n) { background: var(--yellow); color: var(--ink); }

/* Цифры, фото, шаги */
.figures { padding: 0; border: 0; gap: 16px; }
.figures > div { padding: 22px 26px; border-radius: var(--r); background: #fff; box-shadow: var(--soft); }
.figures dt { color: var(--navy-2); font-weight: 600; }
.about__pics { gap: 10px; }
.about__pics .thumb, .pgrid .thumb { border-radius: 20px; }
.about__pics .thumb:nth-child(2) { transform: translateY(14px); }
.pgrid { gap: 12px; }
.steps li { border: 0; padding: 14px 0; }
.steps__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; font: 600 20px var(--head); }
.steps li:nth-child(2) .steps__n { background: var(--green); }
.steps li:nth-child(3) .steps__n { background: var(--yellow); color: var(--ink); }
.cta { border-radius: var(--r); overflow: hidden; }
.official { border: 0; gap: 16px; }
.official__card, .official__card + .official__card { min-height: 200px; padding: 26px; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--soft); }
.official__card .why__ic { display: grid; width: 44px; height: 44px; margin: 0; background: var(--sand); color: var(--navy-2); }
.strip { border: 0; padding: 32px; border-radius: var(--r); background: var(--sand); }
.visit { gap: 16px; }
.visit__card, .map, .map iframe { border-radius: var(--r); overflow: hidden; }
.voice__photo img, .person__photo, .member__photo { border-radius: var(--r); }

/* Внутренние страницы: шапка цвета здания */
.phero { position: relative; overflow: hidden; padding: 112px 0 64px; border: 0; color: #fff; background: linear-gradient(115deg, var(--navy), var(--navy-2)); }
.phero p, .crumbs { color: #eaf5fd; }
.phero .eyebrow--light { color: var(--gold-light); }
.crumbs a { border-color: rgba(255, 255, 255, .4); }
.crumbs span { color: var(--gold-light); }
.empty { border-radius: var(--r); }
.duo__card { border-radius: var(--r); }

body.a11y .bunting, body.a11y .hero-kid, body.a11y .seal, body.a11y .hero-note, body.a11y .ticker { display: none; }
body.a11y .why, body.a11y .why + .why { background: #000; color: #fff; }
body.a11y .bento__intro { background: #000; }
body.a11y .tile__ic { background: #000 !important; color: #fff !important; }

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seal { right: -8px; }
  .hero-kid { left: -10px; }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .sky__in { padding: 96px 0 72px; }
  .bento__intro { min-height: 300px; padding: 30px; }
  .why, .why + .why, .why:nth-child(odd), .official__card:nth-child(n+3), .why:nth-child(n+3) { padding: 22px; border: 0; }
  .official__card, .official__card + .official__card, .official__card:nth-child(odd) { padding: 22px; }
}
@media (max-width: 560px) {
  .tile { min-height: 150px; padding: 18px; }
  .why h3 { font-size: 18px; overflow-wrap: normal; hyphens: none; }
  .why, .why + .why { padding: 18px !important; }
  .bento__intro { min-height: 400px; justify-content: flex-end; background-position: 0 0, center 0, 0 0; background-size: auto, 150% auto, auto; }
  .tile b { font-size: 17px; }
  .whys, .official { gap: 12px; }
  .why, .why + .why, .official__card, .official__card + .official__card { border-top: 0; padding: 22px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento__intro { grid-column: auto; grid-row: auto; }
  .seal { width: 104px; height: 104px; top: -30px; right: -6px; }
  .seal img { width: 50px; }
  .hero-kid { width: 104px; height: 104px; left: -6px; bottom: -20px; }
  .hero-note { right: 6px; bottom: -18px; padding: 8px 14px 8px 8px; font-size: 14px; }
  .about__pics .thumb:nth-child(2) { transform: none; }
}
