@import url("gallery.css");

.contact-page {
  padding: 92px 24px 108px;
  background:
    radial-gradient(circle at 8% 14%, rgba(10, 94, 148, 0.08), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(223, 19, 37, 0.06), transparent 22rem),
    #f8fbfd;
}

.contact-page__container {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.contact-page__heading {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.contact-page__kicker,
.section-card__eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-page__heading h2 {
  margin-top: 11px;
  color: var(--primary);
  font-size: clamp(1.05rem, 3vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.contact-page__heading h2 span { color: var(--accent); }

.contact-page__heading > p:last-child {
  max-width: 660px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.contact-quick-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 27px 25px;
  background: var(--white);
  border: 1px solid #dce9f1;
  border-top: 4px solid var(--primary);
  border-radius: 17px;
  box-shadow: 0 16px 38px rgba(4, 49, 84, 0.08);
}

.contact-quick-card:nth-child(2) { border-top-color: var(--accent); }

.contact-quick-card__icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(4, 62, 103, 0.2);
}

.contact-quick-card:nth-child(2) .contact-quick-card__icon { background: var(--accent); }
.contact-quick-card__icon svg { width: 23px; height: 23px; }
.contact-quick-card__label { margin-bottom: 5px; color: #718797; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-quick-card h3 { margin-bottom: 7px; color: var(--primary); font-size: 1rem; line-height: 1.35; }
.contact-quick-card a,
.contact-quick-card > div > p:last-child { overflow-wrap: anywhere; color: #526b7b; font-size: 0.76rem; font-weight: 600; line-height: 1.65; }
.contact-quick-card a:hover,
.contact-quick-card a:focus-visible { color: var(--accent); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(360px, 0.77fr);
  gap: 28px;
  align-items: stretch;
}

.direction-card,
.booking-card {
  min-width: 0;
  padding: 32px;
  background: var(--white);
  border: 1px solid #dce9f1;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(4, 49, 84, 0.09);
}

.section-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}

.section-card__number {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-card__logo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.section-card__logo img {
  width: 70px;
  max-width: none;
  height: auto;
  display: block;
  transform: translateY(2px);
  filter: drop-shadow(0 7px 10px rgba(4, 49, 84, 0.18));
}

.section-card__header h3 {
  margin-top: 4px;
  color: var(--primary);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.map-frame {
  height: 330px;
  overflow: hidden;
  background: #eaf2f6;
  border: 1px solid #d6e4ec;
  border-radius: 15px;
}

.map-frame iframe { width: 100%; height: 100%; display: block; border: 0; }

.direction-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 25px;
}

.direction-card__details p { color: #607786; font-size: 0.76rem; line-height: 1.65; }
.direction-card__details strong { display: block; margin-bottom: 5px; color: var(--primary); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }

.contact-action {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(223, 19, 37, 0.2);
  font-size: 0.73rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-action:hover,
.contact-action:focus-visible { color: var(--white); background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 13px 26px rgba(223, 19, 37, 0.28); }
.contact-action svg { width: 17px; height: 17px; }
.contact-action--outline { width: fit-content; grid-column: 1 / -1; color: var(--primary); background: #eef6fa; border-color: #cee0ea; box-shadow: none; }
.contact-action--light { color: var(--primary); background: var(--white); border-color: #c9dce7; box-shadow: none; }

.booking-card { display: flex; flex-direction: column; }
.booking-card__intro { margin: -4px 0 24px; color: #607786; font-size: 0.8rem; line-height: 1.75; }
.booking-steps { display: grid; gap: 9px; list-style: none; }
.booking-steps li { display: flex; align-items: flex-start; gap: 13px; padding: 15px; background: #f6fafc; border: 1px solid #e1edf3; border-radius: 12px; }
.booking-steps li > span { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; color: var(--white); background: var(--primary); border-radius: 9px; font-size: 0.7rem; font-weight: 800; }
.booking-steps strong { display: block; margin-bottom: 3px; color: var(--primary); font-size: 0.77rem; }
.booking-steps p { color: #718695; font-size: 0.69rem; line-height: 1.55; }
.booking-note { display: flex; gap: 11px; margin-top: 17px; padding: 14px; color: #695d34; background: #fff9e8; border: 1px solid #f0dfaa; border-radius: 12px; }
.booking-note svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; color: #d99b00; }
.booking-note p { font-size: 0.68rem; line-height: 1.6; }
.booking-note strong { display: block; color: #574914; }
.booking-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 22px; }

@media (max-width: 980px) {
  .contact-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-quick-card:last-child { grid-column: 1 / -1; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .contact-page { padding: 64px 16px 76px; }
  .contact-page__heading { margin-bottom: 36px; }
  .contact-page__heading h2 { font-size: 1.22rem; }
  .contact-quick-grid { grid-template-columns: 1fr; }
  .contact-quick-card:last-child { grid-column: auto; }
  .contact-quick-card { padding: 22px 19px; }
  .direction-card,
  .booking-card { padding: 23px 18px; border-radius: 16px; }
  .section-card__logo { width: 56px; height: 56px; flex-basis: 56px; }
  .section-card__logo img { width: 63px; transform: translateY(2px); }
  .map-frame { height: 270px; }
  .direction-card__details { grid-template-columns: 1fr; }
  .booking-actions { grid-template-columns: 1fr; }
  .contact-action--outline { width: 100%; }
}
