/* ============================================================
   CONTACTS — Premium Industrial Closing Block
   Left: contact info + trust details. Right: Yandex Map.
   ============================================================ */

.contacts {
  background: var(--c-white);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 40px,
      rgba(31, 41, 51, 0.028) 40px,
      rgba(31, 41, 51, 0.028) 41px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 40px,
      rgba(31, 41, 51, 0.028) 40px,
      rgba(31, 41, 51, 0.028) 41px
    );
  padding: var(--section-py-sm) 0;
  position: relative;
  overflow: hidden;
}

/* Soft ambient gradient — smooth page ending */
.contacts::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 42, 0.018) 100%
  );
  pointer-events: none;
  z-index: 0;
}


.contacts__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}


/* ── Left: info column ── */

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contacts__info-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contacts__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contacts__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-amber);
  border-radius: 2px;
  flex-shrink: 0;
}

.contacts__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--c-graphite);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contacts__desc {
  font-size: var(--text-sm);
  color: rgba(22, 32, 50, 0.58);
  line-height: 1.65;
  max-width: 420px;
}


/* ── Contact list ── */

.contacts__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.contacts__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-3);
  margin-left: calc(var(--sp-3) * -1);
  border-bottom: 1px solid rgba(15, 23, 42, 0.055);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  cursor: default;
  transition:
    border-left-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.contacts__item:first-child {
  padding-top: var(--sp-2);
}

.contacts__item:last-child {
  border-bottom: none;
}

.contacts__item:hover {
  border-left-color: rgba(217, 119, 6, 0.50);
  background: rgba(217, 119, 6, 0.022);
  box-shadow: inset 0 0 0 0 transparent, 0 1px 4px rgba(15, 23, 42, 0.04);
}


/* ── Phone item: dominant focal point ── */

.contacts__list .contacts__item:first-child .contacts__item-value {
  font-size: calc(var(--text-base) * 1.10);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-graphite);
}

.contacts__list .contacts__item:first-child .contacts__item-icon {
  background: rgba(217, 119, 6, 0.07);
  border-color: rgba(217, 119, 6, 0.18);
  color: rgba(217, 119, 6, 0.80);
}


/* ── Contact item icon ── */

.contacts__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(217, 119, 6, 0.04);
  border: 1px solid rgba(217, 119, 6, 0.10);
  color: rgba(100, 115, 130, 0.80);
  flex-shrink: 0;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.contacts__item-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.contacts__item:hover .contacts__item-icon {
  color: rgba(217, 119, 6, 0.85);
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.20);
}


/* ── Contact item meta ── */

.contacts__item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts__item-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(22, 32, 50, 0.40);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.contacts__item-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-graphite);
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.contacts__item-value:hover {
  color: var(--c-amber);
}


/* ── Messenger buttons ── */

.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
}

.contacts__messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px var(--sp-4);
  background: #F8F7F5;
  border: 1.5px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-graphite);
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
  transition:
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.contacts__messenger-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
}

.contacts__messenger-btn:hover {
  border-color: rgba(217, 119, 6, 0.36);
  color: rgba(180, 90, 0, 0.90);
  background: rgba(217, 119, 6, 0.035);
  box-shadow:
    0 2px 8px rgba(217, 119, 6, 0.09),
    0 0 0 1px rgba(217, 119, 6, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
  transform: translateY(-1px);
}


/* ── Trust strip ── */

.contacts__trust-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.contacts__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #F8F8F6;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(22, 32, 50, 0.60);
  line-height: 1.35;
  letter-spacing: 0.01em;
  /* Subtle top edge — technical surface feel */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  transition: border-color 0.22s ease;
}

.contacts__trust-item:hover {
  border-color: rgba(217, 119, 6, 0.22);
}

.contacts__trust-item svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: rgba(217, 119, 6, 0.65);
  stroke-width: 2;
}


/* ── Right: map column ── */

.contacts__map-wrap {
  display: flex;
  flex-direction: column;
}

.contacts__map-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  /* Ambient shadow: subtle lift without floating card effect */
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.05),
    0 8px 28px rgba(15, 23, 42, 0.08),
    0 20px 48px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  min-height: 360px;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.contacts__map-frame:hover {
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.07),
    0 14px 44px rgba(15, 23, 42, 0.09),
    0 28px 64px rgba(15, 23, 42, 0.07),
    0 0 0 1px rgba(217, 119, 6, 0.07),
    0 20px 48px rgba(217, 119, 6, 0.04);
  transform: translateY(-2px);
}

/*
  Industrial coverage map filter stack:
  — grayscale(0.52): secondary markers fully neutralised → subdued object points
  — saturate(0.38): roads/greenery go soft, tourist-pin vibrancy stripped
  — sepia(0.07): neutral-cool industrial base tone
  — contrast(1.01): barely sharpens structural lines without deepening darks
  — brightness(0.965): slight dimming — map sits behind the badge, not beside it
*/
.contacts__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(0.52) saturate(0.38) sepia(0.07) contrast(1.01) brightness(0.965);
}

/* Layer 1 (::before) — directional vignette: edges darker, centre breathes */
.contacts__map-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 40px rgba(10, 17, 28, 0.14),
    inset 0 -24px 32px rgba(10, 17, 28, 0.08),
    inset 0 24px 32px rgba(10, 17, 28, 0.06);
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

/* Layer 2 (::after) — neutral-cool industrial tint over map surface */
.contacts__map-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 34, 0.07);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* Floating info badge over map — premium industrial HQ marker */
.contacts__map-badge {
  position: absolute;
  bottom: 52px;
  left: var(--sp-5);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: rgba(7, 12, 20, 0.96);
  /* Left amber accent — brand language consistent with site cards */
  border-top: 1px solid rgba(217, 119, 6, 0.24);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.20);
  border-left: 2px solid rgba(217, 119, 6, 0.55);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.27),
    0 2px 6px rgba(0, 0, 0, 0.17),
    0 1px 2px rgba(0, 0, 0, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contacts__map-badge-logo {
  width: 32px;
  height: 32px;
  background: rgba(217, 119, 6, 0.20);
  border: 1px solid rgba(217, 119, 6, 0.44);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  /* Slightly warmer amber — stands out against near-black bg */
  color: #FBAD1A;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(251, 173, 26, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.contacts__map-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts__map-badge-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.contacts__map-badge-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.36);
  line-height: 1.2;
  letter-spacing: 0.02em;
}


/* ── Reveal animations ── */

.contacts__info-header[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.contacts__info-header[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contacts__item[data-reveal] {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.contacts__item[data-reveal].is-visible {
  opacity: 1;
  transform: translateX(0);
}

.contacts__list .contacts__item[data-reveal]:nth-child(1) { transition-delay: 0.06s; }
.contacts__list .contacts__item[data-reveal]:nth-child(2) { transition-delay: 0.13s; }
.contacts__list .contacts__item[data-reveal]:nth-child(3) { transition-delay: 0.20s; }
.contacts__list .contacts__item[data-reveal]:nth-child(4) { transition-delay: 0.27s; }

.contacts__messengers[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease 0.32s, transform 0.45s ease 0.32s;
}

.contacts__messengers[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contacts__trust-strip[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease 0.42s, transform 0.45s ease 0.42s;
}

.contacts__trust-strip[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contacts__map-wrap[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}

.contacts__map-wrap[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .contacts__info-header[data-reveal],
  .contacts__item[data-reveal],
  .contacts__messengers[data-reveal],
  .contacts__trust-strip[data-reveal],
  .contacts__map-wrap[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── Tablet (768px+) ── */

@media (min-width: 768px) {
  .contacts {
    padding: var(--section-py-md) 0;
  }

  .contacts__trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__map-frame,
  .contacts__map-frame iframe {
    min-height: 440px;
  }
}


/* ── Desktop (1024px+) ── */

@media (min-width: 1024px) {
  .contacts {
    padding: var(--section-py-lg) 0;
  }

  .contacts__container {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: start;
  }

  .contacts__trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__map-frame,
  .contacts__map-frame iframe {
    min-height: 520px;
  }
}


/* ── Large desktop (1280px+) ── */

@media (min-width: 1280px) {
  .contacts__container {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .contacts__map-frame,
  .contacts__map-frame iframe {
    min-height: 560px;
  }
}
