@charset "UTF-8";
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #202522;
  background: #fff;
  font: 16px/1.5 Arial, sans-serif;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-header, .admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px max(24px, (100vw - 1240px) / 2);
  border-bottom: 1px solid #e1e5e1;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.admin-link {
  color: #737b76;
  font-size: 14px;
  text-decoration: none;
}

.configurator {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.vehicle-hero {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 50px;
  min-height: 460px;
  padding: 56px 0 64px;
  border-bottom: 1px solid #e1e5e1;
}

.eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #737b76;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.vehicle-copy > p {
  max-width: 500px;
  color: #737b76;
}

.base-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 34px;
}

.base-price span, .dock-label {
  color: #737b76;
  font-size: 13px;
}

.base-price strong {
  font-size: 25px;
}

.vehicle-visual {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: #f5f6f3;
}

.vehicle-visual img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.image-placeholder {
  padding: 70px 20px;
  color: #737b76;
  text-align: center;
}

.configurator-body {
  max-width: 960px;
  margin: 0 auto;
}

.config-group, .summary-section {
  padding: 58px 0;
  border-bottom: 1px solid #e1e5e1;
}

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

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.required-note {
  color: #737b76;
  font-size: 12px;
}

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

.option-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid #e1e5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option-card:hover {
  border-color: #a9b0a9;
}

.option-card.is-selected {
  border-color: #202522;
  background: #fafbf7;
  box-shadow: inset 0 0 0 1px #202522;
}

.option-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option-check {
  display: grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  place-items: center;
  border: 1px solid #b5bcb5;
  border-radius: 50%;
  background: #fff;
}

.option-card:has(input[type=checkbox]) .option-check {
  border-radius: 5px;
}

.option-card.is-selected .option-check {
  border-color: #202522;
  background: #202522;
}

.option-card.is-selected .option-check:after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9f45b;
  content: "";
}

.option-card:has(input[type=checkbox]).is-selected .option-check:after {
  width: 9px;
  height: 5px;
  border: solid #d9f45b;
  border-width: 0 0 2px 2px;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg);
}

.option-content {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.option-content strong {
  font-size: 15px;
}

.option-content small {
  color: #737b76;
  font-size: 13px;
}

.option-price {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.option-price.is-negative {
  color: #23734a;
}

.has-images .option-card {
  display: grid;
  grid-template-columns: 19px 80px minmax(0, 1fr);
  align-items: start;
}

.option-image {
  width: 80px;
  height: 72px;
  border-radius: 7px;
  object-fit: cover;
  background: #f5f6f3;
}

.summary-section {
  border: 0;
}

.summary-card {
  padding: 28px;
  border-radius: 16px;
  background: #f5f6f3;
}

.summary-lines {
  padding-bottom: 18px;
}

.summary-line, .summary-subtotal, .summary-discount, .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

.summary-line {
  border-bottom: 1px solid #e1e5e1;
  font-size: 14px;
}

.summary-line > span {
  display: flex;
  flex-direction: column;
}

.summary-line small {
  color: #737b76;
  font-size: 11px;
}

.summary-line strong, .summary-subtotal strong, .summary-discount strong {
  white-space: nowrap;
}

.summary-subtotal {
  color: #737b76;
  font-size: 14px;
}

.summary-discount {
  color: #23734a;
  font-size: 14px;
}

.summary-total {
  margin-top: 6px;
  padding: 22px 0;
  border-top: 1px solid #cdd2cc;
  font-weight: 700;
}

.summary-total strong {
  font-size: clamp(25px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.discount-hint {
  margin: 0 0 20px;
  color: #737b76;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 7px;
  background: #d9f45b;
  color: #202522;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: filter 0.15s;
}

.btn:hover {
  filter: brightness(0.96);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.btn-wide {
  width: 100%;
}

.price-dock {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 13px max(24px, (100vw - 1240px) / 2);
  border-top: 1px solid #e1e5e1;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.price-dock > div {
  display: flex;
  flex-direction: column;
}

.price-dock strong {
  font-size: 22px;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 17, 0.55);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
}

.modal-dialog h2 {
  padding-right: 20px;
  font-size: 28px;
}

.modal-dialog > p {
  color: #737b76;
  font-size: 14px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 30px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}

.field > span {
  font-size: 13px;
  font-weight: 700;
}

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd5ce;
  border-radius: 6px;
  background: #fff;
  color: #202522;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 18px;
  font-size: 13px;
}

.form-error {
  color: #b42318 !important;
}

.success-message {
  padding: 16px;
  border-radius: 8px;
  background: #edf8e8;
}

.modal-open {
  overflow: hidden;
}

.loading, .empty-state {
  padding: 80px 20px;
  color: #737b76;
  text-align: center;
}

.admin-page {
  background: #f5f6f3;
}

.admin-header {
  padding-top: 18px;
  padding-bottom: 18px;
  background: #fff;
}

.admin-header a {
  font-weight: 700;
  text-decoration: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  max-width: 1500px;
  margin: 0 auto;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 18px;
  border-right: 1px solid #e1e5e1;
}

.admin-sidebar h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.vehicle-link {
  padding: 10px 12px;
  border-radius: 6px;
  color: #454c46;
  font-size: 14px;
  text-decoration: none;
}

.vehicle-link.is-active {
  background: #e7ebdf;
  color: #202522;
  font-weight: 700;
}

.add-link {
  margin-top: 12px;
  border: 1px dashed #b8c0b6;
}

.admin-content {
  min-width: 0;
  padding: 30px clamp(18px, 4vw, 48px) 80px;
}

.admin-content > h1 {
  font-size: 34px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e1e5e1;
}

.admin-tabs a {
  color: #737b76;
  font-size: 13px;
  text-decoration: none;
}

.admin-section {
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid #e1e5e1;
  border-radius: 12px;
  background: #fff;
  scroll-margin-top: 20px;
}

.admin-section > h2 {
  margin-bottom: 22px;
  font-size: 23px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-form .field {
  margin: 0;
}

.admin-form .btn {
  justify-self: start;
}

.admin-form .field:has(textarea), .admin-form .field:has(input[type=file]) {
  grid-column: span 2;
}

.admin-form .check-field {
  margin: 4px 0;
}

.admin-thumb {
  display: block;
  width: 90px;
  height: 65px;
  margin-top: 8px;
  border-radius: 5px;
  object-fit: cover;
}

.btn-small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
}

.btn-danger {
  margin-top: 10px;
  background: #fae7e5;
  color: #b42318;
}

.admin-card {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #e1e5e1;
  border-radius: 9px;
}

.admin-card > summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-card > summary small {
  color: #737b76;
  font-weight: 400;
}

.admin-card-body {
  padding-top: 18px;
}

.admin-card h3 {
  margin: 20px 0 12px;
  font-size: 16px;
}

.admin-card h4 {
  grid-column: 1/-1;
  margin: 8px 0 0;
}

.option-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #e1e5e1;
}

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

.option-admin-row > form:not(.admin-form) {
  padding-top: 28px;
}

.text-danger {
  border: 0;
  background: transparent;
  color: #b42318;
  font-size: 12px;
}

.inline-form {
  display: inline-block;
}

.notice {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 7px;
}

.notice.success {
  background: #e7f6e6;
}

.notice.error {
  background: #fae7e5;
  color: #b42318;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #e1e5e1;
  text-align: left;
  vertical-align: top;
}

th {
  color: #737b76;
  font-weight: 600;
}

td pre {
  max-width: 360px;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .site-header {
    padding: 17px 20px;
  }
  .configurator {
    padding: 0 18px 90px;
  }
  .vehicle-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 38px 0;
  }
  .vehicle-visual {
    min-height: 210px;
  }
  .vehicle-visual img {
    max-height: 280px;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .config-group, .summary-section {
    padding: 38px 0;
  }
  .summary-card {
    padding: 20px;
  }
  .price-dock {
    padding: 10px 16px;
  }
  .price-dock strong {
    font-size: 18px;
  }
  .price-dock .btn {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .modal-dialog {
    padding: 26px 20px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e1e5e1;
    padding: 16px;
  }
  .admin-sidebar h2 {
    margin-bottom: 4px;
  }
  .admin-content {
    padding: 20px 14px 60px;
  }
  .admin-section {
    padding: 17px;
  }
  .admin-form, .option-admin-row > .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-form .field:has(textarea), .admin-form .field:has(input[type=file]) {
    grid-column: auto;
  }
  .option-admin-row {
    grid-template-columns: 1fr;
  }
  .option-admin-row > form:not(.admin-form) {
    padding-top: 0;
  }
  .admin-tabs {
    gap: 10px 14px;
  }
}
/* Скидка отдельной карточкой */
.discount-section {
  padding: 38px 0;
  border-bottom: 1px solid #e1e5e1;
}

.discount-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e1e5e1;
  border-radius: 12px;
  background: #fafbf7;
}

.discount-card .option-content {
  gap: 4px;
}

.discount-card .option-content strong {
  font-size: 15px;
}

.discount-card .option-content small {
  color: #737b76;
  font-size: 13px;
}

.discount-card .option-price {
  margin-top: 0;
  color: #23734a;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .discount-section {
    padding: 28px 0;
  }
  .discount-card {
    padding: 18px;
  }
}

/*# sourceMappingURL=app.css.map */
