/* ═══════════════════════════════════════════════════════
   corptech.sk – Main Stylesheet
   Design: light, Poppins, teal accent
═══════════════════════════════════════════════════════ */

:root {
  --ink:        #1c2326;
  --slate:      #5b6972;
  --slate-soft: #7d8a91;
  --teal:       #5d7f89;
  --teal-dark:  #4a6873;
  --bg:         #ffffff;
  --bg-soft:    #f4f6f8;
  --bar:        #5e7787;
  --line:       #e3e8ec;
  --radius:     16px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.2; margin: 0; }

/* eyebrow + section head */
.eyebrow, .section-label {
  font-size: 13px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 14px;
  display: block;
}
.section-head, .section-header { margin-bottom: 48px; max-width: 820px; }
.section-header { text-align: center; max-width: 100%; }
.section-head h2, .section-header h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head .rule { width: 64px; height: 4px; background: var(--teal); border-radius: 4px; margin-top: 18px; }
.section-head p, .section-header p { margin: 18px 0 0; font-size: 18px; color: var(--slate); }

section { padding: 96px 0; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }

/* ─── Header ──────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap,
.site-header .nav-container { display: flex; align-items: center; justify-content: space-between; height: 108px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.site-header .logo img,
.site-header .nav-logo img { height: 96px; width: auto; }
.nav { display: flex; gap: 34px; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav a,
.nav-links a {
  text-decoration: none; color: var(--slate); font-size: 15px; font-weight: 500;
  position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav a::after,
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--teal); transition: width .25s var(--ease);
}
.nav a:hover, .nav-links a:hover { color: var(--ink); }
.nav a:hover::after, .nav-links a:hover::after { width: 100%; }
.nav-links .nav-cta {
  background: var(--teal); color: #fff; padding: 8px 20px; border-radius: 999px;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--teal-dark); color: #fff; }
.nav-toggle { display: none; }

/* ─── Hero ────────────────────────────────────────── */
.hero {
  position: relative; padding: 0; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.18) 100%),
    url("/images/hero-bg.png") center/cover no-repeat;
}
.hero .wrap,
.hero .hero-inner {
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center;
  min-height: 600px; padding-top: 80px; padding-bottom: 96px;
}
.hero-quote { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; color: var(--ink); line-height: 1.32; }
.hero-quote .accent { color: var(--teal); }
.hero-lead { margin-top: 26px; font-size: 18px; max-width: 520px; color: var(--slate); }
.hero-text { }
.hero-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.portrait {
  width: 260px; height: 260px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--teal); box-shadow: 0 18px 40px rgba(40,60,75,.22);
}
.hero-card .name { margin-top: 22px; font-size: 22px; font-weight: 700; color: var(--ink); }
.hero-card .role { font-size: 15px; color: var(--slate-soft); letter-spacing: .02em; }
.hero-bar { height: 14px; background: linear-gradient(90deg, var(--bar), #6f8a97); }

/* ─── Services ────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card, .card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 34px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section-alt .service-card, .section-alt .card { background: #fff; }
.service-card:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40,60,75,.10); }
.service-icon { width: 52px; height: 52px; margin-bottom: 20px; }
.service-icon img { width: 52px; height: 52px; filter: invert(43%) sepia(22%) saturate(500%) hue-rotate(155deg) brightness(85%); }
.card .ico {
  width: 52px; height: 52px; color: var(--teal); stroke-width: 1.7; margin-bottom: 20px;
}
.service-card h3, .card h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.service-card p, .card p { color: var(--slate); margin: 0; }
.card .intro { color: var(--teal-dark); font-weight: 500; margin: 0 0 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { position: relative; padding-left: 22px; margin-bottom: 14px; color: var(--slate); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--teal);
}
.feature-list b { color: var(--ink); font-weight: 600; }

/* ─── Prečo my ───────────────────────────────────── */
.why-intro { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); font-weight: 500; max-width: 880px; margin: 0 0 56px; }
.why-intro .accent { color: var(--teal); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { text-align: center; }
.pillar .badge {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
}
.pillar .badge svg { width: 32px; height: 32px; stroke-width: 1.8; }
.pillar h3 { font-size: 20px; margin-bottom: 12px; }
.pillar p { margin: 0; color: var(--slate); }
.pillar-contact { display: block; margin-top: 40px; }

/* ─── About (CEO quote) ──────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text .section-label { margin-bottom: 16px; }
.about-text h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 20px; color: var(--ink); }
.about-text p { color: var(--slate); margin-bottom: 16px; }
.stats-row { display: flex; gap: 40px; margin-top: 40px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 36px; font-weight: 700; color: var(--teal); line-height: 1; }
.stat-label { font-size: 13px; color: var(--slate-soft); margin-top: 6px; }
.quote-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--line);
}
.quote-icon { font-size: 60px; color: var(--teal); line-height: 1; margin-bottom: 16px; font-family: Georgia, serif; }
blockquote { font-size: 18px; font-style: italic; color: var(--ink); margin: 0 0 24px; line-height: 1.6; }
.quote-author { display: flex; align-items: center; gap: 16px; }
.author-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal); }
.quote-author strong { display: block; color: var(--ink); font-weight: 600; }
.quote-author span { font-size: 14px; color: var(--slate-soft); }

/* ─── Partners carousel ──────────────────────────── */
.partners-track-wrapper {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}
.partners-track {
  display: flex; width: max-content;
  animation: scroll-partners 30s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partners-slide { display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.partner-logo {
  height: 105px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 24px; box-shadow: 0 4px 16px rgba(40,60,75,.10);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.partner-logo:hover { box-shadow: 0 8px 28px rgba(40,60,75,.18); transform: translateY(-3px); border-color: var(--teal); }
.partner-logo img { max-height: 88px; max-width: 245px; width: auto; object-fit: contain; filter: grayscale(1) brightness(0.44); transition: filter .3s; }
.partner-logo:hover img { filter: grayscale(0) brightness(1); }
@keyframes scroll-partners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── References ─────────────────────────────────── */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.partner { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.partner .logo-box {
  height: 96px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 14px; transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.partner a.logo-box:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(40,60,75,.10); }
.partner .logo-box img { max-height: 64px; width: auto; object-fit: contain; }
.partner h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.partner p { margin: 0; font-size: 15px; color: var(--slate); }
.references-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ref-logo {
  height: 130px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 14px; overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.ref-logo:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(40,60,75,.08); }
a.ref-logo { text-decoration: none; cursor: pointer; }
.ref-logo img { max-height: 50px; max-width: 100%; width: 100%; height: 100%; object-fit: contain; filter: grayscale(.4); transition: filter .2s; }
.ref-logo:hover img { filter: grayscale(0); }

/* ─── Blog preview ───────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40,60,75,.10); }
.blog-card-img { display: block; height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 28px; }
.blog-date { font-size: 13px; color: var(--slate-soft); font-weight: 500; letter-spacing: .04em; }
.blog-card-body h3 { font-size: 18px; margin: 10px 0 12px; }
.blog-card-body h3 a { color: var(--ink); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--teal); }
.blog-card-body p { font-size: 15px; color: var(--slate); margin: 0 0 20px; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none;
  transition: gap .2s;
}
.read-more:hover { gap: 10px; }
.section-footer { text-align: center; margin-top: 48px; }

/* ─── Blog listing page ──────────────────────────── */
.page-hero { padding: 64px 0 56px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); color: var(--ink); margin: 12px 0 16px; }
.page-hero p { font-size: 18px; color: var(--slate); margin: 0; max-width: 540px; }
.page-hero-content { max-width: 720px; }
.blog-listing { padding: 80px 0; }
.blog-list { display: flex; flex-direction: column; gap: 48px; }
.blog-row { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: flex-start; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.blog-row:last-child { border-bottom: none; padding-bottom: 0; }
.blog-row-img { display: block; border-radius: 12px; overflow: hidden; height: 160px; }
.blog-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-row-img:hover img { transform: scale(1.04); }
.blog-row-img--empty { background: var(--bg-soft); display: grid; place-items: center; border: 1px solid var(--line); }
.blog-row-img--empty svg { color: var(--slate-soft); }
.blog-row-title { font-size: 22px; margin: 10px 0 12px; color: var(--ink); }
.blog-row-title a { color: inherit; text-decoration: none; }
.blog-row-title a:hover { color: var(--teal); }
.blog-row-excerpt { color: var(--slate); font-size: 15px; margin: 0 0 16px; }
.empty-state { text-align: center; padding: 80px 0; color: var(--slate-soft); font-size: 18px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.page-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--slate); transition: border-color .2s, color .2s, background .2s;
}
.page-btn:hover, .page-btn.active { border-color: var(--teal); background: var(--teal); color: #fff; }

/* ─── Post article ───────────────────────────────── */
.post-article { padding: 0; }
.post-hero {
  height: 420px; background-size: cover; background-position: center; position: relative;
  display: flex; align-items: flex-end;
}
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,35,38,.9) 40%, rgba(28,35,38,.3)); }
.post-hero-content { position: relative; z-index: 1; padding-bottom: 48px; color: #fff; }
.post-hero-content h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin: 12px 0 0; }
.post-hero-content .post-lead { color: rgba(255,255,255,.8); font-size: 18px; margin-top: 12px; }
.page-hero--post { padding: 64px 0 48px; }
.page-hero--post h1 { font-size: clamp(28px, 4vw, 44px); color: var(--ink); margin: 12px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; text-decoration: none; }
.post-hero-content .back-link:hover { color: #fff; }
.page-hero--post .back-link { color: var(--teal); }
.page-hero--post .back-link:hover { color: var(--teal-dark); }
.post-meta time { font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; }
.page-hero--post .post-meta time { color: var(--slate-soft); }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 64px; padding: 64px 0 80px; }
.post-body { color: var(--slate); line-height: 1.8; font-size: 17px; }
.post-body h1, .post-body h2, .post-body h3 { color: var(--ink); margin: 2em 0 .8em; }
.post-body h2 { font-size: clamp(22px, 2.5vw, 28px); }
.post-body h3 { font-size: 20px; }
.post-body p { margin: 0 0 1.4em; }
.post-body img { border-radius: var(--radius); margin: 2em 0; box-shadow: 0 8px 32px rgba(40,60,75,.10); }
.post-body a { color: var(--teal); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 1.4em; }
.post-body li { margin-bottom: .5em; }
.post-footer { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-sidebar { }
.sidebar-widget {
  background: var(--bg-soft); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); margin-bottom: 24px;
}
.sidebar-widget h3 { font-size: 16px; margin-bottom: 12px; color: var(--ink); }
.sidebar-widget p { font-size: 14px; color: var(--slate); margin: 0 0 16px; }
.sidebar-phone, .sidebar-email { display: block; font-weight: 600; color: var(--teal); text-decoration: none; font-size: 15px; margin-top: 8px; }
.sidebar-phone:hover, .sidebar-email:hover { color: var(--teal-dark); }
.related-posts { list-style: none; padding: 0; margin: 0; }
.related-posts li { margin-bottom: 12px; }
.related-posts a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.related-posts a:hover { color: var(--teal); }
.related-posts img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

/* ─── Contact ─────────────────────────────────────── */
.contact { background: var(--bg-soft); }
.contact h2 { font-size: clamp(24px, 3vw, 34px); }
.contact .lead { margin: 16px 0 0; max-width: 640px; color: var(--slate); }
.contact-company {
  margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
}
.contact-company strong { font-size: 20px; font-weight: 600; color: var(--ink); }
.contact-company span { font-size: 15px; color: var(--slate); }
.contact-row {
  margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 18px;
}
.contact-item {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 26px; color: var(--ink); font-weight: 500;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.contact-item:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 10px 24px rgba(40,60,75,.10); }
.contact-item svg { width: 22px; height: 22px; color: var(--teal); stroke-width: 1.8; flex-shrink: 0; }
.contact-item span small { display: block; font-size: 12px; color: var(--slate-soft); font-weight: 500; letter-spacing: .08em; }
/* Full contact grid (with form) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info .contact-item { border-radius: var(--radius); justify-content: flex-start; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon img, .contact-icon svg { width: 28px; height: 28px; color: var(--teal); }
.contact-info .contact-item > div strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 4px; }
.contact-info .contact-item > div span, .contact-info .contact-item > div a { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.contact-info .contact-item > div a:hover { color: var(--teal); }
.contact-reg-group { display: flex; flex-direction: column; gap: 4px; }
.copy-wrap { cursor: pointer; position: relative; }
.copy-toast {
  position: absolute; bottom: calc(100% + 6px); left: 0; background: var(--ink);
  color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 6px; opacity: 0;
  pointer-events: none; transition: opacity .2s; white-space: nowrap;
}
.copy-toast.show { opacity: 1; }
.contact-form-wrap { }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.form-group input, .form-group textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(93,127,137,.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--slate-soft); }

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: inherit; font-size: 15px; font-weight: 600; border-radius: 999px;
  padding: 13px 28px; cursor: pointer; border: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(93,127,137,.3); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(40,60,75,.08); }
.btn-full { width: 100%; justify-content: center; border-radius: 10px; }
.btn-sm { font-size: 13px; padding: 9px 18px; }

/* ─── Footer ──────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 6px 0; }
.site-footer .wrap, .site-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer img { height: 96px; width: auto; }
.site-footer p, .footer-bottom { margin: 0; font-size: 14px; color: var(--slate-soft); }
/* Multi-column footer (blog/post pages) */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-brand img, .footer-logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--slate-soft); margin: 0; }
.footer-links h4, .footer-contact h4 { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--slate); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-contact p { font-size: 14px; color: var(--slate); margin-bottom: 8px; }
.footer-contact a { display: block; font-size: 14px; color: var(--teal); text-decoration: none; margin-bottom: 4px; }
.footer-contact a:hover { color: var(--teal-dark); }

/* ─── Scroll to top ──────────────────────────────── */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--teal); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 300; pointer-events: none;
  box-shadow: 0 4px 16px rgba(40,60,75,.18);
}
#scrollTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scrollTop svg { width: 20px; height: 20px; }

/* ─── Reveal / AOS animation ─────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .references-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero .wrap, .hero .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; min-height: 0; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-card { order: -1; }
  .cards, .partners { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-row { grid-template-columns: 1fr; }
  .blog-row-img { height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .references-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Header – kompaktnejší na tablete/mobile */
  .site-header .wrap,
  .site-header .nav-container { height: 72px; }
  .site-header .logo img,
  .site-header .nav-logo img { height: 60px; }

  /* Hamburger menu */
  .nav, .nav-links { display: none; }
  .nav.open, .nav-links.open {
    display: flex; position: absolute; top: 100%; right: 0;
    width: fit-content; min-width: max-content;
    flex-direction: column; gap: 0; background: #fff;
    border: 1px solid var(--line); border-top: none;
    border-radius: 0 0 12px 12px; z-index: 200;
    box-shadow: 0 8px 24px rgba(40,60,75,.12);
  }
  .nav.open a, .nav-links.open li a {
    padding: 18px 24px; border-bottom: 1px solid var(--line);
    display: block; font-size: 16px; font-weight: 500;
  }
  .nav-links.open .nav-cta {
    border-radius: 0; padding: 18px 24px;
    background: var(--teal); color: #fff; text-align: center;
  }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  section, .section { padding: 56px 0; }
  .section-head, .section-header { margin-bottom: 32px; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero .wrap, .hero .hero-inner { padding-top: 40px; padding-bottom: 48px; }
  .portrait { width: 200px; height: 200px; }

  /* Kontakt – pills na plnú šírku */
  .contact-row { flex-direction: column; align-items: stretch; }
  .contact-item { width: 100%; border-radius: var(--radius); }

  /* Footer */
  .site-footer .wrap,
  .site-footer .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .site-footer img { height: 64px; }

  /* Partner reference logos */
  .partner { grid-template-columns: 1fr; text-align: center; }
  .partner .logo-box { max-width: 220px; margin: 0 auto; }

  /* Blog listing */
  .page-hero { padding: 40px 0 32px; }
  .post-layout { padding: 40px 0 56px; }
}

@media (max-width: 480px) {
  section, .section { padding: 44px 0; }
  .wrap, .container { padding: 0 16px; }

  /* Portrait */
  .portrait { width: 160px; height: 160px; border-width: 4px; }

  /* Karty */
  .service-card, .card { padding: 24px 20px; }

  /* Referencie */
  .references-grid { gap: 12px; }
  .ref-logo { height: 100px; }

  /* Partneri carousel */
  .partner-logo { height: 80px; padding: 10px 14px; }
  .partner-logo img { max-height: 56px; max-width: 140px; }

  /* Kontakt */
  .contact-item { padding: 12px 18px; }

  /* Prečo my */
  .why-intro { font-size: 18px; margin-bottom: 40px; }

  /* Blog */
  .blog-row-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-aos] { opacity: 1; transform: none; transition: none; }
  .partners-track { animation: none; }
}
