/* Алматинский городской Совет ветеранов.
   Крупный шрифт и высокий контраст для старшего поколения: тёмно-синий, золото и тёплый светлый фон. */

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #111c26;
  --muted: #4a5562;
  --line: #e6e0d3;
  --navy-950: #061a27;
  --navy-900: #0a2536;
  --navy-800: #0d3349;
  --navy-700: #114462;
  --primary: #12557a;
  --sky: #e8f1f7;
  --sky-strong: #cfe2ee;
  --gold: #d9a21b;
  --gold-bright: #f0b93a;
  --gold-soft: #f7e9c4;
  --gold-ink: #1d1503;
  --link: #0d5687;
  --link-visited: #5b2b82;
  --focus: #f5b700;
  --radius: 22px;
  --radius-lg: 32px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 54, 0.05), 0 4px 14px rgba(10, 37, 54, 0.05);
  --shadow: 0 2px 6px rgba(10, 37, 54, 0.05), 0 18px 40px -8px rgba(10, 37, 54, 0.16);
  --shadow-lg: 0 30px 70px -20px rgba(3, 14, 22, 0.55);
  --wrap: 75rem;
  --text: 46rem;
  --font: 'Onest', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* Неброский узор из ромбов для синих блоков. */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4 44 24 24 44 4 24Z' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.5'/%3E%3Cpath d='M24 16 32 24 24 32 16 24Z' fill='%23ffffff' fill-opacity='.035'/%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 4 44 24 24 44 4 24Z' fill='none' stroke='%23b08a2a' stroke-opacity='.10' stroke-width='1.5'/%3E%3Cpath d='M24 16 32 24 24 32 16 24Z' fill='%23b08a2a' fill-opacity='.05'/%3E%3C/svg%3E");
  /* Казахский орнамент «қошқар мүйіз» (бараньи рога): одиночный знак и полоса для подвала. */
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 20'%3E%3Cg fill='none' stroke='%23d9a21b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 12H19M53 12H71'/%3E%3Cpath d='M36 18V11C36 5 30 2.5 25.5 4.5C21 6.5 21 12.5 25 13.5C28 14.3 29.8 11 27.6 9.4'/%3E%3Cpath d='M36 11C36 5 42 2.5 46.5 4.5C51 6.5 51 12.5 47 13.5C44 14.3 42.2 11 44.4 9.4'/%3E%3C/g%3E%3C/svg%3E");
  --orn-row: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cg fill='none' stroke='%23d9a21b' stroke-opacity='.7' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 15H40M20 15V9C20 4 15 2 11.5 3.5C8 5 8 10 11 10.8C13.4 11.4 14.8 9 13 7.6M20 9C20 4 25 2 28.5 3.5C32 5 32 10 29 10.8C26.6 11.4 25.2 9 27 7.6'/%3E%3C/g%3E%3C/svg%3E");
  /* Крупный орнамент для фона первого экрана. */
  --orn-big: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9a21b' stroke-opacity='.10' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M60 104V62C60 38 36 28 20 36C4 44 6 68 22 70C34 72 40 58 30 52'/%3E%3Cpath d='M60 62C60 38 84 28 100 36C116 44 114 68 98 70C86 72 80 58 90 52'/%3E%3Cpath d='M60 16 68 28 60 40 52 28Z'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

/* Размер шрифта переключается кнопками «А», «А+», «А++» (класс на <html>). */
html { font-size: 125%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
html.fs-1 { font-size: 143.75%; }
html.fs-2 { font-size: 162.5%; }
@media (max-width: 40rem) {
  html { font-size: 118.75%; scroll-padding-top: 1rem; }
  html.fs-1 { font-size: 131.25%; }
  html.fs-2 { font-size: 150%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font); font-weight: 750; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 0.6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
::selection { background: var(--gold-soft); color: var(--gold-ink); }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 60; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Орнамент над заголовками разделов. */
.section-head h2::before, .about-grid h2::before, .about-section h2::before {
  content: ""; display: block; width: 4.5rem; height: 1.25rem; background: var(--orn) left center / contain no-repeat; margin-bottom: 0.6rem;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 3rem; padding: 0.65em 1.4em;
  border: 2px solid var(--primary); border-radius: 999px;
  background: var(--primary); color: #fff;
  font: 700 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:visited { color: #fff; }
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); transform: translateY(-1px); }
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-gold, .btn-gold:visited { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost, .btn-ghost:visited { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.btn-outline, .btn-outline:visited { background: var(--surface); color: var(--primary); }
.btn-outline:hover { background: var(--sky); border-color: var(--primary); }

/* ---------- служебная полоса ---------- */

.topbar { background: var(--navy-950); color: #fff; font-size: 0.85rem; }
.topbar > .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.topbar .phones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.25rem; }
.topbar .phones a { display: inline-flex; align-items: center; gap: 0.45em; color: #fff; font-weight: 600; text-decoration: none; }
.topbar .phones a:hover { text-decoration: underline; }
.topbar .phones .icon { color: var(--gold); }
.topbar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; }

.fontsize { display: flex; align-items: center; gap: 0.3rem; }
.fontsize span { margin-right: 0.3rem; color: #b9c8d2; }
.fontsize button, .langs a, .langs a:visited, .langs [aria-current] {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 0.85rem/1 var(--font);
  min-width: 2.6rem; min-height: 2.2rem; padding: 0 0.55rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer; text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.fontsize button:hover, .langs a:hover, .langs a:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.fontsize button[aria-pressed="true"], .langs [aria-current] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.langs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgba(17, 28, 38, 0.08);
  transition: box-shadow 0.25s;
}
.site-header.is-stuck { box-shadow: 0 10px 30px -12px rgba(10, 37, 54, 0.25); }
@media (max-width: 47.99rem) { .site-header { position: static; } }
/* Высокая шапка в две строки при крупном шрифте закрывала бы четверть экрана, поэтому она прокручивается вместе со страницей. */
@media (max-height: 40rem) { .site-header { position: static; } }
html.fs-2 .site-header { position: static; }
@media (max-width: 99.99rem) { html.fs-1 .site-header { position: static; } }

/* Пока меню не помещается в строку (узкий экран или крупный шрифт), оно уходит на вторую строку. */
.header-row {
  display: grid; align-items: center; gap: 0.75rem 1.5rem;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "nav";
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.brand { grid-area: brand; }
.mainnav { grid-area: nav; }
@media (min-width: 80rem) {
  html:not(.fs-1):not(.fs-2) .header-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand nav"; }
  html:not(.fs-1):not(.fs-2) .mainnav { border-top: 0; padding-top: 0; }
  html:not(.fs-1):not(.fs-2) .mainnav ul { justify-content: flex-end; }
}
@media (min-width: 100rem) {
  html.fs-1 .header-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand nav"; }
  html.fs-1 .mainnav { border-top: 0; padding-top: 0; }
  html.fs-1 .mainnav ul { justify-content: flex-end; }
}

.brand, .brand:visited { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--navy-800); min-width: 0; }
.brand img { width: auto; height: 3.4rem; max-width: 9rem; object-fit: contain; flex: none; transition: transform 0.3s var(--ease); }
.brand picture { display: flex; flex: none; }
.brand picture + picture { margin-left: -0.25rem; }
.brand-lg img { height: 4.4rem; max-width: 11rem; }
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.brand-name { display: block; max-width: 13em; font: 750 1.02rem/1.2 var(--font); letter-spacing: -0.01em; }

.mainnav { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.mainnav a, .mainnav a:visited {
  display: block; padding: 0.5rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink);
  transition: background-color 0.15s, color 0.15s;
}
.mainnav a:hover { background: var(--sky); color: var(--primary); }
.mainnav a[aria-current="page"] { background: var(--navy-800); color: #fff; }

@media (max-width: 40rem) {
  .brand img { height: 3rem; max-width: 7rem; }
  .brand-lg img { height: 3.8rem; max-width: 8rem; }
  .brand-name { font-size: 0.95rem; }
  /* Меню без «гамбургера»: все пункты видны плитками. */
  .mainnav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .mainnav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mainnav a, .mainnav a:visited { text-align: center; padding: 0.6rem 0.5rem; border-radius: var(--radius-sm); background: var(--sky); }
}

main { display: block; }
.page { padding-top: 2.5rem; padding-bottom: 5rem; }

.crumbs { font-size: 0.9rem; margin-bottom: 1rem; color: var(--muted); }

/* ---------- главная: первый экран ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--ink);
  background:
    radial-gradient(48rem 26rem at 88% -8%, rgba(217, 162, 27, 0.20), transparent 62%),
    radial-gradient(40rem 28rem at -5% 105%, rgba(18, 85, 122, 0.10), transparent 62%),
    var(--pattern-light),
    linear-gradient(160deg, #fffdf7 0%, #f8f2e2 55%, #f1e8d2 100%);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 34rem; height: 34rem; left: -9rem; bottom: -14rem;
  background: var(--orn-big) center / contain no-repeat; transform: rotate(-12deg);
}
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 60rem) {
  .hero { padding: 3.75rem 0 4.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr); gap: 3rem; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65em; margin-bottom: 1.4rem;
  padding: 0.45em 1.05em; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(217, 162, 27, 0.4);
  font-size: 0.85rem; font-weight: 600; color: #7a5a08;
}
.eyebrow::before { content: ""; flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 162, 27, 0.25); }
.hero h1 { color: var(--navy-800); font-size: clamp(2rem, 1rem + 2.8vw, 3.1rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 1.4rem; text-wrap: balance; }
.hero h1::after { content: ""; display: block; width: 6.5rem; height: 1.8rem; background: var(--orn) left center / contain no-repeat; margin-top: 1.1rem; }
.hero-lead { font-size: 1.12rem; line-height: 1.6; color: var(--muted); max-width: 34rem; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0; }
.hero .btn { min-height: 3.4rem; padding: 0.75em 1.7em; font-size: 1.06rem; }
.hero .btn-gold { box-shadow: 0 14px 30px -12px rgba(217, 162, 27, 0.65); }
.hero .btn-ghost, .hero .btn-ghost:visited { background: rgba(255, 255, 255, 0.7); border-color: var(--navy-800); color: var(--navy-800); }
.hero .btn-ghost:hover { background: #fff; border-color: var(--navy-700); color: var(--navy-700); }

.hero-photo { position: relative; margin: 0 0.9rem 0.9rem 0; }
.hero-orn { position: absolute; inset: 0.9rem -0.9rem -0.9rem 0.9rem; border: 2px solid rgba(217, 162, 27, 0.7); border-radius: var(--radius-lg) 7rem var(--radius-lg) var(--radius-lg); }
.hero-photo img {
  position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg) 7rem var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (max-width: 40rem) {
  .hero-orn, .hero-photo img { border-radius: var(--radius) 4rem var(--radius) var(--radius); }
}

/* На широком экране фото первого экрана крупнее и доходит до правого края окна. */
@media (min-width: 60rem) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 3rem; }
  .hero-photo { margin: 0 calc(-2rem - max(0px, (100vw - var(--wrap)) / 2)) 0.9rem 0; }
  .hero-photo img { aspect-ratio: 16 / 10; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .hero-orn { inset: 0.9rem 0 -0.9rem -0.9rem; border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
}

/* Быстрые действия: позвонить, написать, адрес. Наезжают на синий блок. */
.quick-icon { display: grid; place-items: center; flex: none; width: 3.1rem; height: 3.1rem; border-radius: 16px; background: var(--gold-soft); color: var(--navy-800); transition: background-color 0.2s, color 0.2s; }
.quick-icon .icon { width: 1.35rem; height: 1.35rem; }

.block { padding: 4.5rem 0 0; }
.block:last-child { padding-bottom: 5rem; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1.5rem; margin: 0 0 1.75rem; }
.section-head h2 { margin: 0; }
.more, .more:visited {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.75rem; padding: 0.45em 1.1em;
  border: 1.5px solid var(--sky-strong); border-radius: 999px; background: var(--surface);
  font-weight: 700; text-decoration: none; color: var(--primary);
  transition: border-color 0.15s, background-color 0.15s;
}
.more:hover { border-color: var(--primary); background: var(--sky); }
.more .icon { transition: transform 0.2s var(--ease); }
.more:hover .icon { transform: translateX(3px); }

/* Направления работы: тёмная полоса с плитками рубрик. */
.directions-band {
  margin-top: 5rem; padding: 4.5rem 0; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(44rem 24rem at 100% 0%, rgba(217, 162, 27, 0.16), transparent 60%),
    var(--pattern),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
}
.directions-band h2 { color: #fff; }
.directions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.directions a, .directions a:visited {
  display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: var(--radius);
  text-decoration: none; color: #fff; transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.directions a:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.direction-icon { display: grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 16px; background: var(--gold); color: var(--navy-900); }
.direction-icon .icon { width: 1.5rem; height: 1.5rem; }
.direction-text { flex: 1; min-width: 0; }
.direction-text strong { display: block; font-weight: 700; font-size: 1.06rem; line-height: 1.3; }
.direction-text small { display: block; margin-top: 0.15rem; color: #b9c8d2; font-size: 0.88rem; }
.directions a > .icon { color: var(--gold); transition: transform 0.2s var(--ease); }
.directions a:hover > .icon { transform: translateX(4px); }

/* Блок «О Совете» на главной */
.about-band { background: var(--surface); padding: 5rem 0; }
.directions-band + .about-band { margin-top: 0; }
.about-band:not(.directions-band + .about-band) { margin-top: 4.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 60rem) { .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; } }
.about-lead { font-size: 1.15rem; line-height: 1.65; margin-bottom: 1.75rem; color: #26323e; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7rem var(--radius-lg) var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }

/* Совет в цифрах: крупные числа на светлых плитках. */
.facts-title { margin: 3rem 0 1.25rem; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); color: var(--navy-800); }
.facts-title + .facts { margin-top: 0; }
.facts {
  list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
/* Четыре цифры: одна колонка, затем 2×2, затем в ряд — без «висящей» плитки. */
@media (min-width: 36rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { html:not(.fs-1):not(.fs-2) .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 80rem) { html.fs-1 .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 100rem) { html.fs-2 .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts li { min-width: 0; container-type: inline-size; padding: 1.5rem 1.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.facts li::after { content: ""; position: absolute; right: -1.2rem; top: -0.6rem; width: 6rem; height: 3rem; background: var(--orn) center / contain no-repeat; opacity: 0.25; }
.facts strong { display: block; font: 800 min(2.6rem, 19cqi)/1.05 var(--font); letter-spacing: -0.03em; color: var(--navy-800); white-space: nowrap; }
.facts strong::after { content: ""; display: block; width: 2.5rem; height: 4px; border-radius: 4px; background: var(--gold); margin: 0.75rem 0 0.6rem; }
.facts span { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.35; }

/* ---------- карточки публикаций ---------- */

/* Не больше трёх колонок; при крупном шрифте колонок становится меньше. */
.cards {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(15rem, calc((100% - 3rem) / 3))), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid rgba(17, 28, 38, 0.07); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--sky-strong); }
.card:focus-within { outline: 4px solid var(--focus); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
.card-media { position: relative; overflow: hidden; background: var(--sky); aspect-ratio: 3 / 2; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card-media > img { transform: scale(1.05); }
.noimg { height: 100%; display: grid; place-items: center; background: var(--pattern), linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.noimg img { width: 38%; max-width: 9rem; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 50%; padding: 0.5rem; }
.badges { position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; font-size: 0.8rem; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.25em 0.7em; border-radius: 999px; background: rgba(6, 26, 39, 0.78); color: #fff; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge-video { background: var(--gold); color: var(--gold-ink); }
.card-body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.card h3 a, .card h3 a:visited { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся карточка кликабельна */
.card:hover h3 a { color: var(--primary); }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.read { margin-top: auto; padding-top: 0.4rem; display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--primary); }
.read .icon { transition: transform 0.2s var(--ease); }
.card:hover .read .icon { transform: translateX(4px); }

/* Главная: большое мероприятие слева, три компактных справа. При самом крупном шрифте — обычная сетка карточек. */
html:not(.fs-2) .bento { grid-template-columns: minmax(0, 1fr); }
html:not(.fs-2) .card-big .card-media { aspect-ratio: 16 / 10; }
html:not(.fs-2) .card-big .card-body { padding: 1.5rem 1.6rem 1.7rem; gap: 0.75rem; }
html:not(.fs-2) .card-big h3 { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); line-height: 1.22; letter-spacing: -0.02em; }
html:not(.fs-2) .card-big p { font-size: 1rem; }
html.fs-2 .card-big p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 59.99rem) { html:not(.fs-2) .card-big p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } }
@media (min-width: 60rem) {
  html:not(.fs-2) .bento { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  html:not(.fs-2) .bento .card-big { grid-row: span 3; }
  html:not(.fs-2) .bento .card:not(.card-big) { display: grid; grid-template-columns: minmax(7rem, 36%) minmax(0, 1fr); }
  html:not(.fs-2) .bento .card:not(.card-big) .card-media { aspect-ratio: auto; min-height: 9rem; }
  html:not(.fs-2) .bento .card:not(.card-big) .card-media > img { position: absolute; inset: 0; }
  html:not(.fs-2) .bento .card:not(.card-big) .card-body { padding: 1rem 1.2rem; gap: 0.45rem; }
  html:not(.fs-2) .bento .card:not(.card-big) h3 { font-size: 1.02rem; }
  html:not(.fs-2) .bento .card:not(.card-big) p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; }
  html:not(.fs-2) .bento .card:not(.card-big) .read { display: none; }
  html:not(.fs-2) .bento .card:not(.card-big) .badges { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; font-size: 0.72rem; }
}

.meta { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; }
.meta time { display: inline-flex; align-items: center; gap: 0.4em; }
.meta .icon { color: var(--primary); }
.tag { display: inline-block; padding: 0.2em 0.75em; border-radius: 999px; background: var(--sky); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; color: var(--primary); }

.empty { font-size: 1.1rem; color: var(--muted); }

/* ---------- баннер раздела ---------- */

.banner {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(40rem 20rem at 90% 0%, rgba(217, 162, 27, 0.2), transparent 60%),
    var(--pattern),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  min-height: 15rem; display: flex; align-items: flex-end;
}
.banner-plain { min-height: 0; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner-img { object-position: center var(--banner-y, 35%); }
/* Заставка с фото: высота по пропорциям снимка (--banner-h из шаблона), но не выше экрана. */
.banner-photo { min-height: max(15rem, min(var(--banner-h, 20rem), 78svh)); }
/* Затемнение только внизу, под заголовком, чтобы фото было видно. */
.banner-img + .wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(6, 26, 39, 0.88) 0%, rgba(6, 26, 39, 0.55) 30%, rgba(6, 26, 39, 0) 62%),
              linear-gradient(90deg, rgba(6, 26, 39, 0.45) 0%, rgba(6, 26, 39, 0) 55%);
}
.banner-photo h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.banner .wrap { width: 100%; padding-top: 3.5rem; padding-bottom: 2.75rem; }
.banner-plain .wrap { padding-top: 2.75rem; padding-bottom: 2.5rem; }
.banner h1 { color: #fff; margin: 0; max-width: 42rem; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); letter-spacing: -0.03em; }
.banner h1::after { content: ""; display: block; width: 5.5rem; height: 1.5rem; background: var(--orn) left center / contain no-repeat; margin-top: 0.9rem; }
.banner .crumbs { color: #b9c8d2; margin-bottom: 0.9rem; }
.banner .crumbs a, .banner .crumbs a:visited { color: #fff; }
.banner-note { margin: 1rem 0 0; color: #d6e2ea; font-size: 1.05rem; max-width: 42rem; }
@media (min-width: 60rem) { .banner { min-height: 20rem; } .banner-plain { min-height: 0; } .banner-photo { min-height: max(20rem, min(var(--banner-h, 20rem), 78svh)); } }
/* Высота заставки, выбранная в разделе «Оформление» (вместо «по фото»). */
.banner-photo.bh-low { min-height: 15rem; }
.banner-photo.bh-mid { min-height: 21rem; }
.banner-photo.bh-high { min-height: min(27rem, 78svh); }
@media (min-width: 60rem) {
  .banner-photo.bh-low { min-height: 20rem; }
  .banner-photo.bh-mid { min-height: 30rem; }
  .banner-photo.bh-high { min-height: min(42rem, 78svh); }
}

/* ---------- листание ---------- */

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; }
.pager a, .pager a:visited, .pager span {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-width: 3rem; min-height: 3rem; padding: 0.4rem 0.9rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 700; color: var(--primary);
  transition: border-color 0.15s, background-color 0.15s;
}
.pager a:hover { border-color: var(--primary); background: var(--sky); }
.pager .step { padding: 0.4rem 1.2rem; }
.pager [aria-current] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pager .gap { border: none; background: none; min-width: 0; padding: 0.4rem 0.1rem; }
.archive-note { margin: 2.5rem auto 0; max-width: 40rem; padding: 1.1rem 1.4rem; text-align: center; background: var(--gold-soft); border-radius: var(--radius); }
.archive-note a { font-weight: 700; }

/* ---------- отбор по рубрике и году ---------- */

.filters-box {
  display: grid; gap: 1rem; margin: 0 0 2.25rem; padding: 1.25rem;
  background: var(--surface); border: 1px solid rgba(17, 28, 38, 0.07); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  scroll-margin-top: 6rem;
}
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filters-title { flex: 0 0 100%; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.filters a, .filters a:visited {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 3rem; padding: 0.4rem 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  text-decoration: none; font-weight: 600; color: var(--primary);
  transition: border-color 0.15s, background-color 0.15s;
}
.filters .icon { width: 1.25em; height: 1.25em; flex: none; color: var(--gold); }
.filters a:hover { border-color: var(--primary); background: var(--sky); }
.filters [aria-current] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filters [aria-current]:hover { background: var(--navy-700); }
.filters [aria-current] .icon { color: var(--gold); }
.filters-count { min-width: 1.9em; padding: 0.05em 0.5em; border-radius: 999px; background: var(--sky); color: var(--primary); font-size: 0.85em; text-align: center; flex: none; white-space: nowrap; }
.filters [aria-current] .filters-count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.filters-years a { padding-inline: 1rem; }
.filters-found {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem;
  margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 700;
}
.filters-reset, .filters-reset:visited {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.75rem; padding: 0.3rem 1rem;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); text-decoration: none;
}
.filters-reset:hover { background: var(--gold); }
@media (min-width: 48rem) {
  .filters-box { padding: 1.5rem 1.75rem; }
  .filters-title { flex: 0 0 6.5rem; }
}
@media (max-width: 40rem) {
  .filters-box { padding: 1rem; margin-inline: -0.25rem; }
  .filters { gap: 0.4rem; }
  .filters a, .filters a:visited { min-height: 2.75rem; padding: 0.3rem 0.85rem; gap: 0.4em; }
}
a.tag, a.tag:visited { text-decoration: none; color: var(--primary); }
a.tag:hover { background: var(--sky-strong); }

/* ---------- публикация ---------- */

.article { max-width: var(--text); margin: 0 auto; }
.article-head { margin-bottom: 2rem; }
.article-head .meta { margin-bottom: 1rem; }
.article-head h1 { margin: 0; font-size: clamp(1.7rem, 1.15rem + 2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.translated { margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--muted); }
.translated a { font-weight: 700; }
.photos-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.18rem; margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.article-body li { margin-bottom: 0.35em; }
.article-body li::marker { color: var(--gold); }
.article-body table { border-collapse: collapse; width: 100%; margin: 0 0 1.25em; font-size: 0.9rem; display: block; overflow-x: auto; background: var(--surface); border-radius: var(--radius-sm); }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 0.5em 0.65em; vertical-align: top; text-align: left; }
/* Выравнивание текста из редактора админки. */
.al-center { text-align: center !important; }
.al-right { text-align: right !important; }
.al-justify { text-align: justify !important; hyphens: auto; }
.article-body blockquote { margin: 0 0 1em; padding: 1em 1.4em; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.lead-image { margin: 0 0 2.25rem; }
.lead-image a { display: block; background: var(--navy-900); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lead-image img { max-height: 75vh; width: auto; margin: 0 auto; }

.videos { margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--line); display: grid; gap: 1rem; }
.videos h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0; }
.videos video { width: 100%; max-height: 80vh; background: #000; border-radius: var(--radius); }

.gallery { margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.gallery h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.count-badge { font: 700 0.85rem/1 var(--font); letter-spacing: 0; padding: 0.4em 0.75em; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); }
.hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.gallery ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 100%), 1fr)); }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.2s; }
.gallery a:hover img { transform: scale(1.06); opacity: 0.92; }

.back-wrap { margin: 3rem 0 0; }

/* Просмотр фото на весь экран */
.viewer { position: fixed; inset: 0; background: rgba(4, 12, 18, 0.96); z-index: 50; display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer figure { flex: 1; margin: 0; display: flex; align-items: center; justify-content: center; padding: 0.75rem; min-height: 0; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.viewer .bar { display: flex; justify-content: center; align-items: center; gap: 0.75rem; padding: 0.75rem; color: #fff; flex-wrap: wrap; }
.viewer button { font: 700 1rem/1 var(--font); min-height: 3rem; padding: 0.75rem 1.3rem; border-radius: 999px; border: 2px solid #fff; background: #fff; color: var(--ink); cursor: pointer; }
.viewer button.close { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.viewer .count { min-width: 5rem; text-align: center; }

/* ---------- о Совете ---------- */

.prose { max-width: var(--text); font-size: 1.05rem; line-height: 1.75; overflow-wrap: break-word; }
.prose-lead { font-size: 1.12rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.3rem; color: var(--navy-800); margin: 2.25rem 0 0.9rem; }
.prose > :first-child { margin-top: 0; }
.prose ul.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
@media (min-width: 60rem) { .prose ul.ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose ul.ticks li { position: relative; padding: 0.8rem 1rem 0.8rem 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 1.5; }
.prose ul.ticks li::before { content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1503' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.prose ol.chairs { list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: chair; border-left: 3px solid var(--gold); }
.prose ol.chairs li { counter-increment: chair; position: relative; padding: 0 0 1.4rem 2.25rem; line-height: 1.55; }
.prose ol.chairs li:last-child { padding-bottom: 0; }
.prose ol.chairs li::before { content: counter(chair); position: absolute; left: -1.05rem; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
.prose ol.chairs strong { font-size: 1.1rem; color: var(--navy-800); }
.prose ol.chairs .years { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.65rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.85rem; font-weight: 700; white-space: nowrap; max-width: 100%; }
@media (max-width: 30rem) { .prose ol.chairs .years { white-space: normal; margin: 0.3rem 0 0; } }
.prose ol.chairs p { margin: 0.35rem 0 0; color: var(--muted); }
.about-section + .about-section { margin-top: 4rem; }
.about-section h2 { max-width: 40rem; }
.people { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); }
.person { background: var(--surface); border: 1px solid rgba(17, 28, 38, 0.07); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.75rem 1.25rem 1.5rem; text-align: center; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person img { width: 9.5rem; height: 9.5rem; object-fit: cover; object-position: top; border-radius: 50%; margin: 0 auto 1.1rem; border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--gold), 0 14px 30px -12px rgba(10, 37, 54, 0.4); }
.person h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- контакты ---------- */

.lead { font-size: 1.15rem; color: var(--muted); max-width: var(--text); margin-bottom: 2rem; }
.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--surface); border: 1px solid rgba(17, 28, 38, 0.07); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem; }
.contact > div { min-width: 0; }
.contact h2 { font: 500 0.92rem/1.3 var(--font); letter-spacing: 0; color: var(--muted); margin: 0 0 0.3rem; }
.contact p { margin: 0; font-size: min(1.3rem, 6.4vw); font-weight: 700; line-height: 1.4; color: var(--navy-800); }
.contact p + p { margin-top: 0.3rem; }
.contact small { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.contact .small { font-size: 0.95rem; margin-top: 0.5rem; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
@media (max-width: 30rem) {
  .contact { padding: 1rem; gap: 0.8rem; }
  .contact .quick-icon { width: 2.5rem; height: 2.5rem; }
}

/* ---------- 404 ---------- */

.notfound { text-align: center; max-width: 36rem; margin: 2rem auto; }
.notfound .big { font: 800 6rem/1 var(--font); letter-spacing: -0.04em; color: var(--gold); margin-bottom: 0.5rem; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- подвал ---------- */

.footer {
  background:
    var(--orn-row) 0 1rem / 2.5rem 1rem repeat-x,
    radial-gradient(40rem 20rem at 100% 100%, rgba(217, 162, 27, 0.1), transparent 60%),
    var(--pattern), var(--navy-950);
  color: #c9d6de; padding: 4.25rem 0 1.5rem; font-size: 0.95rem;
}
.footer .wrap { display: grid; gap: 2.25rem; }
@media (min-width: 52rem) { .footer .wrap { grid-template-columns: 1.4fr 1.2fr 0.8fr; gap: 3rem; } }
.footer a, .footer a:visited { color: #fff; }
.footer h2 { font: 700 0.8rem/1.3 var(--font); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer p { margin: 0 0 0.4rem; }
.footer-brand { display: flex; gap: 1.1rem; align-items: flex-start; }
.footer-logos { display: flex; gap: 0.5rem; flex: none; }
.footer-brand img { width: auto; height: 4.25rem; max-width: 8rem; object-fit: contain; background: #fff; border-radius: 999px; padding: 0.25rem; }
.footer-name { font: 750 1.25rem/1.2 var(--font) !important; letter-spacing: -0.01em; color: #fff; }
.footer-legal { color: #9fb1bc; font-size: 0.85rem; }
.footer-contacts li { display: flex; gap: 0.75rem; margin-bottom: 0.8rem; }
.footer-contacts li > :last-child { min-width: 0; }
.footer-contacts .icon { color: var(--gold); margin-top: 0.2em; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: var(--gold-soft); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.25rem; }
.footer .copy { color: #8fa3af; font-size: 0.85rem; margin: 0; }
.footer .staff-login { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; color: #b9c8d2; font-size: 0.88rem; text-decoration: none; }
.footer .staff-login .icon { width: 1.1em; height: 1.1em; color: var(--gold); }
.footer .staff-login:hover, .footer .staff-login:focus-visible { color: #fff; text-decoration: underline; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Номер телефона не разрываем посередине. */
a[href^="tel:"] { white-space: nowrap; }

/* ---------- соцсети ---------- */

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; text-decoration: none; }
.social .icon { width: 1.25rem; height: 1.25rem; }
.topbar-social { gap: 0.3rem; }
.topbar-social a { width: 2.2rem; height: 2.2rem; border-radius: 50%; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.28); transition: background-color 0.15s, border-color 0.15s; }
.topbar-social a:hover, .topbar-social a:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.topbar-social .icon { width: 1rem; height: 1rem; }
.footer-social-title { margin-top: 1.5rem !important; }
.footer .footer-social a { width: 2.9rem; height: 2.9rem; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); transition: background-color 0.15s, border-color 0.15s, transform 0.2s var(--ease); }
.footer .footer-social a:hover, .footer .footer-social a:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); transform: translateY(-2px); }
.contact-social { grid-column: 1 / -1; }
.social-big { gap: 0.75rem; margin-top: 0.6rem; }
.social-big a, .social-big a:visited { min-height: 3rem; padding: 0.55rem 1.15rem 0.55rem 0.95rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--navy-800); font-weight: 700; font-size: 1.05rem; transition: border-color 0.15s, background-color 0.15s; }
.social-big a:hover, .social-big a:focus-visible { border-color: var(--gold); background: var(--gold-soft); text-decoration: none; }
.social-big .icon { color: var(--primary); }
@media (max-width: 40rem) { .topbar-social { display: none; } }

/* ---------- плавное появление при прокрутке (класс ставит site.js) ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- светлое оформление: служебная полоса, блоки и подвал на светлом фоне ---------- */

.topbar { background: #f1e8d2; color: var(--ink); border-bottom: 1px solid var(--line); }
.topbar .phones a { color: var(--navy-800); }
.topbar .phones .icon { color: #a87a0c; }
.fontsize span { color: var(--muted); }
.fontsize button, .langs a, .langs a:visited { border-color: rgba(13, 51, 73, 0.3); color: var(--navy-800); }
.fontsize button:hover, .langs a:hover, .langs a:focus-visible { border-color: var(--navy-800); background: rgba(255, 255, 255, 0.7); }
.topbar-social a { color: var(--navy-800); border-color: rgba(13, 51, 73, 0.3); }

.directions-band {
  color: var(--ink);
  background:
    radial-gradient(44rem 24rem at 100% 0%, rgba(217, 162, 27, 0.16), transparent 60%),
    var(--pattern-light),
    linear-gradient(160deg, #fbf6ea, #f1e8d2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.directions-band h2 { color: var(--navy-800); }
.directions a, .directions a:visited { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.directions a:hover { background: var(--surface); border-color: var(--gold); }
.direction-text small { color: var(--muted); }
.directions a > .icon { color: #a87a0c; }

.noimg { background: var(--pattern-light), linear-gradient(135deg, #fbf6ea, #efe4c8); }

.banner-plain {
  color: var(--ink);
  background:
    radial-gradient(40rem 20rem at 90% 0%, rgba(217, 162, 27, 0.18), transparent 60%),
    var(--pattern-light),
    linear-gradient(160deg, #fffdf7, #f1e8d2);
  border-bottom: 1px solid var(--line);
}
.banner-plain h1 { color: var(--navy-800); }
.banner-plain .crumbs { color: var(--muted); }
.banner-plain .crumbs a, .banner-plain .crumbs a:visited { color: var(--navy-800); }
.banner-plain .banner-note { color: var(--muted); }

.footer {
  background:
    var(--orn-row) 0 1rem / 2.5rem 1rem repeat-x,
    radial-gradient(40rem 20rem at 100% 100%, rgba(217, 162, 27, 0.14), transparent 60%),
    var(--pattern-light), #f1e8d2;
  color: var(--ink); border-top: 1px solid var(--line);
}
.footer a, .footer a:visited { color: var(--navy-800); }
.footer h2 { color: #8a6208; }
.footer-brand img { box-shadow: 0 0 0 1px var(--line); }
.footer-name { color: var(--navy-800); }
.footer-legal { color: var(--muted); }
.footer-contacts .icon, .footer .staff-login .icon { color: #a87a0c; }
.footer-nav a:hover { color: var(--primary); }
.footer-bottom { border-top-color: rgba(13, 51, 73, 0.14); }
.footer .copy { color: var(--muted); }
.footer .staff-login { color: var(--muted); }
.footer .staff-login:hover, .footer .staff-login:focus-visible { color: var(--navy-800); }
.footer .footer-social a { background: var(--surface); color: var(--navy-800); border-color: var(--line); }

@media print {
  .topbar, .site-header, .footer, .gallery, .videos, .back-wrap, .hero-actions { display: none; }
  body { background: #fff; font-size: 12pt; }
  .hero, .banner, .directions-band { background: none; color: #000; }
  .hero h1, .banner h1, .directions-band h2 { color: #000; }
  .banner-img, .banner-img + .wrap::before, .hero::before { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
