/* vodar-kurenar.sk – štýly */

:root {
  --blue: #004488;
  --blue-700: #00366c;
  --blue-50: #eaf2fa;
  --accent: #f08a24;
  --accent-700: #d6721a;
  --ink: #14202e;
  --muted: #5b6878;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 35, 60, .25);
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 .6em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-700);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-sm { padding: .55em 1.1em; font-size: .95rem; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-700); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue);
}
.brand-mark svg { width: 22px; height: 22px; fill: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { color: var(--muted); font-size: .8rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--blue); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 640px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--blue-700);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
  filter: blur(1px); transform: scale(1.03);
}
.hero-bg img.is-active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,40,85,.92) 0%, rgba(0,50,100,.75) 50%, rgba(0,50,100,.35) 100%);
}
.hero-in { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero .eyebrow { color: #ffc58a; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16em; margin-bottom: .4em; }
.hero h1 span { color: #ffc58a; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; opacity: .92; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
/* Rolovanie obrázkov v karte */
.card-media { position: relative; aspect-ratio: 400 / 260; background: var(--bg-alt); }
.slides {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(20, 32, 46, .3); transition: width .3s, background .3s;
}
.dots button[aria-current="true"] { width: 22px; background: var(--accent); }
.dots button::after { content: ""; position: absolute; inset: -8px; } /* väčšia klikacia plocha */
.dots button { position: relative; }
.card-body { padding: 24px 26px 28px; }
.card h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .15em; font-size: 1.4rem; }
.card-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1em; }

.ico {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-50);
}
.ico svg { width: 20px; height: 20px; fill: var(--blue); }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 1.7em; margin-bottom: .45em; font-size: .98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 1.05em; height: 1.05em; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%23fff'/%3E%3C/svg%3E") center/75% no-repeat;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: #fff; border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted); }

.contact-big {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem;
  transition: border-color .2s, background .2s;
  overflow-wrap: anywhere;
}
.contact-big:hover { border-color: var(--blue); background: var(--blue-50); }
.contact-big .ico { width: 46px; height: 46px; }
.contact-big small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }

.company { font-style: normal; margin-top: 24px; color: var(--muted); font-size: .95rem; }
.company strong { color: var(--ink); }

.form {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 36px);
}
.form h3 { font-size: 1.4rem; margin-bottom: 1em; }
.field { margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: .75em .9em;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #c8d2dd; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,68,136,.15); }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c62828; }
.field-error { margin: 5px 0 0; font-size: .85rem; color: #c62828; min-height: 0; }
.field-error:empty { display: none; }

.form-status {
  margin-bottom: 18px; padding: 14px 16px 14px 46px; border-radius: 10px;
  font-weight: 600; position: relative;
}
.form-status::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 50%;
  background: currentColor center/70% no-repeat;
}
.form-status.is-success { background: #e7f6ec; color: #1b6e36; border: 1px solid #b8e2c5; }
.form-status.is-success::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z' fill='%23fff'/%3E%3C/svg%3E");
}
.form-status.is-error { background: #fdecea; color: #a52222; border: 1px solid #f3c2bd; }
.form-status.is-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 6h2v8h-2zm0 10h2v2h-2z' fill='%23fff'/%3E%3C/svg%3E");
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn:disabled { opacity: .75; cursor: progress; transform: none; }
.spinner {
  display: none; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { background: var(--ink); color: #b9c4d0; padding: 32px 0; font-size: .92rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-in p { margin: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Floating call button (mobile) */
.call-fab {
  display: none;
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  place-items: center;
}
.call-fab svg { width: 26px; height: 26px; fill: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .cards, .steps { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
  .call-fab { display: grid; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

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