/* =========================
   1) CSS CUSTOM PROPERTIES
   ========================= */
:root {
	/* colors */
	--fg: #0b1220;
	--fg-muted: #5b6b7a;
	--bg: #ffffff;
	--brand: #0ea5e9;
	--grey: #f5f5f7;

	/* layout */
	--max: 1120px;
	--space-1: 8px;
	--space-2: 12px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 32px;
	--radius-0: 0px;
	--radius-1: 12px;
	--radius-2: 20px;
	--radius-3: 999px;

	/* effects */
	--ring: 0 0 0 3px rgba(14, 165, 233, .3);
	/* why: jasný, ale neagresívny focus */
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, .05);
}


/* Height utilities */
.h-25 {
	min-height: 25vh;
}

.h-50 {
	min-height: 50vh;
}

.h-75 {
	min-height: 75vh;
}

.h-100 {
	min-height: 100vh;
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0; /* skryté pred spustením */
  transform: translateY(30px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}

.fade-in-up.animate {
  animation: fadeInUp 1.2s ease-out forwards;
}

/* delays */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* =========================
   2) RESET & TYPOGRAPHY
   ========================= */
* {
	box-sizing: border-box
}

html,
body {
	margin: 0;
	padding: 0;
	background-color: var(--brand);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--fg);
	background: var(--bg);
	line-height: 1.2;
	-webkit-text-size-adjust: 100%;
}


img {
	max-width: 100%;
	height: auto;
	display: block
}

a {
	color: var(--brand);
	text-decoration: none
}

a:focus-visible {
	outline: none;
	box-shadow: var(--ring);
	border-radius: 6px
}

h1 {
	font-size: clamp(30px, 4vw, 46px);
	margin: 0 0 var(--space-2);
	font-weight: 700;
	letter-spacing: -.01em;
}

h2 {
	font-size: clamp(26px, 3vw, 36px);
	margin: var(--space-5) 0 var(--space-2);
	font-weight: 600;
}

h3 {
	font-size: clamp(22px, 2.5vw, 26px);
	margin: var(--space-3) 0 var(--space-2);
	font-weight: 500;
}

/* urobí z celej lišty <summary> „klikateľný“ riadok s kurzorom ruky */
details > summary {
  cursor: pointer;
  user-select: none;
}

address {
	font-style: normal;
}


.center {
	text-align: center;
}

.hero {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	/* nie 'top' */
	text-align: center;
	min-height: 50vh;

	/* FARBA POZADIA */
	background-color: var(--grey);

	/* OBRÁZOK POZADIA */
	background-image: url('/img/brand/hero-bg.png');
	background-repeat: no-repeat;
	background-position: center calc(100% + 120px);
	/* “zapustené” o 100px pod spodok */
	background-size: auto 550px;

	position: relative;
}

.grey-section {
	background-color: var(--grey);
}

/* =========================
   3) LAYOUT UTILITIES
   ========================= */
.container {
	max-width: var(--max);
	margin: 0 auto;
	padding: var(--space-4)
}

.grid {
	display: grid;
	gap: var(--space-3)
}

/* responsive grids */
.cards-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cards-3 {
	grid-template-columns: repeat(3, 1fr);
}

.cards-4 {
	grid-template-columns: repeat(4, 1fr);
}

.post-hero {
	display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}

.contact-grid {
  grid-template-columns: 2fr 1fr; /* formulář 2/3, aside 1/3 */
  gap: var(--space-4);
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr; /* na mobile 1 stĺpec */
  }
}

/* =========================
   4) COMPONENTS
   ========================= */
.card {
	padding: var(--space-3);
	background: var(--grey);
	background-size: cover;
	/* posunutie pozadia nadol */
	background-repeat: no-repeat;
	/* zakáže opakovanie */
	transition: transform .2s ease;
	position: relative;
}

.bg-speed {
	background-image: url('/img/brand/optimalizace_rychlosti_webu.png');
	background-position: center calc(100% + 140px);
}

.bg-seo {
	background-image: url('/img/brand/seo-strategie.png');
	background-position: center calc(100% + 100px);
}

.bg-ppc {
	background-image: url('/img/brand/google-ads-a-ppc.png');
	background-position: center calc(100% + 140px);
}

.bg-manage {
	background-image: url('/img/brand/hero-bg.png');
	background-position: center calc(100% + 150px);
}

.bg-ceo {
	background-image: url('/img/brand/ceo.png');
	background-position: center 0%;
  background-size: cover;
}

.bg-sidlo {
	background-image: url('/img/brand/sidlo.png');
	background-position: center calc(100% + 10px);
}

.bg-fakturace {
	background-image: url('/img/brand/fakturace.png');
	background-position: center calc(100% + 10px);
}

.card:hover {
	transform: translateY(-3px)
}

/* why: jemný feedback bez rušenia */

.btn {
	display: inline-block;
	padding: var(--space-2) var(--space-3);
	background: var(--brand);
	color: #fff;
	border-radius: var(--radius-3);
}

.badge {
	font-size: .85rem;
	color: var(--brand);
	background: #e6f6fd;
	padding: 4px 8px;
	border-radius: 999px;
}

/* =========================
   5) HEADER / NAV
   ========================= */
.site-header{
  border-bottom:1px solid #eef2f7;
  backdrop-filter:saturate(180%) blur(10px);
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.8);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:var(--space-4); position:relative;
}

.logo{ display:flex; align-items:center; gap:0; font-weight:700; font-size:33px; letter-spacing:-.02em; transition:letter-spacing .3s ease; }
.logo:hover{ letter-spacing:.03em; }
.logo__icon,.logo svg{ width:22px; height:52px; display:block; color:var(--brand); }

/* Toggle */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1002;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000; /* farba čiar */
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* animácia do „X“ pri otvorenom menu */
.nav--open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav--open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav--open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop */
.nav__backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:1000;
}
.nav--open .nav__backdrop{ opacity:0; pointer-events:auto; }

/* Mobile dropdown (default = zavreté) */
.nav__list{
  list-style:none; margin:0; padding:0;
  position:absolute; left:0; right:0; top:100%;
  background:#fff; border-top:1px solid #e5e7eb;
  max-height:0; overflow:hidden; transition:max-height .28s ease;
  box-shadow:0 10px 30px rgba(0,0,0,.08); z-index:1001;
}
.nav__list li{ border-bottom:1px solid #f1f5f9; }
.nav__list a{ display:block; padding:14px 16px; color:#0b1220; text-decoration:none; }

/* otvorené menu – výška podľa viewportu */
:root{ --header-h:64px; }
.nav--open .nav__list{ max-height:calc(100vh - var(--header-h)); }

/* Desktop */
@media (min-width:768px){
  .nav__toggle{ display:none; }
  .nav__backdrop{ display:none; }
  .nav__list{
    position:static; display:flex; align-items:center; gap:var(--space-4);
    max-height:none; border:0; box-shadow:none; background:transparent;
  }
  .nav__list li{ border:0; }
  .nav__list a{ padding:10px 8px; }
}

/* =========================
   6) FOOTER (update)
   ========================= */
.site-footer { border-top:1px solid #eef2f7; margin-top:var(--space-5); padding:var(--space-4) 0; background:#fff }
.footer__grid { display:grid; gap:var(--space-4); grid-template-columns:1fr; align-items:start }
.footer__col .logo { display:inline-flex; align-items:center}
.footer__title { font-weight:600; margin:.25rem 0 .5rem }
.footer__tag { color:var(--fg-muted); margin:.5rem 0 1rem }
.footer__addr { font-style:normal }
.footer__list { list-style:none; margin:0; padding:0; display:grid; gap:6px }
.footer__cities { max-height:220px; overflow:auto; padding-right:6px }
.footer__bottom { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid #eef2f7 }
.footer__top { text-decoration:none }
.btn.btn--thin { padding:6px 10px; border-radius:10px }

/* >>> Desktop = 4 rovnaké stĺpce */
@media (min-width:960px){
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

/* (voliteľné) jednotný štýl odkazov v zoznamoch */
.footer__addr, .footer__list a { color: var(--fg-muted); text-decoration: none; }
.footer__list a:hover { text-decoration: none; }

/* Badges pod stĺpcami – centrovanie + vertikálny padding */
.footer__badges { text-align:center; padding:24px 0; }
.footer__badges .badges { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; line-height:1.6; }

/* Ak ešte nemáš: malé link-badgy */
.badge--link { background:#e6f6fd; color:var(--brand); border:0px solid #e5e7eb; border-radius:999px; padding:4px 10px; text-decoration:none; display:inline-block; }
.badge--link:hover { filter:brightness(.95); }
.badge--sm { font-size:.700rem; line-height:1; }

.footer__addr {
  font-style: normal;
  line-height: 1.6;
}

.footer__ico {
  margin: 8px 0; /* medzera medzi adresou a IČO/DIČ */
}

.footer__contact {
  margin-top: 8px; /* medzera medzi IČO/DIČ a kontaktmi */
}

/* =========================
   7) HELPERS / A11Y
   ========================= */
.breadcrumbs {
	font-size: .95rem;
	color: var(--fg-muted);
	margin: .5rem 0 1rem
}

[aria-current="page"] {
	text-decoration: underline
}

.skip {
	position: absolute;
	left: -9999px;
	top: auto
}

.skip:focus {
	left: 0;
	top: 0;
	background: #000;
	color: #fff;
	padding: var(--space-2) var(--space-3);
	box-shadow: var(--ring);
	border-radius: 6px
}

/* =========================
   8) RESPONSIVE
   ========================= */
@media (max-width:720px) {
	

	.hero {
		background-size: auto 300px;
		/* menší obrázok */
	}

	.cards-2 {
		grid-template-columns: 1fr;
		/* mobil: vždy 1 stĺpec */
	}

	.cards-3 {
		grid-template-columns: 1fr;
	}

	.cards-4 {
		grid-template-columns: 1fr;
	}

	.full-bleed {
	width:100%;	
    padding: var(--space-4);
}

.ref-swiper::before,
.ref-swiper::after {
	display: none;
}
}

/* =========================
   9) PRINT
   ========================= */
@media print {

	.nav,
	.btn,
	.card {
		box-shadow: none
	}

	a:after {
		content: " (" attr(href) ")";
		font-size: .85em
	}
}

/* =========================
   10) REDUCED MOTION
   ========================= */
@media (prefers-reduced-motion:reduce) {
	* {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important
	}
}


/* =========================
   11) POSTS
   ========================= */
.post-card {
	display: flex;
	flex-direction: column;
	border: 0px solid #e5e7eb;
	overflow: hidden;
	background: var(--grey);
	transition: transform .2s ease, box-shadow .2s ease
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .08)
}

.post-card__img {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden
}

.post-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block
}



.post-card__body {
	padding: 16px
}

.post-hero img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px
}

/* =========================
   12) SLIDER
   ========================= */

/* full width wrapper */
.full-bleed {
	width: 100%;
}

/* slider – povolíme presah, nech môže nav byť mimo */
.ref-swiper {
	position: relative;
	padding: 10px 16px 0;
	/* žiadny bottom padding – nav je mimo */
	overflow: visible;
	/* nech môžeme ísť mimo boxu */
}

/* wrapper bez masky (masku sme zrušili) */
.swiper-wrapper {
	align-items: stretch;
	margin-top: 10px;
}

/* PEVNÝ FADE NA OKRAJOCH VIEWPORTU SLIDERA (nebude sa hýbať) */
.ref-swiper::before,
.ref-swiper::after {
	content: "";
	position: absolute;
	left: auto;
	right: auto;
	top: -12px;
	/* trošku nad rámec, aby prekrýval rádiusy kariet */
	bottom: -12px;
	/* cez celú vizuálnu výšku slidera */
	width: 72px;
	/* šírka fade – uprav podľa potreby */
	pointer-events: none;
	z-index: 3;
}

/* prispôsob farbu pozadiu sekcie (u mňa svetlá šedá). Môžeš nastaviť aj var(--section-bg) */
.ref-swiper::before {
	left: 0;
	background: linear-gradient(90deg, #eef1f4 0%, rgba(238, 241, 244, 0) 100%);
}

.ref-swiper::after {
	right: 0;
	background: linear-gradient(270deg, #eef1f4 0%, rgba(238, 241, 244, 0) 100%);
}

@media (max-width:640px) {

	.ref-swiper::before,
	.ref-swiper::after {
		width: 40px;
	}
}

/* slidy – šírku riadi Swiper cez slidesPerView */
.ref-swiper .swiper-slide {
	width: auto;
}

/* karty */
.ref-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #131822;
	border-radius: 18px;
	padding: 14px;
	text-decoration: none;
	color: #fff;
	box-shadow: var(--shadow-sm);
	transition: transform .25s, box-shadow .25s;
	position: relative;
	z-index: 1;
	/* nech sú pod fade overlaymi */
}

.ref-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, .08)
}



.ref-figure {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #0b0f16;
}

.ref-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	object-fit: cover;
}


/* meta */
.ref-meta {
	display: block;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
}

.ref-title {
	display: block;
	font-size: clamp(18px, 2.5vw, 22px);
	color: var(--brand);
	font-weight: 600;
	letter-spacing: .2px;
}

.ref-tag {
	display: block;
	opacity: .7;
	font-size: .95rem;
}

/* NAVIGÁCIA – MIMO SLIDER, POD NÍM */
.ref-nav {
	position: relative;
	/* už nie absolute v rámci .ref-swiper */
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 18px;
	/* vzdialenosť od slidera */
	z-index: 4;
	/* nad fade */
}

/* bodky */
.swiper-pagination {
	position: static !important;
}

.swiper-pagination-bullet {
	width: 15px!important;
	height: 15px!important;
	margin: 0 4px !important;
	background: #00000022;
	opacity: 1;
}



.swiper-pagination-bullet-active {
	background: #00000066;
}

/* šípky */
.ref-prev,
.ref-next {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0px solid #00000022;
	background: #00000010;
	color: var(--brand);
	display: none;
	place-items: center;
	cursor: pointer;
	transition: .2s;
}

.ref-prev:hover,
.ref-next:hover {
	background: #0000001f;
}

.ref-prev span,
.ref-next span {
	font-size: 20px;
	line-height: 1;
}

/* fokus (a11y) */
.ref-card:focus-visible,
.ref-prev:focus-visible,
.ref-next:focus-visible {
	outline: 2px solid #7aa2ff;
	outline-offset: 2px;
}


/* =====================================
   13) COOKIES
   ===================================== */
.cc-banner{
  position: fixed; inset: auto 0 0 0; z-index: 9999;
  background: #0b1220; color: #fff; transform: translateY(100%);
  transition: transform .25s ease;
  font-size: 14px;
}
.cc-banner.is-visible{ transform: translateY(0); }
.cc-inner{
  max-width: 1120px; margin: 0 auto; padding: 12px 16px;
  display: grid; gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.cc-text a.cc-link{ color: #7dd3fc; text-decoration: underline; }
.cc-actions{ display: flex; gap: 8px; flex-wrap: wrap; }
.cc-btn{ padding: 8px 12px; border-radius: 99px; border: 0; cursor: pointer; }
.cc-accept{ background:var(--brand); color:#fff; }
.cc-reject{ background:#ef4444; color:#fff; }
.cc-reset{ background:var(--fg-muted); color:#fff; }
.cc-settings{ background:var(--grey); color:#000; }

.cc-modal[hidden]{ display:none; }
.cc-modal{
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.5);
  display: grid; place-items: center;
}
.cc-dialog{
  width: min(720px, 92vw);
  background: #fff; color:#0b1220;
  border-radius: 16px; padding: 20px;
  position: relative;
}
.cc-row{ display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.cc-modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top: 16px; }
.cc-close{
  position:absolute; top:10px; right:10px; border:0; background:transparent;
  font-size: 24px; line-height:1; cursor:pointer; color:#64748b;
}
@media (max-width: 640px){
  .cc-inner{ grid-template-columns: 1fr; }
  .cc-actions{ justify-content: flex-start; }
}


/* =====================================
   14) FORMULAR
   ===================================== */
.contact-grid { display:grid; gap: var(--space-4); }
@media (min-width: 960px){
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.contact-card { background:var(--grey); border:0px solid #eef2f7; border-radius:0px; padding:24px; }

/* --- Form --- */
.form { display:grid; gap:16px; }
.field { display:grid; gap:6px; }
.field label { font-weight:600; }
.field .chk { font-weight:400; display:flex; align-items:flex-start; gap:8px; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width:100%;
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:0px;
  background:#fff;
  line-height:1.4;
  transition: box-shadow .18s ease, border-color .18s ease;
}
textarea { resize:vertical; min-height:140px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: var(--ring);
}
.err { color:#c2410c; font-size:.9rem; }

/* --- CTA --- */
.form .actions {
  text-align: right; /* zarovná obsah na pravú stranu */
}

.form .actions .btn { 
  display: inline-block;
  font-size: 16px;
  padding: var(--space-2) var(--space-3);
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-3);
  border: 0;
  cursor: pointer;      /* ručička pri hoveri */
}

/* --- Pravý box (rychlý kontakt) --- */
.contact-aside p { margin:.35rem 0; }

/* --- Flash správy --- */
.alert { border:1px solid #dcfce7; background:#f0fdf4; color:#166534; border-radius:12px; padding:12px 14px; }
.alert--error { border-color:#fee2e2; background:#fef2f2; color:#991b1b; }

/* --- Zrovnanie výšok kariet --- */
.contact-card { display:flex; flex-direction:column; }
.contact-card .form { flex:1; }