
:root {
  color-scheme: light;
  --orange: #ff7100;
  --blue: #07345b;
  --paper: #f5fbff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100svh;
  color: var(--blue);
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0, #eef8ff 48%, #e5f3fb 100%);
  font-family: Arial, Helvetica, sans-serif;
}

.landing {
  width: min(1500px, 100%);
  height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.6svh, 18px);
  padding: clamp(12px, 1.8svh, 20px) clamp(16px, 3vw, 44px);
}

h1 {
  margin: 0;
  color: var(--orange);
  text-align: center;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.cards {
  width: 100%;
  min-height: 0;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(7, 52, 91, 0.14);
}

.card h2 {
  order: 1;
  min-height: 1.8em;
  margin: 0;
  padding: 0.38em 0.25em 0.44em;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1;
}

.card img {
  order: 2;
  display: block;
  width: 100%;
  height: clamp(180px, 38svh, 390px);
  object-fit: cover;
}

.phone-block {
  width: fit-content;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: clamp(4px, 0.7svh, 8px);
}

.phone-caption {
  margin: 0;
  color: var(--blue);
  text-align: center;
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 700;
  line-height: 1;
}

.phone {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0.18em 0.62em 0.23em;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  text-align: center;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 28px rgba(255, 113, 0, 0.25);
}

.phone:focus-visible {
  outline: 4px solid rgba(7, 52, 91, 0.35);
  outline-offset: 4px;
}

@media (min-width: 701px) and (max-width: 1180px) {
  .landing {
    padding-left: 22px;
    padding-right: 22px;
  }

  h1 {
    font-size: clamp(48px, 8vw, 76px);
  }

  .card img {
    height: clamp(180px, 36svh, 320px);
  }

  .card h2 {
    font-size: clamp(19px, 2.7vw, 27px);
  }

  .phone {
    font-size: clamp(32px, 4.6vw, 48px);
  }

  .phone-caption {
    font-size: clamp(17px, 2.2vw, 22px);
  }
}

@media (max-height: 680px) and (min-width: 701px) {
  .landing {
    gap: 7px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  h1 {
    font-size: clamp(38px, 9svh, 58px);
  }

  .card img {
    height: 33svh;
  }

  .card h2 {
    min-height: auto;
    padding-top: 0.28em;
    padding-bottom: 0.34em;
    font-size: clamp(17px, 3.7svh, 24px);
  }

  .phone-block {
    gap: 3px;
  }

  .phone-caption {
    font-size: clamp(14px, 2.8svh, 18px);
  }

  .phone {
    padding-top: 0.14em;
    padding-bottom: 0.18em;
    font-size: clamp(28px, 6svh, 42px);
  }
}

@media (max-width: 700px) and (min-height: 521px) {
  .landing {
    padding: clamp(8px, 1.8svh, 14px) 8px;
    gap: clamp(6px, 1.4svh, 10px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 66px);
  }

  .cards {
    gap: clamp(4px, 1.6vw, 8px);
  }

  .card {
    border-radius: 12px;
  }

  .card h2 {
    min-height: 2.55em;
    padding: 0.35em 0.05em 0.4em;
    font-size: clamp(12px, 3.8vw, 19px);
    line-height: 1.05;
  }

  .card img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .phone-block {
    width: 100%;
  }

  .phone-caption {
    font-size: clamp(16px, 4.6vw, 21px);
  }

  .phone {
    width: 100%;
    padding: 0.27em 0.1em 0.32em;
    font-size: clamp(27px, 8.5vw, 44px);
  }
}

@media (max-height: 520px) and (max-width: 900px) {
  .landing {
    grid-template-columns: minmax(175px, 0.68fr) 2fr;
    grid-template-rows: 1fr auto;
    gap: 8px 12px;
    padding: 6px 10px;
  }

  h1 {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: clamp(38px, 13svh, 60px);
  }

  .cards {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .card h2 {
    min-height: 2.4em;
    padding: 0.26em 0.04em 0.32em;
    font-size: clamp(12px, 3.6svh, 18px);
  }

  .card img {
    height: min(48svh, 190px);
  }

  .phone-block {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    gap: 2px;
  }

  .phone-caption {
    font-size: clamp(12px, 3.2svh, 16px);
  }

  .phone {
    width: 100%;
    padding: 0.28em 0.08em 0.32em;
    font-size: clamp(19px, 5.5svh, 28px);
  }
}

@media (max-width: 360px) and (min-height: 521px) {
  .landing {
    padding-left: 5px;
    padding-right: 5px;
  }

  .card h2 {
    font-size: 12px;
  }

  .phone {
    font-size: 27px;
  }
}
