/* «Контакты» и «Запрос документов» (ТЗ-21А): /contacts/, /document-request/, карта офисов (ContactsMap — и на заглушке). */

/* ---------- Первый экран ---------- */
.ct-hero {
  position: relative; overflow: hidden; color: #fff; padding: 8px 0 64px;
  background:
    radial-gradient(520px 320px at 92% 8%, rgba(0, 160, 227, .22), transparent 70%),
    radial-gradient(420px 260px at 72% 110%, rgba(229, 9, 127, .16), transparent 70%),
    var(--pc-dark);
}
.ct-hero .pc-breadcrumbs li, .ct-hero .pc-breadcrumbs a { color: rgba(255, 255, 255, .62); }
.ct-hero .pc-breadcrumbs a:hover { color: #fff; }
.ct-hero .pc-breadcrumbs .current { color: #fff; }
.ct-hero .section-eyebrow { color: var(--pc-cta); }
.ct-hero h1 { color: #fff; max-width: 720px; }
.ct-hero .lead { color: rgba(255, 255, 255, .8); max-width: 640px; }
.ct-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; padding-top: 12px; }
.ct-hero-offices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ct-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); font-size: 14.5px;
  transition: background .2s, border-color .2s;
}
.ct-chip b { color: #fff; font-weight: 600; margin-right: 2px; }
.ct-chip:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .32); color: #fff; }

.ct-quick { background: #fff; color: var(--pc-text); border-radius: var(--pc-radius-lg); padding: 28px; box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
.ct-quick-label { font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--pc-eyebrow); margin-bottom: 6px; }
.ct-quick-phone { display: block; font-size: 34px; font-weight: 700; line-height: 1.15; color: var(--pc-dark); letter-spacing: -.3px; }
.ct-quick-phone span { font-size: 22px; font-weight: 500; color: var(--pc-text-light); }
.ct-quick-phone--sm { font-size: 26px; }
.ct-quick-phone--sm span { font-size: 18px; }
.ct-quick-mobile { display: block; font-size: 19px; font-weight: 600; color: var(--pc-dark); margin-top: 2px; }
.ct-quick-phone:hover, .ct-quick-mobile:hover { color: var(--pc-cta); }
.ct-quick-mail { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 16px; font-weight: 600; font-size: 16px; }
.ct-quick-msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ct-quick-msgs a {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: var(--pc-radius);
  border: 1px solid var(--pc-border); color: var(--pc-dark); font-weight: 600; font-size: 14.5px; transition: border-color .2s, box-shadow .2s;
}
.ct-quick-msgs a:hover { border-color: var(--pc-cyan); box-shadow: var(--pc-shadow); color: var(--pc-dark); }
.ct-quick-msgs .bi-telegram { color: #229ED9; font-size: 18px; }
.ct-quick-hours { margin-top: 14px; font-size: 14.5px; color: var(--pc-text); line-height: 1.5; }
.ct-quick-hours .bi { color: var(--pc-cta); margin-right: 4px; }
.ct-quick-hours span { color: var(--pc-text-light); padding-left: 22px; }

/* ---------- Заголовки секций ---------- */
.ct-head { margin-bottom: 32px; max-width: 760px; }
.ct-head p { color: var(--pc-text-light); margin: 0; }
.ct-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.ct-head--row h2 { margin-bottom: 0; }
.ct-head--row > p { max-width: 420px; }
.ct-promise { margin: 0; font-weight: 600; color: var(--pc-dark); text-align: right; }
.ct-promise small, .ct-form-note small { display: block; font-weight: 400; font-size: 13px; color: var(--pc-text-light); }

/* ---------- Офисы и карта ---------- */
.ct-offices { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.ct-offices-list { display: flex; flex-direction: column; gap: 20px; }
.ct-offices-map { position: relative; min-height: 560px; }
.ct-offices-map .ct-map { position: absolute; inset: 0; min-height: 0; }

.ct-office {
  position: relative; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); padding: 24px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s; scroll-margin-top: calc(var(--pc-sticky-top, 90px) + 16px);
}
.ct-office:hover { box-shadow: var(--pc-shadow); }
.ct-office.is-active { border-color: var(--pc-cta); box-shadow: 0 0 0 3px rgba(255, 107, 26, .15), var(--pc-shadow); }
.ct-office-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ct-office-head > img { margin-top: 4px; flex: 0 0 auto; }
.ct-office-head > div { flex: 1 1 auto; }
.ct-office-head h3 { font-size: 22px; margin: 0 0 2px; }
.ct-office-metro { font-size: 14px; color: var(--pc-text-light); }
.ct-office-pin {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--pc-light-gray); border: 0; color: var(--pc-dark); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s;
}
.ct-office-pin .bi { color: var(--pc-cta); }
.ct-office-pin:hover, .ct-office.is-active .ct-office-pin { background: var(--pc-dark); color: #fff; }
.ct-office-rows { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 9px; }
.ct-office-rows li { display: flex; gap: 11px; font-size: 15px; line-height: 1.45; }
.ct-office-rows .bi { color: var(--pc-cta); font-size: 17px; flex: 0 0 auto; margin-top: 1px; }
.ct-office-rows b { font-weight: 600; color: var(--pc-dark); }
.ct-office-phone, .ct-office-mobile, .ct-quick-mobile, .ct-mgr-lines a { white-space: nowrap; }
.ct-office-rows small { display: block; color: var(--pc-text-light); font-size: 13.5px; }
.ct-office-contacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 14px 0; border-top: 1px dashed var(--pc-border); border-bottom: 1px dashed var(--pc-border); margin-bottom: 16px; }
.ct-office-phone { font-size: 20px; font-weight: 700; color: var(--pc-dark); }
.ct-office-mobile { font-size: 16px; font-weight: 600; color: var(--pc-dark); }
.ct-office-phone:hover, .ct-office-mobile:hover { color: var(--pc-cta); }
.ct-office-mail { flex-basis: 100%; font-weight: 500; font-size: 15px; }
.ct-office-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-office-acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.ct-office-acts .btn.is-done, .ct-req .btn.is-done { border-color: #198754; color: #198754; background: #fff; }
.ct-only-touch { display: none !important; }
@media (pointer: coarse) { .ct-only-touch { display: inline-flex !important; } }

/* ---------- Карта (ContactsMap) ---------- */
.ct-map { position: relative; border-radius: var(--pc-radius-lg); overflow: hidden; background: #e8edf2; border: 1px solid var(--pc-border); min-height: 360px; }
.ct-map-canvas, .ct-map-canvas > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-map-ph {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  color: var(--pc-dark); cursor: pointer;
  background:
    linear-gradient(115deg, transparent 47.5%, rgba(255, 255, 255, .95) 47.5%, rgba(255, 255, 255, .95) 49.5%, transparent 49.5%) 0 0 / 100% 100%,
    linear-gradient(28deg, transparent 63%, rgba(255, 255, 255, .85) 63%, rgba(255, 255, 255, .85) 64.4%, transparent 64.4%) 0 0 / 100% 100%,
    linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(255, 255, 255, .55) 1px, transparent 1px) 0 0 / 46px 46px,
    radial-gradient(260px 180px at 30% 70%, rgba(150, 200, 160, .35), transparent 70%),
    radial-gradient(300px 200px at 75% 25%, rgba(140, 190, 230, .35), transparent 70%),
    #e8edf2;
}
.ct-map-ph-pins { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.ct-map-ph-pins span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.ct-map-ph-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--pc-shadow); font-weight: 600; font-size: 15px; }
.ct-map-ph:hover .ct-map-ph-btn { color: var(--pc-cta); }
.ct-map.is-loading .ct-map-ph-btn { color: var(--pc-text-light); }
.ct-map.is-loading .ct-map-ph-btn .bi { animation: ct-pulse 1s ease-in-out infinite; }
@keyframes ct-pulse { 50% { opacity: .3; } }
.ct-map-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  background: rgba(10, 22, 40, .55); color: #fff; font-weight: 600; font-size: 16px; pointer-events: none; opacity: 0; transition: opacity .25s;
}
.ct-map-hint.is-on { opacity: 1; }

/* Баллон метки — в стиле сайта */
.ct-bal { font: 14px/1.45 "DINPro", system-ui, sans-serif; color: var(--pc-text, #2D2D2D); padding: 2px 2px 0; }
.ct-bal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ct-bal-head b { font-size: 16px; color: var(--pc-dark, #0A1628); }
.ct-bal-addr { font-weight: 600; color: var(--pc-dark, #0A1628); margin-bottom: 6px; }
.ct-bal-row { display: flex; gap: 7px; color: #555; font-size: 13.5px; margin-bottom: 3px; }
.ct-bal-row .bi { color: var(--pc-cta, #FF6B1A); flex: 0 0 auto; }
.ct-bal-phone { display: inline-block; margin: 6px 0 10px; font-weight: 700; font-size: 16px; color: var(--pc-dark, #0A1628); }
.ct-bal-acts { display: flex; align-items: center; gap: 14px; }
.ct-bal-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; background: var(--pc-cta, #FF6B1A); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.ct-bal-btn:hover { background: var(--pc-cta-hover, #E55A0F); }
.ct-bal-more { font-weight: 600; font-size: 14px; }

/* ---------- Менеджеры ---------- */
.ct-mgr-groups { display: grid; gap: 32px; }
@media (min-width: 1200px) {
  .ct-mgr-groups--split { grid-template-columns: minmax(0, 3fr) minmax(290px, 1fr); gap: 32px 24px; }
  .ct-mgr-groups--split .ct-mgr-group + .ct-mgr-group .ct-mgr-grid { grid-template-columns: 1fr; }
}
.ct-mgr-group h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 20px; margin-bottom: 14px; }
.ct-mgr-group h3 a { font-size: 14.5px; font-weight: 500; color: var(--pc-text-light); }
.ct-mgr-group h3 a:hover { color: var(--pc-cta); }
.ct-mgr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ct-mgr { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); transition: box-shadow .2s, border-color .2s; }
.ct-mgr:hover { box-shadow: var(--pc-shadow); border-color: #d4d4d4; }
.ct-mgr-ava { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; color: #fff; }
.ct-tone-cyan { background: var(--pc-cyan); }
.ct-tone-magenta { background: var(--pc-magenta); }
.ct-tone-yellow { background: var(--pc-yellow); color: var(--pc-dark); }
.ct-tone-gray { background: var(--pc-gray); }
.ct-mgr-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ct-mgr-name { font-size: 17px; color: var(--pc-dark); }
.ct-mgr-role { font-size: 13.5px; color: var(--pc-text-light); }
.ct-mgr-lines { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 15px; }
.ct-mgr-lines a { color: var(--pc-dark); font-weight: 600; }
.ct-mgr-lines a:hover { color: var(--pc-cta); }
.ct-mgr-lines .ct-mgr-mobile { font-size: 16px; }
.ct-mgr-city { font-size: 14px; color: var(--pc-text-light); }
.ct-mgr-city small { display: block; font-size: 12.5px; }
.ct-mgr-city a { white-space: nowrap; }
.ct-mgr-lines .ct-mgr-mail { font-weight: 500; color: var(--pc-link); overflow: hidden; text-overflow: ellipsis; }
.ct-mgr-msgs { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.ct-mgr-msgs a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pc-border); display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
.ct-mgr-msgs a:hover { border-color: var(--pc-cyan); }
.ct-mgr-msgs .bi { color: #229ED9; font-size: 18px; }
.ct-mgr-office { margin: 12px 0 0; font-size: 15px; color: var(--pc-text-light); }
.ct-mgr-office a { font-weight: 600; white-space: nowrap; }

/* ---------- Реквизиты и FAQ ---------- */
.ct-bottom { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.ct-bottom h2 { font-size: clamp(24px, 3vw, 32px); }
#rekvizity, #faq { scroll-margin-top: calc(var(--pc-sticky-top, 90px) + 16px); }
.ct-req { background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); padding: 24px; }
.ct-req-title { font-weight: 700; color: var(--pc-dark); font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ct-req-title .bi { color: var(--pc-cta); }
.ct-req dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: 15.5px; }
.ct-req dt { font-weight: 400; color: var(--pc-text-light); }
.ct-req dd { margin: 0; font-weight: 600; color: var(--pc-dark); font-variant-numeric: tabular-nums; }
.ct-req .btn { display: inline-flex; align-items: center; gap: 6px; }
.ct-req-docs { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--pc-border); font-weight: 600; }
.ct-faq details { border-bottom: 1px solid var(--pc-border); }
.ct-faq details:first-child { border-top: 1px solid var(--pc-border); }
.ct-faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--pc-dark); }
.ct-faq summary::-webkit-details-marker { display: none; }
.ct-faq summary::after { content: "\F4FE"; font-family: "bootstrap-icons"; position: absolute; right: 4px; top: 16px; color: var(--pc-cta); transition: transform .2s; }
.ct-faq details[open] summary::after { transform: rotate(45deg); }
.ct-faq p { margin: 0 0 16px; color: var(--pc-text); line-height: 1.6; }

/* ---------- Наши сайты ---------- */
.ct-sites-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-site { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px 16px 12px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: #fff; transition: box-shadow .2s, border-color .2s; height: 100%; }
.ct-site:hover { border-color: transparent; box-shadow: var(--pc-shadow-lg); }
.ct-site-logo { display: flex; align-items: center; height: 34px; width: 100%; }
.ct-site-logo img { display: block; max-height: 34px; max-width: 100%; width: auto; height: auto; }
.ct-site-logo img.logo-vsenakleiki { max-height: none; height: 52px; margin: -10px 0 -10px -8px; }
.ct-site-domain { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--pc-link); white-space: nowrap; }
.ct-site:hover .ct-site-domain { color: var(--pc-cta); }

/* ---------- Запрос документов ---------- */
.ct-docs-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.ct-docs-side { display: grid; gap: 16px; }
.ct-docs-help a { display: block; font-weight: 600; }
.ct-docs-hours { display: block; color: var(--pc-text-light); font-size: 14.5px; margin-top: 4px; }
.ct-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-seg label {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--pc-border); border-radius: var(--pc-radius);
  cursor: pointer; font-weight: 600; color: var(--pc-dark); transition: border-color .2s, background .2s;
}
.ct-seg label .bi { color: var(--pc-cta); font-size: 20px; margin-bottom: 4px; }
.ct-seg label small { font-weight: 400; color: var(--pc-text-light); font-size: 13px; }
.ct-seg .btn-check:checked + label { border-color: var(--pc-cta); background: #fff6f0; }
.ct-seg .btn-check:focus-visible + label { outline: 2px solid var(--pc-cta); outline-offset: 2px; }
.ct-form-note { margin: 0; text-align: center; font-weight: 600; color: var(--pc-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 1199.98px) {
  .ct-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .ct-sites-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ct-hero { padding-bottom: 40px; }
  .ct-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .ct-quick { max-width: 480px; }
  .ct-offices { grid-template-columns: 1fr; }
  .ct-offices-map { min-height: 0; }
  .ct-offices-map .ct-map { position: relative; inset: auto; height: 440px; }
  .ct-bottom { grid-template-columns: 1fr; gap: 40px; }
  .ct-promise { text-align: left; }
  .ct-sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .ct-quick { padding: 22px; }
  .ct-quick-phone { font-size: 30px; }
  .ct-office { padding: 20px 18px; }
  .ct-office-head h3 { font-size: 20px; }
  .ct-office-pin span { display: none; }
  .ct-office-acts .btn { flex: 1 1 auto; justify-content: center; }
  .ct-sites-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ct-site { padding: 12px; }
  .ct-hero-offices, .ct-lead-more { display: none; }
  .ct-hero .lead { font-size: 17px; }
  .ct-seg label { padding: 12px; font-size: 14.5px; }
  .ct-mgr-grid { grid-template-columns: 1fr; }
}

/* ---------- Заглушка: карта в карточке офиса, ссылка на /contacts/ ---------- */
.ct-map--card { height: 240px; min-height: 0; margin-bottom: 16px; border-radius: var(--pc-radius); }
.ct-map--card .ct-map-ph { gap: 14px; }
.stub-office-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; }
.ct-map--home { height: 100%; min-height: 420px; }

/* ---------- Ссылка «к менеджерам офиса», индикатор «Сейчас работаем» ---------- */
.ct-office-mgrs { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: var(--pc-radius); background: var(--pc-light-gray); font-weight: 600; font-size: 14.5px; color: var(--pc-dark); transition: background .2s, color .2s; }
.ct-office-mgrs .bi-people { color: var(--pc-cta); font-size: 17px; }
.ct-office-mgrs .bi-arrow-down { margin-left: auto; }
.ct-office-mgrs:hover { background: #fff1e8; color: var(--pc-dark); }
.ct-mgr-group { scroll-margin-top: calc(var(--pc-sticky-top, 90px) + 16px); }
.ct-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #eef8f1; color: #146c43; }
.ct-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .2); }
.ct-now.is-closed { background: #fdf2ea; color: #8a3b0c; }
.ct-now.is-closed::before { background: var(--pc-cta); box-shadow: 0 0 0 3px rgba(255, 107, 26, .2); }
.ct-now[hidden] { display: none; }
