/* ===== Alternatíva 1: „zákazkový list“ =====
   Farby: papier, atrament a modrá ako z guľôčkového pera.
   Farbu akcentu zmeníš v premennej --blue. */
:root {
  --paper: #EEF0F2;
  --paper-2: #E2E6EA;
  --white: #FFFFFF;
  --ink: #0F1419;
  --ink-2: #3A4550;
  --line: #C9D0D7;
  --blue: #1F3BEA;
  --blue-deep: #1830C4;
  --blue-soft: #D6DCFF;
  --on-dark: #E7EBEF;
  --on-dark-2: #9EA9B5;
  --on-dark-line: rgba(231, 235, 239, .14);
  --link-dark: #9DB0FF;
  --live: #3BD07E;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header: 68px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--blue);
  scrollbar-color: var(--ink-2) var(--paper-2);
}
::selection { background: var(--blue); color: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ===== Typografia ===== */
.h2 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: .95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sec-head { display: grid; gap: 20px; max-width: 720px; margin-bottom: 56px; }
.sec-head p { color: var(--ink-2); font-size: 19px; max-width: 54ch; }

/* ===== Tlačidlá ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 17px; font-stretch: 105%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Pečiatka: ako na zákazkovom liste */
.stamp {
  display: inline-flex; align-items: center;
  padding: 3px 10px 4px;
  border: 2px solid currentColor; border-radius: 6px;
  color: var(--blue);
  font-size: 12px; font-weight: 800; font-stretch: 115%;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.4;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.stamp--light { color: var(--link-dark); }

/* ===== Hlavička ===== */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: var(--header); }
.mark {
  font-weight: 800; font-stretch: 118%; font-size: 19px; letter-spacing: -0.02em;
  text-decoration: none; margin-right: auto;
}
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--blue); text-decoration: underline; }
.burger { display: none; }

/* ===== Úvod ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - var(--header));
  padding-top: clamp(32px, 5vh, 64px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero__title {
  font-size: clamp(44px, 5.8vw, 88px);
  font-weight: 800;
  font-stretch: 110%;
  line-height: .94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--blue); }
.hero__lead { margin-top: 28px; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.hero__show { min-width: 0; }
.hero__cap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 22px; font-size: 15px; color: var(--ink-2);
}
.hero__cap a { color: var(--ink); font-weight: 600; }
.hero__cap a:hover { color: var(--blue); }

.js .hero__show { animation: rise 1.1s var(--ease) both .1s; }
@keyframes rise { from { transform: translateY(28px) scale(.985); } }

/* ===== Postupné objavovanie textov (triedy pridáva script.js) =====
   Používa vlastnosť translate, aby sa nebila s transform (napr. naklonené pečiatky). */
.js .hero__title, .js .hero__lead, .js .hero__cta, .js .hero__cap { opacity: 0; translate: 0 26px; }
.no-anim .reveal { transition: none !important; }
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s ease, translate .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ===== Okno prehliadača s náhľadom webu ===== */
.browser {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 40px 80px -30px rgba(15, 20, 25, .45), 0 2px 8px rgba(15, 20, 25, .08);
}
.browser__bar {
  display: flex; align-items: center; gap: 14px;
  height: 40px; padding: 0 14px;
  background: #E4E8EC;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #C3CAD1; }
.url {
  flex: 1; max-width: 340px; margin-inline: auto;
  padding: 3px 12px; border-radius: 6px;
  background: var(--white); color: var(--ink-2);
  font-size: 12.5px; text-align: center;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.browser__view img { width: 100%; will-change: transform; }

/* Úvod: web sa posúva sám (riadi to script.js) */

/* Projekty: posun po prejdení myšou */
.browser--hover { cursor: ns-resize; }
/* nadol pomaly, späť rýchlo */
.browser--hover .browser__view img { transition: transform 1.2s cubic-bezier(.45, 0, .25, 1); }
.browser--hover:hover .browser__view img,
.browser--hover:focus-visible .browser__view img { transform: translateY(var(--shift, 0px)); transition-duration: var(--hover-dur, 6s); }
.browser__hint {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  pointer-events: none;
  transition: opacity .3s ease;
}
.browser--hover:hover .browser__hint, .browser--hover:focus-visible .browser__hint { opacity: 0; }

@media (hover: none) {
  .browser__hint { display: none; }
  .browser--hover { cursor: auto; }
  .browser--hover .browser__view img { transition: none; }
}

/* Telefón */
.phone {
  position: absolute; right: -32px; bottom: -40px;
  width: 22%; min-width: 108px;
  border: 7px solid #05080B; border-radius: 30px;
  overflow: hidden; background: #05080B;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6);
}
.phone img { border-radius: 22px; aspect-ratio: 9 / 18.5; object-fit: cover; object-position: top; }

/* ===== Práce ===== */
.work {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(80px, 11vw, 140px) 0;
}
.work ::selection { background: var(--link-dark); color: var(--ink); }
.work__head { display: grid; gap: 20px; max-width: 720px; }
.work__head p { color: var(--on-dark-2); font-size: 19px; }

.job {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(72px, 9vw, 120px);
}
.job--flip .job__sheet { order: 2; }
.job--flip .phone { right: auto; left: -32px; }
.job__sheet { display: grid; gap: 22px; justify-items: start; }
.job__title {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 800; font-stretch: 112%;
  line-height: .98; letter-spacing: -0.03em;
}
.job__story { color: var(--on-dark-2); font-size: 18px; max-width: 48ch; }
.fields { width: 100%; border-top: 1px solid var(--on-dark-line); }
.fields div {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--on-dark-line);
}
.fields dt {
  font-size: 12.5px; font-weight: 700; font-stretch: 112%;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-2); padding-top: 3px;
}
.fields dd { font-size: 16px; }
.live {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--live);
  vertical-align: 1px;
}
.arrow-link {
  font-weight: 700; font-size: 18px; color: var(--link-dark);
  text-decoration: underline; text-decoration-thickness: 2px;
}
.arrow-link:hover { color: var(--white); }
.job__fine { font-size: 13.5px; color: var(--on-dark-2); max-width: 48ch; }
.job__media { position: relative; min-width: 0; padding-bottom: 36px; }

.next {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 24px 48px; align-items: center;
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(28px, 4vw, 48px);
  border: 2px dashed var(--on-dark-line);
  border-radius: 16px;
}
.next__title {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800; font-stretch: 110%;
  line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.next__text { color: var(--on-dark-2); }

/* ===== Cenník ===== */
.prices { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); }
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start;
  padding-top: 32px; border-top: 2px solid var(--ink);
}
.plan {
  padding: 28px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 20px 40px -24px rgba(15, 20, 25, .25);
}
.plan--pick { box-shadow: 0 0 0 2px var(--blue), 0 24px 48px -24px rgba(31, 59, 234, .35); }
.plan__head { padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.plan__name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  font-size: 30px; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1;
}
.plan__for { margin-top: 8px; color: var(--ink-2); }
.plan__price {
  margin-top: 24px;
  font-size: clamp(44px, 4.4vw, 60px); font-weight: 800; font-stretch: 105%;
  letter-spacing: -0.03em; line-height: 1;
}
.plan--pick .plan__price { color: var(--blue); }
.plan__vat { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* Rozbaľovacie odrážky */
.inc__item + .inc__item { border-top: 1px solid var(--line); }
.inc__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; padding: 10px 0;
  border: 0; background: none; color: var(--ink);
  font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  transition: color .2s ease;
}
.inc__toggle span { position: relative; padding-left: 26px; }
.inc__toggle span::before {
  content: ''; position: absolute; left: 2px; top: .45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.inc__toggle:hover { color: var(--blue); }
.inc__icon {
  flex: none; width: 16px; height: 16px;
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round;
  transition: transform .35s var(--ease);
}
.inc__toggle[aria-expanded="true"] .inc__icon { transform: rotate(45deg); }
.inc__panel p { padding: 0 28px 16px 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
/* Bez JavaScriptu ostanú popisy rozbalené */
.js .inc__panel {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .4s var(--ease), opacity .25s ease, visibility 0s linear .4s;
}
.js .inc__toggle[aria-expanded="true"] + .inc__panel {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows .4s var(--ease), opacity .35s ease .05s, visibility 0s;
}
.inc__panel > div { min-height: 0; overflow: hidden; }

/* Správa webu */
.care {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 48px; align-items: start;
  margin-top: 20px; padding: 28px;
  background: var(--paper-2); border-radius: 14px;
}
.care__price { margin-top: 16px; font-size: 36px; font-weight: 800; font-stretch: 105%; letter-spacing: -0.02em; line-height: 1; }
.care__price span { font-size: 18px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.inc--care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.inc--care .inc__item { border-top: 0; border-bottom: 1px solid var(--line); }

.prices__help {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.prices__help p { font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; max-width: 46ch; }

/* ===== Postup ===== */
.steps-sec { background: var(--paper-2); padding: clamp(80px, 11vw, 140px) 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps__n {
  display: block; margin-bottom: 18px;
  font-size: 56px; font-weight: 800; font-stretch: 120%; line-height: 1;
  color: var(--blue);
}
.steps h3 { font-size: 22px; font-weight: 700; font-stretch: 108%; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

/* ===== O mne ===== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(80px, 11vw, 140px);
  padding-bottom: clamp(80px, 11vw, 140px);
}
.about__photo {
  aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end;
  padding: 28px;
  background: var(--blue); color: var(--white);
  border-radius: 16px;
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo:has(img) { padding: 0; }
.about__photo span {
  font-size: clamp(48px, 7vw, 96px); font-weight: 800; font-stretch: 120%;
  line-height: .9; letter-spacing: -0.04em;
}
.about__text { display: grid; gap: 20px; }
.about__text .h2 { margin-bottom: 8px; }
.about__lead { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }
.about__text > p:not(.about__lead) { color: var(--ink-2); max-width: 60ch; }
.skills { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.skills li { font-weight: 700; font-stretch: 108%; }
.skills li:not(:last-child)::after { content: '/'; margin: 0 14px; color: var(--line); font-weight: 400; }

/* ===== Kontakt ===== */
.contact { background: var(--blue); color: var(--white); padding: clamp(80px, 11vw, 140px) 0; }
.contact ::selection { background: var(--ink); color: var(--white); }
.contact :focus-visible { outline-color: var(--white); }
.contact__in {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.contact__title {
  font-size: clamp(48px, 7vw, 104px); font-weight: 800; font-stretch: 112%;
  line-height: .92; letter-spacing: -0.04em; text-wrap: balance;
}
.contact__lead { margin: 28px 0 36px; font-size: 19px; color: var(--blue-soft); max-width: 44ch; }
.contact__big {
  display: block; width: fit-content; max-width: 100%;
  font-size: clamp(26px, 3.2vw, 42px); font-weight: 800; font-stretch: 108%;
  letter-spacing: -0.02em; line-height: 1.2;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em;
  text-decoration-color: rgba(255, 255, 255, .4);
  overflow-wrap: anywhere;
}
.contact__big + .contact__big { margin-top: 10px; }
.contact__big--mail { font-size: clamp(20px, 2.4vw, 32px); }
.contact__big:hover { text-decoration-color: var(--white); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.form input, .form textarea {
  width: 100%; padding: 15px 16px;
  border: 2px solid transparent; border-radius: 10px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s ease;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #6A7480; }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; color: var(--blue-soft); min-height: 1.5em; }

/* ===== Pätička ===== */
.foot { background: var(--ink); color: var(--on-dark-2); font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ===== Responzivita ===== */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .next { grid-template-columns: 1fr; }
  .next .btn { justify-self: start; }
}

@media (max-width: 960px) {
  .hero, .job, .about, .contact__in { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .job--flip .job__sheet { order: 0; }
  .job__media { margin-inline: 4px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .plans, .care { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 420px; aspect-ratio: 3 / 2; }
  .about__photo:has(img) { aspect-ratio: 4 / 5; }

  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header) 0 auto 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .3s var(--ease), visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 20px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .top__in { gap: 12px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top__call span { display: none; }
  .top__call { width: 44px; padding: 0; }
  .hero__cta .btn { flex: 1 1 auto; }
  .browser__bar { height: 30px; padding: 0 10px; }
  .dots i { width: 7px; height: 7px; }
  .url { font-size: 11px; }
  .phone { width: 28%; right: -6px; bottom: -28px; border-width: 5px; border-radius: 20px; }
  .phone img { border-radius: 15px; }
  .job--flip .phone { left: -6px; }
  .fields div { grid-template-columns: 1fr; gap: 2px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .plan, .care { padding: 22px 20px; }
  .plan__name { font-size: 26px; }
  .inc--care { grid-template-columns: minmax(0, 1fr); }
  .inc__panel p { padding-right: 8px; }
  .prices__help .btn { flex: 1 1 auto; }
  .form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  /* Bez animácie sa dá náhľad posúvať ručne */
  .browser--auto .browser__view, .browser--hover .browser__view { overflow-y: auto; }
  .browser--hover:hover .browser__view img, .browser--hover:focus-visible .browser__view img { transform: none; }
  .browser__hint { display: none; }
}
