:root {
  --bg: #060606;
  --surface: #101010;
  --surface-2: #171717;
  --text: #f6efe2;
  --muted: #b2a78f;
  --accent: #d4af37;
  --accent-2: #8b6a1f;
  --accent-soft: #f5e4ac;
  --border: rgba(212, 175, 55, 0.22);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 30%),
    linear-gradient(135deg, #020202 0%, #0c0c0c 55%, #050505 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  backdrop-filter: blur(16px);
  background: rgba(6, 6, 6, 0.88);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #100c02;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

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

.phone-link {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  color: var(--accent-soft);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.3rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

main {
  padding: 0 5vw 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
  padding: 3.5rem 0 2rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-header h2,
.contact-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.1;
}

.lead,
.card p,
.step-card p,
.review-card p,
.contact-card p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.4rem 0 1.2rem;
}

.hero-actions a {
  min-width: 160px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f1d06b);
  color: #100c02;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-soft);
  font-size: 0.95rem;
}

.hero-panel,
.card,
.step-card,
.review-card,
.contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.2rem;
}

.vin-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.vin-form label {
  font-weight: 600;
}

.vin-form input,
.vin-form select,
.vin-form textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgba(2, 5, 13, 0.7);
  color: var(--text);
  font: inherit;
}

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

.vin-form button {
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--accent), #f1d06b);
  color: #100c02;
  font-weight: 800;
  cursor: pointer;
}

.info-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.info-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.form-message {
  min-height: 1.4rem;
  margin: 0.7rem 0 0;
  color: var(--accent);
  font-weight: 700;
}

.form-message.error {
  color: #ff7b7b;
}

.form-message.success {
  color: #9ff0c1;
}

.section {
  padding: 3rem 0 0;
}

.section-alt {
  padding-top: 3.4rem;
}

.cards-grid,
.steps-grid,
.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.step-card,
.review-card {
  padding: 1.4rem;
}

.card h3,
.step-card h3,
.review-card strong {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-soft);
  font-weight: 800;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.brands-list span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-soft);
}

.contact-section {
  padding-bottom: 2rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem;
}

.contact-links {
  display: grid;
  gap: 0.6rem;
  min-width: 240px;
}

.contact-links a {
  color: var(--accent-soft);
}

.footer {
  padding: 1rem 5vw 2rem;
  color: var(--muted);
  text-align: center;
}

.footer-legal-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: rgba(178, 167, 143, 0.72);
  text-decoration: none;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: rgba(246, 239, 226, 0.85);
  text-decoration: underline;
}

.legal-content {
  padding-top: 1rem;
}

.legal-content pre {
  margin: 0;
  padding: 1.2rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.blog-preview-card,
.admin-card,
.blog-card,
.article-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.blog-preview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-link:hover .blog-card {
  transform: translateY(-2px);
}

.blog-preview-actions {
  margin-top: 1rem;
}

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .cards-grid,
  .steps-grid,
  .reviews-grid,
  .service-grid,
  .contact-card,
  .blog-list {
    grid-template-columns: 1fr;
  }

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

  .brands-list {
    justify-content: center;
  }

  .blog-card-image {
    height: 200px;
  }
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.page-shell h1,
.page-shell h2 {
  margin-top: 0;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.blog-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card,
.blog-card-link .blog-card {
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  min-height: 100%;
}

.blog-card:hover,
.blog-card-link:hover .blog-card {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem;
}

.blog-card-body h3 {
  margin: 0;
  font-size: 1.18rem;
}

.blog-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
}

.article-header-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1.4rem;
  margin-bottom: 1rem;
}

.admin-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.delete-article {
  border: 1px solid rgba(212,175,55,0.5);
  background: transparent;
  color: var(--accent);
  padding: 0.55rem 0.9rem;
  border-radius: 0.8rem;
  cursor: pointer;
}

.delete-article:hover {
  background: rgba(212,175,55,0.12);
}

.file-label {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.file-label input {
  display: none;
}

.blog-card h3,
.article-panel h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.blog-meta,
.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.admin-form {
  display: grid;
  gap: 0.8rem;
}

.admin-form input,
.admin-form textarea,
.content-editor {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgba(2, 5, 13, 0.7);
  color: var(--text);
  font: inherit;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.content-editor {
  min-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.content-editor:empty:before {
  content: attr(data-placeholder);
  display: block;
  color: var(--muted);
  pointer-events: none;
}

.admin-form button {
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--accent), #f1d06b);
  color: #100c02;
  font-weight: 800;
  cursor: pointer;
}

.status-message {
  min-height: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

.status-message.error {
  color: #ff7b7b;
}

.status-message.success {
  color: #9ff0c1;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 1rem;
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.cookie-banner button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, var(--accent), #f1d06b);
  color: #100c02;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .blog-grid,
  .admin-grid,
  .hero,
  .cards-grid,
  .steps-grid,
  .reviews-grid,
  .service-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .contact-card {
    display: grid;
  }
}

@media (max-width: 720px) {
  .header {
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
    gap: 0.8rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 1rem 0.5rem;
    background: rgba(6, 6, 6, 0.96);
    border-radius: 1rem;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-radius: 0.9rem;
  }

  .phone-link {
    display: none;
  }

  main {
    padding: 0 1rem 3rem;
  }

  .hero {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-panel,
  .card,
  .step-card,
  .review-card,
  .contact-card,
  .blog-card,
  .admin-card,
  .article-panel,
  .content-editor,
  .admin-form input,
  .admin-form textarea {
    width: 100%;
  }

  .hero-panel {
    padding: 1rem;
  }

  .section {
    padding-top: 2rem;
  }

  .brands-list {
    justify-content: center;
  }

  .hero-highlights li,
  .brands-list span {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .blog-card-image {
    height: 180px;
  }

  .article-header-image {
    max-height: 280px;
  }

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

  .section-header h2,
  .hero h1,
  .lead,
  .card p,
  .step-card p,
  .review-card p,
  .contact-card p,
  .blog-card-body p,
  .blog-meta,
  .article-meta {
    font-size: 0.95rem;
  }

  .footer-legal-links {
    gap: 0.7rem;
  }

  .footer-legal-links a {
    font-size: 0.78rem;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner button {
    width: 100%;
  }
}
