/* BoomBizz – variant v4 „Mriežka“ (biela, Onest, bento, viditeľné linky) */
:root {
  --navy: #102A3A;
  --navy-deep: #0B1E2B;
  --wine: #941F20;
  --wine-dark: #731718;
  --cream: #F5E8C9;
  --cream-soft: #FAF3E3;
  --bg: #F7F7F5;
  --white: #fff;
  --ink: #16212A;
  --muted: #5F6B74;
  --line: #E4E4DF;
  --line-strong: #CFCFC8;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.1; color: var(--navy); letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--cream); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.35rem; border-radius: var(--r); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .18s, color .18s, border-color .18s; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn--primary { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.btn--primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--line-strong); padding: .55rem 1.1rem; font-size: .95rem; }
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: var(--cream); }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.brand img { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a.is-active { background: var(--bg); }
.nav__cta { margin-left: .8rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Úvod */
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0; border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 1.4rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.hero__tiles li { background: var(--white); }
.hero__tiles a { display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem; padding: 1.3rem; height: 100%; min-height: 150px; text-decoration: none; color: var(--navy); font-weight: 600; transition: background-color .18s; }
.hero__tiles a:hover { background: var(--bg); }
.hero__tiles svg { width: 30px; height: 30px; fill: none; stroke: var(--wine); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero__tiles-tag { grid-column: 1 / -1; background: var(--navy) !important; color: var(--cream); padding: 1rem 1.3rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: .08s; }
  .hero__text > :nth-child(3) { animation-delay: .16s; }
  .hero__tiles li { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__tiles li:nth-child(1) { animation-delay: .2s; }
  .hero__tiles li:nth-child(2) { animation-delay: .28s; }
  .hero__tiles li:nth-child(3) { animation-delay: .36s; }
  .hero__tiles li:nth-child(4) { animation-delay: .44s; }
  .hero__tiles li:nth-child(5) { animation-delay: .52s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Sekcie */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--dark { background: var(--navy); color: var(--cream); border-top: 0 !important; }
.section--dark h2 { color: var(--cream); }
.section--cream { background: var(--cream-soft); }
.section--line { background: var(--bg); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--dark .section__head p { color: rgba(245, 232, 201, .78); }

/* Bento služby */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.cell { background: var(--white); padding: 2rem; display: flex; flex-direction: column; gap: .6rem; min-height: 300px; }
.cell--wide { grid-column: span 2; }
.cell svg { width: 32px; height: 32px; fill: none; stroke: var(--wine); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .8rem; }
.cell p { color: var(--muted); flex: 1; max-width: 56ch; }
.cell .btn { align-self: flex-start; }
.cell--wide h3 { font-size: 1.6rem; }

/* Prečo */
.why { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(245, 232, 201, .2); border: 1px solid rgba(245, 232, 201, .2); border-radius: 16px; overflow: hidden; }
.benefits li { background: var(--navy); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.benefits svg { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* Kroky */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step { border-top: 1px solid var(--navy); padding-top: 1.2rem; }
.step__num { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--wine); margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

/* Cenník – riadky tabuľky */
.plans { border-top: 1px solid var(--navy); }
.plans li { border-bottom: 1px solid var(--line-strong); }
.plans a { display: grid; grid-template-columns: 1.1fr 1.8fr auto; gap: 2rem; align-items: center; padding: 1.4rem .5rem; text-decoration: none; color: var(--ink); transition: background-color .18s; }
.plans a:hover { background: var(--white); }
.plans strong { font-size: 1.15rem; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
.plans span { color: var(--muted); font-size: .98rem; }
.plans em { font-style: normal; font-weight: 600; color: var(--wine); white-space: nowrap; }
.plans__cta { margin-top: 2.5rem; }

/* Referencie */
.refs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.ref-card { display: block; text-decoration: none; color: inherit; background: var(--white); padding: .8rem; transition: background-color .18s; }
.ref-card:hover { background: var(--bg); color: inherit; }
.ref-card__shot { display: block; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }
.ref-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ref-card--noshot .ref-card__shot { display: grid; place-items: center; background: var(--navy); }
.ref-card--noshot .ref-card__shot::after { content: "Otvoriť web"; color: var(--cream); font-weight: 600; font-size: .9rem; }
.ref-card__meta { display: flex; flex-direction: column; padding: .7rem .2rem .1rem; }
.ref-card__name { font-weight: 600; color: var(--navy); font-size: .95rem; }
.ref-card__host { font-size: .8rem; color: var(--muted); }
.refs__more { text-align: center; margin-top: 2rem; }

/* Kontakt */
.contact-cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.contact-cta p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.contact-list { display: flex; flex-direction: column; gap: 1rem; background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; padding: 1.6rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: var(--wine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--wine); }

/* Pätička */
.site-footer { background: var(--navy); color: var(--cream); padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer__brand img { width: 170px; }
.footer__brand p { color: rgba(245, 232, 201, .72); max-width: 36ch; margin-top: 1rem; }
.site-footer h4 { color: var(--cream); margin-bottom: 1rem; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: rgba(245, 232, 201, .85); }
.footer__contact svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #D0605F; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #E0A3A3; text-decoration: underline; }
.footer__links li { margin-bottom: .5rem; }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(245, 232, 201, .18); font-size: .9rem; color: rgba(245, 232, 201, .6); }
.footer__bottom p { margin: 0; }

/* Kontaktná stránka a právne stránky */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.contact-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.form { background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16, 42, 58, .12); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: .4rem 0 1.4rem; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--wine); flex: 0 0 auto; }
.form__status { background: #FBE9E9; color: var(--wine-dark); border: 1px solid #EBC1C1; border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; }
.form__success { background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; padding: 2.4rem; }
.form__success svg { width: 56px; height: 56px; stroke: var(--wine); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aside-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.aside-card h3 { font-size: 1.1rem; }
.aside-card .contact-list { background: transparent; border: 0; padding: 0; margin-top: .8rem; }
.aside-card ol { counter-reset: k; margin: .5rem 0 1.5rem; }
.aside-card ol li { counter-increment: k; display: flex; gap: .7rem; margin-bottom: .6rem; color: var(--muted); }
.aside-card ol li::before { content: counter(k); font-weight: 800; color: var(--wine); }
.legal { max-width: 72ch; padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin-bottom: 1em; }
.legal th, .legal td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); }

/* Responzivita */
@media (max-width: 1100px) { .refs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__in, .why, .contact-cta, .contact-layout, .footer__grid { grid-template-columns: 1fr; }
  .plans a { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .site-header__in { min-height: 72px; }
  .brand img { width: 118px; }
  .menu-btn { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; display: none; }
  .menu-open .nav { display: flex; }
  .nav a:not(.btn) { padding: .8rem .4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: 1rem 0 0; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
  .bento, .benefits, .steps, .form__row { grid-template-columns: 1fr; }
  .refs { grid-template-columns: repeat(2, 1fr); }
  .cell--wide { grid-column: auto; }
  .cell { min-height: 0; padding: 1.5rem; }
  .cell--wide h3 { font-size: 1.3rem; }
  .hero__actions .btn { width: 100%; }
  .hero__tiles a { min-height: 120px; gap: 1.4rem; }
}

/* Právne stránky – pretečenie na mobile */
.legal a { overflow-wrap: anywhere; }
.legal .table-wrap { overflow-x: auto; margin-bottom: 1em; }
.legal .table-wrap table { min-width: 520px; margin: 0; }

/* Portfólio – nastavenie pre tento variant */
.pf { --pf-radius: 12px; --pf-chrome-bg: #F3F3F0; }
.pf__note { margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }
.legal-wide { padding-bottom: clamp(3rem, 6vw, 5rem); }
