:root {
  --black: #090706;
  --ink: #17100a;
  --muted: #7f6d58;
  --line: #e2c99f;
  --yellow: #d98218;
  --gold: #f4a62a;
  --gold-light: #ffd782;
  --gold-soft: #fff3d5;
  --copper: #9a4f0d;
  --bronze: #623009;
  --white: #fafaf7;
  --surface: #f6efe4;
  --green: #a85f12;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

.hero-content,
.hero-facts div,
.hero-strip span,
.section-head > *,
.car-card,
.calc-panel,
.lead-form-wrap,
.brand span,
.auth-layout,
.auth-copy,
.auth-card,
.hero-service-panel {
  min-width: 0;
}

.page[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  font: 16px/1.45 Arial, Helvetica, sans-serif;
}

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

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

button,
input,
select {
  border: 0;
}

.site-header {
  --max: 1280px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background: rgba(9, 7, 6, 0.97);
  border-bottom: 1px solid rgba(244, 166, 42, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(244, 166, 42, 0.42));
}

.brand strong {
  display: block;
  color: inherit;
  font-size: 16px;
  text-transform: uppercase;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 216, 160, 0.72);
  font-size: 10px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 239, 214, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a,
.phone,
.button,
.ghost-button {
  white-space: nowrap;
}

.main-nav a:hover,
.phone:hover,
.text-link:hover {
  color: var(--yellow);
}

.main-nav a.active,
.mobile-nav a.active {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.phone {
  color: var(--gold-light);
  font-weight: 800;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.social-link:hover {
  color: var(--black);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  color: #170d05;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 54%, var(--yellow));
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(154, 79, 13, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.filter:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffe3a3, #ffb744 54%, #c66b15);
  box-shadow: 0 16px 34px rgba(154, 79, 13, 0.28);
}

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

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.text-link::after {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--yellow));
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86svh;
  color: #ffffff;
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 7, 6, 0.97), rgba(35, 19, 7, 0.82) 43%, rgba(9, 7, 6, 0.28)),
    url("assets/hero-car.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 116px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 82px;
  line-height: 0.96;
}

h1 span {
  display: block;
  color: var(--gold-light);
  text-shadow: 0 0 24px rgba(244, 166, 42, 0.22);
}

.hero-copy {
  width: min(100%, 560px);
  max-width: 560px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-service-panel {
  display: grid;
  gap: 14px;
  width: min(650px, 100%);
  margin-top: 28px;
  padding: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hero-service-panel > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-service-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-weight: 900;
}

.service-links a:hover {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
}

.hero-app-panel {
  display: grid;
  gap: 14px;
  width: min(640px, 100%);
  margin-top: 28px;
  padding: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.app-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(244, 166, 42, 0.2);
}

.hero-app-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.app-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.demo-access b {
  color: #ffffff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 700px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-facts div {
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.hero-facts dt {
  color: var(--gold-light);
  font-weight: 900;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.hero-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--black);
  background: linear-gradient(90deg, var(--gold-light), var(--gold) 48%, var(--yellow));
  border-top: 1px solid rgba(98, 48, 9, 0.28);
}

.hero-strip span {
  min-height: 58px;
  padding: 19px 28px;
  border-right: 1px solid rgba(98, 48, 9, 0.24);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero-strip b {
  margin-right: 12px;
  color: rgba(98, 48, 9, 0.58);
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.page:not(.page-home) {
  min-height: calc(100svh - 76px);
}

.page-top {
  max-width: 850px;
  margin-bottom: 36px;
  padding-top: 18px;
}

.page-top h1,
.page:not(.page-home) h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.02;
}

.page-top p {
  color: var(--muted);
  font-size: 19px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 60px;
  max-width: none;
  align-items: end;
}

.section-head p:not(.eyebrow) {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 18px;
}

h2 {
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

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

.intro-grid article,
.car-card {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
}

.intro-grid article {
  padding: 28px;
}

.intro-grid span {
  display: block;
  margin-bottom: 54px;
  color: var(--copper);
  font-weight: 900;
}

.intro-grid p,
.trust-grid p,
.fleet-band p,
.terms-copy p,
.condition-cards li,
.calculator p,
.faq-list p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.trust-section {
  background: #ffffff;
}

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

.trust-grid article,
.condition-cards article {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.trust-grid h3,
.condition-cards h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.trust-grid p,
.condition-cards ul,
.legal-content p,
.legal-content ul {
  margin: 0;
}

.fleet-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 54px;
  align-items: center;
  padding: 72px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--surface);
}

.local-seo {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.48fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.98), rgba(255, 255, 255, 0.94)),
    var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.local-seo h2 {
  max-width: 760px;
}

.local-seo p {
  max-width: 860px;
  color: var(--muted);
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-tags span {
  padding: 10px 12px;
  color: #6d4f2e;
  background: #fff6df;
  border: 1px solid rgba(217, 130, 24, 0.18);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

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

.condition-cards article {
  position: relative;
  padding: 26px;
  color: rgba(255, 244, 226, 0.9);
  background:
    linear-gradient(180deg, rgba(54, 29, 10, 0.92), rgba(18, 12, 8, 0.96)),
    var(--black);
  border: 1px solid rgba(244, 166, 42, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 216, 130, 0.14), 0 18px 46px rgba(0, 0, 0, 0.24);
}

.condition-cards article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--gold);
  border-radius: inherit;
  pointer-events: none;
}

.condition-cards h3 {
  color: var(--gold-light);
  font-size: 21px;
}

.condition-cards ul {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.condition-cards li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 236, 205, 0.78);
}

.condition-cards li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(244, 166, 42, 0.12);
}

.legal-content ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.legal-page {
  background: var(--white);
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-content article {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.legal-content p + p {
  margin-top: 12px;
}

.consent-check {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.consent-check input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: 7px;
  accent-color: var(--gold);
  transform: translateY(1px);
}

.consent-check input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 5.4 5.1 9 12.5 1.5' fill='none' stroke='%230a0a0a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 11px;
}

.auth-card .consent-check input {
  border-color: rgba(10, 10, 10, 0.26);
}

.lead-form .consent-check {
  color: rgba(255, 255, 255, 0.74);
}

.consent-check a,
.footer-links a:not(.phone) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fleet-band img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 8px;
}

.fleet-band h2 {
  max-width: 560px;
}

.catalog {
  background: var(--white);
}

.catalog-empty {
  grid-column: 1 / -1;
  align-self: start;
  min-height: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter {
  min-height: 42px;
  padding: 0 18px;
  background: var(--gold-soft);
  border: 1px solid var(--line);
  font-size: 14px;
  box-shadow: none;
}

.filter.active {
  color: #170d05;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 560px;
}

.car-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.car-photo {
  position: relative;
  aspect-ratio: 1.55;
  background: var(--surface);
  overflow: hidden;
}

.car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  position: absolute;
  inset: 16px 16px auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-size: 12px;
  font-weight: 900;
}

.badge.status {
  color: var(--copper);
  background: #fff7e6;
}

.badge.status::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.car-body {
  display: grid;
  gap: 20px;
  padding: 22px;
  flex: 1;
}

.car-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.car-title {
  margin: 0 0 5px;
  font-size: 24px;
  line-height: 1.1;
}

.car-year {
  color: var(--muted);
  font-size: 14px;
}

.price {
  min-width: 98px;
  text-align: right;
  font-weight: 900;
}

.price small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.specs strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-weight: 900;
}

.button-link {
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.button-link.is-disabled,
.button-link:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.card-link::after {
  content: ">";
  color: var(--copper);
  font-size: 22px;
}

.button-link.is-disabled::after,
.button-link:disabled::after {
  content: "";
}

.terms {
  color: #ffffff;
  background: var(--black);
}

.page-terms {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
}

.section-dark {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 72px;
}

.terms-copy p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 19px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.chips span {
  padding: 10px 15px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.accordion {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion details,
.faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion summary,
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.accordion summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after,
.faq-list summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-size: 24px;
}

.accordion details[open] summary::after,
.faq-list details[open] summary::after {
  content: "-";
}

.accordion summary span {
  color: var(--gold-light);
  font-size: 14px;
}

.accordion p {
  max-width: 690px;
  margin: -4px 0 26px 52px;
  color: rgba(255, 255, 255, 0.62);
}

.calculator {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 48%, var(--yellow));
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: 58px;
  align-items: start;
}

.calculator .eyebrow::before {
  background: var(--black);
}

.calculator p {
  max-width: 430px;
  font-size: 19px;
  color: rgba(10, 10, 10, 0.66);
}

.calc-panel {
  display: grid;
  gap: 22px;
  padding: 30px;
  color: #ffffff;
  background: var(--black);
  border-radius: 8px;
}

.calc-panel label {
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 800;
}

.calc-panel select,
.calc-panel input[type="text"],
.calc-panel input[type="tel"],
.lead-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 8px;
}

.lead-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  outline: none;
}

.calc-panel input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.range-value {
  justify-self: end;
  color: var(--gold-light);
  font-size: 16px;
}

.calc-result {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.calc-result small,
.calc-result span {
  color: rgba(255, 255, 255, 0.62);
}

.calc-result strong {
  color: var(--gold-light);
  font-size: 56px;
  line-height: 1;
}

.start {
  padding-bottom: 42px;
  background: var(--white);
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  background: var(--black);
  color: #ffffff;
}

.lead-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.lead-form-wrap {
  align-self: center;
  max-width: 560px;
  padding: 76px 48px;
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold-light);
  font-weight: 800;
}

.faq {
  padding-bottom: 70px;
}

.contacts-page {
  background: var(--surface);
}

.contacts-page .section-head p:not(.eyebrow) {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.85fr;
  gap: 18px;
}

.contact-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card.primary {
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(22, 14, 8, 0.96), rgba(58, 31, 10, 0.94)),
    var(--black);
  border-color: rgba(244, 166, 42, 0.32);
}

.contact-card span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card.primary span {
  color: var(--gold-light);
}

.contact-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card.primary p {
  color: rgba(255, 239, 214, 0.72);
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom-color: var(--line);
}

.faq-list summary {
  color: var(--ink);
}

.faq-list p {
  max-width: 740px;
  margin: -4px 0 26px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  color: #ffffff;
  background: var(--black);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.footer-links .phone {
  color: #ffffff;
  font-size: 15px;
}

.mobile-nav {
  display: none;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.ghost-button:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.ghost-button-yellow {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
}

.ghost-button.dark {
  color: var(--black);
  border-color: rgba(10, 10, 10, 0.24);
}

.ghost-button.dark:hover {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
}

.ghost-button.danger {
  color: #8f1d1d;
  border-color: rgba(157, 43, 43, 0.34);
}

.ghost-button.danger:hover {
  color: #ffffff;
  background: #9d2b2b;
  border-color: #9d2b2b;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: 34px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.modal-card h2 {
  font-size: 34px;
}

.application-modal-card {
  width: min(560px, 100%);
}

.application-modal-card h2 {
  margin-bottom: 14px;
}

.modal-car-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 76px;
  margin: 12px 0 20px;
  padding: 12px;
  background: #fff7e8;
  border: 1px solid rgba(217, 130, 24, 0.22);
  border-radius: 8px;
}

.modal-car-summary.is-plain {
  grid-template-columns: 1fr;
}

.modal-car-summary img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.modal-car-summary strong,
.modal-car-summary span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-car-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.application-form {
  gap: 14px;
  margin-top: 0;
}

.application-form label,
.application-form .consent-check {
  color: var(--muted);
}

.application-form input:not([type="checkbox"]),
.application-form textarea {
  border: 1px solid rgba(98, 48, 9, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.application-form .consent-check input {
  border-color: rgba(10, 10, 10, 0.24);
}

.auth-page {
  display: grid;
  align-items: center;
  padding: 80px max(24px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.78)),
    url("/assets/hero-car.png") center right / cover no-repeat;
  color: #ffffff;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.65fr);
  gap: 60px;
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.auth-layout.compact-auth {
  align-items: start;
}

.auth-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 19px;
}

.auth-copy h1 {
  font-size: 60px;
}

.auth-copy h2 {
  color: #ffffff;
}

.demo-box {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin-top: 28px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.demo-box strong {
  color: #ffffff;
}

.auth-card {
  display: grid;
  gap: 13px;
  padding: 26px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.auth-card h2 {
  margin-bottom: 4px;
  font-size: 30px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-card input:not([type="checkbox"]) {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.phone-verification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  background: #fff6df;
  border: 1px solid rgba(217, 130, 24, 0.24);
  border-radius: 8px;
}

.phone-verification .ghost-button {
  min-height: 50px;
  padding: 0 14px;
}

.phone-verification .form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-card a {
  color: var(--ink);
  font-weight: 900;
}

.auth-card .auth-center-link {
  justify-self: center;
  margin-top: 6px;
  text-align: center;
}

.auth-card .form-status:empty {
  display: none;
}

.auth-card a:hover {
  color: var(--copper);
}

.admin-page .auth-layout {
  width: 100%;
  margin-top: 22px;
}

.admin-page .auth-copy,
.admin-page .auth-copy h2 {
  color: var(--ink);
}

.admin-page .auth-copy p:not(.eyebrow) {
  color: var(--muted);
}

.admin-page .demo-box {
  color: var(--muted);
  background: #ffffff;
  border-color: rgba(10, 10, 10, 0.08);
}

.admin-page .demo-box strong {
  color: var(--ink);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--black);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
}

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

.auth-tab {
  min-height: 42px;
  color: var(--black);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.car-admin-form label,
.cabinet-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.auth-form input,
.admin-table input,
.admin-table select,
.car-admin-form input,
.car-admin-form select,
.cabinet-form input,
.cabinet-form select,
.cabinet-form textarea,
.chat-form input,
.chat-form textarea,
.manager-reply-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cabinet-form textarea,
.chat-form textarea,
.manager-reply-form textarea {
  min-height: 92px;
  padding: 12px;
  resize: vertical;
}

.workspace {
  --max: 1320px;
  padding-top: 90px;
}

body[data-page="account"] .workspace {
  padding-top: 64px;
}

body[data-page="account"] .section-head.split {
  margin-bottom: 28px;
}

body[data-page="account"] .workspace h1 {
  max-width: 760px;
  font-size: 60px;
  line-height: 1;
}

.workspace-panel {
  display: grid;
  gap: 24px;
  min-height: 260px;
}

.workspace-empty {
  display: grid;
  gap: 18px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
}

.workspace-empty.compact {
  padding: 24px;
}

.workspace-empty p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.account-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 34px;
  align-items: stretch;
  min-height: 390px;
  padding: 34px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 243, 213, 0.96), rgba(250, 250, 247, 0.9) 46%, rgba(244, 166, 42, 0.18)),
    radial-gradient(circle at 88% 14%, rgba(244, 166, 42, 0.24), transparent 32%);
  border: 1px solid rgba(217, 130, 24, 0.22);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(98, 48, 9, 0.08);
}

.account-welcome-copy {
  display: grid;
  align-content: center;
  gap: 20px;
}

.account-welcome-copy h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.05;
}

.account-welcome-copy > p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.account-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.account-benefits article {
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 2px solid rgba(217, 130, 24, 0.28);
}

.account-benefits strong {
  color: var(--yellow);
  font-size: 13px;
}

.account-benefits span {
  font-weight: 900;
}

.account-benefits p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-entry-card {
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 26px;
  background: rgba(9, 7, 6, 0.94);
  border: 1px solid rgba(255, 215, 130, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 16, 10, 0.2);
}

.account-entry-card span {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-entry-card h3 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: 30px;
}

.account-entry-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.account-entry-actions {
  display: grid;
  gap: 10px;
}

.account-entry-actions .button,
.account-entry-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

.account-entry-actions .ghost-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.account-entry-link {
  color: var(--gold-light);
  font-weight: 900;
}

.workspace-actions,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.offline-note {
  padding: 14px 16px;
  background: #fff1b8;
  border-radius: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-card,
.application-card,
.admin-section,
.account-chat,
.driver-control-card,
.manager-chat-card,
.stat-grid article {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
}

.profile-card {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.profile-card h3,
.application-card h3,
.admin-section h3,
.driver-control-card h3 {
  margin-bottom: 0;
}

.driver-summary {
  display: grid;
  gap: 16px;
}

.account-notice {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: #fff6df;
  border: 1px solid rgba(217, 130, 24, 0.26);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.account-notice strong {
  font-size: 18px;
}

.account-notice p {
  margin: 0;
  color: var(--muted);
}

.driver-summary-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.97), rgba(28, 20, 11, 0.94)),
    url("assets/fleet.png") right center / auto 100% no-repeat;
  border: 1px solid rgba(255, 215, 130, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.driver-summary-main h2 {
  max-width: 720px;
  margin: 14px 0 10px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.05;
}

.driver-summary-main p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.driver-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.driver-summary-actions .ghost-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.driver-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.driver-kpi-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
}

.driver-kpi-grid span,
.driver-kpi-grid small {
  color: var(--muted);
  font-weight: 800;
}

.driver-kpi-grid strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.driver-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 22px;
  align-items: start;
}

.driver-account-main,
.driver-account-side {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.driver-profile-card {
  position: static;
}

.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-card-head .ghost-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.profile-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.profile-detail-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid rgba(226, 201, 159, 0.58);
  border-radius: 8px;
}

.profile-detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-detail-list strong {
  overflow: hidden;
  color: var(--black);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action-grid,
.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.profile-action-grid .ghost-button,
.profile-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

.profile-action-grid .ghost-button {
  min-height: 42px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1.15;
  white-space: normal;
}

.profile-edit-form {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 201, 159, 0.58);
}

.driver-control-card {
  display: grid;
  gap: 20px;
  padding: 26px;
  box-shadow: 0 18px 46px rgba(98, 48, 9, 0.05);
}

.driver-account-side .driver-control-card {
  gap: 16px;
  padding: 20px;
}

.driver-account-side .cabinet-form {
  grid-template-columns: 1fr;
}

.driver-account-side .cabinet-form-wide,
.driver-account-side .cabinet-form-actions {
  grid-column: auto;
}

.driver-account-side .cabinet-form-actions {
  display: grid;
  gap: 10px;
}

.driver-account-side .cabinet-form-actions .button,
.driver-account-side .cabinet-form-actions .ghost-button,
.dispatch-card > .ghost-button {
  width: 100%;
  justify-content: center;
}

.driver-control-card .panel-head p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}

.driver-car-current {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.driver-car-current img {
  width: 124px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
}

.driver-car-current strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.driver-car-current span {
  color: var(--muted);
  font-weight: 800;
}

.driver-car-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.driver-car-status-grid div {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.driver-car-status-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.driver-car-status-grid strong {
  overflow-wrap: anywhere;
}

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

.booking-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(226, 201, 159, 0.78);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.booking-steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
}

.booking-steps span.done,
.booking-steps span.current {
  color: var(--ink);
  border-color: rgba(244, 166, 42, 0.75);
}

.booking-steps span.current {
  background: #fff6df;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.booking-steps span.done b,
.booking-steps span.current b {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.driver-car-actions,
.terms-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.terms-actions {
  justify-content: space-between;
  padding-top: 2px;
}

.terms-status-card {
  background: linear-gradient(180deg, #ffffff, #fffaf0);
}

.terms-status-card.is-confirmed {
  border-color: rgba(244, 166, 42, 0.34);
}

.terms-mini-list {
  display: grid;
  gap: 8px;
}

.terms-mini-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 201, 159, 0.62);
  border-radius: 8px;
}

.terms-mini-list strong {
  color: var(--black);
}

.terms-mini-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.terms-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terms-chip-list span {
  padding: 8px 10px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(226, 201, 159, 0.62);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.terms-confirmed {
  margin: 0;
  color: var(--yellow);
  font-weight: 900;
}

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

.cabinet-form-wide,
.cabinet-form-actions {
  grid-column: 1 / -1;
}

.cabinet-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cabinet-form-actions .form-status {
  margin: 0;
}

.commission-grid,
.terms-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 201, 159, 0.74);
  border-radius: 8px;
}

.terms-check-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.commission-grid article,
.terms-check-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 124px;
  padding: 18px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
  border-right: 1px solid rgba(226, 201, 159, 0.74);
  border-radius: 0;
}

.commission-grid article:last-child,
.terms-check-grid article:last-child {
  border-right: 0;
}

.commission-grid span,
.terms-check-grid span,
.commission-grid small {
  color: var(--muted);
  font-weight: 800;
}

.commission-grid strong,
.terms-check-grid strong {
  overflow-wrap: normal;
  font-size: 20px;
  line-height: 1.22;
}

.terms-accept-form {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.terms-accept-form .form-status {
  margin: 0;
}

.dispatch-last-request {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #fff6df;
  border: 1px solid rgba(217, 130, 24, 0.22);
  border-radius: 8px;
}

.dispatch-last-request span {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.dispatch-last-request small {
  color: var(--muted);
  font-weight: 800;
}

.chat-thread-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.application-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.application-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 24px;
  padding: 22px;
}

.application-card .booking-steps,
.application-actions {
  grid-column: 1 / -1;
}

.application-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.application-card dt {
  color: var(--muted);
  font-size: 12px;
}

.application-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-chat {
  display: grid;
  grid-column: 1 / -1;
  gap: 18px;
  padding: 24px;
}

.account-chat.chat-workspace {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.chat-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #fffaf0);
  border-bottom: 1px solid rgba(226, 201, 159, 0.72);
}

.chat-workspace-head h3 {
  margin: 10px 0 6px;
  font-size: 28px;
}

.chat-workspace-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.chat-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.chat-workspace-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  min-height: 560px;
}

.chat-thread-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: #fbf6ed;
  border-right: 1px solid rgba(226, 201, 159, 0.72);
}

.chat-thread-list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.chat-thread-list-top span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: var(--black);
  background: var(--gold-light);
  border-radius: 999px;
  font-weight: 900;
}

.chat-thread-button {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.chat-thread-button.active {
  border-color: rgba(244, 166, 42, 0.9);
  box-shadow: inset 4px 0 0 var(--gold);
}

.chat-thread-button span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.chat-thread-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-button small,
.chat-thread-list-empty {
  color: var(--muted);
  font-weight: 800;
}

.chat-thread-button em {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #ffffff;
  background: #d22b2b;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.chat-thread-list-empty {
  padding: 14px;
  background: #ffffff;
  border: 1px dashed rgba(217, 130, 24, 0.34);
  border-radius: 8px;
}

.chat-room {
  display: flex;
  min-width: 0;
  min-height: 560px;
  flex-direction: column;
  background: #ffffff;
}

.chat-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(226, 201, 159, 0.58);
}

.chat-room-head h4 {
  margin: 8px 0 4px;
  font-size: 22px;
}

.chat-room-head p {
  margin: 0;
  color: var(--muted);
}

.chat-room-messages {
  flex: 1;
  min-height: 320px;
  max-height: 560px;
  overflow: auto;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(255, 255, 255, 0.94)),
    linear-gradient(90deg, rgba(226, 201, 159, 0.15) 1px, transparent 1px);
  background-size: auto, 28px 28px;
}

.chat-room-messages .chat-messages {
  padding: 0;
}

.account-chat .chat-message {
  width: min(78%, 620px);
  padding: 13px 14px;
  border: 1px solid rgba(226, 201, 159, 0.55);
  box-shadow: 0 10px 26px rgba(98, 48, 9, 0.06);
}

.account-chat .chat-message.client {
  margin-left: auto;
  color: #ffffff;
  background: var(--black);
  border-color: rgba(10, 10, 10, 0.2);
}

.account-chat .chat-message.manager {
  margin-right: auto;
  margin-left: 0;
  color: var(--ink);
  background: #ffffff;
}

.account-chat .chat-message.client time {
  color: rgba(255, 255, 255, 0.62);
}

.account-chat .chat-message.manager time {
  color: var(--muted);
}

.chat-quick-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px 0;
}

.chat-quick-topics button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff6df;
  border: 1px solid rgba(217, 130, 24, 0.28);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.chat-composer {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(226, 201, 159, 0.72);
}

.chat-composer textarea {
  width: 100%;
  min-height: 94px;
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(217, 130, 24, 0.38);
  border-radius: 8px;
  resize: vertical;
}

.chat-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-composer-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chat-composer .form-status {
  margin: 0;
}

.chat-widget[hidden],
.chat-panel[hidden] {
  display: none;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 42;
  display: grid;
  justify-items: end;
  gap: 12px;
  color: var(--ink);
}

body[data-page="account"] .chat-widget {
  display: grid;
}

body[data-page="login"] .chat-widget,
body[data-page="register"] .chat-widget {
  display: none;
}

.chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-width: 58px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 54%, var(--yellow));
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(98, 48, 9, 0.34);
  font-weight: 900;
  cursor: pointer;
}

.chat-launcher strong {
  position: absolute;
  top: -8px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  color: #ffffff;
  background: #d22b2b;
  border-radius: 999px;
  font-size: 12px;
}

.chat-launcher strong[hidden] {
  display: none;
}

.chat-widget.is-open .chat-launcher {
  display: none;
}

.chat-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: min(680px, calc(100svh - 104px));
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.chat-panel-head,
.chat-thread-head,
.manager-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.chat-panel-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px;
  color: #ffffff;
  background: var(--black);
}

.chat-panel-head span,
.manager-chat-meta,
.chat-message time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-panel-head strong {
  display: block;
  margin-top: 2px;
}

.chat-panel-head small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.chat-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-panel-actions .ghost-button {
  min-height: 34px;
  padding: 0 12px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.chat-intro,
.chat-thread-head,
.chat-form,
.chat-empty {
  margin: 0;
  padding: 16px;
}

.chat-intro p,
.chat-empty,
.chat-last-line {
  color: var(--muted);
}

.chat-form {
  display: grid;
  gap: 12px;
}

.chat-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.chat-messages {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.chat-message {
  display: grid;
  gap: 6px;
  width: min(92%, 520px);
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
}

.chat-message.manager {
  margin-left: auto;
  color: #ffffff;
  background: var(--black);
}

.chat-message.manager time {
  color: rgba(255, 255, 255, 0.62);
}

.chat-message div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.chat-message p {
  margin-bottom: 0;
}

.floating-chat-grid {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  min-height: min(540px, calc(100svh - 190px));
}

.floating-chat-list {
  max-height: min(540px, calc(100svh - 190px));
  overflow: auto;
}

.floating-chat-room {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #ffffff;
}

.floating-chat-room .chat-thread-head {
  padding: 16px;
  border-bottom: 1px solid rgba(226, 201, 159, 0.58);
}

.floating-chat-room .chat-messages {
  flex: 1;
  min-height: 260px;
  max-height: min(350px, calc(100svh - 320px));
  overflow: auto;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.7), #ffffff);
}

.floating-chat-room .chat-form {
  border-top: 1px solid rgba(226, 201, 159, 0.72);
}

.account-chat-card {
  grid-column: auto;
}

.account-chat-card-body {
  display: grid;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 201, 159, 0.58);
}

.account-chat-card-body > div:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.account-chat-card-body strong {
  color: var(--black);
}

.account-chat-card-body span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.account-chat-card-actions {
  display: grid;
  gap: 10px;
}

.account-chat-card-actions .button,
.account-chat-card-actions .ghost-button {
  width: 100%;
  justify-content: center;
}

.manager-chat-grid {
  display: grid;
  gap: 14px;
}

.manager-chat-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.manager-chat-card.unread {
  border-color: rgba(244, 166, 42, 0.85);
  box-shadow: inset 4px 0 0 var(--gold);
}

.manager-chat-card h4 {
  margin: 8px 0 3px;
  font-size: 20px;
}

.manager-chat-card p {
  margin-bottom: 0;
}

.admin-chat-messages {
  max-height: 320px;
  overflow: auto;
  padding: 0;
}

.manager-reply-form {
  display: grid;
  gap: 10px;
}

.manager-reply-form div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-last-line {
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 0 10px;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.status-contacted,
.status-docs {
  background: #e5e7df;
}

.status-approved {
  color: #170d05;
  background: #f1b657;
}

.status-declined {
  color: #ffffff;
  background: #9d2b2b;
}

.status-cancelled {
  color: var(--muted);
  background: #e8e0d2;
}

.admin-dashboard {
  display: grid;
  gap: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.stat-grid span {
  color: var(--muted);
  font-weight: 800;
}

.stat-grid strong {
  font-size: 36px;
}

.admin-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.admin-section .panel-head p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--muted);
}

.booking-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 14px;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.14);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.admin-filter-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12px;
}

.admin-filter-button.active {
  border-color: rgba(244, 166, 42, 0.85);
  background: #fff6df;
  box-shadow: inset 0 -3px 0 var(--gold);
}

.admin-filter-button.active span {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.booking-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(98, 48, 9, 0.06);
}

.booking-card.status-new,
.booking-card.status-contacted,
.booking-card.status-docs {
  border-color: rgba(244, 166, 42, 0.44);
}

.booking-card.status-approved {
  border-color: rgba(168, 95, 18, 0.44);
  box-shadow: inset 4px 0 0 var(--gold), 0 16px 38px rgba(98, 48, 9, 0.06);
}

.booking-card.status-declined,
.booking-card.status-cancelled {
  opacity: 0.82;
}

.booking-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 14px;
  align-items: start;
}

.booking-card h4 {
  margin: 10px 0 6px;
  font-size: 22px;
}

.booking-card p {
  margin: 0;
  color: var(--muted);
}

.booking-client {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-client strong,
.booking-client a {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.booking-client span {
  color: var(--muted);
  font-weight: 800;
}

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

.booking-meta-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid rgba(226, 201, 159, 0.74);
  border-radius: 8px;
}

.booking-meta-grid .booking-meta-wide {
  grid-column: 1 / -1;
}

.booking-meta-grid span,
.booking-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.booking-meta-grid strong {
  overflow-wrap: anywhere;
}

.booking-note {
  display: grid;
  gap: 7px;
}

.booking-note textarea {
  width: 100%;
  min-height: 76px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(217, 130, 24, 0.32);
  border-radius: 8px;
  resize: vertical;
}

.booking-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-card-actions .button,
.booking-card-actions .ghost-button {
  min-height: 42px;
}

.booking-warning {
  padding: 12px;
  color: #8f1d1d;
  background: #fff0ea;
  border: 1px solid rgba(157, 43, 43, 0.25);
  border-radius: 8px;
  font-weight: 800;
}

.fleet-sync-card .panel-head p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
}

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

.fleet-sync-grid div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fleet-sync-grid span,
.fleet-sync-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fleet-sync-grid strong {
  overflow-wrap: anywhere;
}

.fleet-sync-note,
.fleet-sync-error {
  margin: 0;
}

.fleet-sync-error {
  padding: 12px 14px;
  color: #8f1d1d;
  background: #fff0ea;
  border: 1px solid rgba(157, 43, 43, 0.25);
  border-radius: 8px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.car-editor-table {
  min-width: 1120px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-note {
  min-width: 220px;
}

.admin-car-editor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  margin-bottom: 10px;
}

.admin-car-editor-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-car-editor-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 92px minmax(130px, 0.8fr);
  gap: 8px;
}

.admin-car-editor-grid.single {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  min-width: 360px;
}

.admin-car-actions {
  display: grid;
  min-width: 150px;
  gap: 8px;
}

.admin-car-actions .button,
.admin-car-actions .ghost-button {
  width: 100%;
}

.admin-car-actions small {
  margin: 0;
}

.file-field.compact {
  gap: 3px;
}

.file-field.compact input {
  min-height: 44px;
}

.car-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.file-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.file-field input {
  padding: 10px;
}

.file-field small {
  color: var(--muted);
  font-weight: 700;
}

.car-admin-form .button {
  width: 100%;
}

.car-form-status {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-car-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.admin-car-thumb {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 40px;
  }

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

  .section-dark,
  .calc-grid,
  .lead-section,
  .fleet-band,
  .local-seo,
  .contacts-grid,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .driver-summary-main,
  .driver-account-layout,
  .application-card {
    grid-template-columns: 1fr;
  }

  .driver-profile-card {
    position: static;
  }

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

  .driver-kpi-grid,
  .commission-grid,
  .terms-check-grid,
  .driver-car-status-grid,
  .booking-card-main,
  .booking-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-car-editor-grid,
  .admin-car-editor-grid.single {
    grid-template-columns: 1fr;
  }

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

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: 72px;
  }

  body[data-page="login"],
  body[data-page="register"],
  body[data-page="admin"] {
    padding-bottom: 0;
  }

  body,
  button,
  input,
  select {
    font-size: 15px;
  }

  .site-header {
    width: 100%;
    max-width: 100vw;
    min-height: 66px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand strong {
    font-size: 14px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: 80svh;
    width: 100%;
    max-width: 100vw;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.96), rgba(10, 10, 10, 0.73), rgba(10, 10, 10, 0.5)),
      url("assets/hero-car.png") center right 28% / cover no-repeat;
  }

  .hero-content,
  .section {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-content {
    padding: 58px 0 144px;
  }

  .page,
  main,
  .auth-page,
  .auth-layout,
  .auth-copy,
  .auth-card,
  .hero-service-panel,
  .hero-app-panel {
    max-width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: 48px;
    line-height: 1;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy,
  .terms-copy p,
  .calculator p {
    font-size: 17px;
  }

  .hero-copy {
    max-width: 340px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero-actions .button {
    width: auto;
  }

  .text-link {
    max-width: 100%;
    white-space: normal;
  }

  .hero-app-panel {
    gap: 12px;
    margin-top: 22px;
    padding: 15px;
  }

  .app-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-panel-actions .button,
  .app-panel-actions .ghost-button {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
  }

  .demo-access {
    grid-template-columns: 1fr;
    font-size: 12px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 44px;
  }

  body[data-page="home"] .hero-facts {
    display: none;
  }

  .hero-facts div {
    width: 100%;
  }

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

  .hero-strip span {
    min-height: 48px;
    padding: 14px 16px;
    font-size: 11px;
  }

  .section {
    padding: 72px 0;
  }

  .fleet-band {
    padding: 60px 16px;
  }

  .intro-grid,
  .trust-grid,
  .condition-cards,
  .contacts-grid,
  .car-grid {
    grid-template-columns: 1fr;
  }

  .contacts-page {
    width: 100%;
    max-width: 100%;
    padding: 72px 16px 118px;
    overflow: hidden;
  }

  .contacts-page .section-head,
  .contacts-page .contacts-grid {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-right: auto;
    margin-left: auto;
  }

  .contacts-page .section-head p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.45;
  }

  .contact-card {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 22px;
  }

  .contact-card h2,
  .contact-card a {
    overflow-wrap: anywhere;
  }

  .local-seo {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .seo-tags span {
    width: 100%;
  }

  .car-grid {
    min-height: auto;
  }

  .section-dark,
  .calc-grid {
    gap: 36px;
  }

  .accordion summary,
  .faq-list summary {
    gap: 14px;
    min-height: 68px;
    font-size: 18px;
  }

  .accordion p {
    margin-left: 0;
  }

  .calc-panel {
    padding: 22px;
  }

  .calc-result strong {
    font-size: 42px;
  }

  .lead-visual img {
    min-height: 360px;
  }

  .lead-form-wrap {
    padding: 54px 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 16px;
  }

  .footer p {
    text-align: left;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 31;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 58px;
    color: #ffffff;
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 0 4px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
  }

  body[data-page="login"] .mobile-nav,
  body[data-page="register"] .mobile-nav,
  body[data-page="admin"] .mobile-nav {
    display: none;
  }

  .chat-widget {
    right: 16px;
    bottom: 76px;
  }

  body[data-page="account"] .chat-widget {
    display: grid;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    max-height: calc(100svh - 118px);
  }

  .modal-card {
    padding: 26px 18px;
  }

  .application-modal {
    align-items: start;
    padding: 8px;
  }

  .application-modal-card {
    max-height: calc(100svh - 16px);
    padding: 18px;
  }

  .application-modal-card h2 {
    font-size: 30px;
    line-height: 1.05;
  }

  .application-form {
    gap: 10px;
  }

  .application-form label {
    gap: 6px;
  }

  .application-form input:not([type="checkbox"]) {
    min-height: 48px;
    padding: 0 14px;
  }

  .application-form textarea {
    min-height: 76px;
    padding: 12px 14px;
  }

  .application-form .button {
    min-height: 52px;
  }

  .modal-car-summary {
    min-height: 68px;
    margin: 8px 0 14px;
    padding: 10px;
  }

  .auth-tabs,
  .stat-grid,
  .driver-kpi-grid,
  .commission-grid,
  .terms-check-grid,
  .driver-car-status-grid,
  .booking-steps,
  .booking-board,
  .booking-card-main,
  .booking-meta-grid,
  .cabinet-form,
  .application-card dl,
  .car-admin-form {
    grid-template-columns: 1fr;
  }

  .workspace-empty,
  .admin-section,
  .driver-control-card {
    padding: 20px;
  }

  .driver-summary-main {
    gap: 18px;
    padding: 22px;
    background:
      linear-gradient(135deg, rgba(10, 10, 10, 0.96), rgba(28, 20, 11, 0.95)),
      url("assets/fleet.png") center bottom / 140% auto no-repeat;
  }

  .driver-summary-main h2 {
    font-size: 30px;
  }

  .driver-summary-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .driver-summary-actions .button,
  .driver-summary-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .driver-account-layout,
  .driver-account-main,
  .driver-account-side {
    gap: 14px;
  }

  .driver-car-current {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .driver-car-current img {
    width: 92px;
    height: 68px;
  }

  .driver-car-current strong {
    font-size: 18px;
  }

  .cabinet-form-actions {
    display: grid;
  }

  .driver-car-actions,
  .terms-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .driver-car-actions .button,
  .driver-car-actions .ghost-button,
  .terms-actions .button,
  .terms-actions .ghost-button,
  .booking-card-actions .button,
  .booking-card-actions .ghost-button,
  .application-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .booking-card {
    padding: 14px;
  }

  .admin-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filter-button {
    justify-content: center;
  }

  .booking-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .booking-steps span {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .booking-steps b {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .driver-car-current span {
    font-size: 14px;
    line-height: 1.35;
  }

  .cabinet-form-actions .button {
    width: 100%;
  }

  .account-welcome {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .account-welcome-copy h2 {
    font-size: 30px;
  }

  .account-welcome-copy > p {
    font-size: 16px;
  }

  .account-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-entry-card {
    padding: 22px;
  }

  .dashboard-grid {
    gap: 14px;
  }

  .page-top h1,
  .page:not(.page-home) h1,
  .auth-copy h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 38px;
  }

  body[data-page="account"] .workspace {
    padding-top: 34px;
    padding-bottom: 92px;
  }

  body[data-page="account"] .section-head.split {
    gap: 14px;
    margin-bottom: 20px;
  }

  body[data-page="account"] .workspace h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  body[data-page="account"] .section-head p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 16px;
  }

  .section-head.split {
    gap: 22px;
    margin-bottom: 28px;
  }

  body[data-page="account"] .section-head.split {
    gap: 14px;
    margin-bottom: 20px;
  }

  .auth-page {
    padding: 56px 16px 120px;
  }

  .auth-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px;
  }

  .phone-verification {
    grid-template-columns: 1fr;
  }

  .phone-verification .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .hero-service-panel {
    margin-top: 22px;
    padding: 15px;
  }

  .auth-copy h1,
  .auth-copy p,
  .hero-service-panel p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 16px;
  }

  .car-top {
    display: grid;
  }

  .price {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .chat-panel {
    width: min(640px, calc(100vw - 32px));
  }

  .floating-chat-grid {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  }

  .chat-workspace-head,
  .chat-composer-actions {
    display: grid;
  }

  .chat-workspace-actions {
    justify-content: stretch;
  }

  .chat-workspace-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .chat-workspace-grid {
    grid-template-columns: 1fr;
  }

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

  .chat-thread-list {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 201, 159, 0.72);
  }

  .chat-thread-button strong,
  .chat-thread-button span {
    white-space: normal;
  }

  .chat-room,
  .chat-workspace-grid {
    min-height: auto;
  }

  .chat-room-messages {
    max-height: none;
    min-height: 280px;
  }

  .account-chat .chat-message {
    width: min(92%, 620px);
  }

  .chat-composer-actions .button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .chat-widget {
    right: 12px;
    left: 12px;
    bottom: 74px;
    justify-items: stretch;
  }

  .chat-launcher {
    justify-self: end;
    width: 58px;
    min-width: 58px;
    height: 48px;
    min-height: 48px;
    padding: 0;
  }

  .chat-panel {
    width: 100%;
    max-height: calc(100svh - 106px);
  }

  .chat-panel-head {
    padding: 13px 14px;
  }

  .chat-panel-actions .ghost-button {
    min-height: 32px;
    padding: 0 10px;
  }

  .floating-chat-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: min(620px, calc(100svh - 170px));
  }

  .floating-chat-list {
    display: flex;
    gap: 8px;
    max-height: none;
    padding: 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 201, 159, 0.72);
    scroll-snap-type: x proximity;
  }

  .floating-chat-list .chat-thread-list-top {
    display: none;
  }

  .floating-chat-list .chat-thread-button,
  .floating-chat-list .chat-thread-list-empty {
    flex: 0 0 min(74vw, 260px);
    scroll-snap-align: start;
  }

  .floating-chat-room .chat-thread-head {
    padding: 12px 14px;
  }

  .floating-chat-room .chat-thread-head small {
    display: none;
  }

  .floating-chat-room .chat-messages {
    min-height: 220px;
    max-height: calc(100svh - 410px);
    padding: 12px;
  }

  .floating-chat-room .chat-form {
    padding: 12px;
  }

  .floating-chat-room .chat-form textarea {
    min-height: 70px;
    max-height: 120px;
    resize: none;
  }

  .account-chat-card-body,
  .account-chat-card-actions {
    display: grid;
  }

  .account-chat-card-actions {
    grid-template-columns: 1fr;
  }

  .account-chat-card-actions .button,
  .account-chat-card-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .fleet-sync-grid {
    grid-template-columns: 1fr;
  }

  .account-chat.chat-workspace {
    border-radius: 8px;
    max-width: 100%;
  }

  .chat-workspace-head {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .chat-workspace-head h3 {
    margin: 8px 0 5px;
    font-size: 23px;
  }

  .chat-workspace-head p {
    display: none;
  }

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

  .chat-workspace-actions .ghost-button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .chat-workspace-grid {
    display: block;
  }

  .chat-thread-list {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .chat-thread-list-top {
    display: none;
  }

  .chat-thread-button {
    flex: 0 0 min(72vw, 260px);
    min-height: 78px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .chat-thread-button.active {
    box-shadow: inset 0 -4px 0 var(--gold);
  }

  .chat-thread-button span {
    font-size: 11px;
  }

  .chat-thread-button strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .chat-thread-button small {
    font-size: 11px;
    line-height: 1.25;
  }

  .chat-thread-list-empty {
    flex: 1 0 calc(100vw - 56px);
  }

  .chat-room-head {
    padding: 14px 16px 12px;
  }

  .chat-room-head h4 {
    margin-top: 7px;
    font-size: 19px;
    line-height: 1.15;
  }

  .chat-room-head p {
    display: none;
  }

  .chat-quick-topics {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 12px 0;
    overflow-x: auto;
  }

  .chat-quick-topics button {
    flex: 0 0 auto;
    min-height: 36px;
    font-size: 13px;
  }

  .chat-room-messages {
    min-height: 210px;
    max-height: 30vh;
    padding: 12px;
    background-size: auto, 22px 22px;
    overscroll-behavior: contain;
  }

  .account-chat .chat-message {
    width: min(94%, 330px);
    max-width: 100%;
    padding: 11px 12px;
  }

  .account-chat .chat-message div {
    display: grid;
    gap: 2px;
  }

  .account-chat .chat-message p {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .chat-composer {
    gap: 8px;
    padding: 12px;
  }

  .chat-composer textarea {
    min-height: 68px;
    max-height: 124px;
    padding: 11px 12px;
    font-size: 16px;
    resize: none;
  }

  .chat-composer-actions {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .chat-composer-actions .button {
    min-height: 46px;
  }

  .chat-composer-actions span {
    display: none;
  }
}
