/* sambo-fond.ru — красно-синяя гамма самбовок */
:root {
  --blue: #14243e;
  --blue-2: #1e3a66;
  --red: #c8102e;
  --red-2: #a30d25;
  --paper: #f6f7f9;
  --ink: #1b2431;
  --muted: #5a6472;
  --line: #e3e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 36, 62, .10);
  --font-display: "Russo One", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--red); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .hero-title, .section-title, .brand-text {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .01em;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: #eceff4; color: var(--ink); }
.btn-small { padding: 7px 14px; font-size: 13px; }

/* ---------- логотип ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px; overflow: hidden; display: flex;
  transform: rotate(-8deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.bm-red { flex: 1; background: var(--red); }
.bm-blue { flex: 1; background: var(--blue-2); }
.brand-text { font-size: 13px; color: var(--ink); line-height: 1.25; }

/* ---------- шапка ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a.active,
.main-nav a:hover { color: var(--red); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: linear-gradient(90deg, var(--red) 50%, var(--blue-2) 50%);
  border-radius: 2px;
}
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; height: 3px; margin: 6px 8px; background: var(--blue); border-radius: 2px; transition: .2s; }

/* ---------- герой ---------- */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.hero-split {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(200,16,46,.92) 0%, rgba(200,16,46,.75) 34%, transparent 34.2%),
    linear-gradient(115deg, transparent 65.8%, rgba(30,58,102,.85) 66%);
  pointer-events: none; z-index: 2;
}
.hero-slides { position: relative; min-height: 480px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease; display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; position: relative; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .35; filter: saturate(.7);
}
.hero-content { position: relative; z-index: 3; padding: 90px 20px; }
.hero-counter { font-family: var(--font-display); font-size: 42px; opacity: .9; }
.hero-counter span { font-size: 20px; opacity: .7; }
.hero-date {
  display: inline-block; margin: 14px 0 10px; padding: 5px 14px;
  background: rgba(255,255,255,.14); border-radius: 999px; font-size: 14px;
}
.hero-title { font-size: clamp(26px, 4vw, 44px); max-width: 780px; margin-bottom: 26px; }
.hero-title a { color: #fff; }
.hero-title a:hover { color: #ffd7de; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 4; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.dot.on { background: var(--red); border-color: var(--red); }

/* ---------- секции ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 30px; position: relative; padding-left: 18px; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 6px;
  background: linear-gradient(180deg, var(--red) 50%, var(--blue-2) 50%); border-radius: 3px;
}
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head .section-title { margin-bottom: 0; }
.page-head { background: var(--blue); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px;
  background: linear-gradient(115deg, var(--red) 50%, var(--blue-2) 50%);
  transform: rotate(18deg); opacity: .35; border-radius: 40px;
}
.page-head h1 { font-size: clamp(28px, 4vw, 40px); position: relative; z-index: 1; }

/* ---------- почётные лица ---------- */
.persons { background: #fff; }
.persons.alt { background: var(--paper); }
.persons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.persons-grid.small { grid-template-columns: repeat(4, 1fr); }
.person {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: transform .15s, box-shadow .15s;
}
.persons.alt .person { background: #fff; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person img {
  width: 128px; height: 128px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 14px; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(20,36,62,.18);
}
.person.noimg img { display: none; }
.person strong { display: block; font-size: 16px; margin-bottom: 8px; }
.person span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #e9edf3; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.thumb-ph {
  display: block; width: 100%; height: 100%;
  background:
    linear-gradient(115deg, rgba(200,16,46,.85) 49.8%, rgba(30,58,102,.85) 50.2%);
}
.news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font-size: 13px; color: var(--red); font-weight: 600; }
.news-body h3 { font-size: 17px; }
.news-body h3 a, .news-body h2 a { color: var(--ink); }
.news-body h3 a:hover, .news-body h2 a:hover { color: var(--red); }
.news-body p { font-size: 14px; color: var(--muted); }
.more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--blue-2); }

.news-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.news-row {
  display: grid; grid-template-columns: 280px 1fr; gap: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.news-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-row .news-thumb { aspect-ratio: auto; min-height: 190px; height: 100%; }
.news-row .news-body h2 { font-size: 20px; }

/* фильтры */
.filters { display: flex; flex-direction: column; gap: 12px; }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-group > span { font-size: 14px; color: var(--muted); min-width: 70px; }
.chip {
  padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on:hover { color: #fff; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600;
}
.page.on { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- статья ---------- */
.article-inner { max-width: 820px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.article-date { display: inline-block; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.article-title { font-size: clamp(26px, 4vw, 38px); margin-bottom: 24px; }
.article-cover { margin-bottom: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-body { font-size: 17px; color: #2a3342; }
.article-body p { margin-bottom: 18px; }
.article-body h2, .article-body h3 { margin: 28px 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body img { border-radius: 12px; margin: 10px auto; }
.article-body figure { margin: 22px 0; }
.article-body iframe { max-width: 100%; }
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.article-nav a {
  display: block; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.article-nav a:hover { box-shadow: var(--shadow); }
.article-nav span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.article-nav strong { font-size: 15px; color: var(--ink); }
.an-next { text-align: right; }

/* ---------- галерея ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.g-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-item:hover img { transform: scale(1.06); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: 0 4px 14px rgba(20,36,62,.10);
}
.g-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.g-card:hover img { transform: scale(1.05); }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(20,36,62,.9)); color: #fff;
}
.g-caption time { display: block; font-size: 12px; opacity: .85; }
.g-caption strong { font-size: 15px; font-weight: 600; }

/* ---------- тизер о фонде ---------- */
.about-teaser { background: var(--blue); color: #fff; }
.about-teaser .section-title { color: #fff; }
.about-teaser p { max-width: 640px; margin-bottom: 24px; opacity: .92; }
.about-teaser-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.about-contact {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  border-radius: var(--radius); padding: 34px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.ac-label { display: block; font-size: 14px; opacity: .9; margin-bottom: 8px; }
.ac-mail { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); color: #fff; word-break: break-all; }
.ac-mail:hover { color: #ffd7de; }

/* ---------- контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.contact-card h3 { margin-bottom: 10px; font-size: 18px; color: var(--blue); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- подвал ---------- */
.site-footer { background: var(--blue); color: #cfd8e6; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding: 48px 20px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.footer-note { font-size: 14px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #cfd8e6; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; font-size: 13px; }

/* ---------- админка ---------- */
.admin-body { background: #eef1f6; min-height: 100vh; }
.login-box {
  max-width: 380px; margin: 12vh auto; background: #fff; padding: 34px;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.login-box label, .admin-form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.login-box input, .admin-form input[type=text], .admin-form input[type=date],
.admin-form select, .admin-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fafbfd;
}
.admin-form input:focus, .admin-form textarea:focus, .login-box input:focus,
.editor:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.alert { background: #fdecee; color: var(--red-2); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.admin-wrap { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.admin-wrap.narrow { max-width: 860px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.admin-table th { background: var(--blue); color: #fff; font-weight: 600; }
.row-title { font-weight: 600; }
.row-slug { font-size: 12px; color: var(--muted); word-break: break-all; }
.nowrap { white-space: nowrap; }
.badge { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: #e4f5e9; color: #1c7c3c; }
.badge.off { background: #f0f1f4; color: var(--muted); }
.admin-form { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
.cover-preview { margin: 10px 0; }
.cover-preview img { max-width: 260px; border-radius: 10px; margin-bottom: 6px; }
.inline { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; }
.editor-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.editor-toolbar button {
  padding: 7px 12px; border: 1px solid var(--line); background: #fafbfd;
  border-radius: 8px; cursor: pointer; font-size: 13px;
}
.editor-toolbar button:hover { border-color: var(--blue-2); }
.editor {
  min-height: 320px; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; background: #fff; font-weight: 400;
}
.editor img { max-width: 100%; border-radius: 8px; }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .persons-grid, .persons-grid.small { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-teaser-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .hero-content { padding: 64px 20px 90px; }
  .hero-counter { font-size: 30px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .news-row .news-thumb { min-height: 0; aspect-ratio: 16/9; }
  .persons-grid, .persons-grid.small { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .an-next { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- настоящий логотип ---------- */
.brand-logo { width: 44px; height: 44px; min-width: 44px; object-fit: contain; }
.footer-brand .brand-logo { background: #fff; border-radius: 10px; padding: 4px; }

/* ---------- документы ---------- */
.docs-intro { max-width: 640px; margin-bottom: 8px; color: var(--muted, #55606e); }
.docs-group { font-family: var(--font-display); font-size: 22px; margin: 34px 0 16px; color: var(--blue); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doc-card { background: #fff; border: 1px solid #e6e9ef; border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, box-shadow .15s; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.doc-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; }
.doc-name { font-weight: 600; line-height: 1.35; flex: 1; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- большие Назад/Далее у новости ---------- */
.article-nav.big { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.an-card { display: flex; gap: 14px; align-items: center; background: #fff;
  border: 1px solid #e6e9ef; border-radius: var(--radius); padding: 14px;
  transition: transform .15s, box-shadow .15s; }
.an-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); }
.an-thumb { width: 96px; height: 72px; min-width: 96px; border-radius: 10px; overflow: hidden; display: block; background: #e9edf3; }
.an-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-dir { font-family: var(--font-display); font-size: 13px; color: var(--red); }
.an-body time { font-size: 12px; color: #77808c; }
.an-body strong { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-next { text-align: right; justify-content: flex-end; }
.an-next .an-body { align-items: flex-end; }
@media (max-width: 720px) { .article-nav.big { grid-template-columns: 1fr; } .an-next { flex-direction: row; } }

/* ---------- лайтбокс галереи ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,16,28,.94);
  display: flex; align-items: center; justify-content: center; }
.lb-stage { max-width: min(1100px, 88vw); max-height: 86vh; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.lb-stage img { max-width: 100%; max-height: 66vh; object-fit: contain; border-radius: 12px; }
.lb-stage figcaption { color: #fff; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lb-stage time { color: #ff8fa0; font-size: 13px; }
.lb-stage strong { font-family: var(--font-display); font-size: clamp(15px, 2vw, 20px); font-weight: 400; }
.lb-arrow { position: fixed; top: 50%; transform: translateY(-50%);
  width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--red); color: #fff; font-size: 44px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .12s, background .12s; }
.lb-arrow:hover { background: #e01535; transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 3vw; }
.lb-next { right: 3vw; }
.lb-close { position: fixed; top: 22px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-up-next { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #cdd6e3; font-size: 14px; background: rgba(255,255,255,.08);
  padding: 8px 18px; border-radius: 999px; max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-up-next em { color: #fff; font-style: normal; }
@media (max-width: 720px) {
  .lb-arrow { width: 54px; height: 54px; font-size: 32px; }
  .lb-prev { left: 2vw; } .lb-next { right: 2vw; }
}

/* ---------- final-fix ---------- */
.lightbox[hidden] { display: none !important; }
.news-thumb { background: linear-gradient(160deg, #eef1f6, #dfe6ef) !important; }
.news-thumb img { object-fit: contain !important; object-position: center !important; }
.hero-bg { background-position: center 15% !important; }

/* ---------- final-fix-2: галерея на главной без обрезки ---------- */
.g-item { background: linear-gradient(160deg, #eef1f6, #dfe6ef) !important; }
.g-item img { object-fit: contain !important; object-position: center !important; }
