:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #edf2f7;
  --text: #18212f;
  --muted: #5f6b7a;
  --primary: #0c3b75;
  --primary-strong: #092c56;
  --accent: #d93a2f;
  --border: rgba(12, 59, 117, 0.1);
  --shadow: 0 24px 60px rgba(15, 34, 61, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fc 0%, #eef4f8 100%);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(24, 33, 47, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(15%) saturate(1104%) hue-rotate(177deg) brightness(93%) contrast(91%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff7a45);
  color: #fff;
}

.logo-text {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #1455a0);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(12, 59, 117, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(12, 59, 117, 0.25);
  filter: saturate(1.03);
}

.button-small {
  padding: 11px 18px;
  font-size: 0.95rem;
}

.button-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(12, 59, 117, 0.16);
  box-shadow: none;
}

.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero-grid,
.about-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 32px;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy,
.hero-visual,
.trust-items div,
.card,
.price-card,
.gallery-grid img,
.about-image,
.about-copy,
.contact-copy,
.contact-form,
.footer-grid > div {
  animation: fadeUp 0.8s ease both;
}

.hero-copy {
  animation-delay: 0.05s;
}

.hero-visual {
  animation-delay: 0.15s;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 59, 117, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
  animation: pulseSoft 3.5s ease-in-out infinite;
}

.hero h1,
.section-head h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0 0 16px;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 11ch;
}

.hero p,
.section-head p,
.about-copy p,
.contact-copy p,
.card p,
.price-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-mazda-chip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(13, 29, 51, 0.75);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.hero-orb-one {
  top: 40px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 58, 47, 0.22), rgba(217, 58, 47, 0));
  animation: floatOrb 10s ease-in-out infinite;
}

.hero-orb-two {
  right: -80px;
  top: 120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(12, 59, 117, 0.2), rgba(12, 59, 117, 0));
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.hero-card-main {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-7deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: floatCard 6s ease-in-out infinite;
}

.hero-card-main:hover {
  transform: perspective(1200px) rotateY(-3deg) translateY(-2px);
  box-shadow: 0 26px 60px rgba(15, 34, 61, 0.15);
}

.hero-card-main img {
  min-height: 520px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.hero-card-main:hover img {
  transform: scale(1.04);
}

.hero-floating-card {
  position: absolute;
  left: -24px;
  bottom: 28px;
  width: min(280px, 82%);
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  animation: floatCard 5.5s ease-in-out infinite;
}

.hero-badge {
  position: absolute;
  top: 26px;
  right: -18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(13, 29, 51, 0.88);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: badgeSwing 4.5s ease-in-out infinite;
}

.hero-floating-card strong,
.about-points strong {
  display: block;
  margin-bottom: 8px;
}

.trust-bar {
  padding-bottom: 22px;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-items div,
.card,
.price-card,
.contact-form,
.about-points div {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trust-items div {
  padding: 18px 20px;
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--primary-strong);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.trust-items div:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 58, 47, 0.25);
}

.section {
  padding: 86px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(12, 59, 117, 0.03), rgba(12, 59, 117, 0.06));
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.services-grid,
.price-grid,
.gallery-grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.price-card {
  padding: 28px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(15, 34, 61, 0.13);
  border-color: rgba(12, 59, 117, 0.18);
}

.card h3,
.price-card h3,
.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.price-grid {
  grid-template-columns: repeat(4, 1fr);
}

.price-card {
  position: relative;
}

.featured {
  background: linear-gradient(180deg, #123f79, #0b2e57);
  color: #fff;
}

.featured p {
  color: rgba(255, 255, 255, 0.8);
}

.price-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.price {
  margin: 10px 0 12px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.featured .price {
  color: #fff;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid img,
.about-image img {
  border-radius: 24px;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}

.gallery-grid img:hover,
.about-image img:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 50px rgba(15, 34, 61, 0.14);
  filter: saturate(1.03);
}



.about-grid,
.contact-grid,
.footer-grid,
.legal-grid {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.legal-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.legal-head {
  max-width: 860px;
}

.legal-card {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(15, 34, 61, 0.13);
  border-color: rgba(12, 59, 117, 0.18);
}

.legal-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.75;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.about-points div {
  padding: 18px;
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-points div:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 58, 47, 0.22);
}

.about-points span {
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(24, 33, 47, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(12, 59, 117, 0.38);
  box-shadow: 0 0 0 4px rgba(12, 59, 117, 0.08);
  transform: translateY(-1px);
}

.site-footer {
  padding: 32px 0 50px;
  background: #0d1d33;
  color: #fff;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -18px, 0) scale(1.06);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes badgeSwing {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(-3deg) translateY(-4px);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(12, 59, 117, 0.08);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(12, 59, 117, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .services-grid,
  .price-grid,
  .gallery-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .legal-grid,
  .trust-items,
  .about-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    max-width: none;
  }

  .hero-badge {
    right: 12px;
  }

}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
  }

  .brand-badge {
    order: 2;
    width: 112px;
    height: 50px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.95rem;
  }

  .hero,
  .section {
    padding: 64px 0;
  }

  .hero-grid,
  .services-grid,
  .price-grid,
  .gallery-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .legal-grid,
  .trust-items,
  .about-points {
    grid-template-columns: 1fr;
  }

  .hero-card-main img {
    min-height: 360px;
  }

  .hero-floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .hero-card-main {
    transform: none;
  }

  .hero-badge {
    position: static;
    display: inline-flex;
    margin: 16px 0 0 auto;
  }

}
