/*
 * Contact page hero: details on the left, live Google map on the right, in an orange-framed card.
 * Shared blocks below (services, steps, banner, reviews, buttons) come from home.css.
 * Figma: desktop 777:2842 (1440), mobile 777:3672 (393). One column at 900 and below.
 */

.chero {
  container-type: inline-size;
  background: linear-gradient(#f5f3ec, #fff 67%);
}

.chero__frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(8px, 5.56cqi, 80px);
}

.chero__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(615 / 1276 * 100%);
  gap: 2px;
  padding: 2px;
  overflow: clip;
  border: 2px solid var(--orange);
  border-radius: 32px;
  background: var(--white);
}

.chero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  padding: clamp(32px, 4.44cqi, 64px);
}

.chero__head,
.chero__top,
.chero__about,
.chero__row,
.chero__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chero__head {
  gap: 30px;
  width: 100%;
}

.chero__top {
  gap: 24px;
}

.chero .crumbs {
  color: rgba(0, 0, 0, 0.7);
}

.chero__title {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  font-weight: 800;
  line-height: 60px;
}

.chero__about,
.chero__row {
  gap: 16px;
}

.chero__label {
  margin: 0;
  color: var(--orange);
  font-family: Oswald, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.chero__text {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.chero__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.08cqi, 30px);
  width: 100%;
}

.chero__list {
  gap: 10px;
}

/* The phone shrinks with the column between 1440 and 900 so it stays on one line. */
.chero__phone {
  color: var(--ink);
  font-size: clamp(18px, 1.74cqi, 25px);
  line-height: 1.36;
  letter-spacing: -0.32px;
  text-decoration: none;
  white-space: nowrap;
}

.chero__phone:hover {
  color: var(--orange);
}

.chero__map {
  position: relative;
  min-height: 343px;
  overflow: clip;
  border-radius: 30px;
  background: #e8e6df;
}

.chero__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 900px) {
  .chero__frame {
    padding: 0 8px;
  }

  .chero__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .chero__body {
    gap: 24px;
    padding: 24px;
  }

  .chero__head {
    gap: 20px;
  }

  /* The legacy H1 is much longer than "Контакти" in the frame; 48px gave four lines at 393.
     30/38 at 393 like the service hero H1, scaling with the screen below it, so both
     languages stay on two lines. */
  .chero__title {
    font-size: clamp(20px, calc(30 / 393 * 100cqi), 32px);
    line-height: 1.267;
  }

  .chero__rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .chero__phone {
    font-size: 25px;
  }

  /* Full-width button, label centred in the space left of the icon. */
  .chero__call {
    width: 100%;
  }

  .chero__call > span:first-child {
    flex: 1;
    text-align: center;
  }

  .chero__map {
    min-height: 0;
    aspect-ratio: 369 / 343;
  }
}
