:root {
  --black: #050505;
  --white: #f7f7f2;
  --cream: #f3efe7;
  --ink: #151515;
  --muted: #6c6b68;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #1375ff;
  --radius: 30px;
  --header-height: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  z-index: 40;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(10, 10, 10, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
}

.brand {
  display: inline-flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 12px;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-cta {
  background: #fff !important;
  color: #050505 !important;
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.menu-toggle em {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
}

.menu-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.menu-bars i {
  position: absolute;
  left: 0;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: white;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.18s ease;
}

.menu-bars i:nth-child(1) { top: 0; }
.menu-bars i:nth-child(2) { top: 6px; }
.menu-bars i:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.menu-scrim {
  display: none;
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: 118px 7vw 90px;
  overflow: hidden;
}

.dark {
  background: radial-gradient(circle at 70% 20%, #303030 0, #050505 46%);
}

.light {
  background: var(--cream);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 48px;
}

.hero::before,
.image-panel::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -24%;
  left: -10%;
  height: 45%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h3 {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.lede,
.center p,
.section-copy p {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}

.light .center p,
.light .section-copy p {
  color: #555;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(19, 117, 255, 0.25);
}

.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-device {
  display: grid;
  place-items: center;
}

.phone-card {
  width: min(390px, 86vw);
  aspect-ratio: 0.76;
  padding: 34px;
  border-radius: 46px;
  background: linear-gradient(145deg, #f7f7f2, #b9b9b2);
  color: #111;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.55);
  transform: rotate(-4deg);
}

.status-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #19c37d;
  box-shadow: 0 0 0 10px rgba(25, 195, 125, 0.14);
}

.phone-card h2 {
  margin: 60px 0 8px;
  font-size: 44px;
}

.phone-card strong {
  display: block;
  margin-top: 38px;
}

.tire-rings {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.tire-rings i {
  width: 82px;
  height: 82px;
  border: 16px solid #111;
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px #dbdbd4;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 56px;
}

.finder-card,
.booking-card {
  width: 100%;
  background: #fff;
  color: #111;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
}

.finder-stack {
  display: grid;
  gap: 16px;
  align-self: center;
}

.finder-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 18px;
  background: #f0f0ed;
}

.finder-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #555;
  font-weight: 800;
  cursor: pointer;
}

.finder-tabs button.active {
  background: #151515;
  color: #fff;
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  margin: 7px 0 12px;
  padding: 15px 16px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fafafa;
}

.search-select {
  position: relative;
  z-index: 1;
}

.search-select.open {
  z-index: 20;
}

.native-search-select {
  display: none;
}

.search-select-input {
  padding-right: 42px;
}

.search-select::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b6b66;
  border-bottom: 2px solid #6b6b66;
  transform: rotate(45deg);
  pointer-events: none;
}

.search-select.disabled::after {
  opacity: 0.35;
}

.search-select-list {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 230px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  list-style: none;
}

.search-select.open .search-select-list {
  display: block;
}

.search-select-option,
.search-select-empty {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 11px;
  color: #161616;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.search-select-option {
  cursor: pointer;
}

.search-select-option:hover,
.search-select-option[aria-selected="true"] {
  background: #151515;
  color: #fff;
}

.search-select-empty {
  color: #77736c;
}

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

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

.divider {
  display: block;
  margin: 5px;
  text-align: center;
  color: #888;
}

.full {
  width: 100%;
  border: 0;
}

.center {
  max-width: 920px;
  margin: 0 auto 46px;
  text-align: center;
}

.image-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.75)), radial-gradient(circle at 50% 10%, #555, #111 55%, #030303);
}

.steps,
.price-cards,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.steps article,
.price-cards article,
.review-grid article,
details {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.steps span,
.price-cards p {
  color: var(--accent);
  font-weight: 900;
}

.price-cards article {
  min-height: 220px;
}

.price-cards span {
  color: rgba(255, 255, 255, 0.7);
}

.light .review-grid article {
  border-color: #e5e1d8;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.quote {
  font-size: 32px !important;
  color: #111 !important;
}

.faq {
  min-height: auto;
}

.faq details {
  max-width: 900px;
  margin: 12px auto;
}

.faq-extra[hidden] {
  display: none;
}

.faq summary {
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.faq p {
  color: rgba(255, 255, 255, 0.72);
}

.faq-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin: 22px auto 0;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.faq-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.service-areas {
  min-height: auto;
}

.service-area-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

.service-area-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  background: #fff;
  color: #151515;
  font-weight: 800;
  text-align: center;
}

.service-area-links a:hover {
  border-color: var(--accent);
  color: #125da8;
}

.city-hero {
  min-height: 76vh;
}

.city-content {
  min-height: auto;
}

.city-actions {
  justify-content: center;
}

.appointment {
  min-height: 100vh;
}

.booking-card {
  max-width: 720px;
  margin: auto;
}

.appointment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.appointment-grid-single {
  max-width: 720px;
  grid-template-columns: minmax(0, 1fr);
}

.appointment-card,
.manage-card {
  max-width: none;
}

.appointment-picker {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e1da;
}

.appointment-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appointment-picker-header h3 {
  margin: 0;
  color: #111;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.appointment-picker-header button {
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: #f0f0ed;
  color: #333;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.appointment-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.appointment-day-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #dedbd3;
  border-radius: 999px;
  background: #fbfbf9;
  color: #333;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.appointment-day-tab.active {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.appointment-day-tab:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.appointment-time-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dedbd3;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.appointment-time-button.active {
  border-color: var(--accent);
  background: #eef6ff;
  color: #125da8;
}

.appointment-empty,
.appointment-selection {
  margin: 0;
  color: #5b5b58;
  font-size: 13px;
  line-height: 1.4;
}

.appointment-empty {
  grid-column: 1 / -1;
}

.form-row {
  display: grid;
  gap: 8px;
}

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

.form-row.address-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, 0.8fr) minmax(110px, 0.45fr);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 18px;
  color: #494949;
  font-size: 14px;
  line-height: 1.35;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.manage-card h3 {
  margin-bottom: 16px;
  color: #111;
}

.dark-button {
  background: #151515;
  color: #fff;
  border-color: #151515;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.form-status.success {
  color: #096f44;
}

.form-status.error {
  color: #a2261d;
}

.size-preview {
  min-height: 24px;
  margin: 0 0 12px;
  color: #555;
  font-size: 14px;
}

.tire-results {
  display: grid;
  gap: 10px;
}

.product-mode-card,
.result-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e4e1da;
  border-radius: 18px;
  background: #fff;
  color: #111;
}

.product-mode-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.product-mode-card h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.product-mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.product-mode-actions button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #dedbd3;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-weight: 800;
}

.product-mode-actions button.active {
  border-color: #151515;
  background: #151515;
  color: #fff;
}

.product-placeholder {
  padding: 18px;
  border: 1px dashed #d8d3c8;
  border-radius: 16px;
  background: #fbfaf6;
  color: #5b5b58;
  font-weight: 700;
}

.result-controls label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.result-controls select {
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
}

.result-count {
  align-self: center;
  color: #5b5b58;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.staggered-key {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.staggered-key-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5b5b58;
  font-size: 12px;
  font-weight: 900;
}

.staggered-key-item i {
  display: block;
  width: 18px;
  height: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.staggered-key-front i {
  border-color: #d7e7ef;
  background: #f2f9fc;
}

.staggered-key-rear i {
  border-color: #f2caca;
  background: #fff1f1;
}

.tire-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e4e1da;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #111;
}

.tire-product-front {
  border-color: #d7e7ef;
  background: #f2f9fc;
}

.tire-product-rear {
  border-color: #f2caca;
  background: #fff1f1;
}

.tire-product-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.tire-thumb {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 5px;
  border: 1px solid #dedbd3;
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
}

.tire-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tire-product h3 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

.tire-product p {
  margin-bottom: 0;
  color: #5b5b58;
  font-size: 14px;
  line-height: 1.35;
}

.tire-price {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 146px;
  text-align: right;
}

.tire-price strong {
  font-size: 24px;
}

.availability-badge {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #125da8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.result-cart-controls {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
}

.quantity-select {
  min-height: 36px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.mini-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-mini {
  background: #151515;
}

.result-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cart-card {
  width: 100%;
  padding: 20px;
  border-radius: 24px;
  /*Test color*/
  background: rgb(180, 250, 180);
  color: #111;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.12);
}

.cart-card[hidden] {
  display: none;
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.cart-header .eyebrow {
  margin-bottom: 5px;
}

.cart-header h3 {
  margin: 0;
  color: #111;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.cart-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f0f0ed;
  color: #555;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e4e1da;
  border-radius: 16px;
  background: #fbfbf9;
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.cart-item strong {
  display: block;
}

.cart-item span {
  display: block;
  margin-top: 3px;
  color: #5b5b58;
  font-size: 12px;
  line-height: 1.35;
}

.cart-item-controls {
  display: grid;
  grid-template-columns: 56px auto;
  align-items: center;
  justify-items: end;
  gap: 6px;
}

.cart-remove {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: #ece9e1;
  color: #4b4a47;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cart-totals {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid #e4e1da;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5b5b58;
  font-size: 14px;
}

.cart-total.grand {
  color: #111;
  font-size: 18px;
}

.cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cart-clear {
  min-height: 48px;
  color: #111;
  background: #f0f0ed;
  border-color: transparent;
  cursor: pointer;
}

.image-popup[hidden] {
  display: none;
}

.image-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
}

.image-popup-panel {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  max-height: min(720px, calc(100dvh - 44px));
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  color: #111;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.42);
}

.image-popup-close {
  justify-self: end;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.image-popup-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.image-popup-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

body.image-popup-open {
  overflow: hidden;
}

.button:disabled,
.mini-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

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

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 7vw;
  background: #050505;
  color: rgba(255, 255, 255, 0.76);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-menu a {
    padding-inline: 11px;
  }

  .hero,
  .split {
    gap: 36px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 58px;
  }

  html {
    scroll-padding-top: 88px;
  }

  .site-header {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    padding: 8px 8px 8px 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: fixed;
    top: calc(max(10px, env(safe-area-inset-top)) + var(--header-height) + 10px);
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .site-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-menu a {
    justify-content: flex-start;
    min-height: 50px;
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
  }

  .site-menu a.active {
    background: rgba(255, 255, 255, 0.14);
  }

  .site-menu .nav-cta {
    justify-content: center;
    margin-top: 4px;
    min-height: 54px;
  }

  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.menu-open .menu-scrim {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

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

  .panel {
    min-height: auto;
    padding: 102px 22px 72px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-device {
    order: 2;
  }

  .steps,
  .price-cards,
  .review-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .center {
    text-align: left;
  }

  h1 {
    font-size: clamp(46px, 15vw, 72px);
    line-height: 0.9;
  }

  h2 {
    font-size: clamp(38px, 11vw, 62px);
  }

  .phone-card {
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    max-width: 44vw;
    font-size: 15px;
  }

  .menu-toggle {
    min-height: 40px;
    padding-inline: 12px;
  }

  .menu-toggle em {
    font-size: 13px;
  }

  .panel {
    padding-inline: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

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

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

  .form-row.two,
  .form-row.address-row {
    grid-template-columns: 1fr;
  }

  .appointment-picker-header {
    align-items: stretch;
    flex-direction: column;
  }

  .appointment-times {
    grid-template-columns: 1fr;
  }

  .result-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-mode-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-mode-actions {
    justify-content: stretch;
  }

  .product-mode-actions button {
    flex: 1;
  }

  .result-count {
    white-space: normal;
  }

  .tire-product {
    grid-template-columns: 1fr;
  }

  .tire-product-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tire-price {
    min-width: 0;
    text-align: left;
  }

  .availability-badge {
    justify-self: start;
  }

  .result-cart-controls {
    max-width: 240px;
  }

  .result-pagination {
    justify-content: stretch;
  }

  .result-pagination .mini-button {
    flex: 1;
  }

  .finder-card,
  .booking-card,
  .cart-card {
    padding: 22px;
    border-radius: 24px;
  }

  .phone-card {
    width: min(100%, 340px);
    padding: 26px;
    border-radius: 36px;
  }

  .phone-card h2 {
    margin-top: 42px;
    font-size: 36px;
  }

  .tire-rings {
    gap: 8px;
  }

  .tire-rings i {
    width: 64px;
    height: 64px;
    border-width: 12px;
    box-shadow: inset 0 0 0 9px #dbdbd4;
  }

  .quote {
    font-size: 24px !important;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 22px;
  }
}

@media (max-width: 420px) {
  .tire-product-main {
    grid-template-columns: 1fr;
  }

  .tire-thumb {
    width: 72px;
    height: 72px;
  }

  .cart-header,
  .cart-actions {
    grid-template-columns: 1fr;
  }

  .cart-header {
    display: grid;
  }

  .cart-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    justify-items: start;
  }

  .cart-remove {
    grid-column: auto;
  }
}

@media (max-width: 360px) {
  .brand-name {
    max-width: 38vw;
  }

  .menu-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .menu-toggle {
    width: 44px;
    padding: 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
