/* ╔══════════════════════════════════════════════════════════╗
   ║          CONTACTS SECTION                               ║
   ╚══════════════════════════════════════════════════════════╝ */

.rz-contacts {
  position: relative;
  padding: 100px 0 40px;
  overflow: hidden;
}

/* ═══════════════ BACKGROUND ═══════════════ */

.rz-contacts-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.rz-contacts-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.rz-contacts-blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(88, 128, 192, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
}

.rz-contacts-blob--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  bottom: -180px;
  left: -120px;
}

.rz-contacts-blob--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(149, 193, 31, 0.06) 0%, transparent 70%);
  top: 40%;
  left: 30%;
}

.rz-contacts-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 128, 192, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 128, 192, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}

/* ═══════════════ ACTION BUTTONS ═══════════════ */

.rz-contacts-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.rz-contacts-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px -4px rgba(88, 128, 192, 0.08);
}

.rz-contacts-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rz-contacts-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -8px rgba(88, 128, 192, 0.18);
  border-color: transparent;
}

.rz-contacts-action:hover::before {
  opacity: 1;
}

.rz-contacts-action--call .rz-contacts-action-icon {
  background: rgba(88, 128, 192, 0.1);
  color: var(--rz-primary);
}

.rz-contacts-action--call::before {
  background: linear-gradient(90deg, var(--rz-primary), var(--rz-cyan));
}

.rz-contacts-action--tg .rz-contacts-action-icon {
  background: rgba(0, 136, 204, 0.08);
  color: #0088cc;
}

.rz-contacts-action--tg::before {
  background: linear-gradient(90deg, #0088cc, #29b6f6);
}

.rz-contacts-action--mail .rz-contacts-action-icon {
  background: rgba(6, 182, 212, 0.08);
  color: var(--rz-cyan);
}

.rz-contacts-action--mail::before {
  background: linear-gradient(90deg, var(--rz-cyan), #22d3ee);
}

.rz-contacts-action--vk .rz-contacts-action-icon {
  background: rgba(70, 128, 194, 0.08);
  color: #4680C2;
}

.rz-contacts-action--vk::before {
  background: linear-gradient(90deg, #4680C2, #5e9ce0);
}

.rz-contacts-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rz-contacts-action-icon svg {
  width: 22px;
  height: 22px;
}

.rz-contacts-action-body {
  flex: 1;
  min-width: 0;
}

.rz-contacts-action-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--rz-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.rz-contacts-action-value {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--rz-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rz-contacts-action-arrow {
  width: 20px;
  height: 20px;
  color: var(--rz-gray);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.rz-contacts-action:hover .rz-contacts-action-arrow {
  opacity: 0.5;
  transform: translate(0, 0);
}

/* ═══════════════ TRIO ═══════════════ */

.rz-contacts-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* ─── Card base ─── */
.rz-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px -4px rgba(88, 128, 192, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rz-card:hover {
  box-shadow: 0 8px 32px -8px rgba(88, 128, 192, 0.12);
}

.rz-card-inner {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─── Субсидия ─── */

.rz-contacts-subsidy .rz-card-inner {
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(149, 193, 31, 0.04) 0%, rgba(88, 128, 192, 0.04) 100%),
    rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rz-contacts-subsidy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(149, 193, 31, 0.12), rgba(149, 193, 31, 0.06));
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rz-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  width: fit-content;
}

.rz-contacts-subsidy-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--rz-accent), var(--rz-accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px -6px rgba(149, 193, 31, 0.35);
}

.rz-contacts-subsidy-icon svg {
  width: 26px;
  height: 26px;
}

.rz-contacts-subsidy-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--rz-dark);
  margin: 0 0 8px;
}

.rz-contacts-subsidy-desc {
  font-size: 14px;
  color: var(--rz-gray);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

.rz-contacts-subsidy-phone {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--rz-dark);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.3s ease;
  letter-spacing: -0.5px;
}

.rz-contacts-subsidy-phone:hover {
  color: var(--rz-accent);
}

.rz-contacts-subsidy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--rz-light);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rz-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.rz-contacts-subsidy-link:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(88, 128, 192, 0.12);
}

.rz-contacts-subsidy-link svg {
  transition: transform 0.25s ease;
}

.rz-contacts-subsidy-link:hover svg {
  transform: translateX(3px);
}

/* ─── Офис ─── */

.rz-contacts-office .rz-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.rz-contacts-office-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.rz-contacts-office-marker {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(88, 128, 192, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rz-primary);
  flex-shrink: 0;
}

.rz-contacts-office-marker svg {
  width: 22px;
  height: 22px;
}

.rz-contacts-office-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--rz-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.rz-contacts-office-address {
  font-size: 16px;
  font-weight: 600;
  color: var(--rz-dark);
  line-height: 1.5;
  margin: 0;
}

.rz-contacts-office-schedule {
  background: var(--rz-light);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  flex: 1;
}

.rz-contacts-office-schedule-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--rz-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.rz-contacts-office-schedule-title svg {
  color: var(--rz-cyan);
}

.rz-contacts-office-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rz-contacts-office-hours-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rz-contacts-office-day {
  font-size: 14px;
  color: var(--rz-gray);
  white-space: nowrap;
}

.rz-contacts-office-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(88, 128, 192, 0.15);
  min-width: 20px;
  margin-bottom: -4px;
}

.rz-contacts-office-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--rz-dark);
  white-space: nowrap;
}

.rz-contacts-office-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-cyan));
  border-radius: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px -4px rgba(88, 128, 192, 0.3);
}

.rz-contacts-office-route:hover {
  box-shadow: 0 8px 28px -4px rgba(88, 128, 192, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* ─── Карта ─── */

.rz-contacts-map-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
}

.rz-contacts-map-frame {
  position: absolute;
  inset: 0;
  background: #e8ecf4;
}

.rz-contacts-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.rz-contacts-map-activate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(88, 128, 192, 0.06), rgba(6, 182, 212, 0.04));
  border: none;
  cursor: pointer;
  color: var(--rz-primary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rz-contacts-map-activate:hover {
  background: linear-gradient(135deg, rgba(88, 128, 192, 0.12), rgba(6, 182, 212, 0.08));
  color: var(--rz-dark);
}

.rz-contacts-map-activate svg {
  opacity: 0.5;
}

.rz-contacts-map-activate:hover svg {
  opacity: 0.8;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1100px) {
  .rz-contacts {
    padding: 80px 0 100px;
  }

  .rz-contacts-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .rz-contacts-trio {
    grid-template-columns: 1fr 1fr;
  }

  .rz-contacts-map-card {
    grid-column: 1 / -1;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .rz-contacts {
    padding: 60px 0 80px;
  }

  .rz-contacts-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rz-contacts-action {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .rz-contacts-trio {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rz-contacts-map-card {
    min-height: 240px;
    grid-column: auto;
  }

  .rz-contacts-subsidy .rz-card-inner,
  .rz-contacts-office .rz-card-inner {
    padding: 24px;
  }

  .rz-contacts-subsidy-phone {
    font-size: 20px;
  }

  .rz-contacts-blob--1 {
    width: 350px;
    height: 350px;
  }

  .rz-contacts-blob--2 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .rz-contacts-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .rz-contacts-action-icon svg {
    width: 18px;
    height: 18px;
  }

  .rz-contacts-action-value {
    font-size: 14px;
  }

  .rz-contacts-map-card {
    min-height: 200px;
    border-radius: 16px;
  }
}
