/* ==========================================================================
   Контакты — новый дизайн
   Разметка: templates/template-contacts-v2.php + includes/contacts-page.php
   Токены — как на новой главной, ценах, отзывах и FAQ. Всё под .bc.
   ========================================================================== */

.bc {
  --ink: #231F20; --red: #E32320; --red-d: #C41D1A; --mut: #6F686A; --mut2: #8b8385;
  --line: #E5E1E1; --tint: #F6F4F3; --ground: #F1F0EF; --wa: #1FA855; --tg: #229ED9;
  --sans: "Archivo", "Proxima Nova", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gut: clamp(16px, 5vw, 64px); --max: 1280px;
  background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }
.bc a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.bc-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.bc p { margin: 0; }
.bc ul { list-style: none; margin: 0; padding: 0; }
.bc h1, .bc h2 { text-transform: none; }

/* блок контактов из футера (template-parts/contacts/new.php) повторял бы страницу — здесь скрыт */
.site-container:has(.bc) .home-contact-block-new { display: none !important; }

/* шапка с главными действиями */
.bc-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; box-shadow: 0 -16px 0 var(--ink); }
.bc-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 90% at 88% 0%, rgba(227,35,32,.24) 0%, rgba(227,35,32,0) 56%); }
.bc-hero__crumbs { position: relative; padding-top: 18px; }
.bc .bc-hero .breadcrumbs { margin: 0; padding: 0; }
.bc .bc-hero .breadcrumbs, .bc .bc-hero .breadcrumbs * { color: rgba(255,255,255,.8) !important; font-family: var(--sans) !important; font-size: 14px !important; }
.bc-hero__in { position: relative; padding-top: 56px; padding-bottom: 72px; }
.bc-hero__title { margin: 0 0 16px; color: #fff; text-align: start; font: 800 clamp(40px, 6vw, 80px)/1 var(--sans); font-variation-settings: "wdth" 120; letter-spacing: -.015em; }
.bc-hero__lead { max-width: 680px; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.82); }
.bc-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bc-hero__note { margin-top: 14px !important; font-size: 14px; color: rgba(255,255,255,.62); }
.bc-btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 10px; font: 700 16px var(--sans); text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s; }
.bc-btn svg { flex: none; width: 22px; height: 22px; }
.bc-btn--wa { background: var(--wa); color: #fff; }
.bc-btn--tg { background: var(--tg); color: #fff; }
.bc-btn--tel { background: #fff; color: var(--ink); }
.bc-btn--tel svg { color: var(--red); }
.bc-btn:hover { filter: brightness(1.07); color: inherit; }
.bc-btn--wa:hover, .bc-btn--tg:hover { color: #fff; }

/* карточки контактов + карта */
.bc-body { padding: 56px 0 72px; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.bc-cards { display: grid; gap: 12px; align-content: start; }
.bc-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-radius: 16px; background: #fff; }
.bc-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--red); }
.bc-card__icon svg { width: 22px; height: 22px; }
.bc-card__title { margin: 0 0 6px; font: 600 14px/1.3 var(--sans); color: var(--mut); }
.bc-card__big { display: inline-block; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.bc-card__big:hover { color: var(--red); }
.bc-card__text { margin-top: 2px !important; font-size: 15px; line-height: 1.5; color: #4a4345; }
.bc-card__hours { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; font-size: 15px; color: #4a4345; }
.bc-card__hours svg { flex: none; width: 18px; height: 18px; color: var(--mut2); }
.bc-card__hours b { color: var(--ink); white-space: nowrap; }
.bc-card__label { margin-top: 16px !important; font-size: 14px; font-weight: 600; color: var(--mut); }
.bc-phones li { display: grid; grid-template-columns: 24px auto 1fr; align-items: center; gap: 10px; }
.bc-phones li + li { margin-top: 8px; }
.bc-phones a { font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bc-phones a:hover { color: var(--red); }
.bc-phones small { font-size: 13px; color: var(--mut2); }
.bc-flag { width: 24px; height: 16px; border-radius: 2px; object-fit: cover; }
.bc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bc-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); font: 600 14px var(--sans); text-decoration: none; transition: border-color .15s; }
.bc-chip:hover { border-color: var(--ink); color: var(--ink); }
.bc-chip svg, .bc-chip img { flex: none; width: 18px; height: 18px; }
.bc-chip--wa svg { color: var(--wa); }
.bc-chip--tg svg { color: var(--tg); }
.bc-follow { padding: 4px 4px 0; }
.bc-follow .bc-card__label { margin-top: 6px !important; }

.bc-map { position: relative; min-height: 560px; border-radius: 16px; overflow: hidden; background: #e8e4e2; }
.bc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 1024px) {
  .bc-grid { grid-template-columns: 1fr; }
  .bc-map { min-height: 420px; }
}
@media (max-width: 700px) {
  .bc-hero__in { padding-top: 28px; padding-bottom: 36px; }
  .bc-hero__title { font-size: clamp(40px, 12vw, 52px); }
  .bc-hero__lead { font-size: 17px; }
  .bc-hero__actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .bc-btn { justify-content: center; height: 50px; padding: 0 14px; font-size: 15px; }
  .bc-btn--tel { grid-column: 1 / -1; }
  .bc-body { padding: 20px 0 48px; }
  .bc-card { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .bc-card__icon { width: 40px; height: 40px; }
  .bc-card__big { font-size: 18px; }
  .bc-phones a { font-size: 19px; }
  .bc-map { min-height: 340px; }
}
