/* Čisto Perilo — glavni slog */
:root {
  --bg: oklch(99% 0.002 250);
  --text: oklch(24% 0.02 250);
  --primary: oklch(58% 0.13 235);
  --primary-dark: oklch(48% 0.13 235);
  --primary-darker: oklch(40% 0.14 235);
  --accent-bg: oklch(93% 0.03 235);
  --border: oklch(90% 0.01 235);
  --border-light: oklch(92% 0.01 235);
  --border-lighter: oklch(93% 0.008 235);
  --muted: oklch(45% 0.02 250);
  --muted-light: oklch(50% 0.02 250);
  --soft-bg: oklch(96% 0.006 235);
  --hero-bg: oklch(96% 0.012 235);
  --footer-bg: oklch(20% 0.015 250);
  --footer-border: oklch(32% 0.015 250);
  --footer-text: oklch(85% 0.006 235);
  --footer-link: oklch(70% 0.006 235);
  --star: oklch(60% 0.14 70);
  --danger: oklch(55% 0.19 25);
  --ph-a: oklch(94% 0.012 235);
  --ph-b: oklch(89% 0.025 235);
  --ph-text: oklch(45% 0.03 235);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

h1, h2, h3, .heading-font {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary-darker); text-decoration: underline; }
input, textarea, button, select { font-family: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-thin { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(99% 0.002 250 / 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand { cursor: pointer; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--text); }

nav.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav.main-nav > a, nav.main-nav .nav-services > .nav-services-toggle {
  cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted-light) ;
  background: none; border: none; padding: 0; display: inline-flex; align-items: center; gap: 5px;
}
nav.main-nav a.active, nav.main-nav .nav-services.active > .nav-services-toggle { color: var(--primary-dark); }
nav.main-nav a:hover { text-decoration: none; color: var(--primary-darker); }

.nav-services { position: relative; }
.nav-services-menu {
  position: absolute; top: 30px; left: 0; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 28px -8px oklch(20% 0.02 250 / 0.18);
  min-width: 220px; padding: 8px; display: none; flex-direction: column; z-index: 60;
}
.nav-services.open .nav-services-menu { display: flex; }
.nav-services-menu a {
  cursor: pointer; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.nav-services-menu a:hover { background: var(--soft-bg); text-decoration: none; }
.nav-services-menu hr { border: none; height: 1px; background: var(--border-light); margin: 6px 4px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-outline {
  border: 1px solid var(--primary); background: #fff; color: var(--primary-dark);
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.btn-outline:hover { background: var(--soft-bg); }
.cart-btn {
  position: relative; border: none; background: var(--primary); color: #fff;
  width: 42px; height: 42px; border-radius: 999px; cursor: pointer; font-size: 17px;
}
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 19px; height: 19px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-badge.hidden { display: none; }

/* Cart drawer */
.cart-overlay {
  position: fixed; inset: 0; background: oklch(20% 0.02 250 / 0.45); z-index: 70;
  display: none;
}
.cart-drawer {
  position: fixed; top: 0; right: -440px; height: 100%; width: min(420px, 92vw);
  background: #fff; z-index: 71; box-shadow: -16px 0 40px -12px oklch(20% 0.02 250 / 0.25);
  display: flex; flex-direction: column; transition: right .25s ease;
}
body.cart-open .cart-overlay { display: block; }
body.cart-open .cart-drawer { right: 0; }
.cart-header {
  padding: 20px 22px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title { font-weight: 800; font-size: 18px; }
.cart-close { border: none; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.cart-empty { padding: 50px 10px; text-align: center; color: var(--muted-light); font-size: 14px; }
.cart-item { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border-lighter); padding-bottom: 14px; }
.cart-item-thumb {
  width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; overflow: hidden; background: var(--ph-a);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 14px; }
.cart-item-price { font-size: 13px; color: var(--muted-light); }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.qty-value { font-size: 13px; font-weight: 700; min-width: 14px; text-align: center; }
.cart-footer { padding: 20px 22px; border-top: 1px solid var(--border-light); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.cart-success { padding: 40px 10px; text-align: center; color: var(--muted-light); }
.cart-success .mark { font-size: 38px; margin-bottom: 10px; }
.cart-success .title { font-weight: 800; font-size: 17px; color: var(--text); margin-bottom: 6px; }

.checkout-form { display: none; flex-direction: column; gap: 12px; padding: 0 22px 20px; }
body.checkout-open .checkout-form { display: flex; }
body.checkout-open .cart-footer { display: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border: none; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-secondary {
  display: inline-block; padding: 14px 26px; border: 1px solid oklch(85% 0.01 235); border-radius: 999px;
  background: #fff; color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
}
.btn-secondary:hover { background: var(--soft-bg); text-decoration: none; }
.btn-small { padding: 12px 20px; border-radius: 999px; border: 1px solid oklch(85% 0.01 235); background: #fff; font-weight: 700; cursor: pointer; font-size: 14px; }
.btn-small-primary { padding: 12px 20px; border-radius: 999px; border: none; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; }
.btn-small-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-white {
  padding: 14px 28px; border: none; border-radius: 999px; background: #fff; color: var(--primary-darker);
  font-weight: 800; font-size: 15px; cursor: pointer; display: inline-block;
}

/* Photo placeholders (repeating pattern, used only if an image is missing) */
.photo-fallback {
  width: 100%; border-radius: 20px;
  background: repeating-linear-gradient(45deg, var(--ph-a) 0px, var(--ph-a) 16px, var(--ph-b) 16px, var(--ph-b) 32px);
  display: flex; align-items: center; justify-content: center; color: var(--ph-text);
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: 13px; text-align: center; padding: 16px;
}
.photo, .about-photo, .service-photo {
  width: 100%; border-radius: 20px; object-fit: cover; background: var(--ph-a);
}

/* Hero */
.hero { padding: 72px 24px 88px; background: linear-gradient(180deg, var(--hero-bg) 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(280px,1fr) minmax(280px,1fr); gap: 48px; align-items: center; }
.hero-photo { height: 340px; }
.eyebrow { display: inline-block; background: var(--accent-bg); color: var(--primary-darker); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 18px; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 480px; margin: 0 0 28px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stats */
.stats-section { padding: 36px 24px; background: var(--bg); border-bottom: 1px solid var(--border-lighter); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat-num { font-weight: 800; font-size: 28px; color: var(--primary-dark); }
.stat-label { font-size: 13px; color: var(--muted); }

/* Sections */
section.section { padding: 84px 24px; max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  cursor: pointer; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 26px;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { text-decoration: none; box-shadow: 0 12px 28px -14px oklch(20% 0.02 250 / 0.22); }
.card-num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.card-title { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--muted); }

.steps-section { padding: 84px 24px; background: var(--soft-bg); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step-title { font-weight: 700; margin-bottom: 6px; }
.step-text { font-size: 14px; color: var(--muted); }

.testimonial { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 26px; }
.stars { color: var(--star); margin-bottom: 10px; font-size: 15px; }
.testimonial-text { font-size: 14px; color: oklch(30% 0.02 250); margin-bottom: 14px; }
.testimonial-author { font-size: 13px; font-weight: 700; }

.cta-section { padding: 64px 24px; background: var(--primary); color: #fff; }
.cta-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: 28px; margin: 0 0 12px; color: #fff; }
.cta-inner p { margin: 0 0 24px; opacity: .92; font-size: 15px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted-light); margin-bottom: 10px; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 24px 24px; max-width: 1240px; margin: 0 auto; }
.page-hero.no-pad-bottom { padding-bottom: 64px; }
.page-hero h1 { font-size: 36px; margin: 0 0 20px; }
.split-grid { display: grid; grid-template-columns: minmax(280px,1.1fr) minmax(280px,1fr); gap: 40px; align-items: center; margin-bottom: 56px; }
.split-grid p { font-size: 16px; color: oklch(35% 0.02 250); margin: 0 0 16px; }
.split-photo { height: 280px; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 56px; }
.value-card { background: var(--soft-bg); border-radius: 16px; padding: 24px; }
.value-title { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.value-text { font-size: 14px; color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.team-card { text-align: center; }
.team-photo { width: 100%; height: 160px; border-radius: 14px; object-fit: cover; margin-bottom: 10px; background: var(--ph-a); }
.team-name { font-weight: 700; font-size: 14px; }
.team-role { font-size: 13px; color: var(--muted-light); }

/* Service page */
.service-hero { display: grid; grid-template-columns: minmax(280px,1.1fr) minmax(280px,1fr); gap: 40px; align-items: center; margin-bottom: 48px; }
.service-hero h1 { font-size: 34px; margin: 0 0 16px; }
.service-hero p { font-size: 16px; color: oklch(35% 0.02 250); margin: 0; }
.service-hero-photo { height: 260px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 48px; }
.feature-item { background: #fff; border: 1px solid var(--border-light); border-radius: 14px; padding: 20px; }
.feature-title { font-weight: 700; margin-bottom: 6px; }
.feature-text { font-size: 13px; color: var(--muted); }
.service-cta {
  background: var(--soft-bg); border-radius: 16px; padding: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.service-cta-title { font-weight: 700; margin-bottom: 4px; }
.service-cta-text { font-size: 14px; color: var(--muted); }
.service-cta-actions { display: flex; gap: 12px; }

/* Tips */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.tip-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 24px; }
.tip-title { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.tip-text { font-size: 14px; color: var(--muted); }

/* Shop */
.product-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; }
.product-photo { width: 100%; height: 150px; border-radius: 12px; margin-bottom: 14px; object-fit: cover; background: var(--ph-a); }
.product-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.product-desc { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 12px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-weight: 800; font-size: 16px; }
.btn-add {
  padding: 9px 16px; border: none; border-radius: 999px; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.btn-add:hover { background: var(--primary-dark); }

/* Pricing */
.price-group-title { font-weight: 800; font-size: 18px; margin: 32px 0 12px; }
.price-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.price-row { display: flex; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--border-lighter); font-size: 14px; }
.price-row:first-child { border-top: none; }
.price-row.head { background: var(--soft-bg); font-size: 13px; font-weight: 700; color: var(--muted); border-top: none; }
.price-note { font-size: 13px; color: var(--muted-light); margin-top: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(260px,1fr) minmax(280px,1.2fr); gap: 40px; }
.contact-item { margin-bottom: 22px; }
.contact-label { font-weight: 700; margin-bottom: 4px; }
.contact-value { font-size: 14px; color: var(--muted); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px; border: 1px solid oklch(85% 0.01 235); border-radius: 10px; font-size: 14px; width: 100%;
}
.contact-form textarea { resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted-light); }
.form-success { background: var(--accent-bg); border-radius: 14px; padding: 28px; text-align: center; }
.form-success .mark { font-size: 32px; margin-bottom: 8px; }
.form-success .title { font-weight: 800; margin-bottom: 6px; }
.form-success .text { font-size: 14px; color: oklch(40% 0.03 235); }
.form-error { background: oklch(96% 0.03 25); color: oklch(45% 0.18 25); border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.map-photo { margin-top: 40px; width: 100%; height: 260px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages */
.legal-body { font-size: 15px; color: oklch(30% 0.02 250); display: flex; flex-direction: column; gap: 18px; }
.legal-body .block-title { font-weight: 700; margin-bottom: 6px; }
.legal-body p { margin: 0; }
.legal-date { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.imprint-box { background: var(--soft-bg); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: oklch(30% 0.02 250); }

/* Footer */
footer.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 24px 28px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; }
.footer-brand-name { font-weight: 800; font-size: 16px; color: #fff; }
.footer-desc { font-size: 13px; color: var(--footer-link); }
.footer-col-title { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--footer-link); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--footer-link); }
.footer-bottom {
  max-width: 1240px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--footer-border);
  font-size: 12px; color: oklch(60% 0.006 235); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: #fff;
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -8px oklch(20% 0.02 250 / 0.15); padding: 18px 24px;
  display: none;
}
body.show-cookie-banner .cookie-banner { display: block; }
.cookie-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { font-size: 13px; color: oklch(35% 0.02 250); max-width: 640px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (max-width: 720px) {
  .hero { padding: 48px 20px 56px; }
  section.section, .steps-section, .page-hero { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding: 12px 16px; }
}
