:root {
  --bg: #0b1018;
  --bg-soft: #111923;
  --panel: #151e29;
  --panel-light: #f4f1ea;
  --text: #f7f4ee;
  --muted: #b6c0ca;
  --ink: #111822;
  --ink-soft: #4d5968;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d2a94f;
  --gold-dark: #9e7830;
  --blue: #2f6f9f;
  --danger: #c75c5c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --hero-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1800&q=80");
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(11, 16, 24, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.logo-img {
  display: block;
  width: auto;
  height: 48px;
  max-width: min(220px, 42vw);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32));
}

.footer-logo-img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 230px;
  object-fit: contain;
}

.hero-logo-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-bottom: 24px;
  object-fit: contain;
  transform: none;
  writing-mode: initial;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.42));
}

.hero-mobile-logo,
.hero-mobile-title {
  display: none;
}

.hero-mobile-title {
  color: #ffffff;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  margin: 0 auto 16px;
}

.logo-fallback {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 850;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(210, 169, 79, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.78rem;
}

.brand-text {
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 90svh;
  padding: 128px clamp(20px, 6vw, 88px) 80px;
  isolation: isolate;
  overflow: hidden;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 8, 13, 0.94) 0%, rgba(5, 8, 13, 0.72) 48%, rgba(5, 8, 13, 0.36) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  color: #ffffff;
  opacity: 1;
  transform: none;
  visibility: visible;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content .hero-slogan,
.hero-content .hero-copy,
.hero-content .hero-actions {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(3rem, 10vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: #ffffff;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-slogan {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  font-weight: 720;
}

.hero-copy {
  max-width: 630px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
}

.hero-actions,
.contact-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-actions .btn,
.contact-actions .social-button {
  min-width: 150px;
}

.btn,
.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible,
.social-button:hover,
.social-button:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), #f1d27a);
  color: #14110a;
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn.compact {
  min-height: 42px;
  border-color: rgba(210, 169, 79, 0.42);
  background: rgba(210, 169, 79, 0.12);
  color: var(--text);
}

.btn.danger {
  border-color: rgba(199, 92, 92, 0.55);
  color: #ffd4d4;
}

.section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 88px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-copy strong {
  color: var(--text);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(210, 169, 79, 0.28);
  border-radius: 999px;
  color: #f6df9c;
  font-size: 0.9rem;
}

.section-heading,
.cars-top {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading {
  width: min(760px, 100%);
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card,
.car-card,
.contact-panel,
.contact-form,
.admin-form,
.admin-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.service-card {
  min-height: 230px;
  padding: 22px;
}

.service-number {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--gold);
  font-weight: 800;
}

.service-card p,
.car-meta,
.car-description,
.contact-panel p,
.form-status {
  color: var(--muted);
}

.cars-section {
  background: var(--panel-light);
  color: var(--ink);
}

.cars-section .eyebrow {
  color: var(--gold-dark);
}

.cars-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.cars-top h2 {
  margin-bottom: 0;
}

.notice {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 111, 159, 0.25);
  border-radius: var(--radius);
  background: rgba(47, 111, 159, 0.08);
  color: #35556f;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.car-card {
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(17, 24, 34, 0.16);
}

.car-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d7dce1;
}

.car-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.car-card:hover img {
  transform: scale(1.035);
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 16, 24, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-reserved {
  background: rgba(210, 169, 79, 0.95);
  color: #12100b;
}

.status-sold {
  background: rgba(91, 98, 108, 0.92);
}

.car-body {
  padding: 20px;
}

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

.car-title h3 {
  margin-bottom: 0;
}

.car-price {
  color: var(--gold-dark);
  font-weight: 850;
  white-space: nowrap;
}

.car-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.car-card .btn {
  width: 100%;
}

.cars-section .btn.compact,
.cars-section .cars-top .btn,
.cars-section .car-card .btn,
.cars-section .car-card button,
.cars-section .car-card a.btn {
  border: 1px solid #d6a84f;
  background: #d6a84f;
  color: #080b10 !important;
  font-weight: 850;
  opacity: 1;
  visibility: visible;
  box-shadow: 0 10px 20px rgba(214, 168, 79, 0.2);
}

.cars-section .btn.compact:hover,
.cars-section .btn.compact:focus-visible,
.cars-section .cars-top .btn:hover,
.cars-section .cars-top .btn:focus-visible,
.cars-section .car-card .btn:hover,
.cars-section .car-card .btn:focus-visible,
.cars-section .car-card button:hover,
.cars-section .car-card button:focus-visible,
.cars-section .car-card a.btn:hover,
.cars-section .car-card a.btn:focus-visible {
  border-color: #f0c96a;
  background: #f0c96a;
  color: #080b10 !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(214, 168, 79, 0.3);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-panel,
.contact-form {
  padding: clamp(22px, 4vw, 34px);
}

.contact-line {
  display: block;
  margin: 12px 0;
  color: var(--text);
  font-weight: 720;
}

.social-button {
  gap: 10px;
  border-color: rgba(47, 111, 159, 0.6);
  background: rgba(47, 111, 159, 0.16);
}

.social-button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.instagram-btn {
  border: none;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff !important;
  font-weight: 800;
}

.instagram-btn:hover,
.instagram-btn:focus-visible {
  filter: brightness(1.08);
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-label {
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

input[type="file"] {
  padding: 11px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 1px solid rgba(210, 169, 79, 0.42);
  border-radius: var(--radius);
  background: rgba(210, 169, 79, 0.14);
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

select option {
  background: var(--panel);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(210, 169, 79, 0.75);
  box-shadow: 0 0 0 3px rgba(210, 169, 79, 0.14);
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: #080c12;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.footer-contact {
  display: grid;
  gap: 4px;
  color: var(--text);
  font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
}

.secret-admin-button,
.admin-dot {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(214, 168, 79, 0.25);
  cursor: pointer;
}

.secret-admin-button:hover,
.secret-admin-button:focus-visible,
.admin-dot:hover,
.admin-dot:focus-visible {
  background: rgba(214, 168, 79, 0.8);
}

.modal[hidden] {
  display: none;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 11, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(88svh, 920px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  z-index: 3;
  top: 12px;
  float: right;
  width: 40px;
  height: 40px;
  margin: 12px 12px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 34px;
}

.detail-main-image {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #222b36;
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.thumb-grid button {
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
}

.thumb-grid button.is-active {
  border-color: var(--gold);
}

.thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-price {
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 850;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.spec-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.spec-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.spec-item strong {
  display: block;
  margin-top: 2px;
}

.equipment-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.equipment-list li {
  padding-left: 18px;
  color: var(--muted);
}

.equipment-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 10px 1px -18px;
  border-radius: 50%;
  background: var(--gold);
}

.admin-panel {
  width: min(1180px, 100%);
}

.admin-login,
.admin-content {
  padding: 34px;
}

.admin-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-head h2 {
  margin-bottom: 0;
}

.admin-notice {
  margin-bottom: 18px;
  color: var(--muted);
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.admin-list,
.admin-form {
  padding: 18px;
}

.admin-car-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-car-row:last-child {
  border-bottom: 0;
}

.admin-car-title {
  color: var(--text);
  font-weight: 800;
}

.admin-row-actions {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.admin-row-actions button,
.admin-row-actions select {
  min-height: 38px;
  padding: 8px 10px;
}

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

.upload-section {
  margin-top: 16px;
}

.advanced-fields {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.advanced-fields summary {
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.image-preview-grid.single {
  grid-template-columns: minmax(160px, 260px);
}

.image-preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.image-preview-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.image-preview-card span {
  display: block;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-actions {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.image-preview-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
}

.image-preview-actions button:hover,
.image-preview-actions button:focus-visible {
  border-color: rgba(210, 169, 79, 0.62);
}

.empty-gallery {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .logo-img {
    height: 38px;
    max-width: 170px;
  }

  .footer-logo-img {
    height: 44px;
    max-width: 190px;
  }

  .hero-logo-img {
    max-width: 260px;
    margin-right: auto;
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(12, 18, 27, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: 13px 10px;
  }

  .hero {
    justify-content: center;
    min-height: 85svh;
    padding: 112px 24px 60px;
    text-align: center;
  }

  .hero::before {
    background: rgba(5, 8, 13, 0.78);
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .section-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
  }

  .cars-top,
  .site-footer,
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .car-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout,
  .admin-login,
  .admin-content {
    padding: 22px;
  }

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

  .thumb-grid {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .logo-img {
    height: 34px;
    max-width: 150px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .site-nav {
    top: 64px;
    left: 10px;
    right: 10px;
    padding: 8px;
  }

  .site-nav a {
    padding: 11px 10px;
    font-size: 0.94rem;
  }

  .hero {
    min-height: auto;
    padding: 96px 20px 56px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 0 auto;
  }

  .hero::before {
    background: rgba(5, 8, 13, 0.82);
  }

  .hero-logo-img,
  .hero-wide-logo,
  .hero-brand-logo {
    display: none !important;
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    transform: none;
    writing-mode: initial;
  }

  .hero-mobile-logo {
    display: block;
    width: 86px;
    height: 86px;
    max-width: 86px;
    object-fit: contain;
    margin: 0 auto 18px;
    transform: none;
    writing-mode: initial;
  }

  .hero-mobile-title:not([hidden]) {
    display: block;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.05;
    margin-bottom: 10px;
  }

  .hero h2,
  .hero-slogan {
    max-width: 330px;
    margin-inline: auto;
    font-size: clamp(18px, 5.5vw, 26px);
    line-height: 1.2;
    margin-bottom: 14px;
    text-wrap: balance;
    white-space: normal !important;
  }

  .hero-slogan span {
    display: block;
  }

  .hero p,
  .hero-copy {
    max-width: 315px;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 22px;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .hero-copy span {
    display: block;
  }

  .mobile-line {
    display: block;
  }

  .hero-actions,
  .contact-actions,
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .btn,
  button,
  .social-button {
    min-height: 46px;
    padding: 10px 18px;
    font-size: 15px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    font-size: 15px;
  }

  .section {
    padding: 56px 18px;
  }

  .section-grid > *,
  .contact-layout > *,
  .cars-top > *,
  .car-title > *,
  .section-kicker,
  .section-copy {
    min-width: 0;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.55rem, 6.4vw, 2.05rem);
    line-height: 1.12;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .section-heading,
  .cars-top {
    margin-bottom: 24px;
  }

  .service-grid,
  .car-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    min-height: 0;
    padding: 18px;
  }

  .service-number {
    margin-bottom: 18px;
  }

  .cars-top .btn {
    width: 100%;
  }

  .car-card {
    overflow: hidden;
    border-radius: 12px;
  }

  .car-image-wrap {
    aspect-ratio: auto;
    height: 210px;
  }

  .car-body {
    padding: 18px;
  }

  .car-title {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
  }

  .car-title h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  .car-price {
    font-size: 20px;
  }

  .car-meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-bottom: 16px;
    font-size: 14px;
  }

  .car-card .btn {
    min-height: 44px;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 92svh;
    overflow-y: auto;
    border-radius: 14px;
  }

  .modal-close {
    top: 8px;
    width: 44px;
    height: 44px;
    margin: 8px 8px 0 0;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .detail-main-image {
    max-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .thumb-grid {
    display: flex;
    gap: 10px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
  }

  .thumb-grid button {
    flex: 0 0 88px;
    width: 88px;
    height: 66px;
    aspect-ratio: auto;
  }

  .detail-price {
    font-size: 1.45rem;
  }

  .spec-grid,
  .admin-layout,
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-panel,
  .contact-form,
  .admin-list,
  .admin-form {
    padding: 18px;
  }

  .contact-line {
    margin: 9px 0;
    font-size: 0.98rem;
  }

  .contact-actions .btn,
  .contact-actions .social-button {
    width: 100%;
  }

  input,
  textarea,
  select {
    min-height: 44px;
    font-size: 16px;
  }

  textarea {
    min-height: 120px;
  }

  .admin-panel {
    max-height: 92svh;
    overflow-y: auto;
  }

  .admin-login,
  .admin-content {
    padding: 18px;
  }

  .admin-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .admin-head h2 {
    font-size: 1.75rem;
  }

  .admin-row-actions {
    grid-template-columns: 1fr;
  }

  .image-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
  }

  .image-preview-grid.single {
    grid-template-columns: minmax(120px, 190px);
    max-height: none;
  }

  .image-preview-actions {
    padding: 6px;
  }

  .image-preview-actions button {
    min-height: 30px;
    padding: 6px;
    font-size: 0.72rem;
  }

  .site-footer {
    align-items: center;
    gap: 18px;
    padding: 42px 18px;
    text-align: center;
  }

  .footer-logo-img {
    height: 44px;
    max-width: 190px;
  }

  .footer-links,
  .footer-contact {
    justify-content: center;
    text-align: center;
  }

  .car-grid,
  .service-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 12px;
    margin-right: -18px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .car-grid > *,
  .service-grid > * {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: start;
  }

  .service-grid > * {
    flex-basis: 88%;
    max-width: 88%;
  }

  .car-card,
  .service-card {
    min-width: 0;
  }

  .service-card {
    padding: 20px 18px;
  }

  .service-card h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .service-card p {
    font-size: 15px;
    line-height: 1.5;
  }

  .car-image-wrap {
    height: 180px;
  }

  .car-body {
    padding: 16px;
  }

  .car-title h3 {
    font-size: 18px;
  }

  .car-price {
    font-size: 18px;
  }

  .car-meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 13.5px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-actions .btn,
  .contact-actions .social-button {
    width: 100%;
    min-width: 0;
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
