/* Contacts Page */

.contacts-page {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

/* Header */
.contacts-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contacts-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.contacts-subtitle {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .contacts-title {
    font-size: 3rem;
  }
}

/* Contact Methods Grid */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .contact-methods {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* Contact Card */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 0.75rem;
  color: var(--primary);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-icon--max {
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
}

.contact-icon--telegram {
  background: rgba(0, 136, 204, 0.08);
  color: #0088cc;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
}

.contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.08);
  color: #25d366;
}

/* Info Row (seller left + offices right) */
.info-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .info-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
}

/* Offices Section */
.offices-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.offices-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5rem;
  flex: 1;
}

/* Office Card */
.office-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.office-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.office-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.office-city {
  font-size: 0.9375rem;
  font-weight: 700;
}

.office-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.125rem 0.4rem;
  border-radius: 9999px;
}

.office-address {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Seller Info Section */
.seller-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.seller-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.seller-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  flex: 1;
}

.seller-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2rem;
  height: 100%;
  align-content: space-between;
}

.seller-row {
  display: contents;
}

.seller-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.seller-value {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.seller-row:last-child .seller-label,
.seller-row:last-child .seller-value {
  border-bottom: none;
  padding-bottom: 0;
}

.seller-value a {
  color: var(--primary);
  text-decoration: none;
}

.seller-value a:hover {
  color: var(--primary-hover);
}

@media (max-width: 480px) {
  .seller-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .seller-row {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border);
  }

  .seller-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .seller-label,
  .seller-value {
    border-bottom: none;
    padding: 0;
  }

  .seller-row:last-child .seller-label,
  .seller-row:last-child .seller-value {
    padding-bottom: 0;
  }
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .contacts-page {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
  }

  .contacts-title {
    font-size: 2rem;
  }

  .contacts-subtitle {
    font-size: 0.9375rem;
  }

  .contact-card {
    padding: 1.25rem 0.75rem;
  }

  .contact-value {
    font-size: 0.8125rem;
  }
}
