/* ============================
   Контакты — редизайн (T36)
   ============================ */

/* ---------- Hero ---------- */
.ct-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.ct-hero__bg { position: absolute; inset: 0; }
.ct-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  display: block;
}
.ct-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 40, .6) 0%, rgba(6, 24, 40, .62) 45%, rgba(6, 24, 40, .9) 100%);
}
.ct-hero__inner {
  position: relative; z-index: 1;
  padding-top: 150px; padding-bottom: 116px;
}
.ct-hero .breadcrumbs a, .ct-hero .breadcrumbs .sep { color: rgba(255, 255, 255, .75); }
.ct-hero .breadcrumbs .current { color: #fff; }
.ct-hero h1 { color: #fff; margin: 10px 0 12px; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.ct-hero__lead {
  max-width: 560px; font-size: 1.06rem; line-height: 1.55; color: rgba(255, 255, 255, .92);
  margin: 0 0 24px;
}
.ct-hero__lead a { color: #fff; font-weight: 700; }
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-hero__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 12px; font-weight: 800; font-size: 1rem;
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ct-hero__btn--primary {
  background: #f0b63f; color: #2a1f05;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.ct-hero__btn--ghost {
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px);
}
.ct-hero__btn:hover { transform: translateY(-2px); }
.ct-hero__btn--primary:hover { background: #f6c358; }
.ct-hero__btn--ghost:hover { background: rgba(255, 255, 255, .24); }
@media (max-width: 560px) {
  .ct-hero__actions { flex-direction: column; align-items: stretch; }
  .ct-hero__btn { justify-content: center; }
  .ct-hero__inner { padding-top: 120px; padding-bottom: 96px; }
}

/* ---------- Карточки контактов ---------- */
.ct-cards {
  /* stretch по умолчанию: карточки в ряду одной высоты, иначе сетка «рвётся»
     (у «Телефонов» высота в 2–2,5 раза больше, чем у «Адреса»/«Режима работы») */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; margin-top: -70px; position: relative; z-index: 2;
}
.ct-card {
  background: #fff; border: 1px solid var(--c-line, #dfe4ec);
  border-radius: 18px; padding: 22px 22px 20px;
  box-shadow: 0 14px 34px rgba(8, 33, 54, .1);
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(8, 33, 54, .16); }
.ct-card__icon {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cc, #1f5590) 12%, #fff);
  color: var(--cc, #1f5590); font-size: 1.5rem;
}
.ct-card__body { flex: 1 1 auto; min-width: 0; }
.ct-card h3 { margin: 2px 0 8px; font-size: 1.1rem; }
.ct-card p { margin: 0 0 6px; font-weight: 600; }
.ct-card .note { display: block; font-size: .85rem; color: var(--c-muted, #5a6a7e); line-height: 1.45; }
.ct-card--addr { --cc: #1f5590; }
.ct-card--phones { --cc: #1f8278; }
.ct-card--hours { --cc: #b8741a; }
.ct-card--visit { --cc: #4a7a3f; }
.ct-card .phone-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ct-card .phone-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .95rem; }
.ct-card .phone-list span { color: var(--c-muted, #5a6a7e); }
.ct-card .phone-list a { font-weight: 800; white-space: nowrap; }
.ct-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-weight: 700; font-size: .9rem; color: var(--cc);
}
.ct-card__link:hover { text-decoration: underline; }
.ct-card__list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .88rem; color: var(--c-muted, #5a6a7e); }
.ct-card__list li { padding-left: 16px; position: relative; }
.ct-card__list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--cc); }

@media (max-width: 760px) {
  .ct-cards { grid-template-columns: 1fr; margin-top: -56px; }
}

/* ---------- Как добраться ---------- */
.ct-travel {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 22px; align-items: stretch;
}
.ct-travel__map {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--c-line, #dfe4ec);
  box-shadow: 0 14px 34px rgba(8, 33, 54, .1);
  min-height: 420px;
}
.ct-travel__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.ct-travel__side {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line, #dfe4ec); border-radius: 18px;
  overflow: hidden; box-shadow: 0 14px 34px rgba(8, 33, 54, .1);
}
.ct-travel__photo { position: relative; height: 200px; flex: 0 0 auto; }
.ct-travel__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-travel__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 24, 40, .45));
}
.ct-travel__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.ct-travel__body p { margin: 0; font-size: .94rem; color: var(--c-muted, #5a6a7e); line-height: 1.55; }
.ct-travel__body p b { color: var(--c-ink, #16293c); }
.ct-travel__route {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; font-weight: 800;
  background: #1f5590; color: #fff; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.ct-travel__route:hover { background: #16406e; transform: translateY(-2px); }
@media (max-width: 900px) {
  .ct-travel { grid-template-columns: 1fr; }
  .ct-travel__map, .ct-travel__map iframe { min-height: 320px; }
}

/* ---------- Горячие линии ---------- */
.ct-lines {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.ct-line {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--c-line, #dfe4ec); border-radius: 18px;
  padding: 20px; box-shadow: 0 10px 26px rgba(8, 33, 54, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ct-line:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(8, 33, 54, .13); }
.ct-line__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: color-mix(in srgb, var(--cc, #1f5590) 12%, #fff); color: var(--cc, #1f5590);
}
.ct-line--117 { --cc: #1f5590; }
.ct-line--122 { --cc: #b8291f; }
.ct-line--psy { --cc: #1f8278; }
.ct-line--obl { --cc: #55627a; }
.ct-line h3 { margin: 0; font-size: 1rem; }
.ct-line__num { font-size: 1.25rem; font-weight: 800; color: var(--c-ink, #16293c); }
.ct-line__num a { color: inherit; text-decoration: none; }
.ct-line__num a:hover { color: var(--cc); }
.ct-line p { margin: 0; font-size: .86rem; color: var(--c-muted, #5a6a7e); line-height: 1.5; }
@media (max-width: 1180px) { .ct-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ct-lines { grid-template-columns: 1fr; } }

/* ---------- Нижний CTA ---------- */
.ct-cta {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(120deg, #0f2f57, #1f5590 60%, #2a6db4);
  color: #fff; padding: 34px 36px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(8, 33, 54, .18);
}
.ct-cta::before {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(240, 182, 63, .18);
}
.ct-cta__text { flex: 1 1 320px; position: relative; }
.ct-cta__text h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.ct-cta__text p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .98rem; line-height: 1.5; }
.ct-cta__btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: #f0b63f; color: #2a1f05; padding: 15px 28px; border-radius: 12px;
  font-weight: 800; font-size: 1.1rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .18s ease, background .18s ease;
}
.ct-cta__btn:hover { transform: translateY(-2px); background: #f6c358; }
@media (max-width: 560px) { .ct-cta { padding: 24px 20px; } }

/* ---------- Мелочи ---------- */
.ct-section-tight { padding-top: 0; }
.ct-hero .live-badge { margin-top: 14px; }
