:root {
  --paper: #f3f4f5;
  --nav: #d7dade;
  --card: #fff;
  --ink: #202020;
  --muted: #74777b;
  --line: #dfe2e5;
  --line-dark: #c9cdd1;
  --green: #2fa661;
  --dark: #202020;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav);
  border-bottom: 1px solid rgba(32, 32, 32, .08);
}

.logo img {
  width: 180px;
  display: block;
}

.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 40px 72px;
}

.hero,
.order-shell,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .55fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  min-height: 560px;
  padding: 42px;
  border-radius: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(32, 32, 32, .9), rgba(32, 32, 32, .4)),
    url("/static/hero-cars.png") center / cover no-repeat;
}

.kicker,
.panel-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy .kicker {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .09);
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(44px, 6vw, 92px);
  line-height: .9;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  text-transform: uppercase;
}

h3 {
  font-size: 18px;
  line-height: 1.15;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}

.hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, .84);
  font-size: 20px;
}

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

.hero-stats div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}

.hero-stats b {
  display: block;
  margin-bottom: 7px;
  font-size: 26px;
}

.hero-stats span {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.panel,
.car-card {
  border: 1px solid var(--line-dark);
  border-radius: 28px;
  background: var(--card);
  overflow: hidden;
}

.panel {
  padding: 28px;
}

.admin-login {
  max-width: 520px;
  margin: 72px auto;
}

.admin-login h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.order-form {
  margin-top: 24px;
}

.bitrix-import {
  margin-top: 24px;
}

.bitrix-import form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .45fr);
  gap: 18px;
  align-items: end;
}

.bitrix-import .sync-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bitrix-import .sync-form p {
  margin-bottom: 0;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.inline-form .btn {
  margin-top: 0;
}

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

label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #f8f9fa;
  color: var(--ink);
  font-weight: 700;
}

input[type="file"] {
  padding: 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--dark);
  background: #fff;
}

.btn {
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.btn.dark {
  background: #000;
}

.btn.small {
  min-height: 40px;
  margin-top: 0;
  padding: 0 16px;
  font-size: 12px;
}

.btn.danger {
  background: #9b1c1c;
}

.hint,
.notice,
.empty {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  color: #52565b;
  background: #f1f2f3;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.notice.error {
  color: #9b1c1c;
  background: #fff0f0;
}

.access-code-panel {
  margin-top: 24px;
}

.access-code {
  margin: 12px 0 8px;
  padding: 18px;
  border: 1px dashed var(--line-dark);
  border-radius: 18px;
  background: #f8f9fa;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
}

.admin-file-list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-file-list h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.admin-file-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-file-item:first-of-type {
  border-top: 0;
}

.admin-file-preview {
  width: 92px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.admin-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-file-icon {
  font-size: 12px;
  font-weight: 900;
}

.admin-file-meta {
  min-width: 0;
}

.admin-file-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-file-meta a {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.cover-reset-form {
  margin-top: 14px;
}

.order-shell,
.two-col,
.wide,
.admin-head {
  margin-top: 24px;
}

.car-hero {
  min-height: 370px;
  padding: 28px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #d7dade;
}

.car-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 32, 32, .9), rgba(32, 32, 32, .44) 58%, rgba(32, 32, 32, .18));
  pointer-events: none;
}

.car-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
}

.default-cover .car-cover {
  object-fit: cover;
}

.real-cover .car-cover {
  object-fit: cover;
}

.car-hero > :not(.car-cover) {
  position: relative;
  z-index: 1;
}

.car-hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 74px);
}

.car-hero p {
  color: rgba(255, 255, 255, .82);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.facts div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

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

.facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.facts b {
  font-size: 16px;
}

.manager-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-details {
  margin-top: 24px;
}

.contact-details summary {
  min-height: 54px;
  border-radius: 999px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

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

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.contact-btn {
  margin-top: 0;
  padding: 0 16px;
}

.contact-btn.tg {
  background: #229ed9;
}

.contact-btn span {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .22);
  font-size: 10px;
  font-weight: 900;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-lines div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1f2f3;
}

.contact-lines span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-lines b {
  overflow-wrap: anywhere;
}

.section-head,
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-head h1 {
  margin-bottom: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #202020;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.route {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f9fa;
}

.step.done {
  background: #f0f8f3;
  border-color: rgba(47, 166, 97, .28);
}

.step.active {
  background: #eef0f2;
  border-color: #202020;
}

.dot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c9cdd1;
  color: #fff;
  font-weight: 900;
}

.done .dot {
  background: var(--green);
}

.active .dot {
  background: #202020;
}

.step p {
  margin-bottom: 0;
}

.step time {
  color: #4b5055;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

.step time b,
.step time span {
  display: block;
}

.step time span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

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

.photo {
  min-height: 190px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: center / cover no-repeat;
}

.photo span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 999px;
  overflow: hidden;
  color: #fff;
  background: rgba(32, 32, 32, .68);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.docs,
.list {
  display: grid;
  gap: 12px;
}

.doc,
.order-row {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #f8f9fa;
}

.doc > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 900;
}

.doc b,
.order-row b {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.doc small,
.order-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.order-row strong {
  font-size: 12px;
  text-transform: uppercase;
}

.order-choice-panel {
  max-width: 760px;
}

.choice-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.order-choice {
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #f8f9fa;
}

.order-choice span,
.order-choice small,
.order-choice strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-choice b {
  display: block;
  margin: 5px 0;
  font-size: 22px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .topbar,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar nav {
    gap: 12px;
  }

  .hero,
  .order-shell,
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .bitrix-import form,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .facts,
  .hero-stats,
  .gallery {
    grid-template-columns: 1fr;
  }

  .facts div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .logo img {
    width: 126px;
  }

  .topbar nav {
    font-size: 11px;
  }

  .hero-copy {
    min-height: 520px;
    padding: 24px;
  }

  .panel {
    padding: 20px;
  }

  .section-head,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .step time {
    grid-column: 2;
  }

  .btn {
    width: 100%;
  }
}
