:root {
  color-scheme: light;
  --page-bg: #fff;
  --accent: #0b7f8a;
  --accent-dark: #07555d;
  --text: #102026;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
}

.deck {
  width: 100%;
  padding: 24px 0;
}

.slide {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 24px;
}

.slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slide-button {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: clamp(20px, 2.65vw, 40px) clamp(42px, 6vw, 90px);
  border: 1px solid rgb(56 212 223 / 78%);
  background: rgb(255 255 255 / 3%);
  color: #fff;
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: clamp(27px, 3vw, 46px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.slide-button:hover {
  border-color: rgb(86 232 240 / 92%);
  background: rgb(11 127 138 / 10%);
  box-shadow: 0 0 24px rgb(56 212 223 / 26%);
  transform: translateY(-1px);
}

.slide-button--intro {
  left: 43%;
  bottom: 8%;
  transform: translateX(0);
}

.slide-button--final {
  top: 8%;
  right: 6%;
  padding: clamp(12px, 1.55vw, 22px) clamp(28px, 3.4vw, 50px);
  font-size: clamp(18px, 1.9vw, 28px);
}

.final-hotspot,
.final-phone-link {
  position: absolute;
  z-index: 4;
  display: block;
}

.final-hotspot--site {
  left: 11%;
  top: 45.5%;
  width: 25%;
  height: 6.5%;
  background: transparent;
}

.final-phone-link {
  left: 12%;
  top: 56.6%;
  color: #fff;
  font: 700 clamp(12px, 3.1vw, 40px)/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(0 0 0 / 18%);
  white-space: nowrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(4px);
}

.lead-form {
  position: relative;
  width: min(100%, 460px);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 28px 80px rgb(0 0 0 / 42%);
}

.lead-form h2 {
  margin: 0 38px 24px 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
}

.lead-form label {
  display: block;
  margin: 0 0 16px;
}

.lead-form span {
  display: block;
  margin: 0 0 7px;
  font-size: 14px;
  color: #526168;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid #cbd5d8;
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  font: 16px/1.35 Arial, Helvetica, sans-serif;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef3f4;
  color: #26383f;
  font-size: 26px;
  line-height: 30px;
  cursor: pointer;
}

.lead-form__submit {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font: 700 16px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.lead-form__submit:hover {
  background: var(--accent-dark);
}

.lead-form__status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.lead-form__status.is-error {
  color: #9f1d1d;
}

.lead-form__contacts {
  margin: 16px 0 0;
  color: #526168;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.lead-form__contacts a {
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .deck {
    padding: 12px 0;
  }

  .slide {
    margin-bottom: 12px;
  }

  .slide-button {
    border-width: 1px;
    padding: clamp(9px, 2.8vw, 14px) clamp(18px, 5.8vw, 28px);
    font-size: clamp(14px, 4.7vw, 20px);
  }

  .slide-button--intro {
    left: 43%;
    bottom: 8%;
    transform: translateX(0);
  }

  .slide-button--final {
    top: 7%;
    right: 4%;
    padding: clamp(7px, 2.2vw, 11px) clamp(14px, 4.8vw, 24px);
    font-size: clamp(12px, 3.8vw, 17px);
  }

  .lead-form {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
