:root {
  --navy: #13213a;
  --navy-2: #1d2f50;
  --gold: #b8924a;
  --gold-2: #d4b06a;
  --ink: #1f2430;
  --muted: #646b78;
  --bg: #f7f5f0;
  --paper: #ffffff;
  --line: #e4ded2;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(19, 33, 58, .08);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.5vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Шапка ---------- */
.topbar { background: var(--navy); color: #c9cfdb; font-size: 13.5px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #e6e9ef; text-decoration: none; margin-left: 18px; }
.topbar a:hover { color: var(--gold-2); }
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__in { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); margin-right: auto; min-width: 0; }
.logo__mark { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold-2);
  display: grid; place-items: center; font: 600 24px var(--serif); }
.logo__text { display: flex; flex-direction: column; min-width: 0; }
.logo__name { font: 600 19px/1.2 var(--serif); }
.logo__title { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__phone { font-weight: 600; font-size: 18px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

.nav { border-top: 1px solid var(--line); }
.nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
.nav__item { position: relative; }
.nav__item > a, .nav__group { display: block; padding: 13px 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy); text-decoration: none; cursor: pointer; }
.nav__item.has-sub > a::after, .nav__group::after { content: ' ▾'; font-size: 11px; color: var(--gold); }
.nav__item.is-active > a, .nav__item.is-active > .nav__group { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.nav__item > a:hover, .nav__group:hover { color: var(--gold); }
.nav__sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 270px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--bg); color: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #e8ebf1; position: relative; overflow: hidden; }
.hero::after { content: '§'; position: absolute; right: -40px; bottom: -120px; font: 600 460px/1 var(--serif); color: rgba(255,255,255,.035); pointer-events: none; }
.hero__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; position: relative; z-index: 1; }
.hero__in:not(:has(.hero__photo)) { grid-template-columns: 1fr; max-width: 900px; }
.hero h1 { color: #fff; }
.hero__kicker { color: var(--gold-2); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.hero__lead { font-size: 18px; max-width: 640px; color: #cfd5e0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__photo img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.35); width: 100%; object-fit: cover; aspect-ratio: 4/5; }

.btn { display: inline-block; padding: 13px 24px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: .15s; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Заголовок страницы ---------- */
.page-head { background: var(--navy); color: #cfd5e0; padding: 40px 0 44px; }
.page-head h1 { color: #fff; margin: 0; }
.page-head__sub { margin: 10px 0 0; font-size: 18px; max-width: 760px; }
.crumbs { font-size: 13.5px; margin-bottom: 12px; color: #9aa3b3; }
.crumbs a { color: #cfd5e0; text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- Блоки ---------- */
.page-blocks { padding: 48px 0 24px; }
.page-blocks > section { margin-bottom: 40px; }
.block { }
.block > .prose, .block > .block__title { max-width: 860px; }
.block__title { position: relative; padding-bottom: 12px; }
.block__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); }
.card .block__title { font-size: 22px; }

.prose { font-size: 16.5px; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-weight: 600; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--bg); }
.prose code { background: #efebe2; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.prose pre { background: #efebe2; padding: 14px; border-radius: 6px; overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: 6px; }
.prose mark { background: #f3e5c4; }

.cards { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.cards--1 { grid-template-columns: 1fr; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); }
.card--link { text-decoration: none; color: var(--ink); transition: .15s; display: flex; flex-direction: column; }
.card--link:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 12px 34px rgba(19,33,58,.14); }
.card--link p { color: var(--muted); }
.more { margin-top: auto; color: var(--gold); font-weight: 600; }

.accent { background: var(--navy); color: #d7dce5; padding: 56px 0; }
.accent .block__title, .accent h2, .accent h3, .accent h4 { color: #fff; }
.accent a { color: var(--gold-2); }
.accent .prose > ul, .accent .prose > ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }
.accent .prose blockquote { color: #b9c1cf; }
.page-blocks > .accent:first-child { margin-top: -48px; }

.quote { background: var(--paper); border-left: 4px solid var(--gold); padding: 28px 32px; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); font-size: 18px; }

/* Галерея */
.gallery { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(3, 1fr); }
.gallery--1 { grid-template-columns: minmax(0, 640px); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.card .gallery { grid-template-columns: 1fr; }
.gallery__item { margin: 0; }
.gallery__item a { display: block; border-radius: 8px; overflow: hidden; background: #ece7dc; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery--3 .gallery__item img, .gallery--2 .gallery__item img { aspect-ratio: 4/3; }
.gallery__item a:hover img { transform: scale(1.03); }
.gallery__item figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.accent .gallery__item figcaption { color: #aab3c2; }

/* Документы PDF */
.docs { display: grid; gap: 18px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.doc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: .15s; }
.doc:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.doc__preview { aspect-ratio: 1 / 1.3; background: #ece7dc; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.doc__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc__icon { font: 700 22px var(--sans); color: #fff; background: #b4433a; padding: 14px 16px; border-radius: 6px; }
.doc__meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.doc__name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.doc__size { font-size: 12.5px; color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(90deg, #efe6d3, #f7f1e4); border-top: 1px solid var(--line); padding: 40px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Подвал ---------- */
.footer { background: #0e1829; color: #aab3c2; padding: 48px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__name { font: 600 20px var(--serif); color: #fff; }
.footer__h { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 12px; }
.footer__menu { list-style: none; padding: 0; margin: 0; }
.footer__menu li { margin: 6px 0; }
.footer a { color: #d7dce5; text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer__muted { color: #8892a3; }
.footer__bottom { border-top: 1px solid #1f2b42; margin-top: 36px; padding-top: 18px; padding-bottom: 22px; font-size: 13.5px; color: #6f7a8d; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(8, 12, 22, .92); z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 6px; }
.lightbox__cap { color: #d7dce5; margin-top: 12px; text-align: center; }
.lightbox__close { position: absolute; top: 12px; right: 18px; font-size: 40px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .cards, .cards--2 { grid-template-columns: 1fr 1fr; }
  .hero__in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero__photo { max-width: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .topbar__addr { display: none; }
  .topbar__in { justify-content: flex-end; }
  .header__phone { display: none; }
  .burger { display: block; }
  .nav { display: none; }
  .nav.is-open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav__list { flex-direction: column; padding: 8px 20px 16px; }
  .nav__item > a, .nav__group { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav__item.is-active > a, .nav__item.is-active > .nav__group { box-shadow: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .nav__sub a { padding: 8px 0; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero__photo { max-width: 240px; }
  .hero__in { gap: 32px; }
  .cards, .cards--2, .gallery, .gallery--2 { grid-template-columns: 1fr; }
  .logo__title { display: none; }
  .logo__name { font-size: 17px; }
  .logo__mark { width: 40px; height: 40px; font-size: 20px; }
  .card { padding: 22px; }
  .cta__in { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .topbar a { margin-left: 12px; }
}
.quote .prose blockquote { border: 0; padding: 0; margin: 0; color: var(--ink); font-style: normal; }
.quote .prose blockquote p { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--navy); }
