/* ==========================================================================
   Глас Експрес
   Visual language borrowed from the windshield itself:
   – the windshield silhouette as the image frame
   – the black ceramic "frit" dot band found on every windshield edge
   – the tiny printed glass marking (AS1 · E-mark) used for labels
   ========================================================================== */

:root {
  --glass: #e6ecea;
  --glass-2: #d5dfdb;
  --paper: #f7f9f8;
  --ink: #0f1213;
  --ink-2: #1b2022;
  --ink-soft: #4b5654;
  --rule: rgb(15 18 19 / 0.16);
  --accent: #ccce6b;
  --tint: #2c5a52;

  --display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* windshield outline (stretched to any box) */
  --windshield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M13 1.5Q50 -1 87 1.5Q91.5 1.8 92.5 5.5L99.2 53.5Q99.8 58 95.5 58.3Q50 61 4.5 58.3Q0.2 58 0.8 53.5L7.5 5.5Q8.5 1.8 13 1.5Z'/%3E%3C/svg%3E");
  --frit: radial-gradient(circle, #000 0 1.6px, transparent 2.1px) 0 0 / 6px 6px;
}

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

html {
  /* no rubber-band bounce past the top/bottom (touchpads, phones) */
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--glass);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* standard Cyrillic glyphs instead of Bulgarian-locale alternates */
  font-feature-settings: "locl" 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

mark {
  background: linear-gradient(transparent 52%, var(--accent) 52%, var(--accent) 92%, transparent 92%);
  color: inherit;
  padding-inline: 0.1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

p {
  text-wrap: pretty;
}

/* glass-marking label */
.mark {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.col-head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 1rem;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .col-head {
    position: static;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, transform 0.12s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.2em;
  height: 1.2em;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-line {
  border-color: var(--ink);
}

.btn-viber {
  background: #7360f2;
  color: #fff;
}

.btn-whatsapp {
  background: #1faa55;
  color: #fff;
}

@media (hover: hover) {
  .btn-ink:hover {
    background: var(--tint);
  }

  .btn-line:hover {
    background: var(--ink);
    color: #fff;
  }

  .btn-viber:hover {
    background: #5f4be0;
  }

  .btn-whatsapp:hover {
    background: #17914a;
  }
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--tint);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(230 236 234 / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.nav-logo {
  display: block;
  padding: 0.3rem 0.6rem;
  background: var(--ink);
  border-radius: 3px;
}

.nav-logo img {
  height: 2.4rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-links a:hover {
  border-color: var(--rule);
}

.nav-links a[aria-current="true"] {
  border-color: var(--ink);
}

.nav-phone {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 3px;
}

.nav-phone:hover {
  background: var(--tint);
}

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.5rem 1.25rem 1.5rem;
    background: var(--glass);
    border-bottom: 1px solid var(--rule);
    display: none;
  }

  .site-header.is-open .nav-menu {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links a[aria-current="true"] {
    border-color: var(--rule);
  }

  .nav-phone {
    text-align: center;
    padding-block: 0.9rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.86;
  margin-top: 1.25rem;
}

.hero-lead {
  margin-top: 1.75rem;
  max-width: 30rem;
  font-size: 1.15rem;
  color: var(--ink-2);
}

.hero-call {
  display: grid;
  margin-top: 2.25rem;
  padding: 1.1rem 0 1.2rem;
  border-block: 1.5px solid var(--ink);
  width: 100%;
  max-width: 26rem;
}

.hero-call span,
.hero-call small {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero-call a {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  line-height: 1;
  text-decoration: none;
  margin-block: 0.2rem 0.35rem;
}

.hero-call a:hover {
  color: var(--tint);
}

.hero-text .text-link {
  margin-top: 1.25rem;
}

/* windshield frame */
.windshield {
  position: relative;
  aspect-ratio: 100 / 60;
  -webkit-mask: var(--windshield) center / 100% 100% no-repeat;
  mask: var(--windshield) center / 100% 100% no-repeat;
  background: var(--ink);
}

.windshield img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 60%;
  filter: saturate(0.85) contrast(1.05);
}

/* tinted shade band + frit dots along the edges */
.windshield::before,
.windshield::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.windshield::before {
  background:
    linear-gradient(to bottom, rgb(30 70 64 / 0.55), transparent 22%),
    linear-gradient(to top, rgb(15 18 19 / 0.35), transparent 30%);
}

.windshield::after {
  /* black ceramic band and fading dot rows, following the glass outline */
  background: url("img/frit.svg") center / 100% 100% no-repeat;
}

/* the printed glass marking, like the corner of a real windshield */
.glass-stamp {
  position: absolute;
  z-index: 1;
  right: 13%;
  bottom: 12%;
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--mono);
  font-size: clamp(0.55rem, 0.9vw, 0.72rem);
  line-height: 1.35;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgb(247 249 248 / 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 2px;
  text-align: center;
}

.glass-stamp b {
  font-weight: 500;
  letter-spacing: 0.12em;
  padding-bottom: 0.2rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--rule);
}

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

  .windshield {
    order: -1;
  }
}

/* ---------- Services ---------- */
.services-body > p {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
}

.service-list {
  border-top: 1.5px solid var(--ink);
  margin-bottom: 2rem;
}

.service-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---------- Why us ---------- */
.section-frit {
  position: relative;
  background: var(--ink);
  color: #fff;
}

/* frit dot band fading down from the top edge */
.section-frit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4.5rem;
  background: radial-gradient(circle, var(--glass) 0 1.6px, transparent 2.1px) 0 0 / 6px 6px;
  -webkit-mask: linear-gradient(#000, transparent);
  mask: linear-gradient(#000, transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.why-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
}

.why-grid h2 {
  margin-bottom: 1.75rem;
}

.why-list li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  color: rgb(255 255 255 / 0.88);
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}

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

  .why-grid img {
    max-width: 22rem;
  }
}

/* ---------- About ---------- */
.about-body {
  display: grid;
  gap: 1.25rem;
}

.about-body .lead {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 500;
}

.about-body p:not(.lead) {
  color: var(--ink-2);
  max-width: 40rem;
}

.office {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.office img {
  width: 185px;
  height: 145px;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .office img {
    flex: 1 1 28%;
    width: auto;
    height: auto;
    aspect-ratio: 185 / 145;
    min-width: 0;
  }
}

/* ---------- Gallery ---------- */
.section-dark {
  background: var(--ink-2);
  color: #fff;
}

.section-dark .mark {
  color: rgb(255 255 255 / 0.6);
}

.gallery-title {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery button {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .gallery button:hover img {
    transform: scale(1.04);
  }
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.lightbox {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 900px);
  overflow: visible;
}

.lightbox::backdrop {
  background: rgb(10 12 13 / 0.9);
}

.lightbox img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #fff;
  padding: 0.5rem 0;
}

/* ---------- Contact ---------- */
.contact-title {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

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

.contact-info dl {
  display: grid;
  border-top: 1.5px solid var(--ink);
}

.contact-info dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-info dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding-top: 0.3rem;
}

.contact-info dd {
  font-weight: 500;
}

.big-phone {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.big-phone:hover {
  color: var(--tint);
}

.map {
  margin-top: 1.5rem;
  aspect-ratio: 4 / 3;
  background: var(--glass-2);
  border-radius: 3px;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.6) contrast(1.05);
}

/* ---------- Booking form (styled as a work ticket) ---------- */
.booking-form {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
}

.ticket-head {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1.25rem;
  border-bottom: 1.5px dashed var(--ink);
}

.booking-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.booking-form form {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1.75rem;
}

.booking-form fieldset {
  border: 0;
  min-width: 0;
}

.steps-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
}

.step span {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.72rem;
}

.step.active {
  color: var(--ink);
}

.step.active span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.step.completed span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-instruction {
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.step-instruction .muted {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
}

/* glass picker: 3D car + list fallback */
.car3d {
  position: relative;
  background: radial-gradient(120% 90% at 50% 35%, #fbfcfc 0%, #e8eeec 70%, #dde5e2 100%);
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.car3d-canvas {
  aspect-ratio: 2 / 1;
  width: 100%;
}

.car3d-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.car3d-status {
  position: absolute;
  inset: 0 0 3.25rem;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  pointer-events: none;
}

.car3d[data-state="ready"] .car3d-status {
  display: none;
}

.car3d[data-state="failed"] {
  display: none;
}

.car3d-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--rule);
  background: rgb(255 255 255 / 0.7);
}

.car3d-views {
  display: flex;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}

.car3d-views button {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
}

.car3d-views button + button {
  border-left: 1.5px solid var(--ink);
}

.car3d-views button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.car3d-hint {
  flex: 1 0 12rem;
  min-width: 0;
  min-height: 1.5em; /* keeps its row when empty */
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .car3d-canvas {
    aspect-ratio: 16 / 10;
  }

  .car3d-views {
    width: 100%;
  }

  .car3d-views button {
    flex: 1;
    padding-inline: 0.3rem;
  }

  .car3d-hint {
    flex-basis: 100%;
    text-align: left;
  }
}

/* list fallback */
.glass-list {
  margin-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.glass-list summary {
  padding: 0.7rem 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}

.glass-list[open] summary {
  color: var(--ink);
}

.glass-list-side {
  margin: 0.8rem 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.glass-list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.chip-check {
  position: relative;
  cursor: pointer;
}

.chip-check input {
  position: absolute;
  opacity: 0;
}

.chip-check span {
  display: block;
  padding: 0.45rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}

.chip-check:hover span {
  border-color: var(--ink-soft);
}

.chip-check input:checked + span {
  background: var(--accent);
  border-color: var(--ink);
}

.chip-check input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.chips:empty {
  display: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.chips button {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
}

.chips button:hover {
  background: rgb(15 18 19 / 0.12);
}

.unsure-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.925rem;
  cursor: pointer;
}

.unsure-check input {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--ink);
}

/* fields */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.form-group label .muted {
  text-transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.booking-form input:not([type="checkbox"], [type="radio"]),
.booking-form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-size: 1rem; /* ≥16px avoids iOS zoom */
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  transition: border-color 0.15s;
}

.booking-form select {
  appearance: none;
  padding-right: 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1213' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.85rem center / 1.1rem no-repeat;
  cursor: pointer;
}

.booking-form ::placeholder {
  color: #9aa4a1;
}

.booking-form input:not([type="checkbox"], [type="radio"]):focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--ink);
}

.booking-form [aria-invalid="true"] {
  border-color: #c2412d;
}

.summary {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-left: 3px solid var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-line;
}

.contact-options {
  display: grid;
  gap: 0.6rem;
}

.contact-options .btn {
  width: 100%;
  padding-block: 1rem;
}

.form-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c2412d;
}

.form-error:empty {
  margin: 0;
}

.form-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.form-nav .btn {
  flex: 1;
}

.form-nav .btn[hidden] {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgb(255 255 255 / 0.6);
  padding-block: 2.5rem;
  font-size: 0.9rem;
}

.site-footer .mark {
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 8ИТ credit (same as the other 8ight sites): hover floods the 8ight indigo
   plate, chamfered like the mark, and tilts the 8 into a solid. */
.site-footer .footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  margin-right: -14px;
  color: rgb(255 255 255 / 0.75);
  font-weight: 400;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background-color 150ms, color 150ms;
}

.site-footer .footer-credit:hover,
.site-footer .footer-credit:focus-visible {
  background: #635de3;
  color: #fff;
  text-decoration: none;
}

.site-footer .footer-credit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
}

.fc-logo {
  display: flex;
  align-items: center;
  gap: 2.9px;
  color: #fff;
  opacity: 0.75;
  transition: opacity 150ms;
}

.footer-credit:hover .fc-logo,
.footer-credit:focus-visible .fc-logo {
  opacity: 1;
}

/* Hover turns the 8 from flat into the resting pose of the 3D mark on
   8ight.ltd (~27° turn, 9° tip, 2° lean), turned toward the wordmark. */
.fc-mark {
  position: relative;
  width: 22px;
  height: 22px;
  transform-style: preserve-3d;
  transform: perspective(80px);
  transition: transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fc-mark svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 88px;
  max-width: none;
  transform-origin: 0 0;
  fill: hsl(244 40% calc(80% - var(--i) * 0.8%));
  transform: translateZ(calc((7.5 - var(--i)) * 0.5px)) scale(0.25);
}

.fc-mark svg:first-child,
.fc-mark svg:last-child {
  fill: currentColor;
}

.footer-credit:hover .fc-mark,
.footer-credit:focus-visible .fc-mark {
  transform: perspective(80px) rotateX(-9deg) rotateY(27deg) rotateZ(-2deg);
}

.fc-word {
  height: 22px;
  width: auto;
  display: block;
}

/* When the footer stacks, line the credit text up with the lines above. */
@media (max-width: 900px) {
  .site-footer .footer-credit {
    margin-left: -14px;
    margin-right: 0;
  }
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
