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

:root {
  --accent: #d7e7fb;
  --accent-2: #8eb4e8;
  --ink: #102033;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: #fff;
  min-height: 100vh;
  background-color: #101820;
  background-image:
    linear-gradient(90deg, rgba(8, 14, 22, 0.72) 0%, rgba(8, 14, 22, 0.28) 42%, rgba(8, 14, 22, 0.2) 100%),
    url(hero.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

button,
input {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.46);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.phone-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
}

.rq {
  position: relative;
}

.rq-btn {
  border: 0;
  border-radius: 18px 18px 18px 4px;
  padding: 12px 18px;
  background: #fff;
  color: #102033;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.rq-btn:hover {
  background: #d7e7fb;
}

.phone:hover {
  background: rgba(8, 16, 28, 0.68);
}

.rq-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(340px, calc(100vw - 24px));
  padding: 16px;
  border: 0;
  border-radius: 4px 18px 18px 18px;
  background: #fff;
  color: #102033;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.rq-panel p {
  font-size: 0.94rem;
  line-height: 1.45;
}

.rq-name {
  margin-bottom: 6px;
  font-weight: 800;
}

.hero {
  width: min(1140px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 36px;
  align-items: center;
  padding: 118px 0 40px;
}

.intro {
  max-width: 560px;
  padding-top: 4vh;
  align-self: start;
}

.shot {
  display: none;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.35);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.4vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.lead {
  max-width: 460px;
  margin-bottom: 16px;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.points {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 16px;
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.panel {
  display: grid;
  gap: 12px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(10, 16, 26, 0.78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.panel h2,
.panel h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.hint,
.fine {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
}

.slider {
  display: grid;
  gap: 8px;
}

.slider-top,
.result div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.slider-top span,
.result dt,
.terms-label,
.field span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 700;
}

.slider-top strong {
  font-size: 0.98rem;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  appearance: none;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 3px solid #d7e7fb;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.terms {
  display: grid;
  gap: 8px;
}

.term-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.term-row button {
  flex: 1;
  min-width: 64px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.term-row button.is-on {
  background: #fff;
  color: var(--ink);
}

.result {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.result div:first-child dd {
  font-size: 1.45rem;
}

.result dd {
  font-weight: 800;
}

.ask {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.field {
  display: grid;
  gap: 6px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-weight: 600;
}

.field input:focus,
.term-row button:focus-visible,
.btn:focus-visible,
.rq-btn:focus-visible,
.phone:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #f4f8fd, var(--accent));
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.error {
  color: #ffc9c2;
  font-size: 0.86rem;
}

.ok {
  font-weight: 800;
  line-height: 1.4;
}

@media (max-width: 900px) {
  body {
    background: #121820;
  }

  .shot {
    display: block;
    height: 48vh;
    min-height: 280px;
    margin: 0 -16px 18px;
    border-radius: 0 0 22px 22px;
    background: url(hero-mobile.jpg) center 42% / cover no-repeat;
  }

  .hero {
    width: min(560px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding: 92px 0 32px;
  }

  .intro {
    padding-top: 0;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .topbar {
    padding: 12px;
  }

  .phone {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
