/* ============================================================
   WERWOLF — Страница Контакты (page.kontakty)
   Загружается глобально через styles.liquid
   ============================================================ */

/* ── Секция-разделитель ── */

.ww-contacts-section {
  margin-bottom: 48px;
}
.ww-contacts-section:last-child {
  margin-bottom: 0;
}

/* ── Eyebrow (маленькая золотая надпись сверху) ── */
.ww-contacts-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── Заголовки секций — БЕЛЫЕ (перебиваем всё) ── */
.ww-contacts-section-title,
.ww-info-content h2 {
  font-family: var(--font-logo) !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #F0EDE8 !important;
  margin: 0 0 28px !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
}

/* ── Глобальный сброс подчёркиваний на странице контактов ── */
.ww-info-content a,
.ww-contacts-section a,
.ww-contact-hero,
.ww-contact-item,
.ww-social-btn,
.ww-map-btn,
.ww-b2b-btn {
  text-decoration: none !important;
}

/* ══════════════════════════════════════════
   БЛОК ПРЯМОЙ СВЯЗИ — компоновка 2 колонки
   Левая: большой телефон (hero)
   Правая: региональный + email стопкой
   Низ: мессенджеры на всю ширину
   ══════════════════════════════════════════ */

.ww-contacts-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: 14px;
}

/* ── Герой-карточка: главный телефон 8-800 ── */
.ww-contact-hero {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #1A1208 0%, #111113 100%);
  border: 1px solid rgba(200,145,42,0.28);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  justify-content: center;
}
.ww-contact-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(200,145,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ww-contact-hero:hover {
  border-color: rgba(200,145,42,0.5);
  box-shadow: 0 4px 32px rgba(200,145,42,0.12);
}

.ww-contact-hero-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(200,145,42,0.12);
  border: 1px solid rgba(200,145,42,0.3);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.ww-contact-hero-icon svg {
  width: 20px;
  height: 20px;
}

.ww-contact-hero-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.ww-contact-hero-label {
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  opacity: 0.85;
}
.ww-contact-hero-number {
  font-family: var(--font-logo);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F0EDE8;
  line-height: 1;
  transition: color 0.2s;
}
a.ww-contact-hero:hover .ww-contact-hero-number {
  color: var(--accent);
}
.ww-contact-hero-sub {
  font-size: 13px;
  color: rgba(240,237,232,0.45);
}

/* ── Стандартная карточка ── */
.ww-contact-item {
  background: var(--bg-secondary, #111113);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.ww-contact-item:hover {
  border-color: rgba(255,255,255,0.11);
  background: #18181B;
}

.ww-contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(200,145,42,0.10);
  border: 1px solid rgba(200,145,42,0.22);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ww-contact-icon svg {
  width: 20px;
  height: 20px;
}

.ww-contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ww-contact-label {
  font-family: var(--font-logo);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(240,237,232,0.38);
}
.ww-contact-value {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F0EDE8;
  line-height: 1.2;
  transition: color 0.2s;
  text-decoration: none !important;
}
a.ww-contact-item:hover .ww-contact-value {
  color: var(--accent);
}
.ww-contact-sub {
  font-size: 12px;
  color: rgba(240,237,232,0.38);
  margin-top: 2px;
}

/* ── Карточка 2 ряд: телефон 2 + email ── */
.ww-contacts-direct > .ww-contact-item:not(.ww-contact-item--wide) {
  grid-column: 2;
}

/* ── Карточка мессенджеров — нижняя строка, на всю ширину ── */
.ww-contact-item--wide {
  grid-column: 1 / -1;
  grid-row: 3;
  flex-direction: column;
  gap: 18px;
  cursor: default;
}
.ww-contact-item--wide:hover {
  border-color: rgba(255,255,255,0.06);
  background: var(--bg-secondary, #111113);
}
.ww-contact-item--wide .ww-contact-item-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Мессенджеры-кнопки ── */
.ww-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ww-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 9px 18px;
  color: rgba(240,237,232,0.65);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ww-social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ww-social-btn:hover {
  border-color: rgba(200,145,42,0.3);
  color: var(--accent);
  background: rgba(200,145,42,0.07);
}

/* ══════════════════════════════════════════
   БЛОК АДРЕСОВ — карточки слева, карта справа
   ══════════════════════════════════════════ */

.ww-addr-map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch; /* карта растягивается по высоте левой колонки */
}

.ww-addr-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ww-address-card {
  background: var(--bg-secondary, #111113);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ww-address-type {
  font-family: var(--font-logo);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.ww-address-name {
  font-family: var(--font-logo);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #F0EDE8;
}
.ww-address-text {
  font-size: 14px;
  color: rgba(240,237,232,0.58);
  line-height: 1.65;
}

/* ── Кнопка «Смотреть на карте» ── */
.ww-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none !important;
  opacity: 0.72;
  transition: opacity 0.2s;
}
.ww-map-btn svg { width: 13px; height: 13px; }
.ww-map-btn:hover { opacity: 1; }

/* ── Часы работы ── */
.ww-working-hours {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ww-working-hours-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(240,237,232,0.35);
}
.ww-working-hours-text {
  font-size: 13px;
  color: rgba(240,237,232,0.55);
  line-height: 1.6;
}
.ww-working-hours-text strong {
  color: rgba(240,237,232,0.85);
  font-weight: 600;
}

/* ── Яндекс Карта — высота = вся левая колонка ── */
.ww-map-embed {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  height: 100%; /* растягивается по высоте адресного столбца */
  min-height: 300px;
}
.ww-map-embed iframe {
  width: 100%; height: 100%;
  border: none; display: block;
  pointer-events: none;
}
.ww-map-embed.ww-map-active iframe {
  pointer-events: auto;
}

/* Overlay для активации карты кликом */
.ww-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  cursor: pointer;
  background: transparent;
}
.ww-map-overlay-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  color: rgba(240,237,232,0.75);
  pointer-events: none;
}
.ww-map-embed.ww-map-active .ww-map-overlay {
  display: none;
}

/* ══════════════════════════════════════════
   B2B БАННЕР — PNG поверх, свечение справа
   ══════════════════════════════════════════ */

.ww-b2b-banner {
  background: #1A1208;
  border: 1px solid rgba(200,145,42,0.22);
  border-radius: 20px;
  padding: 52px 48px 52px 48px;
  padding-right: calc(28% + 24px); /* место для абсолютного изображения */
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

/* Левое свечение */
.ww-b2b-banner::before {
  content: '';
  position: absolute;
  top: -80px; left: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200,145,42,0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Правое свечение — за фото коробок */
.ww-b2b-banner::after {
  content: '';
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 50%;
  height: 85%;
  background: radial-gradient(ellipse at 60% 100%, rgba(200,145,42,0.18) 0%, rgba(200,145,42,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.ww-b2b-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.ww-b2b-text { flex: 1; }

.ww-b2b-eyebrow {
  font-family: var(--font-logo);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.ww-b2b-title {
  font-family: var(--font-logo) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #F0EDE8 !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
}
.ww-b2b-sub {
  font-size: 14px;
  color: rgba(240,237,232,0.55);
  line-height: 1.7;
}

/* ── Кнопка B2B ── */
.ww-b2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #000 !important;
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 0 32px;
  height: 56px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.ww-b2b-btn:hover {
  background: #D4A040;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,145,42,0.32);
}
.ww-b2b-btn svg {
  width: 16px; height: 16px;
  transition: transform 0.2s;
  color: #000;
}
.ww-b2b-btn:hover svg {
  transform: translate(2px, -2px);
}

/* ── PNG-изображение — абсолютно, по низу, без рамки ── */
.ww-b2b-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 28%;
  z-index: 2;
  pointer-events: none;
}
.ww-b2b-img-wrap {
  width: 100%;
  height: 100%;
  line-height: 0;
  overflow: visible;
  display: flex;
  align-items: flex-end;
}
.ww-b2b-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center bottom;
}
.ww-b2b-banner:hover .ww-b2b-img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════
   ЮРИДИЧЕСКАЯ ИНФОРМАЦИЯ
   ══════════════════════════════════════════ */

.ww-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ww-legal-label {
  font-family: var(--font-logo);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(240,237,232,0.35);
  margin-bottom: 6px;
}
.ww-legal-value {
  font-size: 14px;
  color: rgba(240,237,232,0.55);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   МОБИЛЬНЫЙ
   ══════════════════════════════════════════ */

@media (max-width: 900px) {
  .ww-contacts-direct {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ww-contact-hero       { grid-column: auto; grid-row: auto; }
  .ww-contact-item--wide { grid-column: auto; grid-row: auto; }
  /* Сбрасываем принудительную 2-ю колонку на мобильном */
  .ww-contacts-direct > .ww-contact-item:not(.ww-contact-item--wide) {
    grid-column: auto;
  }

  .ww-contact-hero-number { font-size: 30px; }
  .ww-contact-hero        { padding: 24px 20px; }

  .ww-addr-map-layout     { grid-template-columns: 1fr; }
  .ww-map-embed           { height: 260px; }

  .ww-b2b-banner          { padding: 36px 24px 300px; min-height: auto; }
  .ww-b2b-visual          { width: 58%; right: 50%; transform: translateX(50%); bottom: 0; }
  .ww-b2b-banner::after   { display: none; }
  /* Кнопка на всю ширину как "Смотреть каталог" */
  .ww-b2b-btn {
    width: 100%;
    align-self: stretch;
    justify-content: center;
  }

  .ww-legal-grid          { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ww-contacts-section-title { font-size: 26px !important; }
}

@media (max-width: 640px) {
  .ww-legal-grid          { grid-template-columns: 1fr; }
  .ww-social-row          { gap: 8px; }
  .ww-contact-hero-number { font-size: 26px; }
  .ww-map-embed           { height: 220px; }
}
