:root {
  --blue: #1260d8;
  --blue-dark: #0c4da9;
  --blue-soft: #eef5ff;
  --ink: #111b26;
  --body: #313d4b;
  --muted: #687483;
  --line: #e3e8ef;
  --soft: #f6f8fb;
  --white: #ffffff;
  --dark: #111c27;
  --display: "Manrope", Arial, sans-serif;
  --font: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--white); font: 15px/1.55 var(--font); }
body.nav-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1200px, calc(100% - 88px)); margin: 0 auto; }

.site-header { position: sticky; z-index: 20; top: 0; color: var(--ink); background: rgba(255,255,255,.96); border-bottom: 1px solid #edf0f4; box-shadow: 0 4px 18px rgba(18,39,67,.04); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 220px; height: auto; }
.brand--footer .brand-logo { width: 207px; filter: brightness(0) invert(1); }
.main-nav { display: flex; align-items: center; gap: 35px; font-size: 13px; font-weight: 600; }
.main-nav > a:not(.nav-cta) { color: var(--ink); transition: color .2s; }
.main-nav > a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; color: var(--white); border-radius: 7px; background: var(--blue); box-shadow: 0 7px 14px rgba(18,96,216,.2); transition: background .2s, transform .2s; }
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; stroke-width: 2.1; }
.nav-toggle { display: none; padding: 5px; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: 475px; overflow: hidden; color: var(--white); }
.hero-bg { position: absolute; inset: 0; background: url("assets/hero-autoservis.png") 65% center / cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,21,32,.97) 0%, rgba(10,21,32,.88) 32%, rgba(10,21,32,.47) 64%, rgba(10,21,32,.2) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 52px; }
.hero-kicker { margin: 0 0 20px; color: rgba(255,255,255,.67); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 630px; margin: 0; color: var(--white); font: 800 clamp(48px, 6.2vw, 78px)/1.04 var(--display); letter-spacing: -.07em; }
.hero-lead { margin: 21px 0 0; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.58; }
.hero-actions { display: flex; gap: 14px; align-items: center; margin-top: 27px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button svg { width: 16px; height: 16px; stroke-width: 2.1; }
.button:hover { transform: translateY(-2px); }
.button--blue { color: var(--white); background: var(--blue); box-shadow: 0 8px 18px rgba(18,96,216,.18); }
.button--blue:hover { background: var(--blue-dark); }
.button--outline { color: var(--white); border-color: rgba(255,255,255,.7); background: rgba(12,24,37,.2); }
.button--outline:hover { border-color: var(--white); background: rgba(255,255,255,.14); }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 29px; margin-top: 36px; color: rgba(255,255,255,.85); font-size: 12px; }
.hero-highlights span { display: inline-flex; align-items: center; gap: 8px; }
.hero-highlights b { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--blue); border-radius: 50%; color: #70b1ff; font-size: 10px; }

.section { padding: 58px 0; }
.section-title { margin: 0 0 30px; color: var(--ink); font: 800 24px/1.2 var(--display); letter-spacing: -.04em; text-align: center; }
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 17px; }
.service-card { display: flex; min-height: 198px; flex-direction: column; align-items: center; padding: 24px 14px 18px; border: 1px solid #e7ebf0; border-radius: 9px; background: var(--white); box-shadow: 0 7px 18px rgba(29,53,83,.07); text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service-card:hover { border-color: #bfd6f7; box-shadow: 0 12px 24px rgba(29,53,83,.11); transform: translateY(-4px); }
.service-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; color: var(--blue); }
.service-icon svg { width: 36px; height: 36px; stroke-width: 1.7; }
.service-card h3 { min-height: 39px; margin: 0; color: var(--ink); font: 800 14px/1.25 var(--display); letter-spacing: -.035em; }
.service-card p { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.section--soft { background: var(--soft); }
.why { padding-top: 49px; padding-bottom: 50px; }
.why .section-title { margin-bottom: 29px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: grid; grid-template-columns: 45px 1fr; gap: 14px; min-height: 90px; padding: 6px 22px; border-right: 1px solid #d1d9e3; }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; border-right: 0; }
.benefit-icon { display: grid; place-items: center; color: var(--blue); }
.benefit-icon svg { width: 35px; height: 35px; stroke-width: 1.8; }
.benefit h3 { margin: 0; color: var(--ink); font: 800 13px/1.2 var(--display); letter-spacing: -.03em; }
.benefit p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.gallery { padding-top: 44px; padding-bottom: 48px; background: var(--white); text-align: center; }
.gallery .section-title { margin-bottom: 27px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.gallery-card { position: relative; display: flex; min-height: 181px; align-items: end; gap: 10px; overflow: hidden; padding: 18px; color: var(--white); border-radius: 8px; background-color: #21394d; background-image: linear-gradient(0deg, rgba(7,18,27,.72), rgba(7,18,27,.02) 72%), url("assets/hero-autoservis.png"); background-size: cover; background-position: center; text-align: left; transition: transform .25s, box-shadow .25s; }
.gallery-card::after { position: absolute; inset: 0; content: ""; border: 1px solid rgba(255,255,255,.25); border-radius: inherit; }
.gallery-card:hover { box-shadow: 0 12px 25px rgba(17,40,67,.18); transform: translateY(-3px); }
.gallery-card--brakes { background-position: 72% 57%; }
.gallery-card--ac { background-position: 48% 43%; filter: saturate(.9) hue-rotate(7deg); }
.gallery-card--diagnostics { background-position: 24% 58%; filter: saturate(.8) brightness(1.06); }
.gallery-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue); border-radius: 50%; background: var(--white); }
.gallery-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.gallery-card strong { position: relative; z-index: 1; font: 700 14px/1 var(--display); letter-spacing: -.03em; }
.button--white-outline { margin-top: 16px; color: var(--blue); border-color: #a9c8f5; background: var(--white); }
.button--white-outline:hover { color: var(--white); border-color: var(--blue); background: var(--blue); }

.contact-bar { color: var(--white); background: var(--blue); }
.contact-bar-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 24px; padding-bottom: 24px; }
.contact-item { display: flex; min-height: 70px; align-items: flex-start; gap: 13px; padding: 3px 25px; border-right: 1px solid rgba(255,255,255,.46); }
.contact-item:first-child { padding-left: 0; }
.contact-item:last-child { padding-right: 0; border-right: 0; }
.contact-icon { display: grid; flex: 0 0 auto; width: 23px; color: var(--white); place-items: start center; }
.contact-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
.contact-item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.contact-item small { color: rgba(255,255,255,.74); font-size: 10px; }
.contact-item strong { color: var(--white); font: 700 16px/1.25 var(--display); letter-spacing: -.02em; }
.contact-item em { color: rgba(255,255,255,.78); font-size: 10px; font-style: normal; }

.location { padding-top: 25px; padding-bottom: 24px; background: var(--white); }
.location-card { display: grid; grid-template-columns: .75fr 1.25fr; min-height: 205px; overflow: hidden; border: 1px solid #eef1f4; border-radius: 9px; box-shadow: 0 6px 18px rgba(29,53,83,.06); }
.location-copy { padding: 30px; }
.location-copy h2 { margin: 0 0 11px; color: var(--ink); font: 800 22px/1.2 var(--display); letter-spacing: -.04em; }
.location-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.button--small { min-height: 37px; margin-top: 19px; padding: 9px 14px; font-size: 11px; box-shadow: none; }
.button--small svg { width: 16px; height: 16px; stroke-width: 2; }
.map-frame { min-height: 205px; background: #dce9de; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 205px; border: 0; filter: saturate(.8); }

.site-footer { color: var(--white); background: var(--dark); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .78fr 1.04fr 1fr; gap: 55px; padding-top: 39px; padding-bottom: 30px; }
.brand--footer .brand-name { color: var(--white); }
.brand--footer .brand-mark { color: var(--white); }
.footer-brand p { margin: 18px 0 16px; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.5; }
.socials { display: flex; gap: 9px; }
.socials a { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--white); transition: border-color .2s, background .2s; }
.socials svg { width: 14px; height: 14px; stroke-width: 1.8; }
.socials a:hover { border-color: var(--blue); background: var(--blue); }
.footer-column { display: flex; flex-direction: column; gap: 7px; color: rgba(255,255,255,.75); font-size: 11px; }
.footer-column h3 { margin: 3px 0 7px; color: var(--white); font: 700 12px/1 var(--display); }
.footer-column a:hover { color: #6facff; }
.footer-column a, .footer-column span { display: inline-flex; align-items: center; gap: 7px; }
.footer-column svg { width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 1.8; }
.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 0 17px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.54); font-size: 10px; text-align: center; }
.footer-bottom a { display: none; color: var(--white); }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .container { width: min(100% - 54px, 850px); }
  .main-nav { gap: 22px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { min-height: 185px; }
  .benefit { padding-right: 15px; padding-left: 15px; }
  .footer-grid { gap: 28px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }
  .nav-wrap { min-height: 68px; }
  .brand-logo { width: 185px; }
  .brand--footer .brand-logo { width: 190px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 9px 18px 17px; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 12px 19px rgba(18,39,67,.1); }
  .main-nav.is-open { display: flex; }
  .main-nav > a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { justify-content: center; margin-top: 11px; border-bottom: 0 !important; }
  .hero { min-height: 515px; }
  .hero-bg { background-position: 64% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(10,21,32,.97), rgba(10,21,32,.67)); }
  .hero-content { padding-top: 56px; padding-bottom: 44px; }
  .hero-kicker { font-size: 9px; }
  .hero h1 { font-size: clamp(45px, 13vw, 66px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-highlights { gap: 14px 18px; margin-top: 32px; font-size: 10px; }
  .section { padding: 47px 0; }
  .section-title { margin-bottom: 24px; font-size: 22px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { min-height: 185px; padding: 20px 10px 16px; }
  .service-card h3 { font-size: 13px; }
  .service-card p { font-size: 9px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .benefit, .benefit:first-child, .benefit:last-child { min-height: 115px; padding: 15px 11px; border-right: 0; border-bottom: 1px solid #d1d9e3; }
  .benefit:nth-child(odd) { padding-left: 0; padding-right: 15px; border-right: 1px solid #d1d9e3; }
  .benefit:nth-child(n+3) { border-bottom: 0; }
  .benefit-icon { font-size: 27px; }
  .benefit h3 { font-size: 12px; }
  .benefit p { font-size: 10px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-card { min-height: 165px; }
  .contact-bar-grid { grid-template-columns: 1fr 1fr; gap: 0; padding-top: 17px; padding-bottom: 17px; }
  .contact-item, .contact-item:first-child, .contact-item:last-child { min-height: 92px; padding: 13px 11px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.35); }
  .contact-item:nth-child(odd) { padding-left: 0; border-right: 1px solid rgba(255,255,255,.35); }
  .contact-item:nth-child(n+3) { border-bottom: 0; }
  .contact-item strong { font-size: 13px; }
  .contact-item small, .contact-item em { font-size: 9px; }
  .location { padding-top: 18px; }
  .location-card { grid-template-columns: 1fr; }
  .location-copy { padding: 24px 20px; }
  .map-frame, .map-frame iframe { min-height: 230px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding-top: 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column { font-size: 10px; }
  .footer-bottom { justify-content: space-between; text-align: left; }
  .footer-bottom a { display: block; }
}

@media (max-width: 430px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-highlights { display: grid; grid-template-columns: 1fr 1fr; }
  .contact-item { gap: 7px; }
  .contact-icon { width: 18px; font-size: 20px; }
  .contact-item strong { font-size: 11px; }
}

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