:root {
  --bg: #ffffff;
  --text: #111216;
  --muted: #61646f;
  --border: #dedfe4;
  --accent: #e31b23;
  --accent-dark: #c5131a;
  --teal: #00494a;
  --teal-dark: #003536;
  --yellow: #f4b63f;
  --surface: #f7f8fa;
  --shadow: 0 20px 60px rgba(17, 18, 22, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 5vw, 92px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  text-decoration: none;
  font-size: 30px;
  font-weight: 850;
  line-height: 0.9;
}

.brand strong {
  color: var(--accent);
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.brand span,
.brand strong {
  display: inline;
}

.brand span {
  float: left;
}

.site-header nav {
  display: flex;
  gap: clamp(22px, 4vw, 56px);
  font-weight: 700;
}

.site-header nav a,
.header-actions a {
  text-decoration: none;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.phone {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.phone svg,
.hero-points svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-link {
  position: relative;
}

.cart-link span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.12) 100%),
    url("https://images.unsplash.com/photo-1527529482837-4698179dc6ce?auto=format&fit=crop&w=2200&q=82") center / cover;
}

.hero-content,
.search-panel {
  position: relative;
}

.hero-content {
  max-width: 620px;
  color: white;
}

.hero h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 470px;
  margin: 0 0 36px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 750;
  line-height: 1.18;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.hero-points svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.search-panel {
  width: 100%;
  justify-self: end;
  padding: 28px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel h2,
.booking-title h2,
.section-heading h2,
.steps h2,
.contact-band h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 18px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

textarea {
  resize: vertical;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: white;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

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

.panel-note {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 48px;
  padding: 28px clamp(18px, 5vw, 92px) 34px;
  align-items: start;
}

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

.text-button,
.booking-title button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}

.status-row {
  min-height: 22px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.product-section {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.product-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.product-section-heading h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.product-section-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-group-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.product-card {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
}

.product-card img {
  width: 100%;
  height: 240px;
  padding: 10px;
  object-fit: contain;
  background: #f3f4f6;
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
}

.product-card p {
  min-height: 40px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price {
  font-size: 18px;
  font-weight: 850;
}

.price small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.choose-button {
  min-width: 76px;
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 30px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: #30323a;
  font-size: 13px;
  font-weight: 800;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.booking-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 50px rgba(17, 18, 22, 0.08);
}

.booking-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  background: var(--teal);
  color: white;
}

.booking-title h2 {
  font-size: 20px;
}

.booking-title button {
  color: white;
}

.empty-state,
.booking-details,
.booking-message {
  padding: 26px;
}

.empty-state {
  color: var(--muted);
  font-weight: 700;
}

.booking-item {
  display: grid;
  grid-template-columns: 76px 1fr 64px;
  gap: 14px;
  align-items: center;
}

.booking-item img {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 5px;
}

.booking-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.booking-item select {
  min-height: 42px;
}

.accessory-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.accessory-heading {
  display: grid;
  gap: 4px;
}

.accessory-heading strong {
  font-size: 16px;
}

.accessory-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.accessory-list {
  display: grid;
  gap: 10px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

.accessory-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.accessory-row img {
  width: 52px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
  background: white;
}

.accessory-row strong,
.accessory-row span {
  display: block;
}

.accessory-row strong {
  font-size: 13px;
  line-height: 1.25;
}

.accessory-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.accessory-controls {
  display: grid;
  grid-template-columns: 28px 28px 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}

.accessory-controls button {
  width: 28px;
  height: 30px;
  border: 0;
  background: white;
  color: var(--teal);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.accessory-controls output {
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.totals {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  font-weight: 800;
}

.totals .total {
  align-items: baseline;
  color: var(--text);
}

.totals .total dd {
  font-size: 28px;
}

.discount-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.discount-form label {
  min-width: 0;
}

.discount-form input {
  min-height: 42px;
}

.discount-form button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  background: var(--teal);
  color: white;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.discount-form #clearDiscount {
  background: #e7eaef;
  color: var(--text);
}

.discount-message {
  grid-column: 1 / -1;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.discount-message.error {
  color: var(--accent);
}

.customer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.customer-form .full,
.customer-form button {
  grid-column: 1 / -1;
}

.insurance-box {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(244, 182, 63, 0.72);
  border-radius: 8px;
  background: #fff9ec;
}

.insurance-box span {
  color: var(--muted);
  font-size: 13px;
}

.booking-message {
  border-top: 1px solid var(--border);
  color: var(--teal);
  font-weight: 800;
}

.booking-message.error {
  color: var(--accent);
}

.integration-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 20px;
  margin: 0 clamp(18px, 5vw, 92px) 42px;
  padding: 24px 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
}

.integration-strip div {
  display: grid;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.integration-strip div:last-child {
  border-right: 0;
}

.integration-strip span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.integration-strip strong {
  font-size: 22px;
}

.integration-strip div:first-child strong {
  font-size: 36px;
}

.contact-band {
  padding: 56px clamp(18px, 5vw, 92px) 70px;
  background: var(--surface);
}

.contact-band p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .booking-panel {
    max-width: 640px;
    justify-self: start;
  }

  .booking-panel {
    position: static;
  }

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

@media (min-width: 1680px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand {
    font-size: 24px;
  }

  .phone {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 38px 16px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .search-panel {
    padding: 20px;
  }

  .form-grid,
  .product-grid,
  .steps ol,
  .customer-form,
  .integration-strip {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 210px auto;
  }

  .product-card img {
    height: 210px;
  }

  .content-grid {
    padding: 26px 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-item {
    grid-template-columns: 68px 1fr;
  }

  .booking-item select {
    grid-column: 1 / -1;
  }

  .discount-form {
    grid-template-columns: 1fr;
  }

  .integration-strip {
    margin: 0 16px 32px;
  }

  .integration-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding-bottom: 12px;
  }
}
