:root {
  --ink: #21345b;
  --text: #172033;
  --muted: #768298;
  --line: #e2e7ee;
  --paper: #f5f7f1;
  --white: #ffffff;
  --blue: #489ed0;
  --green: #95bf32;
  --green-dark: #7da126;
  --shadow: 0 18px 50px rgba(27, 42, 78, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

.topbar,
.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(149, 191, 50, 0.24);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
  fill: var(--white);
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.page {
  padding: 0 0 26px;
}

.configurator {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.product-media {
  display: grid;
  gap: 14px;
}

.product-media > img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.thumb-button {
  display: grid;
  place-items: center;
  aspect-ratio: 1.35 / 1;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
}

.thumb-button.is-active {
  border-color: var(--green);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.config-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.config-step {
  display: grid;
  gap: 14px;
}

.headline {
  display: grid;
  gap: 7px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.42rem, 2.3vw, 1.95rem);
  line-height: 1.08;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.18;
}

.headline p:not(.eyebrow),
.price-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.28;
}

.field-row,
.option-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 14px;
}

.availability-status {
  display: none;
  min-height: 22px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.availability-status.is-checking,
.availability-status.is-ready {
  display: block;
}

.availability-status span {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  margin-right: 6px;
  border-radius: 999px;
  background: #e9f7d7;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.availability-status.is-checking span {
  background: #edf5fb;
  color: var(--blue);
}

label,
.select-field,
.location-search {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

.location-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 46px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.location-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(72, 158, 208, 0.14);
}

.location-box input {
  min-height: 42px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  box-shadow: none;
}

.location-box input:focus {
  border: 0;
  box-shadow: none;
}

.availability-button {
  height: 34px;
  margin-right: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.availability-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.availability-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.location-suggestions {
  position: absolute;
  z-index: 35;
  top: calc(100% + 8px);
  left: 0;
  width: min(520px, 100%);
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(27, 42, 78, 0.16);
}

.location-suggestions.is-open {
  display: grid;
}

.location-suggestion,
.location-suggestion-empty {
  min-height: 48px;
  display: grid;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #eef2f5;
  background: var(--white);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 850;
  text-align: left;
}

.location-suggestion {
  cursor: pointer;
}

.location-suggestion:hover,
.location-suggestion:focus-visible {
  background: #f5f8fb;
}

.location-suggestion:last-child,
.location-suggestion-empty:last-child {
  border-bottom: 0;
}

.location-suggestion small,
.location-suggestion-empty small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 17px,
    calc(100% - 14px) 17px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(72, 158, 208, 0.14);
}

.date-picker {
  position: relative;
  display: block;
}

.date-picker input {
  padding-right: 48px;
  cursor: pointer;
}

.calendar-trigger {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.calendar-trigger svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.calendar-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  display: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(27, 42, 78, 0.18);
}

.calendar-popover.is-open {
  display: grid;
  gap: 14px;
}

.calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.calendar-head strong {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 900;
  text-align: center;
}

.calendar-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-head button:hover {
  background: #f1f4f7;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays span {
  color: #6f7480;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.calendar-day {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 850;
  cursor: pointer;
}

.calendar-day:hover {
  background: #f1f4f7;
}

.calendar-day.is-selected {
  background: var(--text);
  color: var(--white);
}

.calendar-day:disabled {
  color: #a6abb3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day:disabled:hover {
  background: transparent;
}

.calendar-empty {
  display: block;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
}

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

.size-card,
.duration-card {
  position: relative;
}

.size-card input,
.duration-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.size-card span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 950;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.size-card span:hover {
  transform: translateY(-1px);
}

.size-card input:checked + span,
.size-card input:focus-visible + span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.duration-card > span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 9px 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
  color: var(--ink);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.duration-card > span:hover {
  transform: translateY(-1px);
}

.duration-card input:checked + span,
.duration-card input:focus-visible + span {
  border-color: var(--green);
  background: #fbfff3;
  box-shadow: 0 10px 26px rgba(149, 191, 50, 0.16);
}

.duration-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.duration-label {
  font-size: 0.88rem;
  font-weight: 950;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  border-radius: 999px;
  background: #ffda47;
  color: #1f2430;
  padding: 0 7px;
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.duration-price {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.duration-subline {
  display: none;
}

.price-box {
  display: grid;
  gap: 4px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.price-box[hidden],
.duration-section[hidden] {
  display: none !important;
}

.price-box strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  line-height: 1.1;
}

.order-button,
.submit-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  padding: 0 22px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.order-button:hover,
.submit-button:hover,
.back-link:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.order-button:disabled,
.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.request-panel {
  display: none;
  gap: 14px;
  padding-top: 4px;
}

.request-panel.is-open {
  display: grid;
}

.back-step {
  justify-self: start;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: #eef4f8;
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.back-step:hover {
  background: #e2ebf2;
}

.request-head {
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 700;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  flex: 0 0 auto;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-band span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
}

.product-info {
  margin-top: 34px;
}

.info-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin-left: 34px;
}

.info-tabs button {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #e8eef7;
  color: var(--ink);
  padding: 0 18px;
  font-weight: 950;
  text-align: center;
  cursor: pointer;
}

.info-tabs button.is-active {
  background: var(--white);
}

.info-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 34px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 0 16px 16px 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-panel.is-active {
  display: grid;
}

.info-copy h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.detail-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 5px;
}

.detail-list dt {
  color: var(--ink);
  font-weight: 950;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.size-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.size-table span:nth-child(odd) {
  font-weight: 950;
}

.info-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tip-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  background: #f4cf3f;
  color: var(--ink);
}

.tip-card.warning {
  background: #ffd84d;
}

.tip-card strong {
  font-size: 1.1rem;
  font-weight: 950;
}

.tip-card p {
  margin: 0;
  line-height: 1.5;
}

.allowed-panel,
.faq-panel {
  grid-column: 1 / -1;
}

.allowed-panel h2,
.faq-panel h2 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.allowed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 7vw, 90px);
}

.allowed-grid h3 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.1rem;
}

.icon-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-list li {
  position: relative;
  min-height: 28px;
  display: flex;
  align-items: center;
  color: var(--ink);
  padding-left: 40px;
  line-height: 1.45;
}

.icon-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 950;
}

.yes-list li::before {
  content: "✓";
  border: 3px solid var(--green);
  color: var(--green-dark);
}

.no-list li::before {
  content: "×";
  border: 3px solid #ff6b6b;
  color: #ff5f5f;
}

.faq-panel details {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.faq-panel details:first-of-type {
  border-top: 0;
}

.faq-panel summary {
  position: relative;
  padding: 18px 34px 18px 0;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.faq-panel summary::-webkit-details-marker {
  display: none;
}

.faq-panel summary::after {
  content: "⌄";
  position: absolute;
  right: 0;
  top: 17px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-panel details[open] summary::after {
  transform: rotate(180deg);
}

.faq-panel p,
.faq-panel ul {
  margin: 0 0 22px;
  color: var(--ink);
  line-height: 1.55;
}

.faq-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 28px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 22px 0 0;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.thanks-card,
.legal-content {
  width: min(680px, 100%);
  padding: clamp(30px, 6vw, 56px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.thanks-card h1,
.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
}

.thanks-card p,
.legal-content p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: clamp(24px, 6vw, 72px);
  background: var(--paper);
}

.legal-content {
  width: min(820px, 100%);
}

.legal-content h2 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.legal-warning {
  padding: 14px 16px;
  border: 1px solid #e5c8b5;
  border-radius: 12px;
  background: #f4e1d4;
  color: #6f4a34;
  font-weight: 750;
}

@media (max-width: 900px) {
  .configurator {
    grid-template-columns: 1fr;
  }

  .product-media {
    max-width: 520px;
    margin: 0 auto;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .info-tabs {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .topbar,
  .page {
    width: min(100% - 28px, 1120px);
  }

  .topbar {
    justify-content: center;
    min-height: 70px;
  }

  .page {
    padding-top: 10px;
  }

  .config-card {
    padding: 16px;
  }

  .field-row,
  .option-row,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .info-tabs {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .info-tabs button {
    border-radius: 12px;
  }

  .info-panel {
    border-radius: 16px;
    padding: 22px;
  }

  .size-table {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .allowed-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .size-card span {
    min-height: 64px;
    font-size: 1.06rem;
  }

  .duration-grid {
    gap: 8px;
  }

  .duration-card > span {
    min-height: 102px;
    padding: 12px 8px;
  }

  .duration-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .duration-price {
    font-size: 1rem;
  }

  .duration-badge {
    padding: 0 6px;
    font-size: 0.58rem;
  }

  .calendar-popover {
    left: 0;
    right: auto;
    width: 100%;
  }

  .location-box {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }

  .location-box input {
    border-radius: 12px;
  }

  .availability-button {
    width: calc(100% - 16px);
    margin: 0 8px;
  }

}
