:root {
  --page: #f5f7fb;
  --paper: rgba(255, 255, 255, 0.9);
  --ink: #0c1426;
  --muted: #5c6678;
  --navy: #081936;
  --navy-2: #10264f;
  --gold: #f5bf43;
  --gold-2: #efab1e;
  --line: rgba(12, 20, 38, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 191, 67, 0.24), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(90, 173, 255, 0.18), transparent 20%),
    radial-gradient(circle at bottom right, rgba(8, 25, 54, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--page) 100%);
}

a {
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 191, 67, 0.4);
  outline-offset: 2px;
}

.wrap {
  width: min(1440px, calc(100% - 28px));
}

.topbar {
  background: linear-gradient(135deg, #f4c34e 0%, #f1b632 100%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  padding: 8px 0;
}

.brand-logo,
.brand-card-logo,
.badge-logo {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.nav-shell {
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.nav-inner {
  min-height: 90px;
  padding: 0 20px;
}

.menu a {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.btn,
.back,
.lang-btn,
.appointment-submit,
.appointment-secondary,
.repair-card,
.appointment-cta {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.btn:hover,
.back:hover,
.lang-btn:hover,
.appointment-submit:hover,
.appointment-secondary:hover,
.appointment-cta:hover,
.repair-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.hero {
  padding-top: 18px;
}

.hero-stage {
  min-height: 720px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(7, 24, 52, 0.9), rgba(13, 32, 73, 0.74) 52%, rgba(12, 38, 82, 0.58)),
    radial-gradient(circle at 76% 38%, rgba(255, 255, 255, 0.4), transparent 13%),
    radial-gradient(circle at 83% 38%, rgba(90, 173, 255, 0.14), transparent 14%);
  box-shadow: var(--shadow);
}

.hero-copy {
  width: min(920px, calc(100% - 48px));
  min-height: 720px;
}

.hero-copy::before {
  inset: 38px 40px 36px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(8, 22, 52, 0.38), rgba(8, 22, 52, 0.1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-kicker {
  letter-spacing: 0.22em;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.12);
}

.hero-copy h1 {
  letter-spacing: -0.06em;
}

.lead {
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions .btn.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.appointment-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(7, 24, 52, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(8, 18, 36, 0.18);
  color: white;
  cursor: pointer;
}

.appointment-preview-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.appointment-preview-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 191, 67, 0.18);
  color: #fff7de;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.appointment-preview strong {
  font-size: 1.06rem;
  letter-spacing: -0.03em;
}

.appointment-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.appointment-preview-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-carousel-slide {
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.24);
}

.hero-carousel-backplate {
  opacity: 0.32;
}

.section {
  padding: 20px 0 10px;
}

.section-slab,
.contact-box,
.service-card,
.brand-tile,
.model-gallery,
.card,
.model-detail-panel,
.model-detail-visual,
.appointment-modal-panel,
.appointment-preview,
.phone-preview {
  border: 1px solid rgba(12, 20, 38, 0.08);
  box-shadow: var(--shadow);
}

.section-slab {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

.section-head h2,
.model-gallery-head h2,
.model-detail-panel h2,
.card h1,
.card h2 {
  letter-spacing: -0.05em;
}

.services-grid {
  gap: 14px;
}

.service-card {
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 191, 67, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 253, 0.96));
}

.service-card p,
.contact-line,
.hour-row,
.sub,
.model-gallery-count,
.muted {
  color: var(--muted);
}

.brands-grid {
  gap: 16px;
}

.brand-tile {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
}

.brand-tile-visual {
  min-height: 240px;
}

.brand-tile-footer {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.brand-tile-footer strong {
  font-size: 1.14rem;
}

.brand-tile-plus {
  color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
  gap: 16px;
}

.contact-box {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
}

.contact-line {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
}

.hour-row {
  font-size: 0.98rem;
}

.model-gallery {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 24px;
}

.model-gallery-grid {
  gap: 16px;
}

.model-tile {
  border-radius: 22px;
  border: 1px solid rgba(12, 20, 38, 0.08);
}

.model-tile-label {
  color: var(--ink);
}

.model-tile-image,
.model-tile-fallback,
.model-brand-badge,
.badge,
.brand-card-badge {
  background: linear-gradient(135deg, rgba(245, 191, 67, 0.16), rgba(8, 25, 54, 0.06));
}

.model-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

.model-detail-visual,
.model-detail-panel {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.model-detail-visual {
  padding: 18px;
}

.phone-preview-image--detail {
  min-height: 420px;
  height: 100%;
}

.phone-preview-image--empty {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: clamp(4rem, 14vw, 6rem);
  font-weight: 800;
}

.model-detail-panel {
  padding: 24px;
}

.repair-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.repair-panel-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

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

.repair-card {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(239, 244, 251, 0.96));
  color: var(--ink);
}

.repair-card-name {
  font-weight: 700;
}

.repair-card-action {
  color: var(--navy-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.repair-panel-actions {
  display: flex;
  margin-top: 18px;
}

.appointment-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  border: 0;
  font-weight: 800;
}

.appointment-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.model-loading-shell {
  display: grid;
  gap: 14px;
}

.model-loading-card {
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 20, 38, 0.08);
  box-shadow: var(--shadow);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(12, 20, 38, 0.06) 0%, rgba(12, 20, 38, 0.12) 50%, rgba(12, 20, 38, 0.06) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-line {
  height: 16px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 52%;
}

.skeleton-image {
  min-height: 220px;
  border-radius: 22px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skeleton {
    animation: none;
  }
}

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

.appointment-modal[hidden] {
  display: none;
}

.appointment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 24, 0.58);
  backdrop-filter: blur(10px);
}

.appointment-modal-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  padding: 26px;
  box-shadow: 0 40px 90px rgba(7, 12, 24, 0.3);
}

.appointment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(12, 20, 38, 0.08);
  background: white;
  font-size: 1.7rem;
  line-height: 1;
}

.appointment-modal-head {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  padding-right: 48px;
}

.appointment-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 191, 67, 0.14);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-modal-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
}

.appointment-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.appointment-grid {
  display: grid;
  gap: 14px;
}

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

.appointment-form label {
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  border: 1px solid rgba(12, 20, 38, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  width: 100%;
  box-sizing: border-box;
}

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

.appointment-field-hint {
  display: block;
  margin-top: 6px;
  color: rgba(72, 84, 110, 0.82);
  font-size: 0.88rem;
  line-height: 1.4;
}

.appointment-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.appointment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.appointment-submit,
.appointment-secondary {
  min-height: 52px;
  padding: 0 18px;
  font-weight: 800;
}

.appointment-submit {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  border: 0;
}

.appointment-secondary {
  background: white;
  border: 1px solid rgba(12, 20, 38, 0.12);
  color: var(--ink);
}

.appointment-status {
  min-height: 1.25em;
  color: var(--muted);
}

.appointment-status[data-state="error"] {
  color: #9f431d;
}

.appointment-status[data-state="info"] {
  color: var(--muted);
}

.phone-preview {
  border-radius: 28px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8, 25, 54, 0.96), rgba(8, 25, 54, 0.9));
}

.phone-preview-image {
  border-radius: 22px;
  background: linear-gradient(180deg, #0b1f49, #132a5c);
  object-fit: cover;
  display: block;
  width: 100%;
  padding: 12px;
}

.phone-preview-image:not(.phone-preview-image--detail) {
  height: 320px;
}

.empty {
  border-radius: 20px;
  border: 1px solid rgba(12, 20, 38, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
}

.badge,
.back,
.lang-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 20, 38, 0.1);
  color: var(--ink);
}

.top-actions {
  gap: 12px;
}

body.login-shell {
  background:
    radial-gradient(circle at top left, rgba(245, 191, 67, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(90, 173, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
}

.login-shell .card {
  width: min(500px, calc(100% - 24px));
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-shell .badge {
  background: rgba(245, 191, 67, 0.12);
  color: var(--navy);
}

.login-shell .primary,
.login-shell .btn.primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
}

.login-shell .ghost {
  background: white;
  border: 1px solid rgba(12, 20, 38, 0.12);
}

@media (max-width: 980px) {
  .model-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 16px, 1440px);
  }

  .topbar-inner {
    gap: 10px;
  }

  .nav-inner {
    min-height: auto;
    padding: 14px 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .hero-stage,
  .hero-copy {
    min-height: 620px;
  }

  .hero-copy {
    width: min(100% - 20px, 920px);
    padding: 76px 16px 66px;
  }

  .appointment-preview {
    flex-direction: column;
    align-items: stretch;
  }

  .appointment-preview-button {
    width: 100%;
  }

  .hero-copy::before {
    inset: 30px 14px 24px;
  }

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

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

  .model-gallery-grid,
  .repair-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-grid.two {
    grid-template-columns: 1fr;
  }

  .appointment-modal {
    padding: 10px;
  }

  .appointment-modal-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .appointment-modal-head {
    padding-right: 48px;
  }

  .phone-preview-image:not(.phone-preview-image--detail) {
    height: 220px;
  }

  .phone-preview-image--detail {
    min-height: 260px;
  }

  .repair-card {
    padding: 14px 16px;
  }
}

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

  .topbar-inner {
    justify-content: center;
  }

  .brandmark {
    justify-content: center;
  }

  .contact-row {
    display: none;
  }

  .brands-grid,
  .model-gallery-grid,
  .repair-card-grid {
    gap: 10px;
  }

  .service-card,
  .brand-tile,
  .model-tile,
  .repair-card {
    border-radius: 18px;
  }

  .brand-tile-visual {
    min-height: 180px;
  }

  .model-gallery {
    padding: 16px;
  }

  .service-card {
    padding: 14px;
  }
}
