/* Подтягиваем общий стиль, если нужно */
@import url("style.css");

/* ============ HERO КОНТАКТОВ ============ */

.contacts-hero {          /* под фиксированный header */
  padding: 120px 0 80px;
  background: #ffffff;
}

.contacts-hero__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.contacts-hero__text {
  max-width: 480px;
}

.contacts-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8A8F96;
  margin-bottom: 10px;
}

.contacts-title {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 700;
  color: #172833;
  margin-bottom: 18px;
}

.contacts-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 42px;
}

/* карточки контактов */

.contacts-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  background: #f6f7f8;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 18px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.08);
  background: #ffffff;
}

.contact-card-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8A8F96;
}

.contact-card-main {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: #172833;
  text-decoration: none;
  line-height: 1.5;
}

.contact-card-main--row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contact-card-main a {
  color: #172833;
  text-decoration: none;
}

.contact-card-note {
  font-size: 13px;
  line-height: 1.5;
  color: #777;
  margin-top: 2px;
}

/* маленькие плашки мессенджеров */
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.contact-pill:hover {
  border-color: #CA578D;
  color: #CA578D;
}

/* ============ ГАЛЕРЕЯ + КАРТА ============ */

.contacts-media {
  padding: 40px 0 110px;
  background: #ffffff;
}

.contacts-media__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

/* левая часть — галерея */

.contacts-gallery__header h2 {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 700;
  color: #172833;
  margin-bottom: 6px;
}

.contacts-gallery__header p {
  font-size: 14px;
  color: #777;
  margin-bottom: 18px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 180px 180px;
  gap: 14px;
}

/* чтобы было интересней — разные размеры */
.photo-card:nth-child(1) {
  grid-row: 1 / span 2;
}
.photo-card:nth-child(2) {
  grid-row: 1;
}
.photo-card:nth-child(3) {
  grid-row: 2;
}
.photo-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

/* карточка фото */

.photo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: #f1f2f4;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card::after {
  content: "Увеличить";
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.photo-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  filter: brightness(1.02);
}

.photo-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* правая часть — карта */

.contacts-map__head h2 {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: #172833;
  margin-bottom: 6px;
}

.contacts-map__head p {
  font-size: 14px;
  color: #777;
  margin-bottom: 18px;
}

.contacts-map__block {
  border-radius: 22px;
  background: #f5f5f6;
  padding: 14px;
  border: 1px solid #e3e4e7;
}

.contacts-map__placeholder {
  height: 260px;
  border-radius: 16px;
  border: 1px dashed rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #999;
  padding: 0 20px;
}

.contacts-map__btn {
  margin-top: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  font-family: var(--font-main);
}

.contacts-map__btn:hover {
  background: #CA578D;
  border-color: #CA578D;
  color: #fff;
  box-shadow: 0 8px 20px rgba(202,87,141,0.35);
  transform: translateY(-1px);
}

/* ============ РЕКВИЗИТЫ ============ */

.req-section {
  padding: 40px 0 120px;
  background: #fafafa;
  border-top: 1px solid #e7e7e7;
}

.req-title {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 700;
  color: #172833;
  margin-bottom: 26px;
}

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

.req-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,0.04);
}

.req-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8A8F96;
  margin-bottom: 6px;
}

.req-value {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.req-value a {
  color: #CA578D;
  text-decoration: none;
}

.req-value a:hover {
  text-decoration: underline;
}

/* ============ МОДАЛКА ФОТО ============ */

.photo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.photo-modal.is-open {
  display: flex;
}

.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.photo-modal__dialog {
  position: relative;
  z-index: 101;
  max-width: 960px;
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 70px rgba(0,0,0,0.8);
}

.photo-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ АДАПТИВ ============ */

@media (max-width: 1100px) {
  .contacts-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contacts-hero__inner {
    flex-direction: column;
    gap: 32px;
  }

  .contacts-cards {
    grid-template-columns: 1fr;
  }

  .contacts-media__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contacts-title {
    font-size: 32px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 180px);
  }

  .photo-card:nth-child(1),
  .photo-card:nth-child(2),
  .photo-card:nth-child(3),
  .photo-card:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .req-columns {
    grid-template-columns: 1fr;
  }
}












