:root {
  --yellow: #ffd400;
  --yellow-dark: #b99600;
  --black: #111111;
  --ink: #191919;
  --muted: #70706d;
  --paper: #f4f4f1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--paper);
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0.82), rgba(187, 187, 183, 0.18) 48%, rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0, rgba(0, 0, 0, 0.025) 1px, transparent 1px, transparent 4px);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
  transition: 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 980px;
  min-height: 100vh;
  margin: auto;
  padding-bottom: 104px;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 18px;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.brand-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 19px;
  font-weight: 1000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.call-button,
.install-button {
  border: 2px solid var(--yellow);
  border-radius: 25px;
  background: var(--black);
  color: var(--yellow);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 900;
}

.install-button {
  border-color: #cfcfc8;
  background: var(--white);
  color: var(--ink);
}

.install-button.ready {
  border-color: var(--yellow);
  background: var(--yellow);
}

.hero {
  padding: 0 16px;
}

.hero img {
  display: block;
  width: 100%;
  aspect-ratio: 2.55 / 1;
  border: 3px solid #202020;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 11px 30px rgba(0, 0, 0, 0.22);
}

.content {
  padding: 31px 16px;
}

.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}

.heading small,
.sheet-head small {
  color: #8e7500;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.heading h1 {
  margin: 5px 0 0;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.heading > span {
  border: 1px solid #e5ce59;
  border-radius: 20px;
  background: #fff7cc;
  color: #6b5800;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #d9d9d4;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  padding: 15px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.service-card:hover,
.service-card:focus-visible,
.service-card.active {
  border-color: var(--yellow-dark);
  background: #fff9d9;
  outline: none;
  transform: translateY(-2px);
}

.service-icon {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--black);
  font-size: 24px;
}

.service-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-copy strong {
  font-size: 16px;
  text-transform: uppercase;
}

.service-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.service-card > b {
  color: #9b8000;
  font-size: 25px;
}

.coverage {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #ddddda;
  border-radius: 12px;
  background: var(--white);
}

.coverage > * {
  flex: 1;
  padding: 11px 8px;
  border-right: 1px solid #e2e2df;
  font-size: 11px;
  text-align: center;
}

.coverage > *:last-child {
  border: 0;
}

.coverage b {
  background: var(--yellow);
}

.trust {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 19px;
  color: #605f5d;
  font-size: 12px;
  font-weight: 800;
}

.quote-button {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(15px, env(safe-area-inset-bottom));
  width: min(570px, calc(100% - 28px));
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--yellow);
  border-radius: 15px;
  background: var(--black);
  color: var(--white);
  padding: 0 18px;
  transform: translateX(-50%);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.quote-button:hover,
.quote-button:focus-visible {
  background: #292929;
}

.quote-button span {
  font-size: 22px;
}

.quote-button b {
  flex: 1;
  text-align: left;
}

.quote-button strong {
  color: var(--yellow);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
}

.backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  background-color: #f7f7f3;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0, rgba(0, 0, 0, 0.025) 1px, transparent 1px, transparent 4px);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.35);
  animation: slide 0.2s ease-out;
}

.sheet-head {
  display: flex;
  align-items: center;
  padding: 23px;
  border-bottom: 1px solid #ddddda;
}

.sheet-head > div {
  flex: 1;
}

.sheet-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  text-transform: uppercase;
}

.close-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #e5e5e1;
  font-size: 26px;
}

#quoteForm {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-fields {
  flex: 1;
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 20px 22px;
}

.form-fields label {
  display: grid;
  gap: 6px;
  color: #555555;
  font-size: 11px;
  font-weight: 900;
}

.form-fields input,
.form-fields select,
.form-fields textarea {
  width: 100%;
  border: 1px solid #d1d1cd;
  border-radius: 10px;
  outline: 0;
  background: var(--white);
  color: #222222;
  padding: 0 12px;
}

.form-fields input,
.form-fields select {
  height: 46px;
}

.form-fields textarea {
  height: 90px;
  padding-top: 12px;
  resize: vertical;
}

.form-fields input:focus,
.form-fields select:focus,
.form-fields textarea:focus {
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.2);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: #a11616;
  font-size: 12px;
  font-weight: 800;
}

.sheet-foot {
  padding: 18px 22px 23px;
  border-top: 1px solid #ddddda;
}

.send-button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  background: var(--black);
  color: var(--yellow);
  padding: 15px;
  font-size: 15px;
  font-weight: 900;
}

.send-button:hover,
.send-button:focus-visible {
  background: #292929;
}

.sheet-foot p {
  margin: 9px 0 0;
  color: #777777;
  font-size: 11px;
  text-align: center;
}

dialog {
  width: min(430px, calc(100% - 32px));
  border: 0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

dialog h2 {
  margin: 0 0 14px;
}

dialog p {
  color: #4f4f4f;
  line-height: 1.5;
}

dialog button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--black);
  color: var(--yellow);
  padding: 13px;
  font-weight: 900;
}

@keyframes slide {
  from { transform: translateX(100%); }
  to { transform: none; }
}

@media (max-width: 680px) {
  main {
    padding-bottom: 93px;
  }

  .topbar {
    min-height: 79px;
    gap: 8px;
    padding: 8px 12px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .install-button,
  .call-button {
    padding: 8px 10px;
    font-size: 10px;
  }

  .hero {
    padding: 0 10px;
  }

  .hero img {
    aspect-ratio: 1.75 / 1;
    border-radius: 14px;
  }

  .content {
    padding: 24px 12px;
  }

  .heading h1 {
    font-size: 27px;
  }

  .services {
    gap: 9px;
  }

  .service-card {
    gap: 8px;
    padding: 12px 9px;
  }

  .service-icon {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
    font-size: 20px;
  }

  .service-copy strong {
    font-size: 13px;
  }

  .service-copy small {
    font-size: 10px;
  }

  .trust {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }

  .quote-button {
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 58px;
  }

  .sheet {
    top: auto;
    height: min(91vh, 760px);
    border-radius: 22px 22px 0 0;
    animation: up 0.2s ease-out;
  }

  @keyframes up {
    from { transform: translateY(100%); }
    to { transform: none; }
  }
}

@media (max-width: 430px) {
  .brand-copy span,
  .heading > span {
    display: none;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
