/*
  Design grid: 1513 x 800. --u equals one design pixel, so the composition keeps
  its proportions on laptops and large monitors. Below 720px the footer stacks.
*/
:root {
  --u: clamp(0.9px, min(100vw / 1513, 100vh / 800), 1.6px);
  --bg: #f5f4ea;
  --green: #00564e;
  --ink: #000;
  --text: #3e3c41;
  --accent: #ff4900;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  padding-top: calc(28.25 * var(--u));
}

p, h1, ul { margin: 0; padding: 0; }
ul { list-style: none; }

.site-header { margin: 0 calc(3 * var(--u)) calc(97.5 * var(--u)) 0; }

.logo {
  font-size: calc(26 * var(--u));
  line-height: calc(20 * var(--u));
  font-weight: 700;
  color: var(--ink);
}

.choice {
  width: calc(683 * var(--u));
  height: calc(313 * var(--u));
  padding: calc(104 * var(--u)) calc(79 * var(--u)) 0 calc(78 * var(--u));
  position: relative;
  background: var(--green);
  border-radius: calc(24 * var(--u));
}

.choice__title {
  position: absolute;
  top: calc(32 * var(--u));
  left: 0;
  right: 0;
  font-size: calc(32.2 * var(--u));
  line-height: calc(40 * var(--u));
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

.choice__options {
  display: flex;
  flex-direction: column;
  gap: calc(21 * var(--u));
}

.option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  height: calc(72 * var(--u));
  padding: 0 1em;
  background: #fff;
  border: calc(3 * var(--u)) solid var(--ink);
  border-radius: calc(30 * var(--u));
  color: var(--text);
  font-size: calc(22.75 * var(--u));
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.option:hover {
  transform: translateY(calc(-2 * var(--u)));
  box-shadow: 0 calc(6 * var(--u)) 0 rgb(0 0 0 / 0.25);
  background: #fbfaf3;
}

.option:active { transform: translateY(0); box-shadow: none; }

.site-footer {
  display: flex;
  align-items: center;
  margin-top: calc(75.75 * var(--u));
  padding-left: calc(11 * var(--u));
}

.contact {
  display: flex;
  align-items: baseline;
  gap: calc(11 * var(--u));
  font-size: calc(16 * var(--u));
  white-space: nowrap;
}

.contact__label { font-weight: 300; }

.contact__phone {
  font-weight: 400;
  font-size: 1.006em;
  color: var(--text);
  text-decoration: none;
}

.contact__phone:hover { color: var(--green); text-decoration: underline; }

.socials {
  display: flex;
  align-items: center;
  gap: calc(28.5 * var(--u));
  margin-left: calc(58 * var(--u));
}

.social {
  position: relative;
  display: block;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Invisible padding: keeps a comfortable tap target without moving the icon. */
.social::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.social:hover { transform: translateY(-2px) scale(1.08); opacity: 0.8; }

.social__icon {
  display: block;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linejoin: round;
  overflow: visible;
}

.social__icon .fill { fill: var(--accent); stroke: none; }
.social__icon--instagram { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.social__icon--telegram { width: calc(39 * var(--u)); height: calc(33 * var(--u)); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  :root { --u: 1px; }

  body {
    padding: 32px 16px;
  }

  .site-header { margin: 0 0 40px; }

  .logo { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.2; }

  .choice {
    width: 100%;
    max-width: 560px;
    height: auto;
    padding: 28px clamp(14px, 5vw, 40px) 32px;
  }

  .choice__title {
    position: static;
    margin-bottom: 24px;
    font-size: clamp(17px, 5.6vw, 28px);
    line-height: 1.25;
  }

  .choice__options { gap: 16px; }

  .option {
    height: auto;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 26px;
    font-size: clamp(15px, 4.6vw, 20px);
  }

  .site-footer {
    flex-direction: column;
    gap: 22px;
    margin-top: 36px;
    padding-left: 0;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: clamp(14.5px, 4.6vw, 16px);
    white-space: normal;
    text-align: center;
  }

  .socials { margin-left: 0; gap: 36px; }

  .social__icon--instagram { width: 32px; height: 32px; }
  .social__icon--telegram { width: 41px; height: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .option, .social { transition: none; }
  .option:hover, .social:hover { transform: none; }
}
