/* ===========================================================
   Babayan — страница «Связь»
   Сразу после navbar показываются контактные данные
   =========================================================== */

.contact-page {
  min-height: 70vh;
  background:
    radial-gradient(circle at 8% 4%, rgba(169, 140, 94, .08), transparent 31%),
    var(--cream);
}

.contact-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-section {
  padding: 50px 0 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(27px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(255, 253, 249, .93);
  box-shadow: 0 24px 60px -48px rgba(60, 50, 42, .5);
}

.contact-card--phone,
.contact-card--messengers {
  background:
    linear-gradient(145deg, rgba(169, 140, 94, .08), transparent 54%),
    rgba(255, 253, 249, .95);
}

.contact-card--location {
  grid-column: 1 / -1;
}

.contact-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 19px;
  margin-bottom: 27px;
}

.contact-card__icon {
  width: 57px;
  height: 57px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bronze-dk);
  background: var(--cream-2);
}

.contact-card__icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.contact-card__icon svg[fill="none"] {
  fill: none;
}

.contact-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.contact-card p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.contact-action {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 15px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  transition:
    transform .3s var(--ease),
    border-color .3s var(--ease),
    box-shadow .3s var(--ease);
}

.contact-action:hover {
  transform: translateY(-2px);
  border-color: var(--bronze);
  box-shadow: 0 18px 34px -28px rgba(60, 50, 42, .52);
}

.contact-action small,
.contact-location small {
  display: block;
  margin-bottom: 4px;
  color: var(--bronze-dk);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.contact-action strong,
.contact-location strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.contact-action__label {
  color: var(--bronze-dk);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-action__arrow {
  width: 23px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform .3s var(--ease);
}

.contact-action:hover .contact-action__arrow {
  transform: translateX(4px);
}

.contact-action__service {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-action__service-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-action__service-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-action--whatsapp .contact-action__service-icon {
  color: #1f9d55;
  background: #e7f5eb;
}

.contact-action--viber .contact-action__service-icon {
  color: #7360f2;
  background: #efecfb;
}

.contact-location {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-location > div {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.contact-location strong {
  font-size: 1.04rem;
  line-height: 1.65;
}

.contact-location__hours {
  white-space: pre-line;
}

html[lang="hy"] .contact-card h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

@media (max-width: 900px) {
  .contact-section {
    padding: 30px 0 66px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .contact-card--location {
    grid-column: auto;
  }

  .contact-location {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  /* На мобильном сразу показываем больше контактов */
  .contact-section {
    padding: 18px 0 52px;
  }

  .contact-grid {
    gap: 12px;
  }

  .contact-card {
    padding: 18px 16px;
    border-radius: 17px;
  }

  .contact-card__top {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  .contact-card__top > div {
    min-width: 0;
  }

  .contact-card__icon {
    width: 42px;
    height: 42px;
  }

  .contact-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-card h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.08;
  }

  html[lang="hy"] .contact-card h2 {
    font-size: 1.42rem;
    line-height: 1.15;
  }

  /* Описания на телефоне занимали много места */
  .contact-card p {
    display: none;
  }

  .contact-actions {
    gap: 8px;
  }

  .contact-action {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 12px;
  }

  .contact-action small,
  .contact-location small {
    margin-bottom: 2px;
    font-size: .6rem;
    letter-spacing: .1em;
  }

  .contact-action strong {
    font-size: .88rem;
    line-height: 1.28;
  }

  .contact-action__label {
    display: none;
  }

  .contact-action__arrow {
    width: 18px;
  }

  .contact-action__service {
    gap: 10px;
  }

  .contact-action__service-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .contact-action__service-icon svg {
    width: 17px;
    height: 17px;
  }

  .contact-location {
    gap: 8px;
  }

  .contact-location > div {
    padding: 14px;
    border-radius: 12px;
  }

  .contact-location strong {
    font-size: .9rem;
    line-height: 1.45;
  }
}
