/* Dawo Print – verejný web.
   Farby vychádzajú z loga: tmavá modrá, svetlá modrá, biela.
   Svetlý aj tmavý režim sa riadi premennými nižšie. */

@font-face { font-family:'Poppins'; src:url('../fonts/poppins-700.woff') format('woff');
             font-weight:700 900; font-style:normal; font-display:swap; }
@font-face { font-family:'Poppins'; src:url('../fonts/poppins-500.woff') format('woff');
             font-weight:400 600; font-style:normal; font-display:swap; }

:root {
  --ink:      #0F2E5C;
  --ink-2:    #35527C;
  --blue:     #1A56A4;
  --blue-2:   #2E7BD1;
  --sky:      #79BAE8;
  --sky-10:   #E8F3FB;
  --mist:     #F1F6FC;
  --paper:    #FFFFFF;
  --surface:  #FFFFFF;
  --surface-2:#F7FAFD;
  --muted:    #5C7395;
  --line:     #DCE7F3;
  --shadow:   0 1px 2px rgba(15,46,92,.06), 0 8px 24px rgba(15,46,92,.07);
  --shadow-lg:0 2px 6px rgba(15,46,92,.08), 0 22px 50px rgba(15,46,92,.14);
  --grad:     linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);

  --display: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --body:    system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  color-scheme: light;
}

[data-theme="dark"] {
  --ink:      #EEF3FA;
  --ink-2:    #C3D2E6;
  --blue:     #7FB4EE;
  --blue-2:   #9CC8F4;
  --sky:      #79BAE8;
  --sky-10:   #1B2E4E;
  --mist:     #142238;
  --paper:    #0A1322;
  --surface:  #182842;
  --surface-2:#111D32;
  --muted:    #93A9C7;
  --line:     #2C3F60;
  --shadow:   0 1px 2px rgba(0,0,0,.45), 0 10px 26px rgba(0,0,0,.4);
  --shadow-lg:0 4px 10px rgba(0,0,0,.5), 0 26px 60px rgba(0,0,0,.55);
  --grad:     linear-gradient(135deg, #2468C6 0%, #4A96E8 100%);
  color-scheme: dark;
}

/* Tmavý režim: sekcie musia mať od seba odstup, inak sa všetko zleje do jednej modrej. */
[data-theme="dark"] .hero {
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(121,186,232,.28) 0%, transparent 55%),
    radial-gradient(90% 70% at 8% 100%, rgba(74,150,232,.38) 0%, transparent 60%),
    linear-gradient(160deg, #142E5A 0%, #1C4482 58%, #215294 100%);
  border-bottom: 1px solid #2E4F82;
}
[data-theme="dark"] .contact {
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(121,186,232,.22) 0%, transparent 60%),
    linear-gradient(150deg, #142E5A 0%, #1C4482 100%);
  border-top: 1px solid #2E4F82;
}
[data-theme="dark"] .svc, [data-theme="dark"] .faq-item, [data-theme="dark"] .designer-cta-in,
[data-theme="dark"] .contact-form, [data-theme="dark"] .svc-aside, [data-theme="dark"] .svc-cta-in {
  border-color: #33486C;
}
/* v tmavom režime biela verzia loga – lesklé navy logo by na navy pozadí zaniklo */
/* Logo ostáva jedno; na tmavom podklade dostane biele podsvietenie,
   aby tmavomodrý nápis nesplynul s pozadím. */
.brand { position: relative; display: inline-block; }
[data-theme="dark"] .brand img,
[data-theme="dark"] .footer-logo {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px rgba(255,255,255,.85));
}
[data-theme="dark"] .brand::before {
  content: ''; position: absolute; inset: -18% -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), rgba(121,186,232,.12) 55%, transparent 100%);
}
[data-theme="dark"] .topbar { background: color-mix(in srgb, #0E1B31 86%, transparent); border-bottom-color: #2C3F60; }
[data-theme="dark"] .msg-ok  { background: #123526; color: #8BE0B0; }
[data-theme="dark"] .msg-err { background: #3E1B1E; color: #F5A9A4; }
[data-theme="dark"] .svc-hero { background: linear-gradient(180deg, #14264A 0%, var(--paper) 100%); }
[data-theme="dark"] .step-list span { background: #1B2E4E; }
[data-theme="dark"] .filter { background: var(--surface-2); }
[data-theme="dark"] .tile figcaption { color: #A9BCD6; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 7.4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.7rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; max-width: 64ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--blue-2); outline-offset: 2px; border-radius: 6px;
}

/* ---------- hlavička ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 1rem; min-height: 74px; }
.brand { margin-right: auto; }
.brand img { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none;
  position: relative; padding: .3rem 0;
}
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--blue-2); border-radius: 2px; transition: right .25s ease;
}
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta {
  white-space: nowrap;
  background: var(--grad); color: #fff !important; border-radius: 999px;
  padding: .6rem 1.25rem !important; box-shadow: 0 6px 18px rgba(26,86,164,.28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(26,86,164,.34); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; flex: none;
}
.theme-toggle:hover { border-color: var(--blue-2); color: var(--blue); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun  { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
/* hamburger a rozbaľovacie menu na telefóne */
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 0; place-items: center; gap: 4px; flex-direction: column;
}
.nav-burger span { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s ease, opacity .18s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand img { width: 92px; }
  .topbar-in { min-height: 64px; }
  .nav-burger { display: flex; }
  .nav a:not(.nav-cta) {
    display: none;
    position: absolute; left: 0; right: 0;
    background: var(--surface);
  }
  .nav.is-open {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: .4rem 1.25rem 1rem;
  }
  .nav.is-open a:not(.nav-cta) {
    display: block; position: static; padding: .95rem .2rem;
    border-bottom: 1px solid var(--line); font-size: 1.05rem;
  }
  .nav.is-open .nav-cta { margin: .9rem 0 0; text-align: center; }
  .nav.is-open .theme-toggle, .nav.is-open .nav-burger { position: absolute; top: -56px; }
  .nav.is-open .theme-toggle { right: 62px; }
  .nav.is-open .nav-burger { right: 0; }
  .topbar { position: sticky; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(121,186,232,.30) 0%, transparent 55%),
    radial-gradient(90% 70% at 8% 100%, rgba(46,123,209,.42) 0%, transparent 60%),
    linear-gradient(160deg, #0C2247 0%, #123A72 58%, #16468A 100%);
  padding: clamp(2.8rem, 7vw, 5.5rem) 0 0;
}
.hero::before {                      /* rastrový bod ako pri sieťotlači */
  content: ''; position: absolute; inset: 0; opacity: .16; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.1px, transparent 1.2px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(80% 60% at 70% 20%, #000 0%, transparent 72%);
          mask-image: radial-gradient(80% 60% at 70% 20%, #000 0%, transparent 72%);
}
.hero-in { position: relative; z-index: 2; display: grid; gap: 2.2rem; grid-template-columns: 1fr; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .9rem; color: #CFE4F7;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: .35rem .9rem; margin: 0 0 1.1rem;
}
.hero-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7BE0A8; }
.hero h1 { color: #fff; }
.hero .lede { color: #CFE0F2; font-size: 1.14rem; }
.lede { font-size: 1.1rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-mark { justify-self: center; position: relative; }
.hero-mark img {
  width: min(430px, 78vw);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 6px rgba(255,255,255,.9))
          drop-shadow(0 30px 46px rgba(0,0,0,.42));
}
.hero-mark::before {                       /* podsvietenie za logom */
  content: ''; position: absolute; inset: -14% -12% 2% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.34), rgba(121,186,232,.30) 55%, transparent 100%);
}
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.08fr .92fr; gap: 3rem; }
  .hero-mark { justify-self: end; }
}
.badges { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.badges li { display: flex; align-items: center; gap: .5rem; color: #BFD5EC; font-size: .93rem; }
.badges svg { width: 18px; height: 18px; color: var(--sky); flex: none; }
.ribbon { position: relative; z-index: 2; display: block; width: 100%; height: 56px; color: rgba(255,255,255,.55); margin-top: 2.2rem; overflow: visible; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.7rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(26,86,164,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26,86,164,.38); }
.btn-ghost { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.link-danger { color: #D45C57; }

/* ---------- spoločné pre sekcie ---------- */
.section-label {
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  color: var(--blue); margin: 0 0 .5rem;
}
.section-lede { color: var(--ink-2); }

/* ---------- služby ---------- */
.services { padding: clamp(3.2rem, 8vw, 6rem) 0; background: var(--paper); }
.svc-list { display: grid; gap: 1rem; margin-top: 2.2rem; }
.svc {
  display: grid; gap: 1rem; padding: 1.6rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.svc-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(26,86,164,.28);
}
.svc-icon svg { width: 30px; height: 30px; }
.svc h3 { color: var(--ink); margin-bottom: .35rem; }
.svc p { color: var(--ink-2); margin-bottom: .4rem; }
.svc-meta { color: var(--muted); font-size: .9rem; }
@media (min-width: 900px) { .svc-list { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }

/* ---------- galéria ---------- */
.gallery { background: var(--surface-2); padding: clamp(3.2rem, 8vw, 6rem) 0; border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1.9rem; }
.filter {
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.filter:hover { border-color: var(--blue-2); color: var(--blue); }
.filter.is-active { background: var(--grad); border-color: transparent; color: #fff; }

/* galéria: fotky v pôvodnom pomere strán, ukladané do stĺpcov ako mozaika */
.grid { columns: 2; column-gap: .8rem; }
@media (min-width: 620px) { .grid { columns: 3; column-gap: 1.1rem; } }
@media (min-width: 980px) { .grid { columns: 4; } }
.tile { margin: 0 0 1.1rem; break-inside: avoid; }
.tile[hidden] { display: none; }
.tile.is-in { animation: tile-in .4s ease both; }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tile-btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--surface);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.tile-btn img { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1); object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tile-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile-btn:hover img { transform: scale(1.04); }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem .9rem .8rem; text-align: left;
  display: grid; gap: .1rem; color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(11,28,54,.72) 100%);
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.tile-cap strong { font-family: var(--display); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.tile-cap small { font-size: .76rem; color: #CFE0F2; }
.tile-btn:hover .tile-cap, .tile-btn:focus-visible .tile-cap { opacity: 1; transform: none; }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; padding-top: 1.6rem; } }
.filter-n { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; font-size: .72rem; background: rgba(15,46,92,.08); color: inherit; }
.filter.is-active .filter-n { background: rgba(255,255,255,.22); }
.filters-albums { margin-top: -1rem; padding-left: .2rem; }
.filters-albums .filter { font-size: .82rem; padding: .35rem .85rem; border-style: dashed; }
.filters-albums .filter.is-active { border-style: solid; }
.filters-albums::before { content: 'Zákazky:'; align-self: center; font-size: .8rem; color: var(--muted); margin-right: .2rem; }
.tile-album {
  position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem);
  padding: .25rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
  color: #fff; background: rgba(11,28,54,.72); backdrop-filter: blur(4px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-empty { color: var(--muted); margin-top: 1.5rem; }

/* ---------- postup ---------- */
.steps { padding: clamp(3.2rem, 8vw, 6rem) 0; }
.step-list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1.7rem; counter-reset: krok; }
.step-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start; position: relative; }
.step-list span {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sky-10); color: var(--blue); font-family: var(--display);
  font-weight: 800; font-size: 1.2rem; border: 1px solid var(--line);
}
.step-list h3 { margin-bottom: .3rem; }
.step-list p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 2.6rem; }
  .step-list li::after {
    content: ''; position: absolute; top: 26px; left: 62px; right: -2.1rem; height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 14px);
  }
  .step-list li:last-child::after { display: none; }
}

/* ---------- často sa pýtate ---------- */
.faq { padding: clamp(3rem, 7vw, 5rem) 0; background: var(--surface-2); border-block: 1px solid var(--line); }
.faq-list { display: grid; gap: .7rem; margin-top: 1.8rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.2rem;
}
.faq-item summary {
  cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--ink-2); margin: .8rem 0 0; }

/* ---------- kontakt ---------- */
.contact {
  color: #fff; padding: clamp(3.2rem, 8vw, 6rem) 0;
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(121,186,232,.22) 0%, transparent 60%),
    linear-gradient(150deg, #0C2247 0%, #123A72 100%);
}
.contact h2 { color: #fff; }
.contact .lede { color: #CBDDF0; }
.contact-note { color: #90AECE; font-size: .93rem; }
.contact-in { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .contact-in { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-mail { font-family: var(--display); font-weight: 700; font-size: 1.18rem; margin: 1.2rem 0 .4rem; }
.contact-mail a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--sky); }
.contact-mail a:hover { border-bottom-color: #fff; }
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.contact-list a {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem;
  border-radius: var(--r-md); text-decoration: none; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.contact-list a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); transform: translateX(3px); }
.contact-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--sky); }
.contact-list strong { font-family: var(--display); font-weight: 700; }
.contact-list span { display: grid; text-align: left; color: #fff; }
.contact-list em { font-style: normal; color: #A9C6E2; font-size: .85rem; }

.contact-form {
  background: var(--surface); color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.contact-form .check a { color: var(--blue); }
.form-done { text-align: left; }
.form-done h3 { margin: 0 0 .5rem; }

/* ---------- pozvánka do návrhára ---------- */
.designer-cta { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0; }
.designer-cta-in {
  display: grid; gap: 2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.8rem); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .designer-cta-in { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }
.designer-cta-art svg { width: min(340px, 80vw); height: auto; display: block; margin-inline: auto; }
.dc-area { animation: dc-dash 6s linear infinite; }
.dc-dot  { animation: dc-drop 3.6s ease-in-out infinite; transform-origin: 130px 109px; }
@keyframes dc-dash { to { stroke-dashoffset: -52; } }
@keyframes dc-drop { 0%, 100% { transform: scale(1); opacity: .95; } 45% { transform: scale(1.28); opacity: 1; } }

/* ---------- pätička ---------- */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 3.2rem 0 2rem; font-size: .93rem; color: var(--ink-2); }
.footer-in { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 1fr auto; align-items: start; } }
.footer-logo { width: 108px; }
.footer-claim { margin: .9rem 0 0; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-legal { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; margin: 1.6rem 0 0; max-width: none; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.footer-social { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.footer-social a {
  display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: .42rem .85rem;
  color: var(--ink-2); font-size: .85rem; background: var(--surface);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.footer-social a:hover { border-color: var(--blue-2); color: var(--blue); transform: translateY(-1px); }
.footer-social svg { width: 17px; height: 17px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,17,33,.95);
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 1rem;
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; place-items: center; gap: .8rem; }
.lb-figure img { max-height: 82vh; max-width: 100%; border-radius: var(--r-md); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.lb-figure figcaption { color: #C9DCF0; font-size: .9rem; display: grid; gap: .2rem; justify-items: center; text-align: center; max-width: 60ch; }
.lb-figure figcaption strong { color: #fff; font-family: var(--display); font-weight: 700; }
.lb-album { font-size: .8rem; color: var(--sky); }
.lb-figure figcaption p { margin: .2rem 0 0; color: #B5C9E0; font-size: .86rem; }
.lb-nav, .lb-close {
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.7rem; line-height: 1;
}
.lb-nav:hover, .lb-close:hover { background: var(--blue); }
.lb-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.9rem; }
@media (max-width: 620px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-nav { position: fixed; bottom: 1.4rem; }
  .lb-prev { left: 22%; } .lb-next { right: 22%; }
}

/* ---------- textová stránka ---------- */
.page { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.page h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.page ul { color: var(--ink-2); max-width: 64ch; }

/* ---------- formuláre ---------- */
.stack { display: grid; gap: .9rem; }
.stack label { display: grid; gap: .3rem; font-size: .9rem; }
.stack input[type="text"], .stack input[type="email"], .stack input[type="tel"],
.stack input[type="number"], .stack textarea, .stack select {
  font: inherit; padding: .78rem .9rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.stack input:focus, .stack textarea:focus, .stack select:focus {
  border-color: var(--blue-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); outline: none;
}
.stack textarea { resize: vertical; min-height: 118px; }
.stack .opt { color: var(--muted); font-size: .8rem; font-weight: 400; }
.check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem !important; font-size: .88rem; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { border-radius: var(--r-sm); padding: .7rem .9rem; margin: 0; font-size: .9rem; }
.msg-ok  { background: color-mix(in srgb, #2E9E68 16%, var(--surface)); color: #1B7A4B; }
.msg-err { background: color-mix(in srgb, #C0392B 14%, var(--surface)); color: #B03A3A; }
.form-msg { margin: .2rem 0 0; font-size: .88rem; color: var(--ink-2); }
.form-msg.is-ok  { color: #1B7A4B; }
.form-msg.is-err { color: #C4463F; }
[data-theme="dark"] .form-msg.is-ok { color: #6ED39C; }

/* ---------- animácia rezania ---------- */
.cut-line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: cut 5.5s ease-in-out infinite; }
.blade { offset-path: path("M0,48 C220,6 380,64 600,34 C820,4 980,62 1200,22");
         offset-rotate: 0deg; animation: ride 5.5s ease-in-out infinite; }
@keyframes cut  { 0% { stroke-dashoffset: 1600; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes ride { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; }
                  55% { offset-distance: 100%; opacity: 1; } 62%, 100% { offset-distance: 100%; opacity: 0; } }

/* ---------- video na pozadí hero ---------- */
.hero-video { overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: saturate(.9); }
.hero-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,28,58,.94) 0%, rgba(12,34,71,.78) 55%, rgba(26,86,164,.6) 100%);
}

/* ---------- postupné odkrývanie ---------- */
.reveal > * { opacity: 0; transform: translateY(16px); }
.reveal.is-in > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
  .cut-line, .blade, .dc-area, .dc-dot { animation: none; }
  .cut-line { stroke-dashoffset: 0; }
  .reveal > * { opacity: 1; transform: none; }
  .hero-bg { display: none; }
}


/* ---------- stránky služieb ---------- */
.crumbs { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .86rem; padding: .7rem 0; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { margin: 0 .35rem; }

.svc-hero {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(1.8rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, var(--sky-10) 0%, var(--paper) 100%);
}
.svc-hero h1 { font-size: clamp(2rem, 5.4vw, 3.3rem); }
.svc-hero .lede { max-width: 56ch; }
.svc-hero .hero-actions { margin-top: 1.4rem; }

.svc-cols { display: grid; gap: 2rem; }
@media (min-width: 900px) { .svc-cols { grid-template-columns: 1.35fr .65fr; gap: 3.2rem; } }
.svc-text h2 { font-size: 1.55rem; margin-top: 2rem; }
.tick-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; max-width: 62ch; }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; color: var(--ink-2); }
.tick-list li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; margin-top: .22rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center/12px 12px no-repeat,
    var(--grad);
}
.svc-aside {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--shadow); align-self: start;
}
.svc-aside h2 { font-size: 1.15rem; margin-top: 0; }
.mat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.mat-list li { display: grid; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.mat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mat-list strong { font-family: var(--display); font-weight: 700; font-size: .96rem; }
.mat-list span { color: var(--muted); font-size: .9rem; }
.svc-aside-note { font-size: .9rem; color: var(--ink-2); margin: 1.2rem 0 0; }
.svc-more { margin-top: 1.6rem; }
.svc-more a { font-family: var(--display); font-weight: 700; }

.svc-cta { padding: clamp(2.6rem, 7vw, 4.4rem) 0; background: var(--paper); }
.svc-cta-in {
  display: grid; gap: 1.6rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .svc-cta-in { grid-template-columns: 1.3fr auto; } }
.svc-cta-in .hero-actions { margin: 0; }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--blue); }

/* =================== živé prvky domovskej stránky =================== */

/* pás so službami – nekonečný beh */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface-2); }
.marquee-track { display: flex; gap: 2.4rem; width: max-content; padding: .8rem 0; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); display: inline-block; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* hero: mäkké farebné škvrny v pohybe */
.hero-blobs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; }
.hero-blobs i:nth-child(1) { width: 46vw; height: 46vw; left: -12%; top: -20%; background: #3D8AE0; animation: blob 18s ease-in-out infinite; }
.hero-blobs i:nth-child(2) { width: 34vw; height: 34vw; right: -8%; top: 10%; background: #79BAE8; animation: blob 22s ease-in-out -6s infinite reverse; }
.hero-blobs i:nth-child(3) { width: 28vw; height: 28vw; left: 34%; bottom: -30%; background: #1C63BE; animation: blob 26s ease-in-out -12s infinite; }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(6%, 8%) scale(1.08); } 66% { transform: translate(-5%, -6%) scale(.94); } }
.hero::before { transform: translate3d(0, calc(var(--sy, 0) * -.12px), 0); }     /* rastrové body idú pri scrollovaní pomalšie */
.hero-mark { transform: translate3d(0, calc(var(--sy, 0) * .08px), 0); }

/* hlavička sa pri scrollovaní stiahne, hore beží indikátor prečítania */
.topbar { transition: box-shadow .25s ease; }
.topbar.is-compact .topbar-in { min-height: 60px; }
.topbar.is-compact .brand img { width: 86px; }
.topbar.is-compact { box-shadow: 0 6px 24px rgba(15,46,92,.08); }
.topbar-in { transition: min-height .25s ease; }
.brand img { transition: width .25s ease; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: var(--grad); }

/* karty služieb: 3D náklon podľa myši, ikona ožije */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.svc-icon { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.svc:hover .svc-icon { transform: translateZ(30px) rotate(-6deg) scale(1.08); }

/* čísla */
.stats { padding: clamp(2rem, 5vw, 3.4rem) 0; background: var(--paper); }
.stats-in { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .stats-in { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.3rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em;
          background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-2); font-size: .9rem; }

/* náhľad galérie na domovskej stránke */
.gallery-head { display: grid; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
@media (min-width: 760px) { .gallery-head { grid-template-columns: 1fr auto; } }
.btn-n { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: rgba(255,255,255,.22); font-size: .8rem; }
.preview-grid { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
@media (min-width: 720px) { .preview-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; } }
.ptile-g { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ptile-g.is-big { grid-column: span 2; grid-row: span 2; }
.ptile-g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ptile-g:hover img { transform: scale(1.07); }
.ptile-g-cap { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .8rem; color: #fff; display: grid; line-height: 1.25;
               background: linear-gradient(180deg, transparent, rgba(11,28,54,.78)); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.ptile-g-cap strong { font-family: var(--display); font-size: .92rem; }
.ptile-g-cap small { font-size: .74rem; color: #CFE0F2; }
.ptile-g:hover .ptile-g-cap, .ptile-g:focus-visible .ptile-g-cap { opacity: 1; transform: none; }
@media (hover: none) { .ptile-g-cap { opacity: 1; transform: none; } }
.gallery-more { margin: 1.6rem 0 0; text-align: center; }
.gallery-page .grid { margin-top: .4rem; }

/* postup: čiara sa kreslí pri scrollovaní */
@media (min-width: 900px) {
  .step-list li::after { transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1) .25s; }
  .reveal.is-in .step-list li::after { transform: scaleX(1); }
}
.step-list span { transition: transform .3s ease, background .3s ease, color .3s ease; }
.step-list li:hover span { background: var(--grad); color: #fff; transform: scale(1.08); }

/* postupné odkrývanie s odstupom */
.reveal > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-blobs i { animation: none; }
  .hero::before, .hero-mark { transform: none; }
  .tilt:hover { transform: translateY(-4px); }
  .step-list li::after { transform: none; transition: none; }
}


/* galéria – doladenie */
.ptile-g-tag { position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .28rem .6rem; border-radius: 999px;
               font-size: .72rem; font-weight: 600; color: #0F2E5C; background: rgba(255,255,255,.88); backdrop-filter: blur(4px); }
.ptile-g::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15,46,92,.08); pointer-events: none; }
.ptile-g.is-big .ptile-g-cap { opacity: 1; transform: none; }
.ptile-g.is-big .ptile-g-cap strong { font-size: 1.15rem; }
.gallery-preview { background: var(--paper); border-block: 0; }
.gallery-preview .preview-grid { border-radius: var(--r-lg); }
.gallery-page .filters { padding: .35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; display: inline-flex; gap: .2rem; }
.gallery-page .filters .filter { border: 0; background: transparent; }
.gallery-page .filters .filter.is-active { background: var(--grad); color: #fff; }
.gallery-page .filters-albums { display: flex; background: transparent; border: 0; padding: 0; margin-top: -.2rem; }
.gallery-page .filters-albums .filter { border: 1px dashed var(--line); background: var(--surface); }
.gallery-page .filters-albums .filter.is-active { border-style: solid; }
.gallery-page .tile-btn { box-shadow: var(--shadow); }

/* výkon na telefóne: bez rozmazaných škvŕn, blur hlavičky a viacnásobných tieňov */
@media (max-width: 900px) {
  .hero-blobs { display: none; }
  .topbar { backdrop-filter: none; background: var(--paper); }
  .hero-mark img { filter: drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
  .hero::before, .hero-mark { transform: none !important; }
  .ptile-g-tag { backdrop-filter: none; }
  .tile-btn img, .ptile-g img { transition: none; }
  .services, .designer-cta, .gallery, .steps, .faq, .contact, .stats { content-visibility: auto; contain-intrinsic-size: 1px 900px; }
}

/* zdieľanie z lightboxu */
.lb-share { display: flex; gap: .5rem; justify-content: center; margin-top: .8rem; flex-wrap: wrap; }
.lb-share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
                background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: .84rem; cursor: pointer; text-decoration: none; }
.lb-share-btn:hover { background: rgba(255,255,255,.2); }
.lb-share-btn svg { width: 16px; height: 16px; }
