/* ============================================================
   BLOCK 12 «ZNAJDŹ NASZ WARSZTAT» (Figma node 922:3053) — контакты.
   Шапка + карточка контактов (соцсети + адрес/почта/телефон) + карта.
   Десктоп pixel-perfect к фрейму 1440, padding 88.
   ============================================================ */
.ct {
  position: relative;
  width: 100%;
  /* блок 11 (.cta) высотой 800, а его карта-фото только 776 → снизу 24px «мёртвого»
     фона секции = чёрная полоса. Перекрываем ВСЕ 24px (раньше было -4 → оставалось 20). */
  margin-top: -24px;
  padding: 88px;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  /* фон-артборд из Figma (assets/11_block.svg): тёмная база + 8% градиент + направляющие */
  background: var(--dark-1100) url('../../public/assets/block12/bg-11.svg') no-repeat center top / cover;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 63px;
}

/* ── Шапка ──────────────────────────────────────────────────── */
.ct__head {
  position: relative; z-index: 1;
  align-self: stretch;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* dash под заголовком (нода 924:3361, наклон ~4° вниз-вправо) */
.ct__line {
  position: absolute;
  left: -21px;
  top: 45px;
  width: 538.43px;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  transform: rotate(4.01deg);
  transform-origin: left center;
}
.ct__line svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ct__title {
  margin: 0; width: 563px;
  font-family: var(--ff-display); font-weight: 700; font-style: italic;
  font-size: 72px; line-height: 72px; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #717171 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; letter-spacing: normal; }
.ct__sub {
  margin: 0; width: 431px;
  font-family: var(--ff-body); font-size: 24px; line-height: 32px; text-align: right; color: var(--light-1000);
}
.ct__sub b { font-weight: 700; letter-spacing: normal; }

/* ── Контакты ───────────────────────────────────────────────── */
.ct__body {
  position: relative; z-index: 2;
  align-self: stretch;
  display: flex; align-items: flex-start; gap: 25px;
}
.ct__details {
  width: 512px; flex: none;
  display: flex; flex-direction: column; gap: 24px;
}

/* карточка-обращение + соцсети */
.ct__msg {
  border-radius: 12px;
  background: var(--dark-1000);
  border: 1px solid var(--light-80);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.ct__msg p {
  margin: 0;
  font-family: var(--ff-body); font-size: 18px; line-height: 28px; color: var(--light-1000);
}
.ct__msg p b { font-weight: 700; letter-spacing: normal; }
.ct__social { display: flex; align-items: center; border-radius: 8px; overflow: hidden; }
.ct__social a {
  flex: 1; height: 56px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--light-40);
  /* по умолчанию 4% белый фон, белая иконка */
  background: var(--light-40);
  transition: background .2s ease;
}
.ct__social a:last-child { border-right: 0; }
/* ховер — белый фон, иконка инвертируется в тёмную */
.ct__social a:hover { background: var(--light-1000); }
/* по умолчанию — все иконки одного цвета, приглушённо-белые (эфф. ~0.34);
   по наведению (фон кнопки белый) — иконка ЧЁРНАЯ.
   У всех 3 SVG убрана встроенная fill-opacity → одинаковая альфа, поэтому
   управляем яркостью только через CSS opacity (на ховере opacity:1 = full black) */
.ct__social img { width: 24px; height: 24px; display: block; filter: brightness(0) invert(1); opacity: .37; transition: filter .2s ease, opacity .2s ease; }
.ct__social a:hover img { filter: brightness(0); opacity: 1; }

/* адрес/почта/телефон */
.ct__address {
  border-radius: 12px;
  background: linear-gradient(0deg, rgba(255,255,255,.02), rgba(255,255,255,.02)), var(--dark-1000);
  display: flex; flex-direction: column;
}
.ct__row {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border-bottom: 1px solid var(--light-40);
  transition: background .18s ease;
}
.ct__row:last-child { border-bottom: 0; }
/* скругление крайних плашек — чтобы ховер не показывал прямые углы */
.ct__row:first-child { border-radius: 12px 12px 0 0; }
.ct__row:last-child { border-radius: 0 0 12px 12px; }
/* ховер плашки контакта — чуть светлее фон */
.ct__row:hover { background: var(--light-40); }
.ct__row-ic {
  width: 64px; height: 64px; flex: none; border-radius: 8px;
  background: var(--light-40);        /* подкладка под иконку */
  display: flex; align-items: center; justify-content: center;
}
.ct__row-ic img { width: 32px; height: 32px; object-fit: contain; display: block; }
.ct__row-txt { display: flex; flex-direction: column; gap: 6px; }
.ct__row-label {
  margin: 0; font-family: var(--ff-body); font-size: 13px; line-height: 1;
  letter-spacing: var(--ls-body); text-transform: uppercase; color: var(--light-600);
}
.ct__row-val {
  margin: 0; font-family: var(--ff-body); font-weight: 700; font-size: 18px; line-height: 20px;
  text-transform: uppercase; color: var(--light-1000); letter-spacing: normal; }

/* карта */
.ct__map {
  flex: 1 1 0; min-width: 0;
  height: 488px;
  border-radius: 12px; overflow: hidden;
  position: relative;
}
/* обводка-рамка ПОВЕРХ карты: прямоугольник radius 12, border 1px #FFFFFF 4%.
   inset:0 → всегда повторяет размер карты (адаптивно), pointer-events:none → не мешает */
.ct__map::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1000;
}
/* холст карты (Leaflet) заполняет .ct__map */
.ct__map-canvas { position: absolute; inset: 0; }

/* кнопка «Zobacz nas w Google Maps» поверх карты (Figma 944:4222) — правый ВЕРХНИЙ угол, отступы 16 */
.ct__map-btn {
  position: absolute; right: 16px; top: 16px; z-index: 1001;
  display: flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  text-decoration: none;
}
.ct__map-btn__main {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--light-40);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  border-right: 1px solid var(--light-40);
  transition: background .2s ease;
}
/* иконка без подложки и без растяжения: реальный лого Google Maps (69×88) —
   фиксируем высоту, ширина auto → сохраняем пропорции пина (не плющим в квадрат) */
.ct__map-btn__ic { width: auto; height: 24px; display: block; flex: none; object-fit: contain; }
.ct__map-btn__label {
  font-family: var(--ff-body); font-weight: 700; font-size: 14px; line-height: 20px;
  text-transform: uppercase; color: var(--light-1000); white-space: nowrap; letter-spacing: normal; }
.ct__map-btn__arrow {
  display: flex; align-items: center; justify-content: center; width: 32px;
  background: var(--light-40); color: var(--light-1000);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: background .2s ease;
}
.ct__map-btn__arrow .btn-arrow { width: 16px; height: 16px; }
/* ховер — взят 1:1 с CTA-кнопок: плавное премиальное увеличение
   (--hover-transition = transform .42s ease-smooth, scale 1.02) + шеврон » → ↗ */
.ct__map-btn { transition: var(--hover-transition); transform-origin: center; }
.ct__map-btn:hover { transform: scale(1.02); }
.ct__map-btn:hover .ct__map-btn__main,
.ct__map-btn:hover .ct__map-btn__arrow { background: var(--light-80); }
.ct__map-btn:hover .btn-arrow__chev { opacity: 0; transform: translate(3px, -3px) scale(.6); }
.ct__map-btn:hover .btn-arrow__diag { opacity: 1; transform: translate(0, 0) scale(1); }
/* интерактивная карта (Leaflet) */
.ct__map .leaflet-container {
  width: 100%; height: 100%;
  background: var(--dark-1000);
  font-family: var(--ff-body);
  border: 0;
  outline: 0;            /* убрать дефолтную белую рамку/фокус-обводку Leaflet (outline-offset:1px) */
}
.ct__map .leaflet-container:focus,
.ct__map .leaflet-container:focus-visible { outline: 0; box-shadow: none; }
/* убрать синюю focus-обводку у пина-маркера */
.ct__map .leaflet-marker-icon,
.ct__map .leaflet-marker-icon:focus,
.ct__map .leaflet-marker-icon:focus-visible { outline: 0; }

/* ── Поп-ап карты — тёмный, наши шрифты, белый текст ──────────── */
.ct__map .leaflet-popup-content-wrapper {
  background: #0A0A0A;
  color: var(--light-1000);
  border-radius: 12px;
  border: 1px solid var(--light-40);
  box-shadow: 0 14px 36px rgba(0,0,0,.55);
}
.ct__map .leaflet-popup-tip { background: #0A0A0A; box-shadow: none; }
.ct__map .leaflet-popup-content { margin: 16px 20px; font-family: var(--ff-body); }
/* поп-ап = кликабельная ссылка на Google Maps (текст + стрелка) */
.ct-popup { display: flex; align-items: center; justify-content: space-between; gap: 18px; text-decoration: none; }
.ct-popup__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ct-popup__arrow {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--light-40); color: var(--light-1000);
  transition: background .2s ease, color .2s ease;
}
.ct-popup__arrow svg { width: 15px; height: 15px; display: block; }
.ct-popup:hover .ct-popup__arrow { background: var(--light-1000); color: var(--dark-1000); }
.ct-popup__title {
  font-family: var(--ff-body); font-weight: 700;
  font-size: 16px; line-height: 22px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--light-1000); white-space: nowrap;
}
.ct-popup__addr {
  font-family: var(--ff-body); font-weight: 400;
  font-size: 14px; line-height: 20px; color: var(--light-600); white-space: nowrap;
}
/* крестик закрытия — белый */
.ct__map .leaflet-popup-close-button { color: var(--light-600); }
.ct__map .leaflet-popup-close-button:hover { color: var(--light-1000); background: transparent; }
/* атрибуция — затемнена под общий дизайн, почти незаметна */
.ct__map .leaflet-control-attribution {
  background: rgba(15,15,15,.55); color: rgba(255,255,255,.28);
  font-size: 9px; padding: 0 5px;
}
.ct__map .leaflet-control-attribution a { color: rgba(255,255,255,.4); }
.ct__map .leaflet-bar a {
  background: rgba(15,15,15,.85); color: var(--light-1000);
  border-bottom-color: var(--light-40);
}
.ct__map .leaflet-bar a:hover { background: rgba(40,40,40,.95); }
/* пин-точка = логотип из шапки, БЕЗ свечения */
.ct-pin { background: none; border: 0; }
.ct-pin img {
  width: 60px; height: auto; display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));   /* только лёгкая тень для читаемости */
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ct__title { font-size: 48px; line-height: 48px; width: auto; }
  .ct__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ct__sub { width: auto; text-align: left; }
  .ct__body { flex-direction: column; }
  .ct__details { width: 100%; }
  .ct__map { width: 100%; flex: none; }
}
@media (max-width: 768px) {
  /* мобайл pixel-perfect (Figma 492:631): pad 48/16, заголовок Druk 40 ЦЕНТР, подзаг 18/26 */
  .ct { padding: 48px 16px; gap: 24px; }
  .ct__head { align-items: center; text-align: center; gap: 16px; position: relative; }
  .ct__title { font-size: 40px; line-height: 40px; width: auto; }
  .ct__sub { width: auto; text-align: center; font-size: 18px; line-height: 26px; }
  /* dash под заголовком «Znajdź nasz warsztat» */
  .ct__line {
    display: block; position: absolute; left: 50%; top: 48px; width: min(300px, calc(100% - 32px));
    height: 1px; z-index: 1; transform: translateX(-50%) rotate(-2.4deg);
  }
  .ct__body { gap: 12px; }
  .ct__map { height: 229px; }
  /* плашки контактов компактнее (Figma 492:679): иконка 48, значение 14, лейбл 12 → почта влезает в строку */
  .ct__row { padding: 12px 16px; }
  .ct__row-ic { width: 48px; height: 48px; }
  .ct__row-ic img { width: 24px; height: 24px; }
  .ct__row-label { font-size: 12px; letter-spacing: var(--ls-body); }
  .ct__row-val { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
  /* кнопка карты — вниз, ровные отступы, на всю ширину карты (Figma) */
  .ct__map-btn { left: 16px; right: 16px; bottom: 16px; top: auto; }
  .ct__map-btn__main { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .ct__title { font-size: 40px; line-height: 42px; }   /* заголовок контактов 40px на мобайле */
}
