/* ══════════════════════════════════════════════════
   Хан Ломбард — фирменные стили
   Палитра взята из логотипа: бордо + тёплое золото + кремовый
   ══════════════════════════════════════════════════ */

:root {
  --burgundy:      #6E1710;
  --burgundy-dark: #4A0F0A;
  --burgundy-deep: #2B0A06;
  --gold:          #C9A44C;
  --gold-light:    #E4C56C;
  --gold-dark:     #8B6914;
  --cream:         #F5EED9;
  --cream-light:   #FBF7EC;
  --paper:         #FFFFFF;
  --ink:           #2B2A29;
  --ink-soft:      #5A5856;
  --line:          rgba(110, 23, 16, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(43, 10, 6, 0.06);
  --shadow-md: 0 6px 24px rgba(43, 10, 6, 0.10);
  --shadow-lg: 0 16px 48px rgba(43, 10, 6, 0.18);

  --container: 1280px;

  /* геометрия липкой шапки (переопределяется в media-queries) */
  --hdr-gap: 20px;
  --hdr-h: 97px;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* overflow-x: clip — режет горизонтальный выход контента, но НЕ ломает position: sticky */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: #e8e2d0;
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--burgundy); transition: color .2s; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--burgundy); line-height: 1.15; margin: 0 0 .5em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--burgundy); color: var(--cream);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ── Wrapper (центральная колонка 1280px) ── */
.wrapper {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: var(--shadow-md);
}

/* ── Header: декоративная панель с фоном header_bg.png ── */
.site-header {
  position: sticky; top: var(--hdr-gap); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--hdr-h); width: 100%;
  margin: var(--hdr-gap) 0;
  padding: 0 32px 0 48px;
  background: url("/images/header_bg.png") center/cover no-repeat;
  box-shadow: 0 6px 20px rgba(43, 10, 6, 0.18);
  gap: 12px;
}
/* «крышки» сверху и снизу — закрывают контент, проезжающий под шапкой */
.site-header::before,
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: var(--hdr-gap);
  background: var(--cream);
}
.site-header::before { top: calc(-1 * var(--hdr-gap)); }
.site-header::after  { bottom: calc(-1 * var(--hdr-gap)); }
.site-header__logo {
  display: block;
  width: 402px; height: var(--hdr-h);
  max-width: 50%;
  background: url("/images/logo_xan.png") left center/contain no-repeat;
  flex-shrink: 1;
  min-width: 0;
}

.site-header__cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: transparent;
  transition: transform .2s, filter .2s;
}
.icon-btn img, .icon-btn svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.icon-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ── Sub-header (липкая «полоска» с названием раздела) ── */
.subhead {
  position: sticky;
  top: calc(var(--hdr-gap) * 2 + var(--hdr-h));
  z-index: 40;
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(43, 10, 6, 0.12);
}
.subhead__inner {
  padding: 14px 32px;
}
.subhead__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  margin: 0;
  color: var(--gold-light);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Layout containers ── */
.container { padding: 0 24px; width: 100%; }
main { min-height: 50vh; padding-bottom: 32px; }

/* ── Hero / banner ── */
.hero { position: relative; margin: 24px auto 40px; max-width: var(--container); }
.hero__img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 4% 6%;
  background: linear-gradient(90deg, rgba(43,10,6,.72) 0%, rgba(43,10,6,.45) 55%, rgba(43,10,6,0) 100%);
  border-radius: var(--radius-lg);
  color: var(--cream);
}
.hero__title {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light); font-size: clamp(1.6rem, 3.2vw, 3rem);
  margin: 0 0 .35em; line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero__subtitle {
  color: var(--cream);
  font-size: clamp(.95rem, 1.4vw, 1.15rem); max-width: 640px; margin: 0 0 1.2em;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: var(--gold); color: var(--burgundy-deep); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--burgundy-deep); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--outline:hover { background: var(--cream); color: var(--burgundy-deep); }
.btn--ghost { background: rgba(245,238,217,.12); color: var(--cream); border-color: rgba(245,238,217,.35); }
.btn--ghost:hover { background: rgba(245,238,217,.22); color: var(--cream); border-color: var(--cream); }

.banner-vip { text-align: center; margin: 24px 0 48px; }
.banner-vip img { max-width: 800px; width: 100%; margin: 0 auto; border-radius: var(--radius-md); }

/* ── Секции услуг (оставляем прежний grid-paradigm) ── */
.svc { display: flex; width: 100%; }
.svc__media, .svc__copy { width: 50%; }
.svc__media img { width: 100%; }
.svc__copy {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem; background-repeat: no-repeat; background-size: cover; text-align: center;
}
.svc__copy--jewellery { background-image: url("/images/jewellery_bg.png"); }
.svc__copy--watches   { background-image: url("/images/watches_bg.png"); }
.svc__copy--brands    { background-image: url("/images/brands_bg.png"); }
.svc__copy--diamonds  { background-image: url("/images/diamonds_bg.png"); }
.svc__copy--phones    { background-image: url("/images/phones_bg.png"); }
.svc__label { font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.svc__title {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem; line-height: 1.05; margin: 1.2rem 0;
  color: var(--burgundy); font-weight: 700;
}
.svc__note { font-style: italic; font-size: 1.35rem; font-weight: 600; color: var(--ink); }

/* ── Шаги «Наличные на 1·2·3» ── */
.steps { text-align: center; margin: 64px 0 48px; }
.steps__title { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--burgundy); }
.steps__row {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center;
  max-width: 900px; margin: 40px auto 0;
}
.steps__card {
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 36px 28px; width: 240px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.steps__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.steps__num {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: var(--burgundy-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.15), 0 3px 8px rgba(0,0,0,.12);
}
.steps__text { font-weight: 700; color: var(--ink); line-height: 1.4; }
.steps__arrow { font-size: 2.2rem; color: var(--gold); flex-shrink: 0; }

/* ── О компании ── */
.about { text-align: center; padding: 48px 0; background: var(--cream-light); margin: 32px 0; border-radius: var(--radius-md); }
.about__title { font-size: 2.4rem; }
.about__text { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.about__text p { font-size: 1.08rem; margin: .8em 0; }

/* ── Адреса ── */
.addresses { background: var(--paper); padding: 48px 0; margin: 32px 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.addresses__title { text-align: center; font-size: 2.4rem; }
.addresses__grid { display: flex; gap: 24px; margin-top: 32px; padding: 0 24px; }
.addresses__tabs { display: flex; flex-direction: column; gap: 10px; width: 46%; }
.addresses__tab {
  text-align: left; background: var(--cream); border: 2px solid transparent;
  padding: 14px 18px; border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; gap: 14px;
  font-family: inherit; color: var(--ink); font-weight: 600; font-size: 1.05rem;
  transition: background .2s, border-color .2s, color .2s;
}
.addresses__tab:hover { background: var(--cream-light); }
.addresses__tab[aria-selected="true"] { background: var(--paper); border-color: var(--gold); color: var(--burgundy); }
.addresses__tab img { height: 32px; width: auto; margin-left: auto; }
.addresses__panels { flex: 1; min-width: 0; }
.addresses__panel {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.addresses__panel.is-active { display: grid; grid-template-columns: 1fr 1fr; animation: fadein .3s; }
.addresses__photo { position: relative; overflow: hidden; min-height: 260px; }
.addresses__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.addresses__panel:hover .addresses__photo img { transform: scale(1.04); }
.addresses__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--burgundy); color: var(--gold-light);
  padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; letter-spacing: .03em;
  box-shadow: var(--shadow-sm);
}
.addresses__info {
  padding: 22px 26px;
  display: flex; flex-direction: column; gap: 2px;
  justify-content: center;
}
.addresses__item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 10px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none;
  transition: background .2s, color .2s;
}
a.addresses__item:hover { background: var(--cream-light); color: var(--burgundy); }
.addresses__item + .addresses__item { border-top: 1px solid var(--line); border-radius: 0; }
.addresses__item:first-child, .addresses__item:last-child { border-radius: var(--radius-sm); }
.addresses__ico {
  flex: 0 0 22px; width: 22px; height: 22px;
  color: var(--gold-dark);
}
.addresses__item--addr > div { display: flex; flex-direction: column; line-height: 1.35; }
.addresses__item--addr strong { color: var(--burgundy); font-size: 1rem; }
.addresses__item--addr span { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.addresses__item--addr small { color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }
.addresses__item > span { font-size: 1rem; font-weight: 500; }
.addresses__item--phone > span { font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .addresses__panel.is-active { grid-template-columns: 1fr; }
  .addresses__photo { min-height: 220px; height: 220px; }
}

/* ── Инфо-блок ── */
.info { background: var(--paper); padding: 32px; margin: 32px 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-left: 6px solid var(--gold); }
.info__list { list-style: none; padding: 0; margin: 0; }
.info__list li { font-size: .95rem; line-height: 1.65; margin: .6em 0; padding-left: 20px; position: relative; }
.info__list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .8em; top: .3em; }
.info__list strong { color: var(--burgundy); }

/* ── Страницы документов ── */
.page-title {
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy));
  color: var(--cream); padding: 40px 32px; margin-bottom: 32px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.page-title h1 { color: var(--gold); margin: 0 0 .3em; font-size: 2.2rem; }
.page-title p { margin: 0; color: var(--cream-light); font-size: 1.05rem; max-width: 680px; }
.breadcrumbs { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 8px; }
.page-desc { color: var(--ink-soft); margin: 0 0 18px; max-width: 760px; line-height: 1.55; }
.breadcrumbs a { color: var(--burgundy); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current="page"] { color: var(--ink); }

.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; border-bottom: 2px solid var(--line); }
.doc-tabs a {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.doc-tabs a:hover { color: var(--burgundy); }
.doc-tabs a[aria-current="page"] { color: var(--burgundy); border-bottom-color: var(--gold); background: var(--paper); }

.doc-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 18px; margin: 18px 0 24px; max-width: 520px;
  transition: border-color .2s, box-shadow .2s;
}
.doc-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,76,.18); }
.doc-search svg { flex: 0 0 auto; color: var(--burgundy); }
.doc-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 1rem; font-family: inherit; color: var(--ink); padding: 8px 0;
}

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.doc-card { margin: 0; }
.doc-card[hidden] { display: none; }
.doc-card__link {
  display: flex; align-items: center; gap: 16px;
  background: var(--paper); padding: 18px 20px;
  border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.doc-card__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
  color: var(--ink);
}
.doc-card__icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--burgundy); }
.doc-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.doc-card__title { font-weight: 600; line-height: 1.35; }
.doc-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--ink-soft); align-items: center; }
.doc-card__badge { background: var(--burgundy); color: var(--cream); padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.doc-card__action { flex-shrink: 0; color: var(--burgundy); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.doc-card__text { margin: 8px 0 0; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.doc-card__link--ann { align-items: flex-start; }

/* ── PDF-модальное окно ── */
.pdf-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.pdf-modal[hidden] { display: none; }
.pdf-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(43, 10, 6, 0.6);
  backdrop-filter: blur(4px);
}
.pdf-modal__panel {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  width: 100%; max-width: 960px;
  height: 90vh;
  background: var(--burgundy-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadein .2s ease;
}
.pdf-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy-deep));
  border-bottom: 2px solid var(--gold);
  flex-shrink: 0;
}
.pdf-modal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: var(--gold-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.pdf-modal__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pdf-modal__extlink {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--cream); opacity: .75;
  transition: opacity .2s, background .2s;
}
.pdf-modal__extlink:hover { opacity: 1; background: rgba(245,238,217,.15); color: var(--gold-light); }
.pdf-modal__close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(245,238,217,.12); color: var(--cream);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.pdf-modal__close:hover { background: var(--gold); color: var(--burgundy-deep); }
.pdf-modal__frame {
  flex: 1; width: 100%; border: 0;
  background: #525659;
}

/* button-reset для карточек, открывающих PDF в модале */
button.doc-card__link,
button.report-year-card {
  font-family: inherit; font-size: inherit;
  cursor: pointer;
}
button.doc-card__link { text-align: left; width: 100%; }

@media (max-width: 600px) {
  .pdf-modal { padding: 0; }
  .pdf-modal__panel { max-width: 100%; height: 100%; border-radius: 0; }
}

.doc-empty { padding: 32px; text-align: center; color: var(--ink-soft); font-style: italic; display: none; }
.doc-empty.is-shown { display: block; }

.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.report-year-card {
  background: var(--paper); padding: 24px; border-radius: var(--radius-md);
  border: 2px solid var(--line); text-align: center; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.report-year-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.report-year-card__year { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--burgundy); }
.report-year-card__label { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .95rem; }

/* ── Footer ── */
.site-footer { background: linear-gradient(180deg, var(--burgundy-dark), var(--burgundy-deep)); color: var(--cream); margin: 40px 0 0; }
.site-footer__cols {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; padding: 48px 24px 32px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__title { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--gold); margin-bottom: 6px; font-size: 1.05rem; }
.site-footer a { color: var(--cream); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer__bottom { border-top: 1px solid rgba(245,238,217,.15); padding: 18px 24px; text-align: center; font-size: .9rem; }
.site-footer__bottom a { color: var(--gold); }

/* ══════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════ */

/* ── Tablet (≤860px) ─────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --hdr-gap: 12px; --hdr-h: 80px; }

  .site-header { padding: 0 14px; gap: 10px; background-size: cover; }
  .site-header__cta { gap: 6px; }
  .icon-btn { width: 48px; height: 48px; }

  .subhead__inner { padding: 12px 18px; }

  .addresses__grid { flex-direction: column; padding: 0 16px; }
  .addresses__tabs { width: 100%; flex-direction: row; overflow-x: auto; }
  .addresses__tab { flex-shrink: 0; min-width: 200px; }

  .svc { flex-direction: column; }
  .svc__media, .svc__copy { width: 100%; }
  .svc__copy { padding: 2.5rem 1.25rem; }
  .svc__title { font-size: 2.4rem; }
  .svc__label { font-size: 1.2rem; }
  .svc__note  { font-size: 1.1rem; }

  .calc, .faq, .addresses, .about, .info { padding: 28px 20px; }
  .calc__title, .faq__title, .about__title, .addresses__title { font-size: 1.8rem; }

  .container { padding: 0 16px; }
}

/* ── Phone (≤600px) ──────────────────────────────────────── */
@media (max-width: 600px) {
  body { font-size: 15px; }

  .hero { margin: 14px auto 24px; }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(43,10,6,.78) 0%, rgba(43,10,6,.55) 100%);
    padding: 14px 18px;
    border-radius: var(--radius-md);
  }
  .hero__subtitle { display: none; }
  .hero__title { font-size: 1.25rem; }

  .banner-vip { margin: 16px 0 28px; }

  .steps { margin: 36px 0 24px; }
  .steps__title { font-size: 1.7rem; }
  .steps__arrow { display: none; }
  .steps__row { gap: 12px; }
  .steps__card { width: 100%; max-width: 320px; padding: 24px 18px; gap: 14px; }
  .steps__num { width: 56px; height: 56px; font-size: 1.6rem; }

  .svc__title { font-size: 2rem; }
  .svc__copy  { padding: 2rem 1rem; }

  .calc, .faq, .addresses, .about, .info { padding: 22px 16px; margin: 22px 0; }
  .calc__title, .faq__title, .about__title, .addresses__title { font-size: 1.5rem; }
  .calc__lead { font-size: .95rem; margin-bottom: 18px; }
  .calc__field { grid-template-columns: 1fr; gap: 6px; }
  .calc__field output { text-align: left; min-width: 0; }
  .calc__row { font-size: .95rem; }
  .calc__row--total strong { font-size: 1.1rem; }

  .faq__q { padding: 14px 40px 14px 16px; font-size: .98rem; }
  .faq__a { padding: 0 16px 16px; font-size: .95rem; }

  .info__list li { font-size: .92rem; }

  .addresses__photo { min-height: 180px; height: 180px; }
  .addresses__info  { padding: 16px 18px; }
  .addresses__item  { padding: 10px 6px; gap: 10px; }
  .addresses__item--addr strong { font-size: .95rem; }
  .addresses__item--addr span   { font-size: .98rem; }

  .breadcrumbs { font-size: .82rem; }
  .page-desc { font-size: .92rem; }
  .page-title { padding: 22px 16px; }
  .page-title h1 { font-size: 1.5rem; }
  .page-title p  { font-size: .95rem; }

  .doc-tabs a { padding: 10px 14px; font-size: .92rem; }
  .doc-search { padding: 6px 14px; }
  .doc-search input { font-size: .95rem; }
  .doc-card__link { padding: 14px 16px; gap: 12px; }
  .doc-card__link--ann { padding: 16px 18px; }

  .to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
}

/* ── Small phone (≤400px) ────────────────────────────────── */
@media (max-width: 400px) {
  :root { --hdr-gap: 10px; --hdr-h: 64px; }

  .site-header { padding: 0 10px; gap: 8px; }
  .site-header__cta { gap: 4px; }
  .icon-btn { width: 40px; height: 40px; }

  .subhead__inner { padding: 10px 14px; }

  .container { padding: 0 12px; }

  .calc, .faq, .addresses, .about, .info { padding: 20px 14px; }

  .svc__title { font-size: 1.7rem; }
  .svc__label { font-size: 1.05rem; }
  .svc__note  { font-size: 1rem; }
}

/* ── Калькулятор займа ── */
.calc { background: var(--paper); padding: 40px 32px; margin: 32px 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold); }
.calc__title { text-align: center; font-size: 2.2rem; margin: 0 0 .3em; }
.calc__lead { text-align: center; color: var(--ink-soft); margin: 0 0 28px; }
.calc__form { max-width: 680px; margin: 0 auto; display: grid; gap: 22px; }
.calc__field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; }
.calc__field label { grid-column: 1 / -1; font-weight: 600; color: var(--burgundy); }
.calc__field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; background: var(--cream); border-radius: 999px;
  outline: none;
}
.calc__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  border: 2px solid var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: pointer;
}
.calc__field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  border: 2px solid var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: pointer;
}
.calc__field output {
  font-weight: 700; color: var(--burgundy); font-size: 1.05rem;
  min-width: 130px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc__result {
  background: var(--cream-light); border-radius: var(--radius-sm);
  padding: 18px 22px; display: grid; gap: 10px;
}
.calc__row { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.calc__row strong { color: var(--burgundy); font-variant-numeric: tabular-nums; }
.calc__row--total { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 1.15rem; }
.calc__row--total strong { color: var(--burgundy-deep); font-size: 1.25rem; }
.calc__note { font-size: .88rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* ── FAQ ── */
.faq { background: var(--paper); padding: 40px 32px; margin: 32px 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.faq__title { text-align: center; font-size: 2.2rem; margin: 0 0 24px; }
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq__item { background: var(--cream-light); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.faq__q {
  padding: 16px 48px 16px 20px;
  font-weight: 600; color: var(--burgundy); cursor: pointer;
  position: relative; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ''; position: absolute; right: 20px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq__item[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 20px 18px; color: var(--ink); line-height: 1.6; }

/* ── Back-to-top ── */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--burgundy); color: var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--burgundy-dark); color: var(--gold); }
.to-top[hidden] { display: none; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
