/* ==========================================================
   SKAR s.r.o. — redizajn (jún 2026)
   Postavené striktne na brand manuáli Mlieko.sk × SKAR
   Monochróm navy + papier · Schibsted Grotesk · bez akcentu
   ========================================================== */

/* ---- Font: Schibsted Grotesk (variable, self-host) ---- */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonty/schibsted-grotesk-variable-latin.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonty/schibsted-grotesk-variable-latin-ext.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonty/schibsted-grotesk-variable-latin-italic.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonty/schibsted-grotesk-variable-latin-ext-italic.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --navy:    #0a0056;   /* SKAR navy — značka, nadpisy, CTA, hlavička, pätička */
  --modra:   #1c12a0;   /* sekundárna modrá — linky, hover, aktívne, focus */
  --papier:  #faf9f5;   /* pozadie stránok */
  --povrch:  #ffffff;   /* karty, vstupy */
  --atrament:#1c1932;   /* bežný text */
  --linka:   #e7e4f1;   /* bordery, oddeľovače */
  --muted:   #6b6880;   /* sekundárny text */

  --na-navy: rgba(255,255,255,.72); /* eyebrow/sekundárny text na navy podklade (monochróm) */
  --linka-navy: rgba(255,255,255,.16);

  --uspech:#1e7d4e; --chyba:#b3273e; --upozornenie:#8a5a07;

  --r-tlacidlo:10px; --r-karta:12px; --r-miniatura:8px;
  --container:1180px;
}

/* ---- Reset & základ ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Schibsted Grotesk', system-ui, 'Segoe UI', Arial, sans-serif;
  font-weight: 430;
  font-size: 17px;
  line-height: 1.6;
  color: var(--atrament);
  background: var(--papier);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--modra); font-weight: 650; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
ul { list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2.5px solid var(--modra); outline-offset: 2px; border-radius: var(--r-miniatura); }
/* Biely focus ring na navy plochách (monochróm: biela + modrá) */
.page-head a:focus-visible, .anchor-pills a:focus-visible,
.site-footer a:focus-visible, .header-email:focus-visible { outline-color: #fff; }
/* Focus reflektovaný z neviditeľného checkboxu na viditeľné ovládače menu */
.nav-state:focus-visible ~ .nav-toggle { outline: 2.5px solid #fff; outline-offset: 2px; border-radius: var(--r-tlacidlo); }
.nav-state:focus-visible ~ .site-nav .nav-close { outline: 2.5px solid var(--modra); outline-offset: 2px; border-radius: var(--r-miniatura); }
::selection { background: var(--navy); color: #fff; }

/* ---- Typografia ---- */
h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
h1 { font-weight: 880; }
h2 { font-weight: 800; letter-spacing: -0.01em; }
h3 { font-weight: 750; letter-spacing: -0.006em; line-height: 1.2; }
p { line-height: 1.62; }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--modra);
  margin-bottom: 14px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---- Tlačidlá ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 750; font-size: 16px; line-height: 1.1;
  padding: 15px 28px; border-radius: var(--r-tlacidlo);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--modra); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: var(--povrch); color: var(--navy); border-color: var(--linka); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; transform: translateY(-1px); }

/* ==========================================================
   HLAVIČKA — navy masthead
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: 64px;
}
.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img { height: 26px; width: auto; }

.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 21px 16px;
  font-size: 15.5px; font-weight: 650; color: rgba(255,255,255,.82);
  position: relative; transition: color .18s;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 14px;
  height: 2px; border-radius: 2px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-list > li > a:hover, .nav-list > li > a.active { color: #fff; text-decoration: none; }
.nav-list > li > a:hover::after, .nav-list > li > a.active::after { transform: scaleX(1); }
.nav-eshop { color: #fff !important; }

/* Dropdown */
.dropdown { display: none; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  display: block; position: absolute; top: 100%; left: 8px;
  background: var(--povrch); min-width: 210px;
  border: 1px solid var(--linka); border-radius: var(--r-miniatura);
  overflow: hidden; z-index: 50;
}
.dropdown a {
  display: block; padding: 12px 22px; font-size: 15px; font-weight: 600;
  color: var(--muted); transition: color .15s, background .15s;
}
.dropdown a:hover { color: var(--navy); background: var(--papier); text-decoration: none; }

/* E-mail pill */
.header-email {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  padding: 10px 20px; border-radius: var(--r-tlacidlo);
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 14.5px; font-weight: 650; line-height: 1.1; white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.header-email:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff; text-decoration: none; }
.header-email svg { flex-shrink: 0; }

/* Mobilné menu — čisté CSS (checkbox) */
.nav-state { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-close {
  display: none; position: absolute; top: 8px; right: 10px;
  align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-size: 34px; line-height: 1; color: var(--muted); cursor: pointer;
}
.nav-toggle {
  display: none; background: rgba(255,255,255,.12); border-radius: var(--r-tlacidlo); cursor: pointer;
  padding: 11px 11px; flex-direction: column; gap: 5px; margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; }
.nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(10,0,86,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 150; cursor: pointer;
}

/* ==========================================================
   ODVETVIA — veľké foto karty na papieri
   ========================================================== */
.industry { padding: 76px 0 8px; }
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.industry-card {
  display: block; background: var(--povrch);
  border: 1px solid var(--linka); border-radius: var(--r-karta);
  overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
.industry-card:hover { border-color: var(--modra); transform: translateY(-3px); text-decoration: none; }
.industry-card figure { aspect-ratio: 16 / 8; overflow: hidden; background: var(--linka); }
.industry-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.industry-card:hover img { transform: scale(1.04); }
.industry-body { padding: 26px 28px 28px; }
.industry-body h3 { font-size: 25px; margin-bottom: 9px; }
.industry-body p { color: var(--muted); font-size: 16px; }
.industry-more {
  display: inline-block; margin-top: 16px; font-weight: 700; font-size: 15.5px; color: var(--modra);
}
.industry-card:hover .industry-more { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   PARTNERI — exkluzívna distribúcia
   ========================================================== */
.partners { padding: 88px 0; }
.partners-head { max-width: 720px; margin-bottom: 40px; }
.partners-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.partners-head p { color: var(--muted); font-size: 18px; }

.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner-card {
  display: flex; flex-direction: column; background: var(--povrch);
  border: 1px solid var(--linka); border-radius: var(--r-karta);
  padding: 28px 26px 24px; transition: border-color .2s ease, transform .2s ease;
}
.partner-card:hover { border-color: var(--modra); transform: translateY(-3px); text-decoration: none; }
.partner-logo { height: 70px; display: flex; align-items: center; margin-bottom: 18px; }
.partner-logo img { max-height: 58px; max-width: 190px; width: auto; }
.partner-card h3 { font-size: 21px; margin-bottom: 8px; }
.partner-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.partner-more { margin-top: 18px; font-weight: 700; font-size: 15.5px; color: var(--modra); }
.partner-card:hover .partner-more { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================
   MLIEKO.SK — navy band (značková architektúra)
   ========================================================== */
.eshop { background: var(--navy); color: #fff; }
.eshop-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px;
  align-items: center; padding: 80px 0;
}
.eshop .eyebrow { color: var(--na-navy); }
.eshop h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.eshop p { color: rgba(255,255,255,.82); font-size: 18px; max-width: 52ch; margin-bottom: 30px; }
.eshop-brand { display: flex; justify-content: center; }
.eshop-brand img { width: min(340px, 100%); height: auto; }

/* ==========================================================
   PODSTRÁNKY — hlavička sekcie (navy)
   ========================================================== */
.page-head { background: var(--navy); color: #fff; padding: 66px 0 58px; }
.page-head .eyebrow { color: var(--na-navy); }
.page-head h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 16px; }
.page-head p { max-width: 64ch; font-size: 19px; color: rgba(255,255,255,.82); }

.anchor-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.anchor-pills a {
  padding: 9px 20px; border-radius: var(--r-tlacidlo);
  border: 1.5px solid rgba(255,255,255,.38); font-weight: 650; font-size: 15px; color: #fff;
  transition: background .18s, border-color .18s, color .18s;
}
.anchor-pills a:hover { background: #fff; border-color: #fff; color: var(--navy); text-decoration: none; }

/* ==========================================================
   SORTIMENT — sekcie dodávateľov
   ========================================================== */
.supplier-section { padding: 76px 0; border-top: 1px solid var(--linka); }
.supplier-section:first-of-type { border-top: none; }
.supplier-section.bg-povrch { background: var(--povrch); }
.supplier-inner { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.supplier-inner > * { min-width: 0; }
.supplier-logo-col { position: sticky; top: 92px; }
.supplier-logo-card {
  display: flex; align-items: center; justify-content: center;
  background: var(--povrch); border: 1px solid var(--linka); border-radius: var(--r-karta);
  padding: 28px 24px;
}
.bg-povrch .supplier-logo-card { background: var(--papier); }
.supplier-logo-card img { max-width: 176px; max-height: 104px; width: auto; }

.supplier-content h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.supplier-content > p { margin-bottom: 16px; font-size: 17px; color: var(--muted); max-width: 70ch; overflow-wrap: break-word; }

.product-categories { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-category {
  background: var(--povrch); border: 1px solid var(--linka);
  border-radius: var(--r-karta); padding: 24px 26px;
}
.bg-povrch .product-category { background: var(--papier); }
.product-category h3 { font-size: 19px; margin-bottom: 12px; padding-left: 13px; border-left: 3px solid var(--navy); }
.product-category p { font-size: 15.5px; line-height: 1.62; color: var(--muted); overflow-wrap: break-word; }
.product-list { display: grid; gap: 9px; }
.product-list li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.product-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}
.product-category strong { font-weight: 700; color: var(--atrament); }
.product-category em { font-style: italic; }

/* ==========================================================
   KONTAKT
   ========================================================== */
.contact-section { padding: 76px 0; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: stretch; }
.contact-col {
  background: var(--povrch); border: 1px solid var(--linka);
  border-radius: var(--r-karta); padding: 30px 28px;
}
.contact-col h2 { font-size: 24px; margin-bottom: 16px; }
.contact-col address { font-size: 17px; line-height: 1.9; color: var(--muted); }
.contact-list { display: grid; gap: 15px; }
.contact-list li { display: flex; align-items: center; gap: 13px; font-size: 16px; }
.contact-list svg { color: var(--navy); flex-shrink: 0; }
.contact-list a { color: var(--modra); font-weight: 650; }
.contact-list a:hover { color: var(--modra); text-decoration: underline; text-underline-offset: 3px; }
.legal-info p { font-size: 15px; line-height: 1.85; color: var(--muted); margin-bottom: 14px; }
.legal-info p:last-child { margin-bottom: 0; }
.legal-info span { font-weight: 700; color: var(--atrament); }

.contact-map { padding-bottom: 76px; }
.contact-map .map-frame {
  border-radius: var(--r-karta); overflow: hidden; border: 1px solid var(--linka);
}
.contact-map iframe { width: 100%; height: 460px; border: 0; display: block; }

/* ==========================================================
   PÄTIČKA — navy + SKAR ikona
   ========================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.footer-brand .footer-mark { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.footer-brand .footer-mark img { height: 40px; width: 40px; }
.footer-brand .footer-mark span { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.footer-brand p { font-size: 15.5px; max-width: 38ch; line-height: 1.65; }
.footer-col h3 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col address {
  display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px;
  color: rgba(255,255,255,.78); font-weight: 400; line-height: 1.6; transition: color .15s;
}
.footer-col a { font-weight: 600; }
.footer-col a:hover { color: #fff; }
.footer-col svg { flex-shrink: 0; opacity: .8; }
.footer-bottom {
  border-top: 1px solid var(--linka-navy); padding: 20px 0; font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.6);
}

/* ==========================================================
   RESPONZÍVNOSŤ
   ========================================================== */
@media (max-width: 1024px) {
  .supplier-inner { grid-template-columns: 196px 1fr; gap: 36px; }
  .product-categories { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .industry-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
  .eshop-inner { grid-template-columns: 1fr; gap: 40px; }
  .eshop-brand { justify-content: flex-start; }
  .contact-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: flex; order: 3; }
  .header-email { display: none; }
  .nav-backdrop { display: block; }

  .site-nav {
    position: fixed; top: 0; right: 0; height: 100%; width: 300px; max-width: 86%;
    background: var(--povrch); transform: translateX(100%); visibility: hidden;
    transition: transform .28s ease, visibility .28s ease; z-index: 200;
    padding: 64px 0 24px; display: block; overflow-y: auto;
  }
  .nav-state:checked ~ .site-nav { transform: translateX(0); visibility: visible; }
  .nav-state:checked ~ .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-close { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: 15px 28px; font-size: 17px; color: var(--atrament); }
  .nav-list > li > a::after { display: none; }
  .nav-list > li > a:hover, .nav-list > li > a.active { color: var(--navy); }
  .nav-list > li > a.active { box-shadow: inset 3px 0 0 var(--navy); }
  .nav-eshop { color: var(--modra) !important; }

  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .dropdown {
    display: block; position: static; background: var(--papier);
    min-width: 0; border: none; border-radius: 0;
  }
  .dropdown a { padding: 12px 42px; font-size: 15px; }

  .industry { padding: 56px 0 4px; }
  .partners { padding: 64px 0; }
  .eshop-inner { padding: 64px 0; }
  .page-head { padding: 48px 0 44px; }
  .supplier-section { padding: 56px 0; }
  .supplier-inner { grid-template-columns: 1fr; gap: 26px; }
  .supplier-logo-col { position: static; max-width: 240px; }
  .contact-section { padding: 56px 0; }
  .contact-map { padding-bottom: 56px; }
  .contact-map iframe { height: 340px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

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

/* ==========================================================
   HOMEPAGE — „papier & foto" (svetlý split hero, foto-forward)
   ========================================================== */
.hero-split { background: var(--papier); padding: 64px 0 72px; }
.hero-split-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero-split .eyebrow { color: var(--modra); }
.hero-split h1 { color: var(--navy); font-size: clamp(34px, 4.8vw, 58px); max-width: 15ch; margin-bottom: 20px; }
.hero-split-lead { max-width: 52ch; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: var(--atrament); margin-bottom: 32px; }
.hero-split-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; height: clamp(360px, 36vw, 470px); }
.hero-media figure { margin: 0; height: 100%; overflow: hidden; border: 1px solid var(--linka); border-radius: var(--r-karta); background: var(--linka); }
.hero-media picture { display: block; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.industry-head { max-width: 720px; margin-bottom: 32px; }
.industry-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.industry-head p { color: var(--muted); font-size: 18px; }
.industry-b { padding: 80px 0; }

.eshop-light { background: var(--povrch); border-top: 1px solid var(--linka); border-bottom: 1px solid var(--linka); }
.eshop-light .eshop-inner { padding: 76px 0; }
.eshop-light .eyebrow { color: var(--modra); }
.eshop-light h2 { color: var(--navy); }
.eshop-light p { color: var(--muted); }
.eshop-light .eshop-brand img { width: min(320px, 100%); }

@media (max-width: 860px) {
  .hero-split-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { grid-template-columns: 1fr 1fr; height: auto; }
  .hero-media figure { height: auto; aspect-ratio: 4 / 3; }
}
@media (max-width: 768px) {
  .hero-split { padding: 44px 0 52px; }
  .industry-b { padding: 56px 0; }
  .eshop-light .eshop-inner { padding: 56px 0; }
}
