/* Autoservis Max — hlavný štýl */
:root{
  --dark: oklch(19% 0.02 260);
  --dark-2: oklch(24% 0.02 260);
  --dark-border: oklch(28% 0.02 260);
  --dark-border-2: oklch(32% 0.02 260);
  --dark-muted: oklch(70% 0.01 260);
  --dark-muted-2: oklch(65% 0.01 260);
  --dark-text: oklch(78% 0.01 260);
  --accent: oklch(64% 0.19 40);
  --accent-hover: oklch(56% 0.18 40);
  --accent-active: oklch(74% 0.16 40);
  --accent-soft: oklch(64% 0.19 40 / 0.12);
  --accent-soft-2: oklch(64% 0.19 40 / 0.15);
  --accent-border: oklch(64% 0.19 40 / 0.4);
  --bg: oklch(97% 0.012 75);
  --bg-2: oklch(94% 0.014 75);
  --line: oklch(90% 0.012 75);
  --line-2: oklch(88% 0.012 75);
  --line-3: oklch(85% 0.012 75);
  --text: oklch(19% 0.02 260);
  --text-muted: oklch(48% 0.02 260);
  --text-muted-2: oklch(45% 0.02 260);
  --text-muted-3: oklch(35% 0.02 260);
  --blue: oklch(55% 0.06 240);
  --green-bg: oklch(94% 0.06 150 / 0.5);
  --green-border: oklch(70% 0.1 150);
  --red: oklch(55% 0.15 30);
  --font-head: 'Poppins Fallback', 'Segoe UI', 'Arial', sans-serif;
  --font-body: 'Inter Fallback', 'Segoe UI', Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}
h1,h2,h3,.font-head{ font-family: var(--font-head); font-weight: 700; }
::selection{ background: var(--accent); color: #fff; }
img{ max-width: 100%; display: block; }
a{ color: inherit; }
button{ font-family: var(--font-body); }

.page{ min-height: 100vh; display: flex; flex-direction: column; }
.wrap{ max-width: 1200px; margin: 0 auto; }
.narrow{ max-width: 900px; margin: 0 auto; }
.narrow-2{ max-width: 1000px; margin: 0 auto; }
.narrow-3{ max-width: 800px; margin: 0 auto; }
.legal{ max-width: 760px; margin: 0 auto; }

/* HEADER */
.site-header{ position: sticky; top: 0; z-index: 50; background: var(--dark); border-bottom: 1px solid var(--dark-border); padding: 14px 24px; }
.header-inner{ max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand{ cursor: pointer; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge{ width: 40px; height: 40px; border-radius: 8px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 18px; flex-shrink: 0; }
.brand-name{ font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 18px; line-height: 1.1; }
.brand-sub{ font-size: 11px; color: var(--dark-muted); letter-spacing: 0.04em; line-height: 1.1; }

.main-nav{ display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link{ background: none; border: none; color: var(--dark-text); font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; }
.nav-link:hover{ background: var(--dark-2); color: #fff; }
.nav-link.active{ color: var(--accent-active); }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.phone-link{ color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cart-btn{ position: relative; background: var(--dark-2); border: none; color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.cart-btn:hover{ background: var(--dark-border-2); }
.cart-count{ background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }

/* BUTTONS */
.btn{ display: inline-block; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 15px; padding: 15px 26px; border-radius: 8px; text-decoration: none; text-align: center; }
.btn-accent{ background: var(--accent); color: #fff; }
.btn-accent:hover{ background: var(--accent-hover); }
.btn-outline-light{ background: transparent; color: #fff; border: 1.5px solid var(--dark-border-2); }
.btn-outline-light:hover{ border-color: #fff; }
.btn-dark{ background: var(--text); color: #fff; }
.btn-dark:hover{ background: var(--accent); }
.btn-outline-dark{ background: none; border: 1.5px solid var(--text); color: var(--text); }
.btn-outline-dark:hover{ background: var(--text); color: #fff; }
.btn-white{ background: #fff; color: var(--accent-hover); }
.btn-sm{ padding: 9px 16px; border-radius: 7px; font-size: 13px; }

/* HERO */
.hero{ background: var(--dark); padding: 80px 24px 90px; position: relative; overflow: hidden; }
.hero-inner{ max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 48px; align-items: center; }
.badge{ display: inline-block; background: var(--accent-soft-2); color: var(--accent-active); border: 1px solid var(--accent-border); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1{ font-size: clamp(32px, 5vw, 52px); color: #fff; line-height: 1.12; margin: 0 0 20px; }
.hero p{ color: var(--dark-text); font-size: 17px; line-height: 1.6; max-width: 520px; margin: 0 0 32px; }
.hero-cta{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media{ width: 100%; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 1px solid var(--dark-border-2); }
.hero-media img{ width: 100%; height: 100%; object-fit: cover; }

.page-hero{ background: var(--dark); padding: 56px 24px; }
.page-hero .wrap{ max-width: 900px; text-align: center; }
.page-hero h1{ font-weight: 800; font-size: clamp(28px,4vw,42px); color: #fff; margin: 0 0 14px; }
.page-hero p{ color: var(--dark-text); font-size: 15.5px; line-height: 1.6; margin: 0; }

/* STATS */
.stats{ background: var(--dark); border-top: 1px solid var(--dark-border); padding: 0 24px 56px; }
.stats-grid{ max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat-num{ font-family: var(--font-head); font-weight: 800; font-size: 32px; color: #fff; }
.stat-label{ color: var(--dark-muted); font-size: 13px; margin-top: 4px; }

/* SECTIONS */
.section{ padding: 72px 24px; }
.section-alt{ background: var(--bg-2); }
.section-head{ text-align: center; margin-bottom: 44px; }
.eyebrow{ color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2{ font-size: clamp(26px,3.4vw,36px); color: var(--text); margin: 0 0 12px; }
.section-head p{ color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* CARDS */
.grid-cards{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card{ background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; cursor: pointer; text-decoration: none; display: block; color: inherit; }
.card:hover{ border-color: var(--accent); box-shadow: 0 8px 24px oklch(19% 0.02 260 / 0.06); }
.card-icon{ width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px; font-size: 20px; }
.card-title{ font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 8px; }
.card-desc{ color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.card-price{ color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 14px; }

.grid-features{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card{ background: #fff; border-radius: 12px; padding: 26px; border: 1px solid var(--line-2); }
.feature-dot{ width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-bottom: 16px; }
.feature-title{ font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.feature-desc{ color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* PRODUCTS */
.grid-products{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.product-card{ background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo{ aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.product-photo img{ width: 100%; height: 100%; object-fit: cover; }
.product-body{ padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name{ font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--text); }
.product-desc{ color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.product-price{ color: var(--accent); font-weight: 700; font-size: 16px; margin-top: 2px; }
.add-cart-btn{ margin-top: auto; background: var(--text); color: #fff; border: none; padding: 10px; border-radius: 7px; font-weight: 600; font-size: 13px; cursor: pointer; }
.add-cart-btn:hover{ background: var(--accent); }

.info-box-grid{ margin-top: 40px; background: var(--bg-2); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; }
.info-box-title{ font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.info-box-text{ font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.info-box-text a{ color: var(--accent); cursor: pointer; }

/* TESTIMONIALS */
.testimonial-card{ background: #fff; border-radius: 12px; padding: 26px; border: 1px solid var(--line-2); }
.stars{ color: var(--accent); font-size: 14px; margin-bottom: 12px; }
.testimonial-text{ color: oklch(30% 0.02 260); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.testimonial-name{ font-weight: 700; font-size: 14px; color: var(--text); }
.testimonial-car{ font-size: 12.5px; color: var(--text-muted); }

/* CTA BANNER */
.cta-band{ padding: 60px 24px; }
.cta-box{ max-width: 1000px; margin: 0 auto; background: var(--accent); border-radius: 16px; padding: 48px; text-align: center; }
.cta-box h2{ font-size: clamp(22px,3vw,30px); color: #fff; margin: 0 0 12px; }
.cta-box p{ color: oklch(96% 0.02 40); font-size: 15px; margin: 0 0 24px; }
.cta-actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* SERVICES LIST */
.service-row{ background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 20px; align-items: start; }
.service-icon{ width: 56px; height: 56px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.service-title{ font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.service-desc{ color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.service-duration{ color: var(--blue); font-size: 13px; margin-top: 10px; font-weight: 600; }
.service-price-col{ text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.service-price{ color: var(--accent); font-weight: 700; font-size: 17px; white-space: nowrap; }

/* FAQ */
.faq-item{ background: #fff; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.faq-question{ padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--text); }
.faq-symbol{ color: var(--accent); font-size: 18px; }
.faq-answer{ padding: 0 20px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.6; display: none; }
.faq-item.open .faq-answer{ display: block; }

/* CART */
.cart-line{ display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.qty-controls{ display: flex; align-items: center; gap: 8px; }
.qty-btn{ width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 700; }
.remove-link{ background: none; border: none; color: var(--red); font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-total-row{ display: flex; justify-content: space-between; align-items: center; padding: 20px 4px 0; border-top: 1px solid var(--line-2); margin-top: 8px; }
.cart-total-label{ font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); }
.cart-total-num{ font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--accent); }
.cart-actions{ display: flex; gap: 12px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.success-box{ background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 12px; padding: 32px; text-align: center; }
.success-icon{ font-size: 34px; margin-bottom: 10px; }
.success-title{ font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--text); margin-bottom: 8px; }
.success-text{ color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }
.empty-cart{ text-align: center; padding: 60px 0; color: var(--text-muted); }

/* FORM */
.form-field{ display: flex; flex-direction: column; gap: 6px; }
.form-field label{ font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input, .form-field textarea{ width: 100%; padding: 11px 12px; border-radius: 7px; border: 1px solid var(--line-3); font-size: 14px; font-family: var(--font-body); }
.form-field textarea{ resize: vertical; }
.form-checkbox{ display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.form-checkbox input{ margin-top: 3px; }
.form-checkbox a{ color: var(--accent); cursor: pointer; }
.contact-form{ display: flex; flex-direction: column; gap: 14px; }
.form-msg{ font-size: 13.5px; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; display: none; }
.form-msg.show{ display: block; }
.form-msg.error{ background: oklch(93% 0.06 30); color: oklch(40% 0.14 30); }

/* ABOUT */
.about-story{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; margin-bottom: 56px; }
.photo-box{ width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; }
.photo-box img{ width: 100%; height: 100%; object-fit: cover; }
.about-story h2{ font-size: 22px; color: var(--text); margin: 0 0 14px; }
.about-story p{ color: var(--text-muted-2); font-size: 14.5px; line-height: 1.7; }
.team-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 56px; }
.team-photo{ width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.team-photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-name{ font-weight: 700; font-size: 15px; color: var(--text); text-align: center; }
.team-role{ font-size: 13px; color: var(--accent); font-weight: 600; text-align: center; }
.info-grid{ background: var(--bg-2); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; }
.info-grid-title{ font-weight: 700; font-size: 14px; color: var(--text); }
.info-grid-text{ font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* BLOG */
.blog-card{ background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.blog-meta{ font-size: 12.5px; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.blog-title{ font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--text); margin-bottom: 10px; cursor: pointer; }
.blog-excerpt{ color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }
.blog-full{ color: var(--text-muted-2); font-size: 14.5px; line-height: 1.7; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: none; }
.blog-card.open .blog-full{ display: block; }
.blog-toggle{ margin-top: 14px; background: none; border: none; color: var(--accent); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 0; }

/* CONTACT */
.contact-grid{ max-width: 1100px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: 40px; }
.contact-card{ background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin-bottom: 20px; }
.contact-card-title{ font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--text); margin-bottom: 16px; }
.contact-info-list{ display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--text-muted-2); line-height: 1.5; }
.contact-info-list a{ color: var(--text-muted-2); text-decoration: none; }
.map-box{ width: 100%; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); padding: 28px; text-align: center; }
.map-box .addr{ font-weight: 700; color: var(--text); margin-bottom: 10px; }
.map-box a.btn{ margin-top: 12px; }
.contact-form-card{ background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }

/* LEGAL */
.legal-block{ display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--text-muted-3); line-height: 1.7; }
.legal-block p{ margin: 0; }
.legal h1{ font-size: 30px; color: var(--text); margin: 0 0 28px; }

/* FOOTER */
.site-footer{ background: var(--dark); padding: 56px 24px 24px; margin-top: auto; }
.footer-grid{ max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--dark-border); }
.footer-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-badge{ width: 34px; height: 34px; border-radius: 7px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 15px; }
.footer-name{ font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 16px; }
.footer-desc{ color: var(--dark-muted-2); font-size: 13.5px; line-height: 1.6; }
.footer-col-title{ color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.footer-links{ display: flex; flex-direction: column; gap: 9px; }
.footer-links a, .footer-links span{ color: var(--dark-muted-2); font-size: 13.5px; cursor: pointer; text-decoration: none; }
.footer-links a:hover{ color: #fff; }
.footer-contact{ display: flex; flex-direction: column; gap: 9px; color: var(--dark-muted-2); font-size: 13.5px; line-height: 1.5; }
.footer-bottom{ max-width: 1200px; margin: 0 auto; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy{ color: oklch(50% 0.01 260); font-size: 12.5px; }

/* COOKIE BANNER */
.cookie-banner{ position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--dark); border-top: 1px solid var(--dark-border-2); padding: 18px 24px; box-shadow: 0 -8px 24px oklch(0% 0 0 / 0.2); display: none; }
.cookie-banner.show{ display: block; }
.cookie-inner{ max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text{ color: var(--dark-text); font-size: 13.5px; line-height: 1.5; max-width: 640px; }
.cookie-text span{ color: var(--accent-active); cursor: pointer; text-decoration: underline; }
.cookie-actions{ display: flex; gap: 10px; flex-shrink: 0; }
.cookie-reject{ background: transparent; border: 1px solid var(--dark-border-2); color: #fff; padding: 10px 18px; border-radius: 7px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cookie-accept{ background: var(--accent); border: none; color: #fff; padding: 10px 18px; border-radius: 7px; font-size: 13.5px; font-weight: 600; cursor: pointer; }

@media (max-width: 760px){
  .hero-inner, .about-story, .contact-grid{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 1fr; }
  .service-price-col{ align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .cart-line{ grid-template-columns: 1fr; text-align: left; }
}
